Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZonesHelperLegacyTest.java136 when(mMockAudioControlWrapper.getBusForContext(anyInt())).thenReturn(INVALID_BUS); in constructor_throwsIfLegacyContextNotAssignedToBus()
151 when(mMockAudioControlWrapper.getBusForContext(anyInt())).thenReturn(INVALID_BUS); in constructor_throwsIfNullInputDevices()
165 when(mMockAudioControlWrapper.getBusForContext(anyInt())).thenReturn(INVALID_BUS); in constructor_throwsIfNullContext()
177 when(mMockAudioControlWrapper.getBusForContext(anyInt())).thenReturn(INVALID_BUS); in constructor_throwsIfNullCarAudioDeviceInfo()
191 when(mMockAudioControlWrapper.getBusForContext(anyInt())).thenReturn(INVALID_BUS); in constructor_throwsIfNullCarAudioControl()
205 when(mMockAudioControlWrapper.getBusForContext(anyInt())).thenReturn(INVALID_BUS); in constructor_throwsIfNullCarAudioSettings()
219 when(mMockAudioControlWrapper.getBusForContext(anyInt())).thenReturn(INVALID_BUS); in constructor_throwsIfNullCarAudioContexts()
232 when(mMockAudioControlWrapper.getBusForContext(anyInt())).thenReturn(1); in loadAudioZones_succeeds()
247 when(mMockAudioControlWrapper.getBusForContext(anyInt())).thenReturn(1); in loadAudioZones_parsesAllVolumeGroups()
262 when(mMockAudioControlWrapper.getBusForContext(anyInt())).thenReturn(1); in loadAudioZones_primaryZoneHasInputDevice()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DAudioControlWrapperV1Test.java93 when(mAudioControlV1.getBusForContext(CONTEXT_NUMBER)).thenReturn(busNumber); in getBusForContext_returnsBusNumber()
95 int actualBus = mAudioControlWrapperV1.getBusForContext(CONTEXT_NUMBER); in getBusForContext_returnsBusNumber()
101 doThrow(new RemoteException()).when(mAudioControlV1).getBusForContext(CONTEXT_NUMBER); in getBusForContext_throws()
104 () -> mAudioControlWrapperV1.getBusForContext(CONTEXT_NUMBER)); in getBusForContext_throws()
/packages/services/Car/service/src/com/android/car/audio/hal/
DAudioControlWrapperV1.java162 public int getBusForContext(@CarAudioContext.AudioContext int audioContext) { in getBusForContext() method in AudioControlWrapperV1
164 return mAudioControlV1.getBusForContext(audioContext); in getBusForContext()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioZonesHelperLegacy.java120 int bus = audioControlWrapper.getBusForContext(legacyContext); in loadBusesForLegacyContexts()