Home
last modified time | relevance | path

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

12

/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/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()
DProAudioActivity.java156 for (int rate : sampleRates) { in isHDMIValid()
157 if (rate >= 192000) { in isHDMIValid()
/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.java187 final float rate = -1.0f; in testSetPlaybackParamsFail() local
189 mMediaSync.setPlaybackParams(new PlaybackParams().setSpeed(rate)); in testSetPlaybackParamsFail()
190 fail("playback rate " + rate + " is not handled correctly"); in testSetPlaybackParamsFail()
201 mMediaSync.setPlaybackParams(new PlaybackParams().setSpeed(rate)); in testSetPlaybackParamsFail()
202 fail("With audio track set, playback rate " + rate in testSetPlaybackParamsFail()
213 final float rate = (float)TEST_MAX_SPEED; in testSetPlaybackParamsSucceed() local
215 mMediaSync.setPlaybackParams(new PlaybackParams().setSpeed(rate)); in testSetPlaybackParamsSucceed()
217 assertEquals(rate, pbp.getSpeed(), FLOAT_TOLERANCE); in testSetPlaybackParamsSucceed()
219 fail("playback rate " + rate + " is not handled correctly"); in testSetPlaybackParamsSucceed()
DSoundPoolTest.java157 float rate = 1f; in testSoundPoolOp() local
158 int streamID = mSoundPool.play(sampleID, leftVolume, rightVolume, priority, loop, rate); in testSoundPoolOp()
161 rate = 1.4f; in testSoundPoolOp()
162 mSoundPool.setRate(streamID, rate); in testSoundPoolOp()
172 streamID = mSoundPool.play(sampleID, leftVolume, rightVolume, priority, loop, rate); in testSoundPoolOp()
DAudioTrackSurroundTest.java125 for (int rate : info.getSampleRates()) { in scanDevicesForEncodings()
126 text += rate + ", "; in scanDevicesForEncodings()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java309 public static boolean canDecode(MediaFormat format, double rate ) { in canDecode() argument
317 if (rate == 0.0) { in canDecode()
328 rate + " fps with " + decoder); in canDecode()
364 new VideoCapabilities.PerformancePoint(width, height, (int) rate); in canDecode()
376 decoder, mime, width, height, rate); in canDecode()
378 Log.d(TAG, "claims to decode content at " + rate + " fps"); in canDecode()
635 public static boolean canDecodeVideo(String mime, int width, int height, float rate) { in canDecodeVideo() argument
636 return canDecodeVideo(mime, width, height, rate, (float)0.0); in canDecodeVideo()
640 …public static boolean canDecodeVideo(String mime, int width, int height, float rate, float decodeR… in canDecodeVideo() argument
642 format.setFloat(MediaFormat.KEY_FRAME_RATE, rate); in canDecodeVideo()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DOrientationEventListenerTest.java76 public MyOrientationEventListener(Context context, int rate) { in MyOrientationEventListener() argument
77 super(context, rate); in MyOrientationEventListener()
DOrientationListenerTest.java99 public MockOrientationListener(Context context, int rate) { in MockOrientationListener() argument
100 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/sensor/src/android/hardware/cts/
DSensorIntegrationTests.java396 int rate; in generateSamplingRateInUs() local
399 rate = SensorManager.SENSOR_DELAY_FASTEST; in generateSamplingRateInUs()
404 rate = maxSamplingRate * mGenerator.nextInt(10); in generateSamplingRateInUs()
406 return rate; in generateSamplingRateInUs()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-3913/
Dpoc.cpp70 status_t setPlaybackSettings(const AudioPlaybackRate &rate) { return OK; } in setPlaybackSettings() argument
72 status_t getPlaybackSettings(AudioPlaybackRate *rate) { return OK; } in getPlaybackSettings() argument
/cts/tests/tests/media/res/raw/
Dvoice12_48k_128kbps_15s_ac3_readme.txt7 rate=48000
/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/suite/audio_quality/lib/src/audio/
DAudioRecordingLocal.cpp49 config.rate = samplingRate; in doPrepare()
DAudioPlaybackLocal.cpp62 config.rate = samplingRate; in doPrepare()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-6731/
Dpoc.c75 __u32 rate; member
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-6730/
Dpoc.c75 __u32 rate; member
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0508/
Dpoc.c73 __u32 rate; member
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/
DCameraVideoActivity.java182 int rate = BIT_RATE_720P; in getVideoBitRate() local
184 rate = (int)(rate * scaleFactor); in getVideoBitRate()
187 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.java555 public static boolean canDecodeVideo(String mime, int width, int height, float rate) { in canDecodeVideo() argument
557 format.setFloat(MediaFormat.KEY_FRAME_RATE, rate); in canDecodeVideo()
562 String mime, int width, int height, float rate, in canDecodeVideo() argument
565 format.setFloat(MediaFormat.KEY_FRAME_RATE, rate); in canDecodeVideo()
/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/hostsidetests/securitybulletin/securityPatch/CVE-2017-6262/
Dlocal_poc.h381 __u32 rate; member

12