Searched refs:AAudioExtensions (Results 1 – 5 of 5) sorted by relevance
33 aaudio_policy_t policy = (aaudio_policy_t) AAudioExtensions::getMMapPolicyProperty(); in TEST()54 bool mmapAllowed = AAudioExtensions::getInstance().isMMapSupported(); in TEST()63 aaudio_policy_t originalPolicy = AAudioExtensions::getInstance().getMMapPolicy(); in TEST()64 AAudioExtensions::getInstance().setMMapPolicy(AAUDIO_POLICY_ALWAYS); // try to enable MMAP mode in TEST()66 AAudioExtensions::getInstance().setMMapPolicy(originalPolicy); in TEST()83 bool mmapAllowed = AAudioExtensions::getInstance().isMMapSupported(); in TEST()96 ASSERT_TRUE(AAudioExtensions::getInstance().isMMapUsed(stream)); // MMAP? in TEST()
142 class AAudioExtensions {144 AAudioExtensions();150 static AAudioExtensions &getInstance() { in getInstance()151 static AAudioExtensions instance; in getInstance()
224 AAudioExtensions::AAudioExtensions() in AAudioExtensions() function in AAudioExtensions231 int AAudioExtensions::getIntegerProperty(const char *name, int defaultValue) { in getIntegerProperty()241 bool AAudioExtensions::loadLibrary() { in loadLibrary()
203 if (AAudioExtensions::getInstance().isMMapSupported()) { in SetUp()204 originalPolicy = AAudioExtensions::getInstance().getMMapPolicy(); in SetUp()205 AAudioExtensions::getInstance().setMMapEnabled(allowMMap); in SetUp()211 if (AAudioExtensions::getInstance().isMMapSupported()) { in SetUp()212 AAudioExtensions::getInstance().setMMapPolicy(originalPolicy); in SetUp()215 ASSERT_FALSE(AAudioExtensions::getInstance().isMMapUsed(mHelper->stream())); in SetUp()
151 return oboe::AAudioExtensions().isMMapSupported(); in Java_com_android_cts_verifier_audio_audiolib_AudioUtils_isMMapSupported()158 return oboe::AAudioExtensions().isMMapExclusiveSupported(); in Java_com_android_cts_verifier_audio_audiolib_AudioUtils_isMMapExclusiveSupported()