Home
last modified time | relevance | path

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

/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio_mmap.cpp33 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()
Dutils.h142 class AAudioExtensions {
144 AAudioExtensions();
150 static AAudioExtensions &getInstance() { in getInstance()
151 static AAudioExtensions instance; in getInstance()
Dutils.cpp224 AAudioExtensions::AAudioExtensions() in AAudioExtensions() function in AAudioExtensions
231 int AAudioExtensions::getIntegerProperty(const char *name, int defaultValue) { in getIntegerProperty()
241 bool AAudioExtensions::loadLibrary() { in loadLibrary()
Dtest_aaudio_callback.cpp203 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()
/cts/apps/CtsVerifier/jni/audio_loopback/
Djni-bridge.cpp151 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()