Home
last modified time | relevance | path

Searched refs:numSurroundFormats (Results 1 – 8 of 8) sorted by relevance

/frameworks/av/services/audiopolicy/service/
DAudioPolicyInterfaceImpl.cpp1999 unsigned int numSurroundFormats = VALUE_OR_RETURN_BINDER_STATUS( in getSurroundFormats() local
2001 if (numSurroundFormats > MAX_ITEMS_PER_LIST) { in getSurroundFormats()
2002 numSurroundFormats = MAX_ITEMS_PER_LIST; in getSurroundFormats()
2004 unsigned int numSurroundFormatsReq = numSurroundFormats; in getSurroundFormats()
2005 std::unique_ptr<audio_format_t[]>surroundFormats(new audio_format_t[numSurroundFormats]); in getSurroundFormats()
2006 std::unique_ptr<bool[]>surroundFormatsEnabled(new bool[numSurroundFormats]); in getSurroundFormats()
2014 mAudioPolicyManager->getSurroundFormats(&numSurroundFormats, surroundFormats.get(), in getSurroundFormats()
2016 numSurroundFormatsReq = std::min(numSurroundFormats, numSurroundFormatsReq); in getSurroundFormats()
2025 count->value = VALUE_OR_RETURN_BINDER_STATUS(convertIntegral<uint32_t>(numSurroundFormats)); in getSurroundFormats()
2031 unsigned int numSurroundFormats = VALUE_OR_RETURN_BINDER_STATUS( in getReportedSurroundFormats() local
[all …]
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h306 virtual status_t getSurroundFormats(unsigned int *numSurroundFormats,
310 virtual status_t getReportedSurroundFormats(unsigned int *numSurroundFormats,
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp2627 unsigned int numSurroundFormats = 0; in android_media_AudioSystem_getSurroundFormats() local
2628 status_t status = AudioSystem::getSurroundFormats(&numSurroundFormats, nullptr, nullptr); in android_media_AudioSystem_getSurroundFormats()
2633 if (numSurroundFormats == 0) { in android_media_AudioSystem_getSurroundFormats()
2636 auto surroundFormats = std::make_unique<audio_format_t[]>(numSurroundFormats); in android_media_AudioSystem_getSurroundFormats()
2637 auto surroundFormatsEnabled = std::make_unique<bool[]>(numSurroundFormats); in android_media_AudioSystem_getSurroundFormats()
2638 status = AudioSystem::getSurroundFormats(&numSurroundFormats, &surroundFormats[0], in android_media_AudioSystem_getSurroundFormats()
2645 for (size_t i = 0; i < numSurroundFormats; i++) { in android_media_AudioSystem_getSurroundFormats()
2675 unsigned int numSurroundFormats = 0; in android_media_AudioSystem_getReportedSurroundFormats() local
2676 status_t status = AudioSystem::getReportedSurroundFormats(&numSurroundFormats, nullptr); in android_media_AudioSystem_getReportedSurroundFormats()
2681 if (numSurroundFormats == 0) { in android_media_AudioSystem_getReportedSurroundFormats()
[all …]
/frameworks/av/media/libaudioclient/
DAudioSystem.cpp2068 status_t AudioSystem::getSurroundFormats(unsigned int* numSurroundFormats, in getSurroundFormats() argument
2071 if (numSurroundFormats == nullptr || (*numSurroundFormats != 0 && in getSurroundFormats()
2081 VALUE_OR_RETURN_STATUS(convertIntegral<int32_t>(*numSurroundFormats)); in getSurroundFormats()
2088 *numSurroundFormats = VALUE_OR_RETURN_STATUS( in getSurroundFormats()
2098 status_t AudioSystem::getReportedSurroundFormats(unsigned int* numSurroundFormats, in getReportedSurroundFormats() argument
2100 if (numSurroundFormats == nullptr || (*numSurroundFormats != 0 && surroundFormats == nullptr)) { in getReportedSurroundFormats()
2108 VALUE_OR_RETURN_STATUS(convertIntegral<int32_t>(*numSurroundFormats)); in getReportedSurroundFormats()
2113 *numSurroundFormats = VALUE_OR_RETURN_STATUS( in getReportedSurroundFormats()
/frameworks/av/services/audiopolicy/tests/
Daudiopolicymanager_tests.cpp1636 unsigned int numSurroundFormats = 0; in getSurroundFormatsHelper() local
1639 &numSurroundFormats, nullptr /* surroundFormats */, in getSurroundFormatsHelper()
1645 audio_format_t surroundFormats[numSurroundFormats]; in getSurroundFormatsHelper()
1646 memset(surroundFormats, 0, sizeof(audio_format_t) * numSurroundFormats); in getSurroundFormatsHelper()
1647 bool surroundFormatsEnabled[numSurroundFormats]; in getSurroundFormatsHelper()
1648 memset(surroundFormatsEnabled, 0, sizeof(bool) * numSurroundFormats); in getSurroundFormatsHelper()
1650 &numSurroundFormats, surroundFormats, surroundFormatsEnabled); in getSurroundFormatsHelper()
1655 for (int i = 0; i< numSurroundFormats; i++) { in getSurroundFormatsHelper()
1662 unsigned int numSurroundFormats = 0; in getReportedSurroundFormatsHelper() local
1665 &numSurroundFormats, nullptr /* surroundFormats */); in getReportedSurroundFormatsHelper()
[all …]
/frameworks/av/media/libaudioclient/include/media/
DAudioSystem.h522 static status_t getSurroundFormats(unsigned int *numSurroundFormats,
525 static status_t getReportedSurroundFormats(unsigned int *numSurroundFormats,
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.h356 virtual status_t getSurroundFormats(unsigned int *numSurroundFormats,
359 virtual status_t getReportedSurroundFormats(unsigned int *numSurroundFormats,
DAudioPolicyManager.cpp5909 status_t AudioPolicyManager::getSurroundFormats(unsigned int *numSurroundFormats, in getSurroundFormats() argument
5913 if (numSurroundFormats == nullptr || (*numSurroundFormats != 0 && in getSurroundFormats()
5918 __func__, *numSurroundFormats, surroundFormats, surroundFormatsEnabled); in getSurroundFormats()
5921 size_t formatsMax = *numSurroundFormats; in getSurroundFormats()
5923 *numSurroundFormats = mConfig->getSurroundFormats().size(); in getSurroundFormats()
5946 status_t AudioPolicyManager::getReportedSurroundFormats(unsigned int *numSurroundFormats, in getReportedSurroundFormats() argument
5948 if (numSurroundFormats == nullptr || (*numSurroundFormats != 0 && surroundFormats == nullptr)) { in getReportedSurroundFormats()
5952 __func__, *numSurroundFormats, surroundFormats); in getReportedSurroundFormats()
5955 size_t formatsMax = *numSurroundFormats; in getReportedSurroundFormats()
5991 *numSurroundFormats = formats.size(); in getReportedSurroundFormats()