Home
last modified time | relevance | path

Searched refs:getAddressForContext (Results 1 – 9 of 9) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarDuckingUtilsTest.java166 when(mockZone.getAddressForContext(CarAudioContext.SAFETY)).thenReturn(NAVIGATION_ADDRESS); in getAddressesToDuck_withDuckedAndUnduckedContextsSharingDevice_excludesThatDevice()
177 when(mockZone.getAddressForContext(CarAudioContext.ALARM)).thenReturn(MEDIA_ADDRESS); in getAddressesToDuck_withDuckedContextsSharingADevice_includesAddressOnce()
223 when(mockZone.getAddressForContext(CarAudioContext.MUSIC)).thenReturn(MEDIA_ADDRESS); in generateAudioZoneMock()
224 when(mockZone.getAddressForContext(CarAudioContext.EMERGENCY)).thenReturn( in generateAudioZoneMock()
226 when(mockZone.getAddressForContext(CarAudioContext.CALL)).thenReturn(CALL_ADDRESS); in generateAudioZoneMock()
227 when(mockZone.getAddressForContext(CarAudioContext.NAVIGATION)).thenReturn( in generateAudioZoneMock()
DCarDuckingTest.java188 when(primaryZone.getAddressForContext(MUSIC)).thenReturn(PRIMARY_MEDIA_ADDRESS); in generateZoneMocks()
189 when(primaryZone.getAddressForContext(NAVIGATION)).thenReturn(PRIMARY_NAVIGATION_ADDRESS); in generateZoneMocks()
198 when(rearZone.getAddressForContext(MUSIC)).thenReturn(REAR_MEDIA_ADDRESS); in generateZoneMocks()
DVolumeGroupBuilder.java67 when(carVolumeGroup.getAddressForContext(context)).thenReturn(address); in build()
DCarVolumeGroupUnitTest.java283 assertThat(carVolumeGroup.getAddressForContext(CarAudioContext.MUSIC)) in getAddressForContext_withSupportedContext_returnsAddress()
291 assertThat(carVolumeGroup.getAddressForContext(CarAudioContext.NAVIGATION)).isNull(); in getAddressForContext_withUnsupportedContext_returnsNull()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZoneTest.java94 String musicAddress = mTestAudioZone.getAddressForContext(MUSIC); in getAddressForContext_returnsExpectedDeviceAddress()
97 String navAddress = mTestAudioZone.getAddressForContext(NAVIGATION); in getAddressForContext_returnsExpectedDeviceAddress()
105 () -> mTestAudioZone.getAddressForContext(INVALID)); in getAddressForContext_throwsOnInvalidContext()
114 () -> mTestAudioZone.getAddressForContext(MUSIC)); in getAddressForContext_throwsOnNonExistentContext()
321 when(carVolumeGroup.getAddressForContext(context)).thenReturn(address); in build()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioZone.java181 String getAddressForContext(int audioContext) { in getAddressForContext() method in CarAudioZone
185 deviceAddress = volumeGroup.getAddressForContext(audioContext); in getAddressForContext()
DCarDuckingUtils.java157 addresses.add(zone.getAddressForContext(context)); in getAddressesForContexts()
DCarVolumeGroup.java119 String getAddressForContext(int audioContext) { in getAddressForContext() method in CarVolumeGroup
DCarAudioService.java1102 return getCarAudioZone(zoneId).getAddressForContext(contextForUsage); in getOutputDeviceAddressForUsage()