Searched refs:numSurroundFormats (Results 1 – 8 of 8) sorted by relevance
/aosp12/frameworks/av/services/audiopolicy/service/ |
H A D | AudioPolicyInterfaceImpl.cpp | 1833 unsigned int numSurroundFormats = VALUE_OR_RETURN_BINDER_STATUS( in getSurroundFormats() local 1835 if (numSurroundFormats > MAX_ITEMS_PER_LIST) { in getSurroundFormats() 1836 numSurroundFormats = MAX_ITEMS_PER_LIST; in getSurroundFormats() 1838 unsigned int numSurroundFormatsReq = numSurroundFormats; in getSurroundFormats() 1840 std::unique_ptr<bool[]>surroundFormatsEnabled(new bool[numSurroundFormats]); in getSurroundFormats() 1850 numSurroundFormatsReq = std::min(numSurroundFormats, numSurroundFormatsReq); in getSurroundFormats() 1864 unsigned int numSurroundFormats = VALUE_OR_RETURN_BINDER_STATUS( in getReportedSurroundFormats() local 1866 if (numSurroundFormats > MAX_ITEMS_PER_LIST) { in getReportedSurroundFormats() 1867 numSurroundFormats = MAX_ITEMS_PER_LIST; in getReportedSurroundFormats() 1869 unsigned int numSurroundFormatsReq = numSurroundFormats; in getReportedSurroundFormats() [all …]
|
/aosp12/frameworks/av/services/audiopolicy/tests/ |
H A D | audiopolicymanager_tests.cpp | 843 unsigned int numSurroundFormats = 0; in getSurroundFormatsHelper() local 846 &numSurroundFormats, nullptr /* surroundFormats */, in getSurroundFormatsHelper() 852 audio_format_t surroundFormats[numSurroundFormats]; in getSurroundFormatsHelper() 853 memset(surroundFormats, 0, sizeof(audio_format_t) * numSurroundFormats); in getSurroundFormatsHelper() 854 bool surroundFormatsEnabled[numSurroundFormats]; in getSurroundFormatsHelper() 855 memset(surroundFormatsEnabled, 0, sizeof(bool) * numSurroundFormats); in getSurroundFormatsHelper() 857 &numSurroundFormats, surroundFormats, surroundFormatsEnabled); in getSurroundFormatsHelper() 862 for (int i = 0; i< numSurroundFormats; i++) { in getSurroundFormatsHelper() 869 unsigned int numSurroundFormats = 0; in getReportedSurroundFormatsHelper() local 872 &numSurroundFormats, nullptr /* surroundFormats */); in getReportedSurroundFormatsHelper() [all …]
|
/aosp12/frameworks/base/core/jni/ |
H A D | android_media_AudioSystem.cpp | 2327 unsigned int numSurroundFormats = 0; in android_media_AudioSystem_getSurroundFormats() local 2330 status_t status = AudioSystem::getSurroundFormats(&numSurroundFormats, surroundFormats, in android_media_AudioSystem_getSurroundFormats() 2337 if (numSurroundFormats == 0) { in android_media_AudioSystem_getSurroundFormats() 2341 surroundFormats = (audio_format_t *)calloc(numSurroundFormats, sizeof(audio_format_t)); in android_media_AudioSystem_getSurroundFormats() 2342 surroundFormatsEnabled = (bool *)calloc(numSurroundFormats, sizeof(bool)); in android_media_AudioSystem_getSurroundFormats() 2343 status = AudioSystem::getSurroundFormats(&numSurroundFormats, surroundFormats, in android_media_AudioSystem_getSurroundFormats() 2350 for (size_t i = 0; i < numSurroundFormats; i++) { in android_media_AudioSystem_getSurroundFormats() 2378 unsigned int numSurroundFormats = 0; in android_media_AudioSystem_getReportedSurroundFormats() local 2386 if (numSurroundFormats == 0) { in android_media_AudioSystem_getReportedSurroundFormats() 2390 surroundFormats = (audio_format_t *)calloc(numSurroundFormats, sizeof(audio_format_t)); in android_media_AudioSystem_getReportedSurroundFormats() [all …]
|
/aosp12/frameworks/av/services/audiopolicy/ |
H A D | AudioPolicyInterface.h | 277 virtual status_t getSurroundFormats(unsigned int *numSurroundFormats, 281 virtual status_t getReportedSurroundFormats(unsigned int *numSurroundFormats,
|
/aosp12/frameworks/av/media/libaudioclient/ |
H A D | AudioSystem.cpp | 1860 status_t AudioSystem::getSurroundFormats(unsigned int* numSurroundFormats, in getSurroundFormats() argument 1863 if (numSurroundFormats == nullptr || (*numSurroundFormats != 0 && in getSurroundFormats() 1873 VALUE_OR_RETURN_STATUS(convertIntegral<int32_t>(*numSurroundFormats)); in getSurroundFormats() 1880 *numSurroundFormats = VALUE_OR_RETURN_STATUS( in getSurroundFormats() 1890 status_t AudioSystem::getReportedSurroundFormats(unsigned int* numSurroundFormats, in getReportedSurroundFormats() argument 1892 if (numSurroundFormats == nullptr || (*numSurroundFormats != 0 && surroundFormats == nullptr)) { in getReportedSurroundFormats() 1900 VALUE_OR_RETURN_STATUS(convertIntegral<int32_t>(*numSurroundFormats)); in getReportedSurroundFormats() 1905 *numSurroundFormats = VALUE_OR_RETURN_STATUS( in getReportedSurroundFormats()
|
/aosp12/frameworks/av/media/libaudioclient/include/media/ |
H A D | AudioSystem.h | 429 static status_t getSurroundFormats(unsigned int *numSurroundFormats, 432 static status_t getReportedSurroundFormats(unsigned int *numSurroundFormats,
|
/aosp12/frameworks/av/services/audiopolicy/managerdefault/ |
H A D | AudioPolicyManager.h | 316 virtual status_t getSurroundFormats(unsigned int *numSurroundFormats, 319 virtual status_t getReportedSurroundFormats(unsigned int *numSurroundFormats,
|
H A D | AudioPolicyManager.cpp | 4585 status_t AudioPolicyManager::getSurroundFormats(unsigned int *numSurroundFormats, in getSurroundFormats() argument 4589 if (numSurroundFormats == nullptr || (*numSurroundFormats != 0 && in getSurroundFormats() 4594 __func__, *numSurroundFormats, surroundFormats, surroundFormatsEnabled); in getSurroundFormats() 4597 size_t formatsMax = *numSurroundFormats; in getSurroundFormats() 4599 *numSurroundFormats = mConfig.getSurroundFormats().size(); in getSurroundFormats() 4622 status_t AudioPolicyManager::getReportedSurroundFormats(unsigned int *numSurroundFormats, in getReportedSurroundFormats() argument 4624 if (numSurroundFormats == nullptr || (*numSurroundFormats != 0 && surroundFormats == nullptr)) { in getReportedSurroundFormats() 4628 __func__, *numSurroundFormats, surroundFormats); in getReportedSurroundFormats() 4631 size_t formatsMax = *numSurroundFormats; in getReportedSurroundFormats() 4667 *numSurroundFormats = formats.size(); in getReportedSurroundFormats()
|