Home
last modified time | relevance | path

Searched refs:systemUsages (Results 1 – 10 of 10) sorted by relevance

/frameworks/av/media/libaudioclient/aidl/android/media/
DIAudioPolicyService.aidl185 void setSupportedSystemUsages(in AudioUsage[] systemUsages); in setSupportedSystemUsages() argument
/frameworks/av/services/audiopolicy/service/
DAudioPolicyInterfaceImpl.cpp1376 std::vector<audio_usage_t> systemUsages; in setSupportedSystemUsages() local
1379 std::back_inserter(systemUsages), aidl2legacy_AudioUsage_audio_usage_t))); in setSupportedSystemUsages()
1386 bool areAllSystemUsages = std::all_of(begin(systemUsages), end(systemUsages), in setSupportedSystemUsages()
1392 mSupportedSystemUsages = systemUsages; in setSupportedSystemUsages()
DAudioPolicyService.h151 const std::vector<media::AudioUsage>& systemUsages) override;
/frameworks/base/media/java/android/media/
DIAudioService.aidl120 void setSupportedSystemUsages(in int[] systemUsages); in setSupportedSystemUsages() argument
DAudioSystem.java1720 public static native int setSupportedSystemUsages(int[] systemUsages); in setSupportedSystemUsages() argument
DAudioManager.java1351 public void setSupportedSystemUsages(@NonNull @AttributeSystemUsage int[] systemUsages) { in setSupportedSystemUsages() argument
1352 Objects.requireNonNull(systemUsages, "systemUsages must not be null"); in setSupportedSystemUsages()
1355 service.setSupportedSystemUsages(systemUsages); in setSupportedSystemUsages()
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp2472 jintArray systemUsages) { in android_media_AudioSystem_setSupportedSystemUsages() argument
2475 if (systemUsages == nullptr) { in android_media_AudioSystem_setSupportedSystemUsages()
2480 nativeSystemUsages = env->GetIntArrayElements(systemUsages, 0); in android_media_AudioSystem_setSupportedSystemUsages()
2483 jsize len = env->GetArrayLength(systemUsages); in android_media_AudioSystem_setSupportedSystemUsages()
2489 env->ReleaseIntArrayElements(systemUsages, nativeSystemUsages, 0); in android_media_AudioSystem_setSupportedSystemUsages()
/frameworks/av/media/libaudioclient/include/media/
DAudioSystem.h347 static status_t setSupportedSystemUsages(const std::vector<audio_usage_t>& systemUsages);
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java1522 public void setSupportedSystemUsages(@NonNull @AttributeSystemUsage int[] systemUsages) { in setSupportedSystemUsages() argument
1524 verifySystemUsages(systemUsages); in setSupportedSystemUsages()
1527 AudioSystem.setSupportedSystemUsages(systemUsages); in setSupportedSystemUsages()
1528 mSupportedSystemUsages = systemUsages; in setSupportedSystemUsages()
1542 private void verifySystemUsages(@NonNull int[] systemUsages) { in verifySystemUsages() argument
1543 for (int i = 0; i < systemUsages.length; i++) { in verifySystemUsages()
1544 if (!AudioAttributes.isSystemUsage(systemUsages[i])) { in verifySystemUsages()
1545 throw new IllegalArgumentException("Non-system usage provided: " + systemUsages[i]); in verifySystemUsages()
/frameworks/av/media/libaudioclient/
DAudioSystem.cpp1433 status_t AudioSystem::setSupportedSystemUsages(const std::vector<audio_usage_t>& systemUsages) { in setSupportedSystemUsages() argument
1438 convertContainer<std::vector<media::AudioUsage>>(systemUsages, in setSupportedSystemUsages()