Home
last modified time | relevance | path

Searched refs:mBluetoothDeviceUpdater (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DAvailableMediaBluetoothDeviceUpdaterTest.java67 private AvailableMediaBluetoothDeviceUpdater mBluetoothDeviceUpdater; field in AvailableMediaBluetoothDeviceUpdaterTest
91 mBluetoothDeviceUpdater = spy(new AvailableMediaBluetoothDeviceUpdater(mContext, in setUp()
93 mBluetoothDeviceUpdater.setPrefContext(mContext); in setUp()
95 doNothing().when(mBluetoothDeviceUpdater).addPreference(any()); in setUp()
96 doNothing().when(mBluetoothDeviceUpdater).removePreference(any()); in setUp()
102 when(mBluetoothDeviceUpdater. in onAudioModeChanged_hfpDeviceConnected_inCall_addPreference()
107 mBluetoothDeviceUpdater.onAudioModeChanged(); in onAudioModeChanged_hfpDeviceConnected_inCall_addPreference()
109 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onAudioModeChanged_hfpDeviceConnected_inCall_addPreference()
115 when(mBluetoothDeviceUpdater. in onAudioModeChanged_hfpDeviceConnected_notInCall_removePreference()
120 mBluetoothDeviceUpdater.onAudioModeChanged(); in onAudioModeChanged_hfpDeviceConnected_notInCall_removePreference()
[all …]
DConnectedBluetoothDeviceUpdaterTest.java70 private ConnectedBluetoothDeviceUpdater mBluetoothDeviceUpdater; field in ConnectedBluetoothDeviceUpdaterTest
92 mBluetoothDeviceUpdater = spy(new ConnectedBluetoothDeviceUpdater(mContext, in setUp()
94 mBluetoothDeviceUpdater.setPrefContext(mContext); in setUp()
95 doNothing().when(mBluetoothDeviceUpdater).addPreference(any()); in setUp()
96 doNothing().when(mBluetoothDeviceUpdater).removePreference(any()); in setUp()
102 when(mBluetoothDeviceUpdater. in onAudioModeChanged_hfpDeviceConnected_notInCall_addPreference()
107 mBluetoothDeviceUpdater.onAudioModeChanged(); in onAudioModeChanged_hfpDeviceConnected_notInCall_addPreference()
109 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onAudioModeChanged_hfpDeviceConnected_notInCall_addPreference()
115 when(mBluetoothDeviceUpdater. in onAudioModeChanged_hfpDeviceConnected_inCall_removePreference()
120 mBluetoothDeviceUpdater.onAudioModeChanged(); in onAudioModeChanged_hfpDeviceConnected_inCall_removePreference()
[all …]
DBluetoothDeviceUpdaterTest.java82 private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in BluetoothDeviceUpdaterTest
103 mBluetoothDeviceUpdater = in setUp()
111 mBluetoothDeviceUpdater.setPrefContext(mContext); in setUp()
116 mBluetoothDeviceUpdater.mPreferenceMap.put(mBluetoothDevice, mPreference); in testAddPreference_deviceExist_doNothing()
118 mBluetoothDeviceUpdater.addPreference(mCachedBluetoothDevice); in testAddPreference_deviceExist_doNothing()
125 mBluetoothDeviceUpdater.addPreference(mCachedBluetoothDevice); in testAddPreference_deviceNotExist_addPreference()
127 final Preference preference = mBluetoothDeviceUpdater.mPreferenceMap.get(mBluetoothDevice); in testAddPreference_deviceNotExist_addPreference()
134 mBluetoothDeviceUpdater.mPreferenceMap.put(mBluetoothDevice, mPreference); in testRemovePreference_deviceExist_removePreference()
136 mBluetoothDeviceUpdater.removePreference(mCachedBluetoothDevice); in testRemovePreference_deviceExist_removePreference()
139 assertThat(mBluetoothDeviceUpdater.mPreferenceMap.containsKey(mBluetoothDevice)).isFalse(); in testRemovePreference_deviceExist_removePreference()
[all …]
DSavedBluetoothDeviceUpdaterTest.java59 private SavedBluetoothDeviceUpdater mBluetoothDeviceUpdater; field in SavedBluetoothDeviceUpdaterTest
72 mBluetoothDeviceUpdater = spy(new SavedBluetoothDeviceUpdater(mContext, mDashboardFragment, in setUp()
74 mBluetoothDeviceUpdater.setPrefContext(mContext); in setUp()
76 doNothing().when(mBluetoothDeviceUpdater).addPreference(any()); in setUp()
77 doNothing().when(mBluetoothDeviceUpdater).removePreference(any()); in setUp()
85 mBluetoothDeviceUpdater.update(mCachedBluetoothDevice); in update_filterMatch_addPreference()
87 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in update_filterMatch_addPreference()
95 mBluetoothDeviceUpdater.update(mCachedBluetoothDevice); in update_filterNotMatch_removePreference()
97 verify(mBluetoothDeviceUpdater).removePreference(mCachedBluetoothDevice); in update_filterNotMatch_removePreference()
104 mBluetoothDeviceUpdater.onProfileConnectionStateChanged(mCachedBluetoothDevice, in onProfileConnectionStateChanged_deviceConnected_removePreference()
[all …]
/packages/apps/Settings/src/com/android/settings/connecteddevice/
DSavedDeviceGroupController.java50 private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in SavedDeviceGroupController
64 mBluetoothDeviceUpdater.registerCallback(); in onStart()
70 mBluetoothDeviceUpdater.unregisterCallback(); in onStop()
81 mBluetoothDeviceUpdater.setPrefContext(context); in displayPreference()
82 mBluetoothDeviceUpdater.forceUpdate(); in displayPreference()
118 mBluetoothDeviceUpdater = new SavedBluetoothDeviceUpdater(fragment.getContext(), in init()
124 mBluetoothDeviceUpdater = bluetoothDeviceUpdater; in setBluetoothDeviceUpdater()
DAvailableMediaDeviceGroupController.java56 private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in AvailableMediaDeviceGroupController
69 mBluetoothDeviceUpdater.registerCallback(); in onStart()
79 mBluetoothDeviceUpdater.unregisterCallback(); in onStop()
92 mBluetoothDeviceUpdater.setPrefContext(screen.getContext()); in displayPreference()
93 mBluetoothDeviceUpdater.forceUpdate(); in displayPreference()
126 mBluetoothDeviceUpdater = new AvailableMediaBluetoothDeviceUpdater(fragment.getContext(), in init()
132 mBluetoothDeviceUpdater = bluetoothDeviceUpdater; in setBluetoothDeviceUpdater()
DPreviouslyConnectedDevicePreferenceController.java42 private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in PreviouslyConnectedDevicePreferenceController
69 mBluetoothDeviceUpdater.setPrefContext(context); in displayPreference()
76 mBluetoothDeviceUpdater.registerCallback(); in onStart()
82 mBluetoothDeviceUpdater.unregisterCallback(); in onStop()
87 mBluetoothDeviceUpdater = new SavedBluetoothDeviceUpdater(fragment.getContext(), in init()
109 mBluetoothDeviceUpdater = bluetoothDeviceUpdater; in setBluetoothDeviceUpdater()
DConnectedDeviceGroupController.java51 private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in ConnectedDeviceGroupController
61 mBluetoothDeviceUpdater.registerCallback(); in onStart()
69 mBluetoothDeviceUpdater.unregisterCallback(); in onStop()
82 mBluetoothDeviceUpdater.setPrefContext(context); in displayPreference()
83 mBluetoothDeviceUpdater.forceUpdate(); in displayPreference()
127 mBluetoothDeviceUpdater = bluetoothDeviceUpdater; in init()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/connecteddevice/
DSavedDeviceGroupController.java50 private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in SavedDeviceGroupController
64 mBluetoothDeviceUpdater.registerCallback(); in onStart()
70 mBluetoothDeviceUpdater.unregisterCallback(); in onStop()
81 mBluetoothDeviceUpdater.setPrefContext(context); in displayPreference()
82 mBluetoothDeviceUpdater.forceUpdate(); in displayPreference()
117 mBluetoothDeviceUpdater = new SavedBluetoothDeviceUpdater(fragment.getContext(), in init()
123 mBluetoothDeviceUpdater = bluetoothDeviceUpdater; in setBluetoothDeviceUpdater()
DAvailableMediaDeviceGroupController.java56 private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in AvailableMediaDeviceGroupController
69 mBluetoothDeviceUpdater.registerCallback(); in onStart()
79 mBluetoothDeviceUpdater.unregisterCallback(); in onStop()
90 mBluetoothDeviceUpdater.setPrefContext(screen.getContext()); in displayPreference()
91 mBluetoothDeviceUpdater.forceUpdate(); in displayPreference()
124 mBluetoothDeviceUpdater = new AvailableMediaBluetoothDeviceUpdater(fragment.getContext(), in init()
130 mBluetoothDeviceUpdater = bluetoothDeviceUpdater; in setBluetoothDeviceUpdater()
DPreviouslyConnectedDevicePreferenceController.java42 private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in PreviouslyConnectedDevicePreferenceController
68 mBluetoothDeviceUpdater.setPrefContext(context); in displayPreference()
75 mBluetoothDeviceUpdater.registerCallback(); in onStart()
81 mBluetoothDeviceUpdater.unregisterCallback(); in onStop()
86 mBluetoothDeviceUpdater = new SavedBluetoothDeviceUpdater(fragment.getContext(), in init()
108 mBluetoothDeviceUpdater = bluetoothDeviceUpdater; in setBluetoothDeviceUpdater()
DConnectedDeviceGroupController.java51 private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in ConnectedDeviceGroupController
61 mBluetoothDeviceUpdater.registerCallback(); in onStart()
69 mBluetoothDeviceUpdater.unregisterCallback(); in onStop()
81 mBluetoothDeviceUpdater.setPrefContext(context); in displayPreference()
82 mBluetoothDeviceUpdater.forceUpdate(); in displayPreference()
122 mBluetoothDeviceUpdater = bluetoothDeviceUpdater; in init()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/
DSavedDeviceGroupControllerTest.java54 private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in SavedDeviceGroupControllerTest
74 mSavedDeviceGroupController.setBluetoothDeviceUpdater(mBluetoothDeviceUpdater); in setUp()
82 verify(mBluetoothDeviceUpdater).registerCallback(); in testRegister()
90 verify(mBluetoothDeviceUpdater).unregisterCallback(); in testUnregister()
DPreviouslyConnectedDevicePreferenceControllerTest.java55 private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in PreviouslyConnectedDevicePreferenceControllerTest
75 mPreConnectedDeviceController.setBluetoothDeviceUpdater(mBluetoothDeviceUpdater); in setUp()
88 verify(mBluetoothDeviceUpdater).registerCallback(); in callbackCanRegisterAndUnregister()
93 verify(mBluetoothDeviceUpdater).unregisterCallback(); in callbackCanRegisterAndUnregister()