Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarVolumeGroupFactoryTest.java65 private CarAudioDeviceInfo mMediaDeviceInfo; field in CarVolumeGroupFactoryTest
80 mMediaDeviceInfo = new TestCarAudioDeviceInfoBuilder(MEDIA_DEVICE_ADDRESS).build(); in setUp()
88 mFactory.setDeviceInfoForContext(TEST_MEDIA_CONTEXT_ID, mMediaDeviceInfo); in setDeviceInfoForContext_associatesDeviceAddresses()
99 mFactory.setDeviceInfoForContext(TEST_MEDIA_CONTEXT_ID, mMediaDeviceInfo); in setDeviceInfoForContext_associatesContexts()
112 mFactory.setDeviceInfoForContext(TEST_MEDIA_CONTEXT_ID, mMediaDeviceInfo); in setDeviceInfoForContext_withDifferentStepSize_throws()
114 NAVIGATION_DEVICE_ADDRESS).setStepValue(mMediaDeviceInfo.getStepValue() + 1) in setDeviceInfoForContext_withDifferentStepSize_throws()
129 mFactory.setDeviceInfoForContext(TEST_MEDIA_CONTEXT_ID, mMediaDeviceInfo); in setDeviceInfoForContext_withSameContext_throws()
141 mFactory.setDeviceInfoForContext(TEST_MEDIA_CONTEXT_ID, mMediaDeviceInfo); in setDeviceInfoForContext_withFirstCall_setsMinGain()
144 .that(mFactory.getMinGain()).isEqualTo(mMediaDeviceInfo.getMinGain()); in setDeviceInfoForContext_withFirstCall_setsMinGain()
149 mFactory.setDeviceInfoForContext(TEST_MEDIA_CONTEXT_ID, mMediaDeviceInfo); in setDeviceInfoForContext_withFirstCall_setsMaxGain()
[all …]
DCarAudioVolumeGroupTest.java136 private CarAudioDeviceInfo mMediaDeviceInfo; field in CarAudioVolumeGroupTest
155 mMediaDeviceInfo = new CarAudioDeviceInfo(mAudioManagerWrapper, in setUp()
157 mMediaDeviceInfo.setAudioDeviceInfo(getMockAudioDeviceInfo(MEDIA_DEVICE_ADDRESS)); in setUp()
253 expect.withMessage("Media device info min gain").that(mMediaDeviceInfo.getMinGain()) in updateAudioDeviceInfo_succeeds()
255 expect.withMessage("Media device info max gain").that(mMediaDeviceInfo.getMaxGain()) in updateAudioDeviceInfo_succeeds()
257 expect.withMessage("Media device info step value").that(mMediaDeviceInfo.getStepValue()) in updateAudioDeviceInfo_succeeds()
259 expect.withMessage("Media device info default gain").that(mMediaDeviceInfo.getDefaultGain()) in updateAudioDeviceInfo_succeeds()
288 .that(mMediaDeviceInfo.getMinGain()).isEqualTo(MIN_GAIN); in updateAudioDeviceInfo_invalidDeviceInfo_doesNotUpdate()
290 .that(mMediaDeviceInfo.getMaxGain()).isEqualTo(MAX_GAIN); in updateAudioDeviceInfo_invalidDeviceInfo_doesNotUpdate()
292 .that(mMediaDeviceInfo.getStepValue()).isEqualTo(STEP_SIZE); in updateAudioDeviceInfo_invalidDeviceInfo_doesNotUpdate()
[all …]
DCarVolumeGroupUnitTest.java134 private CarAudioDeviceInfo mMediaDeviceInfo; field in CarVolumeGroupUnitTest
148 mMediaDeviceInfo = new TestCarAudioDeviceInfoBuilder(MEDIA_DEVICE_ADDRESS).build(); in setUp()
161 .isEqualTo(mMediaDeviceInfo.getAddress()); in getAddressForContext_withSupportedContext_returnsAddress()
322 .that(actualDevice).isEqualTo(mMediaDeviceInfo); in getCarAudioDeviceInfoForAddress_returnsExpectedDevice()
345 mMediaDeviceInfo.getAudioDevice(), mNavigationDeviceInfo.getAudioDevice()); in getAudioDeviceAttribute_returnsExpectedDevice()
437 verify(mMediaDeviceInfo).setCurrentGain(7); in setCurrentGainIndex_setsGainOnAllBoundDevices()
782 factory.setDeviceInfoForContext(TEST_EMERGENCY_CONTEXT_ID, mMediaDeviceInfo); in hasCriticalAudioContexts_withCriticalContexts_returnsTrue()
1492 verify(mMediaDeviceInfo).setCurrentGain(TestCarAudioDeviceInfoBuilder.DEFAULT_GAIN); in onAudioGainChanged_validGain()
1497 verify(mMediaDeviceInfo, times(2)).setCurrentGain( in onAudioGainChanged_validGain()
1516 verify(mMediaDeviceInfo, never()).setCurrentGain(anyInt()); in onAudioGainChanged_invalidGain()
[all …]