Home
last modified time | relevance | path

Searched refs:mAudioControl (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DAudioControlWrapperAidlTest.java152 private IAudioControl mAudioControl; field in AudioControlWrapperAidlTest
177 when(mAudioControl.getInterfaceVersion()).thenReturn(AIDL_AUDIO_CONTROL_VERSION_3); in setUp()
178 when(mBinder.queryLocalInterface(anyString())).thenReturn(mAudioControl); in setUp()
196 verify(mAudioControl).setFadeTowardFront(FADE_VALUE); in setFadeTowardFront_succeeds()
203 verify(mAudioControl).setBalanceTowardRight(BALANCE_VALUE); in setBalanceTowardRight_succeeds()
231 doThrow(new RemoteException()).when(mAudioControl).getInterfaceVersion(); in supportsFeature_forGainCallbackEithRemoteException_returnsTrue()
241 doThrow(new RemoteException()).when(mAudioControl).getInterfaceVersion(); in supportsFeature_forModuleCallbackEithRemoteException_returnsTrue()
253 verify(mAudioControl).registerFocusListener(any(IFocusListener.class)); in registerFocusListener_succeeds()
258 doThrow(new RemoteException()).when(mAudioControl) in registerFocusListener_throws()
276 verify(mAudioControl).registerFocusListener(captor.capture()); in requestAudioFocus_forFocusListenerWrapper_succeeds()
[all …]
/packages/services/Car/service/src/com/android/car/audio/hal/
DAudioControlWrapperAidl.java71 private IAudioControl mAudioControl; field in AudioControlWrapperAidl
86 mAudioControl = IAudioControl.Stub.asInterface(binder); in AudioControlWrapperAidl()
105 return mAudioControl.getInterfaceVersion() > AIDL_AUDIO_CONTROL_VERSION_1; in supportsFeature()
112 return mAudioControl.getInterfaceVersion() > AIDL_AUDIO_CONTROL_VERSION_2; in supportsFeature()
129 mAudioControl.registerFocusListener(listenerWrapper); in registerFocusListener()
145 if (mAudioControl.getInterfaceVersion() < AIDL_AUDIO_CONTROL_VERSION_2) { in registerAudioGainCallback()
150 mAudioControl.registerGainCallback(agc); in registerAudioGainCallback()
170 mAudioControl.onAudioFocusChangeWithMetaData(metaData, zoneId, focusChange); in onAudioFocusChange()
184 mAudioControl.onAudioFocusChange(usageName, zoneId, focusChange); in onAudioFocusChange()
196 writer.printf("Aidl Version: %d\n", mAudioControl.getInterfaceVersion()); in dump()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioGainMonitorTest.java126 @Mock private IAudioControl mAudioControl; field in CarAudioGainMonitorTest
140 when(mBinder.queryLocalInterface(anyString())).thenReturn(mAudioControl); in setUp()
DCarAudioServiceUnitTest.java461 IAudioControl mAudioControl; field in CarAudioServiceUnitTest
582 when(mBinder.queryLocalInterface(anyString())).thenReturn(mAudioControl); in setUpAudioControlHAL()