/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | ConnectedBluetoothDeviceUpdaterTest.java | 89 private ConnectedBluetoothDeviceUpdater mBluetoothDeviceUpdater; field in ConnectedBluetoothDeviceUpdaterTest 115 mBluetoothDeviceUpdater = spy(new ConnectedBluetoothDeviceUpdater(mContext, in setUp() 117 mBluetoothDeviceUpdater.setPrefContext(mContext); in setUp() 118 doNothing().when(mBluetoothDeviceUpdater).addPreference(any()); in setUp() 119 doNothing().when(mBluetoothDeviceUpdater).removePreference(any()); in setUp() 125 when(mBluetoothDeviceUpdater. in onAudioModeChanged_hfpDeviceConnected_notInCall_addPreference() 129 mBluetoothDeviceUpdater.onAudioModeChanged(); in onAudioModeChanged_hfpDeviceConnected_notInCall_addPreference() 131 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onAudioModeChanged_hfpDeviceConnected_notInCall_addPreference() 137 when(mBluetoothDeviceUpdater. in onAudioModeChanged_hfpDeviceConnected_inCall_removePreference() 141 mBluetoothDeviceUpdater.onAudioModeChanged(); in onAudioModeChanged_hfpDeviceConnected_inCall_removePreference() [all …]
|
D | AvailableMediaBluetoothDeviceUpdaterTest.java | 90 private AvailableMediaBluetoothDeviceUpdater mBluetoothDeviceUpdater; field in AvailableMediaBluetoothDeviceUpdaterTest 124 mBluetoothDeviceUpdater = in setUp() 128 mBluetoothDeviceUpdater.setPrefContext(mContext); in setUp() 135 doNothing().when(mBluetoothDeviceUpdater).addPreference(any()); in setUp() 136 doNothing().when(mBluetoothDeviceUpdater).removePreference(any()); in setUp() 142 when(mBluetoothDeviceUpdater.isDeviceConnected(any(CachedBluetoothDevice.class))) in onAudioModeChanged_hfpDeviceConnected_inCall_addPreference() 146 mBluetoothDeviceUpdater.onAudioModeChanged(); in onAudioModeChanged_hfpDeviceConnected_inCall_addPreference() 148 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onAudioModeChanged_hfpDeviceConnected_inCall_addPreference() 154 when(mBluetoothDeviceUpdater.isDeviceConnected(any(CachedBluetoothDevice.class))) in onAudioModeChanged_hfpDeviceConnected_notInCall_removePreference() 158 mBluetoothDeviceUpdater.onAudioModeChanged(); in onAudioModeChanged_hfpDeviceConnected_notInCall_removePreference() [all …]
|
D | BluetoothDeviceUpdaterTest.java | 84 private TestBluetoothDeviceUpdater mBluetoothDeviceUpdater; field in BluetoothDeviceUpdaterTest 108 mBluetoothDeviceUpdater = new TestBluetoothDeviceUpdater(mContext, in setUp() 110 mBluetoothDeviceUpdater.setPrefContext(mContext); in setUp() 115 mBluetoothDeviceUpdater.mPreferenceMap.put(mBluetoothDevice, mPreference); in testAddPreference_deviceExist_doNothing() 117 mBluetoothDeviceUpdater.addPreference(mCachedBluetoothDevice); in testAddPreference_deviceExist_doNothing() 124 mBluetoothDeviceUpdater.addPreference(mCachedBluetoothDevice); in testAddPreference_deviceNotExist_addPreference() 126 final Preference preference = mBluetoothDeviceUpdater.mPreferenceMap.get(mBluetoothDevice); in testAddPreference_deviceNotExist_addPreference() 133 mBluetoothDeviceUpdater.mPreferenceMap.put(mBluetoothDevice, mPreference); in testRemovePreference_deviceExist_removePreference() 135 mBluetoothDeviceUpdater.removePreference(mCachedBluetoothDevice); in testRemovePreference_deviceExist_removePreference() 138 assertThat(mBluetoothDeviceUpdater.mPreferenceMap.containsKey(mBluetoothDevice)).isFalse(); in testRemovePreference_deviceExist_removePreference() [all …]
|
D | SavedBluetoothDeviceUpdaterTest.java | 93 private SavedBluetoothDeviceUpdater mBluetoothDeviceUpdater; field in SavedBluetoothDeviceUpdaterTest 110 mBluetoothDeviceUpdater = spy(new SavedBluetoothDeviceUpdater(mContext, in setUp() 112 mBluetoothDeviceUpdater.setPrefContext(mContext); in setUp() 113 mBluetoothDeviceUpdater.mBluetoothAdapter = mBluetoothAdapter; in setUp() 114 mBluetoothDeviceUpdater.mLocalManager = mBluetoothManager; in setUp() 117 doNothing().when(mBluetoothDeviceUpdater).addPreference(any()); in setUp() 118 doNothing().when(mBluetoothDeviceUpdater).removePreference(any()); in setUp() 130 mBluetoothDeviceUpdater.update(mCachedBluetoothDevice); in update_filterMatch_addPreference() 132 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice, in update_filterMatch_addPreference() 142 mBluetoothDeviceUpdater.update(mCachedBluetoothDevice); in update_filterNotMatch_removePreference() [all …]
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/ |
D | AvailableMediaDeviceGroupController.java | 77 @Nullable private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in AvailableMediaDeviceGroupController 156 if (mBluetoothDeviceUpdater != null) { 157 mBluetoothDeviceUpdater.forceUpdate(); 172 if (mBluetoothDeviceUpdater != null) { 173 mBluetoothDeviceUpdater.forceUpdate(); 208 if (mBluetoothDeviceUpdater != null) { in onStart() 209 mBluetoothDeviceUpdater.registerCallback(); in onStart() 210 mBluetoothDeviceUpdater.refreshPreference(); in onStart() 223 if (mBluetoothDeviceUpdater != null) { in onStop() 224 mBluetoothDeviceUpdater.unregisterCallback(); in onStop() [all …]
|
D | ConnectedDeviceGroupController.java | 67 private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in ConnectedDeviceGroupController 84 if (mBluetoothDeviceUpdater != null) { in onStart() 85 mBluetoothDeviceUpdater.registerCallback(); in onStart() 86 mBluetoothDeviceUpdater.refreshPreference(); in onStart() 104 if (mBluetoothDeviceUpdater != null) { in onStop() 105 mBluetoothDeviceUpdater.unregisterCallback(); in onStop() 130 if (mBluetoothDeviceUpdater != null) { in displayPreference() 131 mBluetoothDeviceUpdater.setPrefContext(context); in displayPreference() 132 mBluetoothDeviceUpdater.forceUpdate(); in displayPreference() 188 mBluetoothDeviceUpdater = bluetoothDeviceUpdater; in init()
|
D | SavedDeviceGroupController.java | 63 private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in SavedDeviceGroupController 78 mBluetoothDeviceUpdater.registerCallback(); in onStart() 80 mBluetoothDeviceUpdater.refreshPreference(); in onStart() 86 mBluetoothDeviceUpdater.unregisterCallback(); in onStop() 97 mBluetoothDeviceUpdater.setPrefContext(context); in displayPreference() 98 mBluetoothDeviceUpdater.forceUpdate(); in displayPreference() 166 mBluetoothDeviceUpdater = new SavedBluetoothDeviceUpdater(fragment.getContext(), in init() 173 mBluetoothDeviceUpdater = bluetoothDeviceUpdater; in setBluetoothDeviceUpdater()
|
D | PreviouslyConnectedDevicePreferenceController.java | 66 private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in PreviouslyConnectedDevicePreferenceController 108 mBluetoothDeviceUpdater.setPrefContext(context); in displayPreference() 110 mBluetoothDeviceUpdater.forceUpdate(); in displayPreference() 116 mBluetoothDeviceUpdater.registerCallback(); in onStart() 120 mBluetoothDeviceUpdater.refreshPreference(); in onStart() 126 mBluetoothDeviceUpdater.unregisterCallback(); in onStop() 132 mBluetoothDeviceUpdater = new SavedBluetoothDeviceUpdater(fragment.getContext(), in init() 245 mBluetoothDeviceUpdater = bluetoothDeviceUpdater; in setBluetoothDeviceUpdater()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/ |
D | AudioSharingDevicePreferenceController.java | 85 @Nullable private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in AudioSharingDevicePreferenceController 138 if (mBluetoothDeviceUpdater != null) { 139 mBluetoothDeviceUpdater.forceUpdate(); 162 if (mBluetoothDeviceUpdater != null) { 163 mBluetoothDeviceUpdater.forceUpdate(); 202 || mBluetoothDeviceUpdater == null) { in onStart() 210 mBluetoothDeviceUpdater.registerCallback(); in onStart() 211 mBluetoothDeviceUpdater.refreshPreference(); in onStart() 226 || mBluetoothDeviceUpdater == null) { in onStop() 234 mBluetoothDeviceUpdater.unregisterCallback(); in onStop() [all …]
|
D | AudioSharingDeviceVolumeGroupController.java | 74 @Nullable private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in AudioSharingDeviceVolumeGroupController 157 if (mBluetoothDeviceUpdater != null) { 158 mBluetoothDeviceUpdater.forceUpdate(); 173 if (mBluetoothDeviceUpdater != null) { 174 mBluetoothDeviceUpdater.forceUpdate(); 234 if (isAvailable() && mBluetoothDeviceUpdater != null) { in displayPreference() 235 mBluetoothDeviceUpdater.setPrefContext(screen.getContext()); in displayPreference() 236 mBluetoothDeviceUpdater.forceUpdate(); in displayPreference() 316 mBluetoothDeviceUpdater = in init() 325 mBluetoothDeviceUpdater = updater; in setDeviceUpdater() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/ |
D | AudioSharingDevicePreferenceControllerTest.java | 111 @Mock private AudioSharingBluetoothDeviceUpdater mBluetoothDeviceUpdater; field in AudioSharingDevicePreferenceControllerTest 178 mController.setBluetoothDeviceUpdater(mBluetoothDeviceUpdater); in setUp() 198 verify(mBluetoothDeviceUpdater, never()).registerCallback(); in onStart_flagOff_doNothing() 199 verify(mBluetoothDeviceUpdater, never()).refreshPreference(); in onStart_flagOff_doNothing() 211 verify(mBluetoothDeviceUpdater).registerCallback(); in onStart_flagOn_registerCallbacks() 212 verify(mBluetoothDeviceUpdater).refreshPreference(); in onStart_flagOn_registerCallbacks() 223 verify(mBluetoothDeviceUpdater, never()).unregisterCallback(); in onStop_flagOff_doNothing() 234 verify(mBluetoothDeviceUpdater).unregisterCallback(); in onStop_flagOn_unregisterCallbacks() 243 verify(mBluetoothDeviceUpdater, never()).forceUpdate(); in displayPreference_flagOff_doNothing() 252 verify(mBluetoothDeviceUpdater).setPrefContext(mContext); in displayPreference_flagOn_updateDeviceList() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/ |
D | SavedDeviceGroupControllerTest.java | 75 private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in SavedDeviceGroupControllerTest 128 mSavedDeviceGroupController.setBluetoothDeviceUpdater(mBluetoothDeviceUpdater); in setUp() 138 verify(mBluetoothDeviceUpdater).registerCallback(); in testRegister() 140 verify(mBluetoothDeviceUpdater).refreshPreference(); in testRegister() 147 verify(mBluetoothDeviceUpdater).unregisterCallback(); in testUnregister()
|
D | PreviouslyConnectedDevicePreferenceControllerTest.java | 83 private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in PreviouslyConnectedDevicePreferenceControllerTest 162 mPreConnectedDeviceController.setBluetoothDeviceUpdater(mBluetoothDeviceUpdater); in setUp() 176 verify(mBluetoothDeviceUpdater).registerCallback(); in onStart_registerCallback() 180 verify(mBluetoothDeviceUpdater).refreshPreference(); in onStart_registerCallback() 192 verify(mBluetoothDeviceUpdater).unregisterCallback(); in onStop_unregisterCallback()
|