Home
last modified time | relevance | path

Searched refs:AAudioExtensions (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio_mmap.cpp35 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()
Dutils.h157 class AAudioExtensions {
159 AAudioExtensions();
165 static AAudioExtensions &getInstance() { in getInstance()
166 static AAudioExtensions instance; in getInstance()
Dtest_aaudio_callback.cpp166 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()
Dutils.cpp240 AAudioExtensions::AAudioExtensions() in AAudioExtensions() function in AAudioExtensions
247 int AAudioExtensions::getIntegerProperty(const char *name, int defaultValue) { in getIntegerProperty()
257 bool AAudioExtensions::loadLibrary() { in loadLibrary()
/cts/apps/CtsVerifier/jni/megaaudio/common/
DGlobals.cpp37 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()
/cts/apps/CtsVerifier/jni/audio_loopback/
Djni-bridge.cpp180 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()