Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDeviceUpdaterTest.java115 mBluetoothDeviceUpdater.mPreferenceMap.put(mBluetoothDevice, mPreference); in testAddPreference_deviceExist_doNothing()
126 final Preference preference = mBluetoothDeviceUpdater.mPreferenceMap.get(mBluetoothDevice); in testAddPreference_deviceNotExist_addPreference()
133 mBluetoothDeviceUpdater.mPreferenceMap.put(mBluetoothDevice, mPreference); in testRemovePreference_deviceExist_removePreference()
138 assertThat(mBluetoothDeviceUpdater.mPreferenceMap.containsKey(mBluetoothDevice)).isFalse(); in testRemovePreference_deviceExist_removePreference()
143 mBluetoothDeviceUpdater.mPreferenceMap.put(mBluetoothDevice, mPreference); in testOnDeviceDeleted_deviceExists_removePreference()
148 assertThat(mBluetoothDeviceUpdater.mPreferenceMap.containsKey(mBluetoothDevice)).isFalse(); in testOnDeviceDeleted_deviceExists_removePreference()
161 mBluetoothDeviceUpdater.mPreferenceMap.put(mSubBluetoothDevice, mPreference); in testRemovePreference_subDeviceExist_removePreference()
163 assertThat(mBluetoothDeviceUpdater.mPreferenceMap. in testRemovePreference_subDeviceExist_removePreference()
168 assertThat(mBluetoothDeviceUpdater.mPreferenceMap. in testRemovePreference_subDeviceExist_removePreference()
220 mBluetoothDeviceUpdater.mPreferenceMap.put(mBluetoothDevice, mPreference); in forceUpdate_bluetoothDisabled_removeAllDevicesFromPreference()
[all …]
DSavedBluetoothDeviceUpdaterTest.java282 mBluetoothDeviceUpdater.mPreferenceMap.put(device2, mPreference); in forceUpdate_deviceNotContain_removePreference()
353 mBluetoothDeviceUpdater.mPreferenceMap.put(mBluetoothDevice, mPreference); in update_existingExclusivelyManagedDevice_packageEnabled_removePreference()
DConnectedBluetoothDeviceUpdaterTest.java333 mBluetoothDeviceUpdater.mPreferenceMap.put(mBluetoothDevice, btPreference); in addPreference_addPreference_shouldHideSecondTarget()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothDevicesGroupPreferenceController.java55 private final Map<CachedBluetoothDevice, BluetoothDevicePreference> mPreferenceMap = field in BluetoothDevicesGroupPreferenceController
118 return mPreferenceMap; in getPreferenceMap()
127 Set<CachedBluetoothDevice> devicesToRemove = new HashSet<>(mPreferenceMap.keySet()); in updateState()
151 mPreferenceMap.clear(); in onBluetoothStateChanged()
166 if (!mPreferenceMap.containsKey(cachedDevice)) { in addPreference()
169 mPreferenceMap.put(cachedDevice, devicePreference); in addPreference()
175 if (mPreferenceMap.containsKey(cachedDevice)) { in removePreference()
176 getPreference().removePreference(mPreferenceMap.get(cachedDevice)); in removePreference()
177 mPreferenceMap.remove(cachedDevice); in removePreference()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDeviceUpdater.java56 protected final Map<BluetoothDevice, Preference> mPreferenceMap; field in BluetoothDeviceUpdater
82 mPreferenceMap = new HashMap<>(); in BluetoothDeviceUpdater()
246 if (!mPreferenceMap.containsKey(device)) { in addPreference()
257 mPreferenceMap.put(device, btPreference); in addPreference()
268 if (mPreferenceMap.containsKey(device)) { in removePreference()
280 if (mPreferenceMap.containsKey(device)) { in removePreference()
281 mDevicePreferenceCallback.onDeviceRemoved(mPreferenceMap.get(device)); in removePreference()
282 mPreferenceMap.remove(device); in removePreference()
331 mPreferenceMap.forEach((key, preference) -> { in refreshPreference()
DConnectedBluetoothDeviceUpdater.java116 if (mPreferenceMap.containsKey(device)) { in addPreference()
118 (BluetoothDevicePreference) mPreferenceMap.get(device); in addPreference()
141 Log.d(TAG, "Map : " + mPreferenceMap); in update()
DSavedBluetoothDeviceUpdater.java80 for (BluetoothDevice device : new ArrayList<>(mPreferenceMap.keySet())) { in removePreferenceIfNecessary()
98 Log.d(TAG, "Map : " + mPreferenceMap); in update()
DAvailableMediaBluetoothDeviceUpdater.java156 Log.d(TAG, "Map : " + mPreferenceMap); in update()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DKeyboardLayoutPickerController.java44 private final Map<TwoStatePreference, KeyboardLayout> mPreferenceMap; field in KeyboardLayoutPickerController
57 mPreferenceMap = new HashMap<>(); in KeyboardLayoutPickerController()
103 final KeyboardLayout layout = mPreferenceMap.get(switchPref); in handlePreferenceTreeClick()
141 for (Map.Entry<TwoStatePreference, KeyboardLayout> entry : mPreferenceMap.entrySet()) { in updateCheckedState()
158 mPreferenceMap.put(pref, layout); in createPreferenceHierarchy()
DNewKeyboardLayoutPickerController.java49 private final Map<TickButtonPreference, KeyboardLayout> mPreferenceMap; field in NewKeyboardLayoutPickerController
69 mPreferenceMap = new HashMap<>(); in NewKeyboardLayoutPickerController()
141 if (mKeyboardLayoutSelectedCallback != null && mPreferenceMap.containsKey(preference)) { in handlePreferenceTreeClick()
142 mKeyboardLayoutSelectedCallback.onSelected(mPreferenceMap.get(preference)); in handlePreferenceTreeClick()
190 mPreferenceMap.put(pref, layout); in createPreferenceHierarchy()
200 mPreferenceMap.get(preference).getDescriptor()); in setLayout()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingDeviceVolumeControlUpdater.java91 if (!mPreferenceMap.containsKey(device)) { in addPreference()
125 mPreferenceMap.put(device, vPreference); in addPreference()
143 Log.d(TAG, "Map : " + mPreferenceMap); in update()
DAudioSharingBluetoothDeviceUpdater.java91 Log.d(TAG, "Map : " + mPreferenceMap); in update()
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiHotspotSecuritySettings.java42 protected Map<Integer, SelectorWithWidgetPreference> mPreferenceMap = new HashMap<>(); field in WifiHotspotSecuritySettings