Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DAvailableMediaBluetoothDeviceUpdaterTest.java71 private AvailableMediaBluetoothDeviceUpdater mBluetoothDeviceUpdater; field in AvailableMediaBluetoothDeviceUpdaterTest
97 mBluetoothDeviceUpdater = spy(new AvailableMediaBluetoothDeviceUpdater(mContext, in setUp()
99 mBluetoothDeviceUpdater.setPrefContext(mContext); in setUp()
102 doNothing().when(mBluetoothDeviceUpdater).addPreference(any()); in setUp()
103 doNothing().when(mBluetoothDeviceUpdater).removePreference(any()); in setUp()
109 when(mBluetoothDeviceUpdater. in onAudioModeChanged_hfpDeviceConnected_inCall_addPreference()
114 mBluetoothDeviceUpdater.onAudioModeChanged(); in onAudioModeChanged_hfpDeviceConnected_inCall_addPreference()
116 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onAudioModeChanged_hfpDeviceConnected_inCall_addPreference()
122 when(mBluetoothDeviceUpdater. in onAudioModeChanged_hfpDeviceConnected_notInCall_removePreference()
127 mBluetoothDeviceUpdater.onAudioModeChanged(); in onAudioModeChanged_hfpDeviceConnected_notInCall_removePreference()
[all …]
DConnectedBluetoothDeviceUpdaterTest.java74 private ConnectedBluetoothDeviceUpdater mBluetoothDeviceUpdater; field in ConnectedBluetoothDeviceUpdaterTest
98 mBluetoothDeviceUpdater = spy(new ConnectedBluetoothDeviceUpdater(mContext, in setUp()
100 mBluetoothDeviceUpdater.setPrefContext(mContext); in setUp()
101 doNothing().when(mBluetoothDeviceUpdater).addPreference(any()); in setUp()
102 doNothing().when(mBluetoothDeviceUpdater).removePreference(any()); in setUp()
108 when(mBluetoothDeviceUpdater. in onAudioModeChanged_hfpDeviceConnected_notInCall_addPreference()
113 mBluetoothDeviceUpdater.onAudioModeChanged(); in onAudioModeChanged_hfpDeviceConnected_notInCall_addPreference()
115 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onAudioModeChanged_hfpDeviceConnected_notInCall_addPreference()
121 when(mBluetoothDeviceUpdater. in onAudioModeChanged_hfpDeviceConnected_inCall_removePreference()
126 mBluetoothDeviceUpdater.onAudioModeChanged(); in onAudioModeChanged_hfpDeviceConnected_inCall_removePreference()
[all …]
DBluetoothDeviceUpdaterTest.java87 private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in BluetoothDeviceUpdaterTest
111 mBluetoothDeviceUpdater = in setUp()
124 mBluetoothDeviceUpdater.setPrefContext(mContext); in setUp()
129 mBluetoothDeviceUpdater.mPreferenceMap.put(mBluetoothDevice, mPreference); in testAddPreference_deviceExist_doNothing()
131 mBluetoothDeviceUpdater.addPreference(mCachedBluetoothDevice); in testAddPreference_deviceExist_doNothing()
138 mBluetoothDeviceUpdater.addPreference(mCachedBluetoothDevice); in testAddPreference_deviceNotExist_addPreference()
140 final Preference preference = mBluetoothDeviceUpdater.mPreferenceMap.get(mBluetoothDevice); in testAddPreference_deviceNotExist_addPreference()
147 mBluetoothDeviceUpdater.mPreferenceMap.put(mBluetoothDevice, mPreference); in testRemovePreference_deviceExist_removePreference()
149 mBluetoothDeviceUpdater.removePreference(mCachedBluetoothDevice); in testRemovePreference_deviceExist_removePreference()
152 assertThat(mBluetoothDeviceUpdater.mPreferenceMap.containsKey(mBluetoothDevice)).isFalse(); in testRemovePreference_deviceExist_removePreference()
[all …]
DSavedBluetoothDeviceUpdaterTest.java78 private SavedBluetoothDeviceUpdater mBluetoothDeviceUpdater; field in SavedBluetoothDeviceUpdaterTest
93 mBluetoothDeviceUpdater = spy(new SavedBluetoothDeviceUpdater(mContext, mDashboardFragment, in setUp()
95 mBluetoothDeviceUpdater.setPrefContext(mContext); in setUp()
96 mBluetoothDeviceUpdater.mBluetoothAdapter = mBluetoothAdapter; in setUp()
97 mBluetoothDeviceUpdater.mLocalManager = mBluetoothManager; in setUp()
100 doNothing().when(mBluetoothDeviceUpdater).addPreference(any()); in setUp()
101 doNothing().when(mBluetoothDeviceUpdater).removePreference(any()); in setUp()
109 mBluetoothDeviceUpdater.update(mCachedBluetoothDevice); in update_filterMatch_addPreference()
111 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice, in update_filterMatch_addPreference()
120 mBluetoothDeviceUpdater.update(mCachedBluetoothDevice); in update_filterNotMatch_removePreference()
[all …]
/packages/apps/Settings/src/com/android/settings/connecteddevice/
DSavedDeviceGroupController.java50 private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in SavedDeviceGroupController
64 mBluetoothDeviceUpdater.registerCallback(); in onStart()
66 mBluetoothDeviceUpdater.refreshPreference(); in onStart()
71 mBluetoothDeviceUpdater.unregisterCallback(); in onStop()
82 mBluetoothDeviceUpdater.setPrefContext(context); in displayPreference()
83 mBluetoothDeviceUpdater.forceUpdate(); in displayPreference()
119 mBluetoothDeviceUpdater = new SavedBluetoothDeviceUpdater(fragment.getContext(), in init()
125 mBluetoothDeviceUpdater = bluetoothDeviceUpdater; in setBluetoothDeviceUpdater()
DAvailableMediaDeviceGroupController.java56 private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in AvailableMediaDeviceGroupController
69 mBluetoothDeviceUpdater.registerCallback(); in onStart()
71 mBluetoothDeviceUpdater.refreshPreference(); in onStart()
80 mBluetoothDeviceUpdater.unregisterCallback(); in onStop()
93 mBluetoothDeviceUpdater.setPrefContext(screen.getContext()); in displayPreference()
94 mBluetoothDeviceUpdater.forceUpdate(); in displayPreference()
127 mBluetoothDeviceUpdater = new AvailableMediaBluetoothDeviceUpdater(fragment.getContext(), in init()
133 mBluetoothDeviceUpdater = bluetoothDeviceUpdater; in setBluetoothDeviceUpdater()
DConnectedDeviceGroupController.java51 private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in ConnectedDeviceGroupController
61 mBluetoothDeviceUpdater.registerCallback(); in onStart()
64 mBluetoothDeviceUpdater.refreshPreference(); in onStart()
70 mBluetoothDeviceUpdater.unregisterCallback(); in onStop()
83 mBluetoothDeviceUpdater.setPrefContext(context); in displayPreference()
84 mBluetoothDeviceUpdater.forceUpdate(); in displayPreference()
128 mBluetoothDeviceUpdater = bluetoothDeviceUpdater; in init()
DPreviouslyConnectedDevicePreferenceController.java61 private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in PreviouslyConnectedDevicePreferenceController
104 mBluetoothDeviceUpdater.setPrefContext(context); in displayPreference()
106 mBluetoothDeviceUpdater.forceUpdate(); in displayPreference()
112 mBluetoothDeviceUpdater.registerCallback(); in onStart()
115 mBluetoothDeviceUpdater.refreshPreference(); in onStart()
120 mBluetoothDeviceUpdater.unregisterCallback(); in onStop()
126 mBluetoothDeviceUpdater = new SavedBluetoothDeviceUpdater(fragment.getContext(), in init()
207 mBluetoothDeviceUpdater = bluetoothDeviceUpdater; in setBluetoothDeviceUpdater()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/
DSavedDeviceGroupControllerTest.java54 private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in SavedDeviceGroupControllerTest
74 mSavedDeviceGroupController.setBluetoothDeviceUpdater(mBluetoothDeviceUpdater); in setUp()
83 verify(mBluetoothDeviceUpdater).registerCallback(); in testRegister()
85 verify(mBluetoothDeviceUpdater).refreshPreference(); in testRegister()
92 verify(mBluetoothDeviceUpdater).unregisterCallback(); in testUnregister()
DPreviouslyConnectedDevicePreferenceControllerTest.java76 private BluetoothDeviceUpdater mBluetoothDeviceUpdater; field in PreviouslyConnectedDevicePreferenceControllerTest
122 mPreConnectedDeviceController.setBluetoothDeviceUpdater(mBluetoothDeviceUpdater); in setUp()
161 verify(mBluetoothDeviceUpdater).registerCallback(); in callbackCanRegisterAndUnregister()
165 verify(mBluetoothDeviceUpdater).refreshPreference(); in callbackCanRegisterAndUnregister()
170 verify(mBluetoothDeviceUpdater).unregisterCallback(); in callbackCanRegisterAndUnregister()