Home
last modified time | relevance | path

Searched refs:suggestedContext (Results 1 – 3 of 3) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarVolumeTest.java131 @AudioContext int suggestedContext = in getSuggestedAudioContext_withNoActivePlaybackAndIdleTelephony_returnsDefault() local
135 assertThat(suggestedContext).isEqualTo(CarAudioService.DEFAULT_AUDIO_CONTEXT); in getSuggestedAudioContext_withNoActivePlaybackAndIdleTelephony_returnsDefault()
142 @AudioContext int suggestedContext = mCarVolume in getSuggestedAudioContext_withOneConfiguration_returnsAssociatedContext() local
146 assertThat(suggestedContext).isEqualTo(VOICE_COMMAND); in getSuggestedAudioContext_withOneConfiguration_returnsAssociatedContext()
151 @AudioContext int suggestedContext = in getSuggestedAudioContext_withCallStateOffHook_returnsCallContext() local
155 assertThat(suggestedContext).isEqualTo(CALL); in getSuggestedAudioContext_withCallStateOffHook_returnsCallContext()
163 @AudioContext int suggestedContext = in getSuggestedAudioContext_withV1AndCallStateRinging_returnsCallRingContext() local
167 assertThat(suggestedContext).isEqualTo(CALL_RING); in getSuggestedAudioContext_withV1AndCallStateRinging_returnsCallRingContext()
174 @AudioContext int suggestedContext = mCarVolume in getSuggestedAudioContext_withActivePlayback_returnsHighestPriorityContext() local
178 assertThat(suggestedContext).isEqualTo(CALL); in getSuggestedAudioContext_withActivePlayback_returnsHighestPriorityContext()
[all …]
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioPolicyVolumeCallback.java65 @AudioContext int suggestedContext = mCarAudioService in onVolumeAdjustment() local
69 int groupId = mCarAudioService.getVolumeGroupIdForAudioContext(zoneId, suggestedContext); in onVolumeAdjustment()
74 + CarAudioContext.toString(suggestedContext) + " suggested volume group: " in onVolumeAdjustment()
DCarAudioService.java1531 int getVolumeGroupIdForAudioContext(int zoneId, int suggestedContext) { in getVolumeGroupIdForAudioContext() argument
1533 return getVolumeGroupIdForAudioContextLocked(zoneId, suggestedContext); in getVolumeGroupIdForAudioContext()