Home
last modified time | relevance | path

Searched refs:mPreferenceMap (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDeviceUpdaterTest.java122 mBluetoothDeviceUpdater.mPreferenceMap.put(mBluetoothDevice, mPreference); in testAddPreference_deviceExist_doNothing()
133 final Preference preference = mBluetoothDeviceUpdater.mPreferenceMap.get(mBluetoothDevice); in testAddPreference_deviceNotExist_addPreference()
140 mBluetoothDeviceUpdater.mPreferenceMap.put(mBluetoothDevice, mPreference); in testRemovePreference_deviceExist_removePreference()
145 assertThat(mBluetoothDeviceUpdater.mPreferenceMap.containsKey(mBluetoothDevice)).isFalse(); in testRemovePreference_deviceExist_removePreference()
150 mBluetoothDeviceUpdater.mPreferenceMap.put(mBluetoothDevice, mPreference); in testOnDeviceDeleted_deviceExists_removePreference()
155 assertThat(mBluetoothDeviceUpdater.mPreferenceMap.containsKey(mBluetoothDevice)).isFalse(); in testOnDeviceDeleted_deviceExists_removePreference()
168 mBluetoothDeviceUpdater.mPreferenceMap.put(mSubBluetoothDevice, mPreference); in testRemovePreference_subDeviceExist_removePreference()
170 assertThat(mBluetoothDeviceUpdater.mPreferenceMap. in testRemovePreference_subDeviceExist_removePreference()
175 assertThat(mBluetoothDeviceUpdater.mPreferenceMap. in testRemovePreference_subDeviceExist_removePreference()
226 mBluetoothDeviceUpdater.mPreferenceMap.put(mBluetoothDevice, mPreference); in forceUpdate_bluetoothDisabled_removeAllDevicesFromPreference()
[all …]
DConnectedBluetoothDeviceUpdaterTest.java244 mBluetoothDeviceUpdater.mPreferenceMap.put(mBluetoothDevice, btPreference); in addPreference_addPreference_shouldHideSecondTarget()
DSavedBluetoothDeviceUpdaterTest.java220 mBluetoothDeviceUpdater.mPreferenceMap.put(device2, mPreference); in forceUpdate_deviceNotContain_removePreference()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothDevicesGroupPreferenceController.java52 private final Map<CachedBluetoothDevice, BluetoothDevicePreference> mPreferenceMap = field in BluetoothDevicesGroupPreferenceController
98 return mPreferenceMap; in getPreferenceMap()
107 Set<CachedBluetoothDevice> devicesToRemove = new HashSet<>(mPreferenceMap.keySet()); in updateState()
131 mPreferenceMap.clear(); in onBluetoothStateChanged()
146 if (!mPreferenceMap.containsKey(cachedDevice)) { in addPreference()
149 mPreferenceMap.put(cachedDevice, devicePreference); in addPreference()
155 if (mPreferenceMap.containsKey(cachedDevice)) { in removePreference()
156 getPreference().removePreference(mPreferenceMap.get(cachedDevice)); in removePreference()
157 mPreferenceMap.remove(cachedDevice); in removePreference()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothDeviceUpdater.java56 protected final Map<BluetoothDevice, Preference> mPreferenceMap; field in BluetoothDeviceUpdater
77 mPreferenceMap = new HashMap<>(); in BluetoothDeviceUpdater()
216 if (!mPreferenceMap.containsKey(device)) { in addPreference()
225 mPreferenceMap.put(device, btPreference); in addPreference()
236 if (mPreferenceMap.containsKey(device)) { in removePreference()
237 mDevicePreferenceCallback.onDeviceRemoved(mPreferenceMap.get(device)); in removePreference()
238 mPreferenceMap.remove(device); in removePreference()
244 if (mPreferenceMap.containsKey(subDevice)) { in removePreference()
245 mDevicePreferenceCallback.onDeviceRemoved(mPreferenceMap.get(subDevice)); in removePreference()
246 mPreferenceMap.remove(subDevice); in removePreference()
DConnectedBluetoothDeviceUpdater.java103 if (mPreferenceMap.containsKey(device)) { in addPreference()
105 (BluetoothDevicePreference) mPreferenceMap.get(device); in addPreference()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDeviceUpdater.java59 protected final Map<BluetoothDevice, Preference> mPreferenceMap; field in BluetoothDeviceUpdater
80 mPreferenceMap = new HashMap<>(); in BluetoothDeviceUpdater()
244 if (!mPreferenceMap.containsKey(device)) { in addPreference()
255 mPreferenceMap.put(device, btPreference); in addPreference()
266 if (mPreferenceMap.containsKey(device)) { in removePreference()
267 mDevicePreferenceCallback.onDeviceRemoved(mPreferenceMap.get(device)); in removePreference()
268 mPreferenceMap.remove(device); in removePreference()
274 if (mPreferenceMap.containsKey(subDevice)) { in removePreference()
275 mDevicePreferenceCallback.onDeviceRemoved(mPreferenceMap.get(subDevice)); in removePreference()
276 mPreferenceMap.remove(subDevice); in removePreference()
DConnectedBluetoothDeviceUpdater.java105 if (mPreferenceMap.containsKey(device)) { in addPreference()
107 (BluetoothDevicePreference) mPreferenceMap.get(device); in addPreference()
DSavedBluetoothDeviceUpdater.java76 for (BluetoothDevice device : new ArrayList<>(mPreferenceMap.keySet())) { in removePreferenceIfNecessary()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DKeyboardLayoutPickerController.java45 private final Map<SwitchPreference, KeyboardLayout> mPreferenceMap; field in KeyboardLayoutPickerController
58 mPreferenceMap = new HashMap<>(); in KeyboardLayoutPickerController()
108 final KeyboardLayout layout = mPreferenceMap.get(switchPref); in handlePreferenceTreeClick()
146 for (Map.Entry<SwitchPreference, KeyboardLayout> entry : mPreferenceMap.entrySet()) { in updateCheckedState()
159 mPreferenceMap.put(pref, layout); in createPreferenceHierarchy()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/inputmethod/
DKeyboardLayoutPickerController.java45 private final Map<SwitchPreference, KeyboardLayout> mPreferenceMap; field in KeyboardLayoutPickerController
58 mPreferenceMap = new HashMap<>(); in KeyboardLayoutPickerController()
108 final KeyboardLayout layout = mPreferenceMap.get(switchPref); in handlePreferenceTreeClick()
146 for (Map.Entry<SwitchPreference, KeyboardLayout> entry : mPreferenceMap.entrySet()) { in updateCheckedState()
159 mPreferenceMap.put(pref, layout); in createPreferenceHierarchy()