Home
last modified time | relevance | path

Searched refs:sampleRates (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
DUsb10ASFormatII.java83 int[] sampleRates = getSampleRates(); in report() local
87 canvas.writeListItem("min: " + sampleRates[0]); in report()
88 canvas.writeListItem("max: " + sampleRates[1]); in report()
91 canvas.writeListItem("" + sampleRates[index]); in report()
DUsb10ASFormatI.java102 int[] sampleRates = getSampleRates(); in report() local
106 canvas.writeListItem("min: " + sampleRates[0]); in report()
107 canvas.writeListItem("max: " + sampleRates[1]); in report()
110 canvas.writeListItem("" + sampleRates[index]); in report()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioProfileVectorHelper.cpp185 const SampleRateSet sampleRates = audioProfile->getSampleRates(); in checkCompatibleSamplingRate() local
186 if (sampleRates.empty()) { in checkCompatibleSamplingRate()
194 auto desiredRate = sampleRates.lower_bound(samplingRate); in checkCompatibleSamplingRate()
197 if (desiredRate != sampleRates.end()) { in checkCompatibleSamplingRate()
204 if (desiredRate != sampleRates.begin()) { in checkCompatibleSamplingRate()
421 auto sampleRates = preferHigherSamplingRates ? in findBestMatchingOutputConfig() local
426 if (sampleRates.empty()) { in findBestMatchingOutputConfig()
430 __func__, *channels.begin(), *sampleRates.begin(), f); in findBestMatchingOutputConfig()
432 bestOutputConfig.sample_rate = *sampleRates.begin(); in findBestMatchingOutputConfig()
/frameworks/av/media/libaudiofoundation/
DAudioProfile.cpp83 void AudioProfile::setSampleRates(const SampleRateSet &sampleRates) in setSampleRates() argument
86 mSamplingRates = sampleRates; in setSampleRates()
192 parcelable.sampleRates = VALUE_OR_RETURN( in toCommonParcelable()
212 convertContainer<SampleRateSet>(aidl.sampleRates, in fromCommonParcelable()
405 SampleRateSet sampleRates = SetIntersection(profile->getSampleRates(), it->second.second); in intersectAudioProfiles() local
406 if (sampleRates.empty()) { in intersectAudioProfiles()
409 profiles.push_back(new AudioProfile(profile->getFormat(), channelMasks, sampleRates)); in intersectAudioProfiles()
DAudioPort.cpp126 const SampleRateSet &sampleRates = profile->getSampleRates(); in toAudioPort() local
129 if (sampleRates.size() > AUDIO_PORT_MAX_SAMPLING_RATES || in toAudioPort()
138 dstProfile.num_sample_rates = sampleRates.size(); in toAudioPort()
139 std::copy(sampleRates.begin(), sampleRates.end(), in toAudioPort()
/frameworks/base/media/aidl/android/media/audio/common/
DAudioProfile.aidl42 int[] sampleRates;
/frameworks/base/media/aidl_api/android.media.audio.common.types/1/android/media/audio/common/
DAudioProfile.aidl41 int[] sampleRates;
/frameworks/base/media/aidl_api/android.media.audio.common.types/current/android/media/audio/common/
DAudioProfile.aidl41 int[] sampleRates;
/frameworks/av/media/libaudiofoundation/include/media/
DAudioProfile.h49 void setSampleRates(const SampleRateSet &sampleRates);
/frameworks/base/media/java/android/media/
DMediaCodecInfo.java1410 int[] sampleRates = null; in applyLevelLimits() local
1416 sampleRates = new int[] { in applyLevelLimits()
1423 sampleRates = new int[] { 8000 }; in applyLevelLimits()
1427 sampleRates = new int[] { 16000 }; in applyLevelLimits()
1431 sampleRates = new int[] { in applyLevelLimits()
1445 sampleRates = new int[] { 8000, 12000, 16000, 24000, 48000 }; in applyLevelLimits()
1457 sampleRates = new int[] { 8000 }; in applyLevelLimits()
1461 sampleRates = new int[] { 8000 }; in applyLevelLimits()
1469 sampleRates = new int[] { 48000 }; in applyLevelLimits()
1473 sampleRates = new int[] { 44100, 48000, 96000, 192000 }; in applyLevelLimits()
[all …]
/frameworks/base/core/jni/
Dandroid_media_AudioTrack.cpp293 int* sampleRates = env->GetIntArrayElements(jSampleRate, NULL); in android_media_AudioTrack_setup() local
294 int sampleRateInHertz = sampleRates[0]; in android_media_AudioTrack_setup()
295 env->ReleaseIntArrayElements(jSampleRate, sampleRates, JNI_ABORT); in android_media_AudioTrack_setup()
/frameworks/av/media/libaudioclient/
DAidlConversion.cpp2868 if (aidl.sampleRates.size() > std::size(legacy.sample_rates)) { in aidl2legacy_AudioProfile_audio_profile()
2872 convertRange(aidl.sampleRates.begin(), aidl.sampleRates.end(), legacy.sample_rates, in aidl2legacy_AudioProfile_audio_profile()
2874 legacy.num_sample_rates = aidl.sampleRates.size(); in aidl2legacy_AudioProfile_audio_profile()
2901 std::back_inserter(aidl.sampleRates), in legacy2aidl_audio_profile_AudioProfile()
/frameworks/av/services/audioflinger/
DAudioFlinger.cpp1951 std::vector<uint32_t> sampleRates = {sampleRate}; in getInputBufferSize() local
1956 sampleRates.push_back(SR_48000); in getInputBufferSize()
1958 sampleRates.push_back(SR_44100); in getInputBufferSize()
1969 for (auto testSampleRate : sampleRates) { in getInputBufferSize()