Home
last modified time | relevance | path

Searched refs:attributeMock (Results 1 – 3 of 3) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DTestCarAudioDeviceInfoBuilder.java83 AudioDeviceAttributes attributeMock = Mockito.mock(AudioDeviceAttributes.class); in build() local
84 when(attributeMock.getAddress()).thenReturn(mAddress); in build()
85 when(attributeMock.getType()).thenReturn(mType); in build()
92 when(infoMock.getAudioDevice()).thenReturn(attributeMock); in build()
DCarAudioUtilsTest.java367 AudioDeviceAttributes attributeMock = Mockito.mock(AudioDeviceAttributes.class); in getMockDevice() local
368 when(attributeMock.getAddress()).thenReturn(address); in getMockDevice()
369 when(attributeMock.getType()).thenReturn(type); in getMockDevice()
370 return attributeMock; in getMockDevice()
DCarAudioDeviceInfoTest.java545 AudioDeviceAttributes attributeMock = mock(AudioDeviceAttributes.class); in getMockAudioDeviceAttribute() local
546 when(attributeMock.getAddress()).thenReturn(TEST_ADDRESS); in getMockAudioDeviceAttribute()
547 when(attributeMock.getType()).thenReturn(type); in getMockAudioDeviceAttribute()
549 return attributeMock; in getMockAudioDeviceAttribute()