Searched refs:getAddressForContext (Results 1 – 9 of 9) sorted by relevance
166 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()
188 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()
67 when(carVolumeGroup.getAddressForContext(context)).thenReturn(address); in build()
283 assertThat(carVolumeGroup.getAddressForContext(CarAudioContext.MUSIC)) in getAddressForContext_withSupportedContext_returnsAddress()291 assertThat(carVolumeGroup.getAddressForContext(CarAudioContext.NAVIGATION)).isNull(); in getAddressForContext_withUnsupportedContext_returnsNull()
94 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()
181 String getAddressForContext(int audioContext) { in getAddressForContext() method in CarAudioZone185 deviceAddress = volumeGroup.getAddressForContext(audioContext); in getAddressForContext()
157 addresses.add(zone.getAddressForContext(context)); in getAddressesForContexts()
119 String getAddressForContext(int audioContext) { in getAddressForContext() method in CarVolumeGroup
1102 return getCarAudioZone(zoneId).getAddressForContext(contextForUsage); in getOutputDeviceAddressForUsage()