Searched refs:getAddressForContext (Results 1 – 14 of 14) sorted by relevance
218 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()
351 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()
110 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()
454 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()
592 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()
137 when(carVolumeGroup.getAddressForContext(context)).thenReturn(address); in build()
160 .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()
285 public String getAddressForContext(int audioContext) { in getAddressForContext() method in CarAudioZone289 deviceAddress = volumeGroup.getAddressForContext(audioContext); in getAddressForContext()
89 addresses.add(zone.getAddressForContext(context)); in getAddressesForContexts()
74 String address = zone.getAddressForContext(carAudioContextId); in audioAttributeToMetadata()
386 String getAddressForContext(int audioContext) { in getAddressForContext() method in CarVolumeGroup398 String address = getAddressForContext(audioContext); in getAudioDeviceForContext()
1636 return getCarAudioZone(zoneId).getAddressForContext(contextForUsage);
936 when(mockZone.getAddressForContext(TEST_MEDIA_CONTEXT_ID)) in generateAudioZoneMock()938 when(mockZone.getAddressForContext(TEST_NOTIFICATION_CONTEXT_ID)) in generateAudioZoneMock()
361 when(carVolumeGroup.getAddressForContext(context)).thenReturn(address); in build()