Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DIvfWriter.java53 int scale, int rate) throws IOException { in IvfWriter() argument
58 mRate = rate; in IvfWriter()
110 private static byte[] makeIvfHeader(int frameCount, int width, int height, int scale, int rate){ in makeIvfHeader() argument
124 lay32Bits(ivfHeader, 16, rate); // scale/rate in makeIvfHeader()
DMediaSyncTest.java162 final float rate = -1.0f; in testSetPlaybackParamsFail() local
164 mMediaSync.setPlaybackParams(new PlaybackParams().setSpeed(rate)); in testSetPlaybackParamsFail()
165 fail("playback rate " + rate + " is not handled correctly"); in testSetPlaybackParamsFail()
178 mMediaSync.setPlaybackParams(new PlaybackParams().setSpeed(rate)); in testSetPlaybackParamsFail()
179 fail("With audio track set, playback rate " + rate in testSetPlaybackParamsFail()
190 final float rate = (float)TEST_MAX_SPEED; in testSetPlaybackParamsSucceed() local
192 mMediaSync.setPlaybackParams(new PlaybackParams().setSpeed(rate)); in testSetPlaybackParamsSucceed()
194 assertEquals(rate, pbp.getSpeed(), FLOAT_TOLERANCE); in testSetPlaybackParamsSucceed()
196 fail("playback rate " + rate + " is not handled correctly"); in testSetPlaybackParamsSucceed()
DSoundPoolTest.java150 float rate = 1f; in testSoundPoolOp() local
151 int streamID = mSoundPool.play(sampleID, leftVolume, rightVolume, priority, loop, rate); in testSoundPoolOp()
154 rate = 1.4f; in testSoundPoolOp()
155 mSoundPool.setRate(streamID, rate); in testSoundPoolOp()
165 streamID = mSoundPool.play(sampleID, leftVolume, rightVolume, priority, loop, rate); in testSoundPoolOp()
DDecoderTest.java1263 …rivate static void verifySecureVideoDecodeSupport(String mime, int width, int height, float rate) { in verifySecureVideoDecodeSupport() argument
1270 format.setFloat(MediaFormat.KEY_FRAME_RATE, rate); in verifySecureVideoDecodeSupport()
/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.java56 public MockOrientationEventListener(Context context, int rate) { in MockOrientationEventListener() argument
57 super(context, rate); in MockOrientationEventListener()
DOrientationListenerTest.java98 public MockOrientationListener(Context context, int rate) { in MockOrientationListener() argument
99 super(context, rate); in MockOrientationListener()
/cts/tests/tests/hardware/src/android/hardware/cts/
DSensorIntegrationTests.java262 int rate; in generateSamplingRateInUs() local
265 rate = SensorManager.SENSOR_DELAY_FASTEST; in generateSamplingRateInUs()
270 rate = maxSamplingRate * mGenerator.nextInt(10); in generateSamplingRateInUs()
272 return rate; in generateSamplingRateInUs()
/cts/tests/tests/textureview/src/android/textureview/cts/
DTextureViewTestActivity.java78 float rate = display.getRefreshRate(); in waitForCompletion() local
79 oneframeMs = roundUpFrame(mDelayMs, (int)(1000.0f / rate)); in waitForCompletion()
/cts/suite/audio_quality/lib/src/audio/
DAudioPlaybackLocal.cpp62 config.rate = samplingRate; in doPrepare()
DAudioRecordingLocal.cpp49 config.rate = samplingRate; in doPrepare()
/cts/libs/deviceutil/src/android/cts/util/
DMediaUtils.java383 public static boolean canDecodeVideo(String mime, int width, int height, float rate) { in canDecodeVideo() argument
385 format.setFloat(MediaFormat.KEY_FRAME_RATE, rate); in canDecodeVideo()
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/
DRecordingTest.java1343 int rate = BIT_RATE_1080P;
1345 rate = (int)(rate * scaleFactor);
1348 return Math.max(BIT_RATE_MIN, Math.min(BIT_RATE_MAX, rate));
/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