Home
last modified time | relevance | path

Searched refs:getSampleRate (Results 1 – 25 of 26) sorted by relevance

12

/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DNativeAnalyzerThread.java96 private native int getSampleRate(long audio_context); in getSampleRate() method in NativeAnalyzerThread
106 public int getSampleRate() { return mSampleRate; } in getSampleRate() method in NativeAnalyzerThread
182 mSampleRate = getSampleRate(audioContext);
DAudioRecordHelper.java120 public int getSampleRate() { in getSampleRate() method in AudioRecordHelper
DCommon.java15 = AudioRecordHelper.getInstance().getSampleRate();
DAudioTap2ToneActivity.java309 (int) (mDuplexAudioManager.getRecorder().getSampleRate() * ANALYSIS_TIME_DELAY); in trigger()
369 int sampleRate = mDuplexAudioManager.getRecorder().getSampleRate(); in analyzeCapturedAudio()
DHifiUltrasoundTestActivity.java124 final int recordRate = audioRecorder.getSampleRate(); in onCreate()
DHifiUltrasoundSpeakerTestActivity.java144 final int recordRate = audioRecorder.getSampleRate(); in onCreate()
DAudioLoopbackLatencyActivity.java423 mNativeAnalyzerThread.getSampleRate(), in recordTestResults()
/cts/apps/CtsVerifier/jni/audio_loopback/analyzer/
DLatencyAnalyzer.h157 int32_t getSampleRate() const { in getSampleRate() function
319 int32_t getSampleRate() const { in getSampleRate() function
374 int32_t maxLatencyFrames = getSampleRate() * kMaxLatencyMillis / kMillisPerSecond; in PulseLatencyAnalyzer()
375 int32_t numPulseBits = getSampleRate() * kPulseLengthMillis in PulseLatencyAnalyzer()
380 mAudioRecording.setSampleRate(getSampleRate()); in PulseLatencyAnalyzer()
403 mDownCounter = getSampleRate() / 2; in reset()
458 / getSampleRate(); in analyze()
DGlitchAnalyzer.h159 mForceGlitchCounter = getSampleRate(); in processInputFrame()
368 mSinePeriod = getSampleRate() / kTargetGlitchFrequency; in prepareToTest()
/cts/tests/tests/media/src/android/media/cts/
DAudioFormatTest.java53 TEST_SR, copiedFormat.getSampleRate()); in testBuilderForCopy()
80 0, copiedFormat.getSampleRate()); in testPartialFormatBuilderForCopyEncoding()
98 TEST_SR, copiedFormat.getSampleRate()); in testPartialFormatBuilderForCopyRate()
124 0, copiedFormat.getSampleRate()); in testPartialFormatBuilderForCopyChanMask()
146 0, copiedFormat.getSampleRate()); in testPartialFormatBuilderForCopyChanIdxMask()
DAudioRecordingConfigurationTest.java310 && (config.getClientFormat().getSampleRate() == format.getSampleRate()) in verifyAudioConfig()
316 && (config.getFormat().getSampleRate() > 0) in verifyAudioConfig()
DAudioTrackLatencyTest.java299 log(TEST_NAME, "Track sample rate = " + track.getSampleRate() + " Hz"); in createCustomAudioTrack()
318 assertTrue(TEST_NAME + " actual SR", track.getSampleRate() > 0); in checkOutputLowLatency()
323 int numBuffers = numSeconds * track.getSampleRate() / TEST_FRAMES_PER_BUFFER; in checkOutputLowLatency()
346 long timeDelta = framesPending * NANOS_PER_SECOND / track.getSampleRate(); in checkOutputLowLatency()
DAudioRecordTest.java168 assertEquals(SAMPLING_RATE_HZ, mAudioRecord.getSampleRate()); in testAudioRecordProperties()
185 int markerInFrames = mAudioRecord.getSampleRate() / 2; in testAudioRecordOP()
189 int periodInFrames = mAudioRecord.getSampleRate(); in testAudioRecordOP()
487 final int observedRate = rec.getSampleRate(); in testAudioRecordBuilderPartialFormat()
525 final int observedRate = rec.getSampleRate(); in testAudioRecordBuilderParams()
959 assertEquals(SAMPLING_RATE_HZ, format.getSampleRate()); in checkRecordingConfig()
998 assertEquals(sampleRateInHz, format.getSampleRate()); in createAudioRecord()
1722 short data[] = new short[audioRecord.getSampleRate() / 2]; in testSetLogSessionId()
DAudioTrackOffloadTest.java136 track.getSampleRate()); in getOffloadAudioTrack()
DAudioHelper.java196 return ms * format.getSampleRate() / 1000; in frameCountFromMsec()
658 + remainingFrames * 1000 / mTrack.getSampleRate(); in stop()
DAudioTrackTest.java325 final int observedRate = track.getSampleRate(); in testBuilderDefault()
356 final int observedRate = track.getSampleRate(); in testBuilderFormat()
1489 assertEquals(TEST_NAME, TEST_SR, track.getSampleRate()); in testAudioTrackProperties()
1790 assertEquals(testName, testSr, format.getSampleRate()); in playOnceStreamData()
1903 testSampleRate, track.getSampleRate()); in playOnceStreamByteBuffer()
2702 new Integer(track.getSampleRate())); in testMediaMetrics()
2946 short data[] = new short[audioTrack.getSampleRate() / 2]; in testSetLogSessionId()
3048 Thread.sleep(frames * 1000L / track.getSampleRate()); // accommodate for #frames. in validateWriteStartsStream()
3083 Thread.sleep(frames * 1000L / track.getSampleRate()); // accommodate for #frames. in validateSetStartThresholdStartsStream()
DCamcorderProfileTest.java193 assertEquals(profile.audioSampleRate, audioProfile.getSampleRate()); in checkAllProfiles()
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/common/
DStreamBase.java49 public int getSampleRate() { return mSampleRate; } in getSampleRate() method in StreamBase
/cts/tests/tests/media/libndkaudio/
DAudioPlayer.cpp106 sampleRate_ = SystemParams::getSampleRate(); in AudioPlayer()
144 sampleRate_ = SystemParams::getSampleRate(); in Open()
DWaveTableOscillator.cpp44 fN_ = SystemParams::getSampleRate() / (float) waveTableSize_; in setWaveTable()
/cts/apps/CtsVerifier/jni/audio_loopback/
DNativeAudioAnalyzer.h85 int getSampleRate();
Djni-bridge.cpp140 return analyzer->getSampleRate(); in Java_com_android_cts_verifier_audio_NativeAnalyzerThread_getSampleRate()
DNativeAudioAnalyzer.cpp209 int NativeAudioAnalyzer::getSampleRate() { in getSampleRate() function in NativeAudioAnalyzer
/cts/tests/signature/api-check/
Dhiddenapi-filter.csv32 Landroid/bluetooth/BluetoothCodecConfig;->getSampleRate()I
/cts/hostsidetests/media/src/android/media/metrics/cts/
DMediaMetricsAtomTests.java187 assertThat(result.getSampleRate()).isEqualTo(-1); in testTrackChangeEvent_default()
247 assertThat(result.getSampleRate()).isEqualTo(89); in testTrackChangeEvent_audio()

12