Home
last modified time | relevance | path

Searched refs:surroundFormats (Results 1 – 11 of 11) sorted by relevance

/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioPolicyConfig.h136 void setSurroundFormats(const SurroundFormats &surroundFormats) in setSurroundFormats() argument
138 mSurroundFormats = surroundFormats; in setSurroundFormats()
/frameworks/av/services/audiopolicy/tests/
Daudiopolicymanager_tests.cpp1645 audio_format_t surroundFormats[numSurroundFormats]; in getSurroundFormatsHelper() local
1646 memset(surroundFormats, 0, sizeof(audio_format_t) * numSurroundFormats); in getSurroundFormatsHelper()
1650 &numSurroundFormats, surroundFormats, surroundFormatsEnabled); in getSurroundFormatsHelper()
1656 surroundFormatsMap[surroundFormats[i]] = surroundFormatsEnabled[i]; in getSurroundFormatsHelper()
1670 audio_format_t surroundFormats[numSurroundFormats]; in getReportedSurroundFormatsHelper() local
1671 memset(surroundFormats, 0, sizeof(audio_format_t) * numSurroundFormats); in getReportedSurroundFormatsHelper()
1672 ret = mManager->getReportedSurroundFormats(&numSurroundFormats, surroundFormats); in getReportedSurroundFormatsHelper()
1677 for (const auto &surroundFormat : surroundFormats) { in getReportedSurroundFormatsHelper()
1713 auto surroundFormats = getSurroundFormatsHelper(); in TEST_P() local
1714 ASSERT_EQ(1, surroundFormats.count(GetParam())); in TEST_P()
[all …]
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h307 audio_format_t *surroundFormats,
311 audio_format_t *surroundFormats) = 0;
/frameworks/av/services/audiopolicy/service/
DAudioPolicyInterfaceImpl.cpp2005 std::unique_ptr<audio_format_t[]>surroundFormats(new audio_format_t[numSurroundFormats]); in getSurroundFormats() local
2014 mAudioPolicyManager->getSurroundFormats(&numSurroundFormats, surroundFormats.get(), in getSurroundFormats()
2018 convertRange(surroundFormats.get(), surroundFormats.get() + numSurroundFormatsReq, in getSurroundFormats()
2037 std::unique_ptr<audio_format_t[]>surroundFormats(new audio_format_t[numSurroundFormats]); in getReportedSurroundFormats() local
2046 &numSurroundFormats, surroundFormats.get()))); in getReportedSurroundFormats()
2049 convertRange(surroundFormats.get(), surroundFormats.get() + numSurroundFormatsReq, in getReportedSurroundFormats()
/frameworks/av/media/libaudioclient/include/media/
DAudioSystem.h523 audio_format_t *surroundFormats,
526 audio_format_t *surroundFormats);
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp2636 auto surroundFormats = std::make_unique<audio_format_t[]>(numSurroundFormats); in android_media_AudioSystem_getSurroundFormats() local
2638 status = AudioSystem::getSurroundFormats(&numSurroundFormats, &surroundFormats[0], in android_media_AudioSystem_getSurroundFormats()
2646 int audioFormat = audioFormatFromNative(surroundFormats[i]); in android_media_AudioSystem_getSurroundFormats()
2649 ALOGW("Unknown surround native audio format for JAVA API: %u", surroundFormats[i]); in android_media_AudioSystem_getSurroundFormats()
2684 auto surroundFormats = std::make_unique<audio_format_t[]>(numSurroundFormats); in android_media_AudioSystem_getReportedSurroundFormats() local
2685 status = AudioSystem::getReportedSurroundFormats(&numSurroundFormats, &surroundFormats[0]); in android_media_AudioSystem_getReportedSurroundFormats()
2692 int audioFormat = audioFormatFromNative(surroundFormats[i]); in android_media_AudioSystem_getReportedSurroundFormats()
2695 ALOGW("Unknown surround native audio format for JAVA API: %u", surroundFormats[i]); in android_media_AudioSystem_getReportedSurroundFormats()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.h357 audio_format_t *surroundFormats,
360 audio_format_t *surroundFormats);
DAudioPolicyManager.cpp5910 audio_format_t *surroundFormats, in getSurroundFormats() argument
5914 (surroundFormats == nullptr || surroundFormatsEnabled == nullptr))) { in getSurroundFormats()
5918 __func__, *numSurroundFormats, surroundFormats, surroundFormatsEnabled); in getSurroundFormats()
5928 surroundFormats[formatsWritten] = format.first; in getSurroundFormats()
5947 audio_format_t *surroundFormats) { in getReportedSurroundFormats() argument
5948 if (numSurroundFormats == nullptr || (*numSurroundFormats != 0 && surroundFormats == nullptr)) { in getReportedSurroundFormats()
5952 __func__, *numSurroundFormats, surroundFormats); in getReportedSurroundFormats()
5994 surroundFormats[formatsWritten++] = format; in getReportedSurroundFormats()
/frameworks/av/media/libaudioclient/
DAudioSystem.cpp2069 audio_format_t* surroundFormats, in getSurroundFormats() argument
2072 (surroundFormats == nullptr || in getSurroundFormats()
2091 convertRange(surroundFormatsAidl.begin(), surroundFormatsAidl.end(), surroundFormats, in getSurroundFormats()
2099 audio_format_t* surroundFormats) { in getReportedSurroundFormats() argument
2100 if (numSurroundFormats == nullptr || (*numSurroundFormats != 0 && surroundFormats == nullptr)) { in getReportedSurroundFormats()
2116 convertRange(surroundFormatsAidl.begin(), surroundFormatsAidl.end(), surroundFormats, in getReportedSurroundFormats()
/frameworks/base/media/java/android/media/
DAudioSystem.java2073 public static native int getSurroundFormats(Map<Integer, Boolean> surroundFormats); in getSurroundFormats() argument
2076 public static native int getReportedSurroundFormats(ArrayList<Integer> surroundFormats); in getReportedSurroundFormats() argument
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java2594 Map<Integer, Boolean> surroundFormats = new HashMap<>(); in getSurroundFormats() local
2595 int status = AudioSystem.getSurroundFormats(surroundFormats); in getSurroundFormats()
2601 return surroundFormats; in getSurroundFormats()
2782 String[] surroundFormats = TextUtils.split(enabledSurroundFormats, ","); in sendEnabledSurroundFormats() local
2784 for (String format : surroundFormats) { in sendEnabledSurroundFormats()