Searched refs:AAudioExtensions (Results 1 – 6 of 6) sorted by relevance
35 aaudio_policy_t policy = (aaudio_policy_t) AAudioExtensions::getMMapPolicyProperty(); in TEST_F()56 bool mmapAllowed = AAudioExtensions::getInstance().isMMapSupported(); in TEST_F()65 aaudio_policy_t originalPolicy = AAudioExtensions::getInstance().getMMapPolicy(); in TEST_F()66 AAudioExtensions::getInstance().setMMapPolicy(AAUDIO_POLICY_ALWAYS); // try to enable MMAP mode in TEST_F()68 AAudioExtensions::getInstance().setMMapPolicy(originalPolicy); in TEST_F()85 bool mmapAllowed = AAudioExtensions::getInstance().isMMapSupported(); in TEST_F()98 ASSERT_TRUE(AAudioExtensions::getInstance().isMMapUsed(stream)); // MMAP? in TEST_F()
157 class AAudioExtensions {159 AAudioExtensions();165 static AAudioExtensions &getInstance() { in getInstance()166 static AAudioExtensions instance; in getInstance()
166 if (AAudioExtensions::getInstance().isMMapSupported()) { in createAndVerifyHonoringMMap()167 originalPolicy = AAudioExtensions::getInstance().getMMapPolicy(); in createAndVerifyHonoringMMap()168 AAudioExtensions::getInstance().setMMapEnabled(allowMMap); in createAndVerifyHonoringMMap()174 if (AAudioExtensions::getInstance().isMMapSupported()) { in createAndVerifyHonoringMMap()175 AAudioExtensions::getInstance().setMMapPolicy(originalPolicy); in createAndVerifyHonoringMMap()179 ASSERT_FALSE(AAudioExtensions::getInstance().isMMapUsed(mHelper->stream())); in createAndVerifyHonoringMMap()290 if ((AAudioExtensions::getInstance().isMMapUsed(mHelper->stream()))) { in TEST_P()473 if (AAudioExtensions::getInstance().isMMapUsed(mHelper->stream())) { in TEST_P()
240 AAudioExtensions::AAudioExtensions() in AAudioExtensions() function in AAudioExtensions247 int AAudioExtensions::getIntegerProperty(const char *name, int defaultValue) { in getIntegerProperty()257 bool AAudioExtensions::loadLibrary() { in loadLibrary()
37 return AAudioExtensions::getInstance().isMMapSupported(); in Java_org_hyphonate_megaaudio_common_Globals_isMMapSupported()42 return AAudioExtensions::getInstance().isMMapExclusiveSupported(); in Java_org_hyphonate_megaaudio_common_Globals_isMMapExclusiveSupported()48 AAudioExtensions::getInstance().setMMapEnabled(enabled); in Java_org_hyphonate_megaaudio_common_Globals_setMMapEnabled()54 return AAudioExtensions::getInstance().isMMapEnabled(); in Java_org_hyphonate_megaaudio_common_Globals_isMMapEnabled()
180 return oboe::AAudioExtensions::getInstance().isMMapSupported(); in Java_com_android_cts_verifier_audio_audiolib_AudioUtils_isMMapSupported()187 return oboe::AAudioExtensions::getInstance().isMMapExclusiveSupported(); in Java_com_android_cts_verifier_audio_audiolib_AudioUtils_isMMapExclusiveSupported()