Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarDuckingUtilsTest.java218 when(mockZone.getAddressForContext(anyInt())).thenReturn(new String("")); in generateAudioZoneMock()
219 when(mockZone.getAddressForContext(TEST_MEDIA_AUDIO_CONTEXT)).thenReturn(MEDIA_ADDRESS); in generateAudioZoneMock()
220 when(mockZone.getAddressForContext(TEST_EMERGENCY_AUDIO_CONTEXT)) in generateAudioZoneMock()
222 when(mockZone.getAddressForContext(TEST_CALL_AUDIO_CONTEXT)).thenReturn(CALL_ADDRESS); in generateAudioZoneMock()
223 when(mockZone.getAddressForContext(TEST_NAVIGATION_AUDIO_CONTEXT)) in generateAudioZoneMock()
225 when(mockZone.getAddressForContext(CarAudioContext.getInvalidContext())) in generateAudioZoneMock()
DCarDuckingTest.java351 when(primaryZone.getAddressForContext(TEST_MEDIA_AUDIO_CONTEXT)) in generateZoneMocks()
353 when(primaryZone.getAddressForContext(TEST_NAVIGATION_AUDIO_CONTEXT)) in generateZoneMocks()
360 when(passengerZone.getAddressForContext(anyInt())).thenReturn(""); in generateZoneMocks()
366 when(rearZone.getAddressForContext(TEST_MEDIA_AUDIO_CONTEXT)) in generateZoneMocks()
DCarHalAudioUtilsTest.java110 AudioDeviceAddress.id(mCarAudioZone.getAddressForContext( in setUp()
431 when(zone.getAddressForContext(TEST_MEDIA_AUDIO_CONTEXT)).thenReturn(MEDIA_ADDRESS); in generateZoneMock()
432 when(zone.getAddressForContext(TEST_NOTIFICATION_AUDIO_CONTEXT)) in generateZoneMock()
DCarAudioZoneUnitTest.java454 String musicAddress = mTestAudioZone.getAddressForContext(TEST_MEDIA_CONTEXT); in getAddressForContext_returnsExpectedDeviceAddress()
455 String navAddress = mTestAudioZone.getAddressForContext(TEST_NAVIGATION_CONTEXT); in getAddressForContext_returnsExpectedDeviceAddress()
456 String voiceAddress = mTestAudioZone.getAddressForContext(TEST_ASSISTANT_CONTEXT); in getAddressForContext_returnsExpectedDeviceAddress()
471 () -> mTestAudioZone.getAddressForContext(CarAudioContext.getInvalidContext())); in getAddressForContext_throwsOnInvalidContext()
482 () -> mTestAudioZone.getAddressForContext(TEST_ALARM_CONTEXT)); in getAddressForContext_throwsOnNonExistentContext()
DCarAudioGainMonitorTest.java592 when(primaryZone.getAddressForContext(TEST_MEDIA_AUDIO_CONTEXT)) in generateZoneMocks()
594 when(primaryZone.getAddressForContext(TEST_NAVIGATION_AUDIO_CONTEXT)) in generateZoneMocks()
608 when(rearZone.getAddressForContext(TEST_MEDIA_AUDIO_CONTEXT)) in generateZoneMocks()
DVolumeGroupBuilder.java137 when(carVolumeGroup.getAddressForContext(context)).thenReturn(address); in build()
DCarVolumeGroupUnitTest.java160 .that(carVolumeGroup.getAddressForContext(TEST_MEDIA_CONTEXT_ID)) in getAddressForContext_withSupportedContext_returnsAddress()
169 .that(carVolumeGroup.getAddressForContext( in getAddressForContext_withUnsupportedContext_returnsNull()
2176 .that(carVolumeGroup.getAddressForContext(safetyContextId)).isNull(); in getAddressForContext_withoutContextFound()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioZone.java285 public String getAddressForContext(int audioContext) { in getAddressForContext() method in CarAudioZone
289 deviceAddress = volumeGroup.getAddressForContext(audioContext); in getAddressForContext()
DCarDuckingUtils.java89 addresses.add(zone.getAddressForContext(context)); in getAddressesForContexts()
DCarHalAudioUtils.java74 String address = zone.getAddressForContext(carAudioContextId); in audioAttributeToMetadata()
DCarVolumeGroup.java386 String getAddressForContext(int audioContext) { in getAddressForContext() method in CarVolumeGroup
398 String address = getAddressForContext(audioContext); in getAudioDeviceForContext()
DCarAudioService.java1636 return getCarAudioZone(zoneId).getAddressForContext(contextForUsage);
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DAudioControlWrapperAidlTest.java936 when(mockZone.getAddressForContext(TEST_MEDIA_CONTEXT_ID)) in generateAudioZoneMock()
938 when(mockZone.getAddressForContext(TEST_NOTIFICATION_CONTEXT_ID)) in generateAudioZoneMock()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioDynamicRoutingTest.java361 when(carVolumeGroup.getAddressForContext(context)).thenReturn(address); in build()