Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioContextTest.java30 import static com.android.car.audio.CarAudioContext.isCriticalAudioContext;
134 .that(isCriticalAudioContext(CarAudioContext.INVALID)).isFalse(); in isCriticalAudioContext_forNonCritialContexts_returnsFalse()
136 .that(isCriticalAudioContext(CarAudioContext.MUSIC)).isFalse(); in isCriticalAudioContext_forNonCritialContexts_returnsFalse()
138 .that(isCriticalAudioContext(CarAudioContext.NAVIGATION)).isFalse(); in isCriticalAudioContext_forNonCritialContexts_returnsFalse()
140 .that(isCriticalAudioContext(CarAudioContext.VOICE_COMMAND)).isFalse(); in isCriticalAudioContext_forNonCritialContexts_returnsFalse()
142 .that(isCriticalAudioContext(CarAudioContext.CALL_RING)).isFalse(); in isCriticalAudioContext_forNonCritialContexts_returnsFalse()
144 .that(isCriticalAudioContext(CarAudioContext.CALL)).isFalse(); in isCriticalAudioContext_forNonCritialContexts_returnsFalse()
146 .that(isCriticalAudioContext(CarAudioContext.ALARM)).isFalse(); in isCriticalAudioContext_forNonCritialContexts_returnsFalse()
148 .that(isCriticalAudioContext(CarAudioContext.NOTIFICATION)).isFalse(); in isCriticalAudioContext_forNonCritialContexts_returnsFalse()
150 .that(isCriticalAudioContext(CarAudioContext.SYSTEM_SOUND)).isFalse(); in isCriticalAudioContext_forNonCritialContexts_returnsFalse()
[all …]
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioFocus.java18 import static com.android.car.audio.CarAudioContext.isCriticalAudioContext;
108 if (!isCriticalAudioContext(audioContext)) { in abandonNonCriticalFocusLocked()
122 if (isCriticalAudioContext(holderEntry.getAudioContext())) { in abandonNonCriticalEntriesLocked()
172 if (!isCriticalAudioContext(audioContext)) { in evaluateFocusRequestLocked()
DCarAudioContext.java263 static boolean isCriticalAudioContext(@CarAudioContext.AudioContext int audioContext) { in isCriticalAudioContext() method in CarAudioContext
DCarVolumeGroup.java260 if (CarAudioContext.isCriticalAudioContext(audioContext)) { in containsCriticalAudioContext()