Home
last modified time | relevance | path

Searched refs:rate (Results 1 – 24 of 24) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/peripheralprofile/
DAudioStringsHelper.java52 static private String getRateString(int rate) { in getRateString() argument
53 if (rate % 1000 == 0) { in getRateString()
54 return "" + rate/1000 + "K"; in getRateString()
56 return "" + (float)rate/1000 + "K"; in getRateString()
/cts/tests/tests/media/src/android/media/cts/
DIvfWriter.java57 int rate) throws IOException { in IvfWriter() argument
63 mRate = rate; in IvfWriter()
117 int frameCount, int width, int height, int scale, int rate, String mimeType) { in makeIvfHeader() argument
131 lay32Bits(ivfHeader, 16, rate); // scale/rate in makeIvfHeader()
DMediaSyncTest.java186 final float rate = -1.0f; in testSetPlaybackParamsFail() local
188 mMediaSync.setPlaybackParams(new PlaybackParams().setSpeed(rate)); in testSetPlaybackParamsFail()
189 fail("playback rate " + rate + " is not handled correctly"); in testSetPlaybackParamsFail()
200 mMediaSync.setPlaybackParams(new PlaybackParams().setSpeed(rate)); in testSetPlaybackParamsFail()
201 fail("With audio track set, playback rate " + rate in testSetPlaybackParamsFail()
212 final float rate = (float)TEST_MAX_SPEED; in testSetPlaybackParamsSucceed() local
214 mMediaSync.setPlaybackParams(new PlaybackParams().setSpeed(rate)); in testSetPlaybackParamsSucceed()
216 assertEquals(rate, pbp.getSpeed(), FLOAT_TOLERANCE); in testSetPlaybackParamsSucceed()
218 fail("playback rate " + rate + " is not handled correctly"); in testSetPlaybackParamsSucceed()
DSoundPoolTest.java152 float rate = 1f; in testSoundPoolOp() local
153 int streamID = mSoundPool.play(sampleID, leftVolume, rightVolume, priority, loop, rate); in testSoundPoolOp()
156 rate = 1.4f; in testSoundPoolOp()
157 mSoundPool.setRate(streamID, rate); in testSoundPoolOp()
167 streamID = mSoundPool.play(sampleID, leftVolume, rightVolume, priority, loop, rate); in testSoundPoolOp()
DAudioTrackSurroundTest.java117 for (int rate : info.getSampleRates()) { in scanDevicesForEncodings()
118 text += rate + ", "; in scanDevicesForEncodings()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioRecordHelper.java40 for (int rate : SAMPLE_RATES_HZ) { in AudioRecordHelper()
41 tmpBufferSize = AudioRecord.getMinBufferSize(rate, CHANNEL, ENCODING); in AudioRecordHelper()
42 AudioRecord testAudioRecord = new AudioRecord(source, rate, CHANNEL, ENCODING, in AudioRecordHelper()
46 tmpSampleRate = rate; in AudioRecordHelper()
DCommon.java63 private static double[] prefix(int rate) { in prefix() argument
82 int prefixLength = (int) Math.round(PREFIX_LENGTH_S * rate); in prefix()
/cts/tests/tests/view/src/android/view/cts/
DOrientationEventListenerTest.java75 public MyOrientationEventListener(Context context, int rate) { in MyOrientationEventListener() argument
76 super(context, rate); in MyOrientationEventListener()
DOrientationListenerTest.java98 public MockOrientationListener(Context context, int rate) { in MockOrientationListener() argument
99 super(context, rate); in MockOrientationListener()
DTextureViewStressTestActivity.java82 float rate = display.getRefreshRate(); in waitForCompletion() local
83 oneframeMs = roundUpFrame(mDelayMs, (int) (1000.0f / rate)); in waitForCompletion()
/cts/tests/tests/media/res/raw/
Dvoice12_48k_128kbps_15s_ac3_readme.txt7 rate=48000
/cts/tests/sensor/src/android/hardware/cts/
DSensorIntegrationTests.java264 int rate; in generateSamplingRateInUs() local
267 rate = SensorManager.SENSOR_DELAY_FASTEST; in generateSamplingRateInUs()
272 rate = maxSamplingRate * mGenerator.nextInt(10); in generateSamplingRateInUs()
274 return rate; in generateSamplingRateInUs()
DSensorDirectReportTest.java577 for (int rate : POSSIBLE_RATE_LEVELS) { in runMultiModeRateIndependencyTestGroup()
581 sensorType, rate, type, samplingPeriodUs);}, in runMultiModeRateIndependencyTestGroup()
583 rate, type, samplingPeriodUs)); in runMultiModeRateIndependencyTestGroup()
/cts/suite/audio_quality/lib/src/audio/
DAudioPlaybackLocal.cpp62 config.rate = samplingRate; in doPrepare()
DAudioRecordingLocal.cpp49 config.rate = samplingRate; in doPrepare()
/cts/tests/sensor/jni/
DSensorTest.cpp99 int TestSensorManager::configureDirectReport(TestSensor sensor, int channel, int rate) { in configureDirectReport() argument
103 return ASensorManager_configureDirectReport(mManager, sensor, channel, rate); in configureDirectReport()
/cts/hostsidetests/security/securityPatch/CVE-2016-6731/
Dpoc.c75 __u32 rate; member
/cts/hostsidetests/security/securityPatch/CVE-2016-6730/
Dpoc.c75 __u32 rate; member
/cts/hostsidetests/security/securityPatch/CVE-2017-0508/
Dpoc.c73 __u32 rate; member
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/
DCameraVideoActivity.java155 int rate = BIT_RATE_720P; in getVideoBitRate() local
157 rate = (int)(rate * scaleFactor); in getVideoBitRate()
160 return Math.max(BIT_RATE_MIN, Math.min(BIT_RATE_MAX, rate)); in getVideoBitRate()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DMediaUtils.java554 public static boolean canDecodeVideo(String mime, int width, int height, float rate) { in canDecodeVideo() argument
556 format.setFloat(MediaFormat.KEY_FRAME_RATE, rate); in canDecodeVideo()
561 String mime, int width, int height, float rate, in canDecodeVideo() argument
564 format.setFloat(MediaFormat.KEY_FRAME_RATE, rate); in canDecodeVideo()
/cts/hostsidetests/security/securityPatch/CVE-2017-6262/
Dlocal_poc.h381 __u32 rate; member
/cts/apps/CtsVerifier/assets/scripts/
Dexecute_power_tests.py523 def collectMeasurements(self, measurementCount, rate, verbose = True): argument
534 decimate_by = self._native_hz / rate or 1
/cts/tests/camera/src/android/hardware/camera2/cts/
DRecordingTest.java1869 int rate = BIT_RATE_1080P;
1871 rate = (int)(rate * scaleFactor);
1874 return Math.max(BIT_RATE_MIN, Math.min(BIT_RATE_MAX, rate));