Home
last modified time | relevance | path

Searched refs:mVolumeControl (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DAudioStreamMediaService.java192 @Nullable private VolumeControlProfile mVolumeControl; field in AudioStreamMediaService
239 mVolumeControl = mLocalBtManager.getProfileManager().getVolumeControlProfile(); in onCreate()
240 if (mVolumeControl != null) { in onCreate()
241 mVolumeControl.registerCallback(mExecutor, mVolumeControlCallback); in onCreate()
260 if (mVolumeControl != null) { in onDestroy()
261 mVolumeControl.unregisterCallback(mVolumeControlCallback); in onDestroy()
329 if (mVolumeControl != null) { in createLocalMediaSession()
330 mVolumeControl.setDeviceVolume(mDevices.get(0), 0, true); in createLocalMediaSession()
351 if (mVolumeControl != null) { in createLocalMediaSession()
352 mVolumeControl.setDeviceVolume( in createLocalMediaSession()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingDeviceVolumeControlUpdater.java47 @Nullable private final VolumeControlProfile mVolumeControl; field in AudioSharingDeviceVolumeControlUpdater
55 mVolumeControl = in AudioSharingDeviceVolumeControlUpdater()
157 if (mVolumeControl != null) { in setDeviceVolume()
158 mVolumeControl.setDeviceVolume( in setDeviceVolume()
DAudioSharingDeviceVolumeGroupController.java72 @Nullable private final VolumeControlProfile mVolumeControl; field in AudioSharingDeviceVolumeGroupController
188 mVolumeControl = mProfileManager == null ? null : mProfileManager.getVolumeControlProfile(); in AudioSharingDeviceVolumeGroupController()
359 || mVolumeControl == null in registerCallbacks()
369 mVolumeControl.registerCallback(mExecutor, mVolumeControlCallback); in registerCallbacks()
385 || mVolumeControl == null in unregisterCallbacks()
395 mVolumeControl.unregisterCallback(mVolumeControlCallback); in unregisterCallbacks()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingDeviceVolumeGroupControllerTest.java126 @Mock private VolumeControlProfile mVolumeControl; field in AudioSharingDeviceVolumeGroupControllerTest
159 when(mProfileManager.getVolumeControlProfile()).thenReturn(mVolumeControl); in setUp()
162 when(mVolumeControl.isProfileReady()).thenReturn(true); in setUp()
207 verify(mVolumeControl, never()) in onStart_flagOff_doNothing()
224 verify(mVolumeControl) in onStart_flagOn_registerCallbacks()
241 verify(mVolumeControl) in onAudioSharingProfilesConnected_flagOn_registerCallbacks()
257 verify(mVolumeControl, never()) in onStop_flagOff_doNothing()
270 verify(mVolumeControl, never()) in onStop_flagOn_callbacksNotRegistered_doNothing()
283 verify(mVolumeControl).unregisterCallback(any(BluetoothVolumeControl.Callback.class)); in onStop_flagOn_callbacksRegistered_unregisterCallbacks()
DAudioSharingDeviceVolumeControlUpdaterTest.java100 @Mock private VolumeControlProfile mVolumeControl; field in AudioSharingDeviceVolumeControlUpdaterTest
119 when(mLocalBtProfileManager.getVolumeControlProfile()).thenReturn(mVolumeControl); in setUp()
266 verify(mVolumeControl) in addPreference_notFallbackDevice_setDeviceVolume()
296 verifyNoInteractions(mVolumeControl); in addPreference_fallbackDevice_setStreamVolume()
319 verifyNoInteractions(mVolumeControl); in testOnSeekBarChangeListener_doNothing()
DStreamSettingsCategoryControllerTest.java87 @Mock private VolumeControlProfile mVolumeControl; field in StreamSettingsCategoryControllerTest
112 when(mBtProfileManager.getVolumeControlProfile()).thenReturn(mVolumeControl); in setUp()
115 when(mVolumeControl.isProfileReady()).thenReturn(true); in setUp()
DAudioSharingCompatibilityPreferenceControllerTest.java98 @Mock private VolumeControlProfile mVolumeControl; field in AudioSharingCompatibilityPreferenceControllerTest
124 when(mBtProfileManager.getVolumeControlProfile()).thenReturn(mVolumeControl); in setUp()
127 when(mVolumeControl.isProfileReady()).thenReturn(true); in setUp()
DAudioSharingSwitchBarControllerTest.java127 @Mock private VolumeControlProfile mVolumeControl; field in AudioSharingSwitchBarControllerTest
170 when(mBtProfileManager.getVolumeControlProfile()).thenReturn(mVolumeControl); in setUp()
171 when(mVolumeControl.isProfileReady()).thenReturn(true); in setUp()
DAudioSharingDevicePreferenceControllerTest.java121 @Mock private VolumeControlProfile mVolumeControl; field in AudioSharingDevicePreferenceControllerTest
158 when(mProfileManager.getVolumeControlProfile()).thenReturn(mVolumeControl); in setUp()
161 when(mVolumeControl.isProfileReady()).thenReturn(true); in setUp()
DAudioSharingCallAudioPreferenceControllerTest.java127 @Mock private VolumeControlProfile mVolumeControl; field in AudioSharingCallAudioPreferenceControllerTest
171 when(mBtProfileManager.getVolumeControlProfile()).thenReturn(mVolumeControl); in setUp()
174 when(mVolumeControl.isProfileReady()).thenReturn(true); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DAudioStreamsCategoryControllerTest.java86 @Mock private VolumeControlProfile mVolumeControl; field in AudioStreamsCategoryControllerTest
115 when(mBtProfileManager.getVolumeControlProfile()).thenReturn(mVolumeControl); in setUp()
118 when(mVolumeControl.isProfileReady()).thenReturn(true); in setUp()
193 when(mVolumeControl.isProfileReady()).thenReturn(false); in updateVisibility_isNotProfileReady_invisible()
DAudioStreamConfirmDialogTest.java85 @Mock private VolumeControlProfile mVolumeControl; field in AudioStreamConfirmDialogTest
104 when(mLocalBluetoothProfileManager.getVolumeControlProfile()).thenReturn(mVolumeControl); in setUp()
107 when(mVolumeControl.isProfileReady()).thenReturn(true); in setUp()