Searched refs:mAudioControlWrapperAidl (Results 1 – 3 of 3) sorted by relevance
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/ |
D | AudioControlWrapperAidlTest.java | 162 private AudioControlWrapperAidl mAudioControlWrapperAidl; field in AudioControlWrapperAidlTest 180 mAudioControlWrapperAidl = new AudioControlWrapperAidl(mBinder); in setUp() 194 mAudioControlWrapperAidl.setFadeTowardFront(FADE_VALUE); in setFadeTowardFront_succeeds() 201 mAudioControlWrapperAidl.setBalanceTowardRight(BALANCE_VALUE); in setBalanceTowardRight_succeeds() 208 assertThat(mAudioControlWrapperAidl.supportsFeature(AUDIOCONTROL_FEATURE_AUDIO_FOCUS)) in supportsFeature_forAudioFocus_returnsTrue() 214 assertThat(mAudioControlWrapperAidl.supportsFeature(AUDIOCONTROL_FEATURE_AUDIO_DUCKING)) in supportsFeature_forAudioDucking_returnsTrue() 220 assertThat(mAudioControlWrapperAidl in supportsFeature_forAudioMuting_returnsTrue() 226 assertThat(mAudioControlWrapperAidl.supportsFeature(-1)).isFalse(); in supportsFeature_forUnknownFeature_returnsFalse() 234 .that(mAudioControlWrapperAidl.supportsFeature( in supportsFeature_forGainCallbackEithRemoteException_returnsTrue() 244 .that(mAudioControlWrapperAidl.supportsFeature( in supportsFeature_forModuleCallbackEithRemoteException_returnsTrue() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarAudioGainMonitorTest.java | 131 private AudioControlWrapperAidl mAudioControlWrapperAidl; field in CarAudioGainMonitorTest 142 mAudioControlWrapperAidl = spy(new AudioControlWrapperAidl(mBinder)); in setUp() 158 mAudioControlWrapperAidl, mMockVolumeInfoWrapper, in constructor_fails() 170 mAudioControlWrapperAidl, /* carVolumeInfoWrapper= */ null, mCarAudioZones)); in constructor_nullCarVolumeInfoWrapper_fails() 179 new CarAudioGainMonitor(mAudioControlWrapperAidl, mMockVolumeInfoWrapper, in constructor_succeeds() 188 new CarAudioGainMonitor(mAudioControlWrapperAidl, mMockVolumeInfoWrapper, in registercallback_succeeds() 193 verify(mAudioControlWrapperAidl).registerAudioGainCallback(eq(callback)); in registercallback_succeeds() 196 verify(mAudioControlWrapperAidl).unregisterAudioGainCallback(); in registercallback_succeeds() 202 new CarAudioGainMonitor(mAudioControlWrapperAidl, mMockVolumeInfoWrapper, in registercallback_multipleTimes() 206 verify(mAudioControlWrapperAidl).registerAudioGainCallback(eq(callback)); in registercallback_multipleTimes() [all …]
|
D | CarAudioServiceUnitTest.java | 473 private AudioControlWrapperAidl mAudioControlWrapperAidl; field in CarAudioServiceUnitTest 584 when(mAudioControlWrapperAidl.supportsFeature( in setUpAudioControlHAL() 586 when(mAudioControlWrapperAidl.supportsFeature( in setUpAudioControlHAL() 588 when(mAudioControlWrapperAidl.supportsFeature( in setUpAudioControlHAL() 590 when(mAudioControlWrapperAidl.supportsFeature( in setUpAudioControlHAL() 592 when(mAudioControlWrapperAidl.supportsFeature( in setUpAudioControlHAL() 594 doReturn(mAudioControlWrapperAidl) in setUpAudioControlHAL() 984 verify(mAudioControlWrapperAidl).clearModuleChangeCallback(); in release_releasesAudioServiceCallbacks() 996 verify(mAudioControlWrapperAidl).clearModuleChangeCallback(); in release_releasesAudioServiceCallbacks_withDynamicDevices() 1001 when(mAudioControlWrapperAidl.supportsFeature( in release_withoutModuleChangeCallback() [all …]
|