/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/audiostreams/ |
D | AudioStreamMediaService.java | 192 @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/ |
D | AudioSharingDeviceVolumeControlUpdater.java | 47 @Nullable private final VolumeControlProfile mVolumeControl; field in AudioSharingDeviceVolumeControlUpdater 55 mVolumeControl = in AudioSharingDeviceVolumeControlUpdater() 157 if (mVolumeControl != null) { in setDeviceVolume() 158 mVolumeControl.setDeviceVolume( in setDeviceVolume()
|
D | AudioSharingDeviceVolumeGroupController.java | 72 @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/ |
D | AudioSharingDeviceVolumeGroupControllerTest.java | 126 @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()
|
D | AudioSharingDeviceVolumeControlUpdaterTest.java | 100 @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()
|
D | StreamSettingsCategoryControllerTest.java | 87 @Mock private VolumeControlProfile mVolumeControl; field in StreamSettingsCategoryControllerTest 112 when(mBtProfileManager.getVolumeControlProfile()).thenReturn(mVolumeControl); in setUp() 115 when(mVolumeControl.isProfileReady()).thenReturn(true); in setUp()
|
D | AudioSharingCompatibilityPreferenceControllerTest.java | 98 @Mock private VolumeControlProfile mVolumeControl; field in AudioSharingCompatibilityPreferenceControllerTest 124 when(mBtProfileManager.getVolumeControlProfile()).thenReturn(mVolumeControl); in setUp() 127 when(mVolumeControl.isProfileReady()).thenReturn(true); in setUp()
|
D | AudioSharingSwitchBarControllerTest.java | 127 @Mock private VolumeControlProfile mVolumeControl; field in AudioSharingSwitchBarControllerTest 170 when(mBtProfileManager.getVolumeControlProfile()).thenReturn(mVolumeControl); in setUp() 171 when(mVolumeControl.isProfileReady()).thenReturn(true); in setUp()
|
D | AudioSharingDevicePreferenceControllerTest.java | 121 @Mock private VolumeControlProfile mVolumeControl; field in AudioSharingDevicePreferenceControllerTest 158 when(mProfileManager.getVolumeControlProfile()).thenReturn(mVolumeControl); in setUp() 161 when(mVolumeControl.isProfileReady()).thenReturn(true); in setUp()
|
D | AudioSharingCallAudioPreferenceControllerTest.java | 127 @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/ |
D | AudioStreamsCategoryControllerTest.java | 86 @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()
|
D | AudioStreamConfirmDialogTest.java | 85 @Mock private VolumeControlProfile mVolumeControl; field in AudioStreamConfirmDialogTest 104 when(mLocalBluetoothProfileManager.getVolumeControlProfile()).thenReturn(mVolumeControl); in setUp() 107 when(mVolumeControl.isProfileReady()).thenReturn(true); in setUp()
|