Home
last modified time | relevance | path

Searched refs:cachedDevice (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothDeviceListAdapter.java242 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) { in onDeviceAdded() argument
243 if (addDevice(cachedDevice)) { in onDeviceAdded()
252 public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) { in onDeviceDeleted() argument
253 onDeviceDeleted(cachedDevice, true /* refresh */); in onDeviceDeleted()
281 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
282 onDeviceDeleted(cachedDevice, false /* refresh */); in onDeviceBondStateChanged()
283 onDeviceAdded(cachedDevice); in onDeviceBondStateChanged()
291 public void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { in onConnectionStateChanged() argument
292 onDeviceDeleted(cachedDevice, false); in onConnectionStateChanged()
293 onDeviceAdded(cachedDevice); in onConnectionStateChanged()
[all …]
DBluetoothSettingsActivity.java167 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
172 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) { in onDeviceAdded() argument
177 public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) { in onDeviceDeleted() argument
182 public void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { in onConnectionStateChanged() argument
/packages/apps/Settings/src/com/android/settings/bluetooth/
DDeviceListPreferenceFragment.java132 for (CachedBluetoothDevice cachedDevice : cachedDevices) { in addCachedDevices()
133 onDeviceAdded(cachedDevice); in addCachedDevices()
159 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) { in onDeviceAdded() argument
160 if (mDevicePreferenceMap.get(cachedDevice) != null) { in onDeviceAdded()
167 if (mFilter.matches(cachedDevice.getDevice())) { in onDeviceAdded()
168 createDevicePreference(cachedDevice); in onDeviceAdded()
172 void createDevicePreference(CachedBluetoothDevice cachedDevice) { in createDevicePreference() argument
179 String key = cachedDevice.getDevice().getAddress(); in createDevicePreference()
183 preference = new BluetoothDevicePreference(getPrefContext(), cachedDevice); in createDevicePreference()
193 mDevicePreferenceMap.put(cachedDevice, preference); in createDevicePreference()
[all …]
DBluetoothPermissionRequest.java232 CachedBluetoothDevice cachedDevice = cachedDeviceManager.findDevice(mDevice); in checkUserChoice() local
233 if (cachedDevice == null) { in checkUserChoice()
234 cachedDevice = cachedDeviceManager.addDevice(bluetoothManager.getBluetoothAdapter(), in checkUserChoice()
241 int phonebookPermission = cachedDevice.getPhonebookPermissionChoice(); in checkUserChoice()
255 int messagePermission = cachedDevice.getMessagePermissionChoice(); in checkUserChoice()
269 int simPermission = cachedDevice.getSimPermissionChoice(); in checkUserChoice()
DBluetoothSummaryUpdater.java65 public void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { in onConnectionStateChanged() argument
76 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) { in onDeviceAdded() argument
80 public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) { in onDeviceDeleted() argument
84 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
DBluetoothPermissionActivity.java207 CachedBluetoothDevice cachedDevice = cachedDeviceManager.findDevice(mDevice); in onNegative() local
208 if (cachedDevice == null) { in onNegative()
209 cachedDevice = cachedDeviceManager.addDevice(bluetoothManager.getBluetoothAdapter(), in onNegative()
213 always = cachedDevice.checkAndIncreaseMessageRejectionCount(); in onNegative()
DDevicePickerFragment.java121 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, in onDeviceBondStateChanged() argument
124 BluetoothDevice device = cachedDevice.getDevice(); in onDeviceBondStateChanged()
DBluetoothSettings.java464 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
508 CachedBluetoothDevice cachedDevice = preference.getCachedDevice(); in initDevicePreference() local
509 if (cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED) { in initDevicePreference()
DBluetoothDevicePreference.java76 public BluetoothDevicePreference(Context context, CachedBluetoothDevice cachedDevice) { in BluetoothDevicePreference() argument
86 mCachedDevice = cachedDevice; in BluetoothDevicePreference()