Home
last modified time | relevance | path

Searched refs:activePlaybackContexts (Results 1 – 2 of 2) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarVolumeTest.java140 List<Integer> activePlaybackContexts = ImmutableList.of(VOICE_COMMAND); in getSuggestedAudioContext_withOneConfiguration_returnsAssociatedContext() local
143 .getSuggestedAudioContextAndSaveIfFound(activePlaybackContexts, CALL_STATE_IDLE, in getSuggestedAudioContext_withOneConfiguration_returnsAssociatedContext()
172 List<Integer> activePlaybackContexts = ImmutableList.of(ALARM, CALL, NOTIFICATION); in getSuggestedAudioContext_withActivePlayback_returnsHighestPriorityContext() local
175 .getSuggestedAudioContextAndSaveIfFound(activePlaybackContexts, CALL_STATE_IDLE, in getSuggestedAudioContext_withActivePlayback_returnsHighestPriorityContext()
183 List<Integer> activePlaybackContexts = ImmutableList.of(ALARM, NOTIFICATION); in getSuggestedAudioContext_withLowerPriorityActivePlaybackAndCall_returnsCall() local
186 .getSuggestedAudioContextAndSaveIfFound(activePlaybackContexts, CALL_STATE_OFFHOOK, in getSuggestedAudioContext_withLowerPriorityActivePlaybackAndCall_returnsCall()
195 List<Integer> activePlaybackContexts = ImmutableList.of(NAVIGATION); in getSuggestedAudioContext_withV1AndNavigationConfigurationAndCall_returnsNav() local
198 .getSuggestedAudioContextAndSaveIfFound(activePlaybackContexts, CALL_STATE_OFFHOOK, in getSuggestedAudioContext_withV1AndNavigationConfigurationAndCall_returnsNav()
206 List<Integer> activePlaybackContexts = ImmutableList.of(NAVIGATION); in getSuggestedAudioContext_withV2AndNavigationConfigurationAndCall_returnsCall() local
209 .getSuggestedAudioContextAndSaveIfFound(activePlaybackContexts, CALL_STATE_OFFHOOK, in getSuggestedAudioContext_withV2AndNavigationConfigurationAndCall_returnsCall()
[all …]
/packages/services/Car/service/src/com/android/car/audio/
DCarVolume.java135 @NonNull List<Integer> activePlaybackContexts, @CallState int callState, in getSuggestedAudioContextAndSaveIfFound()
144 Set<Integer> activeContexts = getActiveContexts(activePlaybackContexts, callState, in getSuggestedAudioContextAndSaveIfFound()
203 private static Set<Integer> getActiveContexts(@NonNull List<Integer> activePlaybackContexts, in getActiveContexts() argument
205 Objects.nonNull(activePlaybackContexts); in getActiveContexts()
219 contexts.addAll(activePlaybackContexts); in getActiveContexts()