Home
last modified time | relevance | path

Searched refs:isCriticalAudioAudioAttribute (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioContextTest.java37 import static com.android.car.audio.CarAudioContext.isCriticalAudioAudioAttribute;
375 .that(isCriticalAudioAudioAttribute(TEST_INVALID_ATTRIBUTE)).isFalse(); in isCriticalAudioContext_forNonCriticalContexts_returnsFalse()
377 .that(isCriticalAudioAudioAttribute(TEST_MEDIA_ATTRIBUTE)).isFalse(); in isCriticalAudioContext_forNonCriticalContexts_returnsFalse()
379 .that(isCriticalAudioAudioAttribute(TEST_NAVIGATION_ATTRIBUTE)).isFalse(); in isCriticalAudioContext_forNonCriticalContexts_returnsFalse()
381 .that(isCriticalAudioAudioAttribute(TEST_ASSISTANT_ATTRIBUTE)).isFalse(); in isCriticalAudioContext_forNonCriticalContexts_returnsFalse()
383 .that(isCriticalAudioAudioAttribute(TEST_RINGER_ATTRIBUTE)).isFalse(); in isCriticalAudioContext_forNonCriticalContexts_returnsFalse()
385 .that(isCriticalAudioAudioAttribute(TEST_CALL_ATTRIBUTE)).isFalse(); in isCriticalAudioContext_forNonCriticalContexts_returnsFalse()
387 .that(isCriticalAudioAudioAttribute(TEST_ALARM_ATTRIBUTE)).isFalse(); in isCriticalAudioContext_forNonCriticalContexts_returnsFalse()
389 .that(isCriticalAudioAudioAttribute(TEST_NOTIFICATION_ATTRIBUTE)).isFalse(); in isCriticalAudioContext_forNonCriticalContexts_returnsFalse()
391 .that(isCriticalAudioAudioAttribute(TEST_SYSTEM_ATTRIBUTE)).isFalse(); in isCriticalAudioContext_forNonCriticalContexts_returnsFalse()
[all …]
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioFocus.java33 import static com.android.car.audio.CarAudioContext.isCriticalAudioAudioAttribute;
155 if (!isCriticalAudioAudioAttribute(mDelayedRequest.getAttributes())) { in abandonNonCriticalFocusLocked()
176 if (isCriticalAudioAudioAttribute(holderEntry.getAudioFocusInfo().getAttributes())) { in abandonNonCriticalEntriesLocked()
250 if (!isCriticalAudioAudioAttribute(afi.getAttributes())) { in evaluateFocusRequestLocked()
DCarAudioContext.java645 static boolean isCriticalAudioAudioAttribute(AudioAttributes attributes) { in isCriticalAudioAudioAttribute() method in CarAudioContext
DCarVolumeGroup.java794 if (CarAudioContext.isCriticalAudioAudioAttribute(volumeAttributes.get(index))) { in containsCriticalAttributes()