Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothEventManager.java199 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive() local
200 if (cachedDevice == null) { in onReceive()
201 cachedDevice = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, device); in onReceive()
203 + cachedDevice); in onReceive()
205 dispatchDeviceAdded(cachedDevice); in onReceive()
207 cachedDevice.setRssi(rssi); in onReceive()
208 cachedDevice.setBtClass(btClass); in onReceive()
209 cachedDevice.setName(name); in onReceive()
210 cachedDevice.setVisible(true); in onReceive()
214 private void dispatchDeviceAdded(CachedBluetoothDevice cachedDevice) { in dispatchDeviceAdded() argument
[all …]
DCachedBluetoothDeviceManager.java47 public static boolean onDeviceDisappeared(CachedBluetoothDevice cachedDevice) { in onDeviceDisappeared() argument
48 cachedDevice.setVisible(false); in onDeviceDisappeared()
49 return cachedDevice.getBondState() == BluetoothDevice.BOND_NONE; in onDeviceDisappeared()
53 CachedBluetoothDevice cachedDevice = findDevice(device); in onDeviceNameUpdated() local
54 if (cachedDevice != null) { in onDeviceNameUpdated()
55 cachedDevice.refreshName(); in onDeviceNameUpdated()
70 for (CachedBluetoothDevice cachedDevice : mCachedDevices) { in findDevice()
71 if (cachedDevice.getDevice().equals(device)) { in findDevice()
72 return cachedDevice; in findDevice()
100 CachedBluetoothDevice cachedDevice = findDevice(device); in getName() local
[all …]
DDeviceListPreferenceFragment.java126 for (CachedBluetoothDevice cachedDevice : cachedDevices) { in addCachedDevices()
127 onDeviceAdded(cachedDevice); in addCachedDevices()
154 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) { in onDeviceAdded() argument
155 if (mDevicePreferenceMap.get(cachedDevice) != null) { in onDeviceAdded()
162 if (mFilter.matches(cachedDevice.getDevice())) { in onDeviceAdded()
163 createDevicePreference(cachedDevice); in onDeviceAdded()
167 void createDevicePreference(CachedBluetoothDevice cachedDevice) { in createDevicePreference() argument
169 getActivity(), cachedDevice); in createDevicePreference()
173 mDevicePreferenceMap.put(cachedDevice, preference); in createDevicePreference()
184 public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) { in onDeviceDeleted() argument
[all …]
DDockService.java784 CachedBluetoothDevice cachedDevice = getCachedBluetoothDevice( in handleUnexpectedDisconnect() local
786 cachedDevice.connectProfile(profile); in handleUnexpectedDisconnect()
796 CachedBluetoothDevice cachedDevice = getCachedBluetoothDevice( in connectIfEnabled() local
798 List<LocalBluetoothProfile> profiles = cachedDevice.getConnectableProfiles(); in connectIfEnabled()
801 cachedDevice.connect(false); in connectIfEnabled()
844 CachedBluetoothDevice cachedDevice = getCachedBluetoothDevice( in applyBtSettings() local
855 int status = profile.getConnectionStatus(cachedDevice.getDevice()); in applyBtSettings()
858 cachedDevice.disconnect(mProfiles[i]); in applyBtSettings()
871 cachedDevice.connect(false); in applyBtSettings()
897 CachedBluetoothDevice cachedDevice = getCachedBluetoothDevice(device); in handleUndocked() local
[all …]
DBluetoothDevicePreference.java57 public BluetoothDevicePreference(Context context, CachedBluetoothDevice cachedDevice) { in BluetoothDevicePreference() argument
66 mCachedDevice = cachedDevice; in BluetoothDevicePreference()
68 if (cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED) { in BluetoothDevicePreference()
216 final CachedBluetoothDevice cachedDevice = mCachedDevice; in getConnectionSummary() local
222 for (LocalBluetoothProfile profile : cachedDevice.getProfiles()) { in getConnectionSummary()
223 int connectionStatus = cachedDevice.getProfileConnectionState(profile); in getConnectionSummary()
235 if (profile.isProfileReady() && profile.isPreferred(cachedDevice.getDevice())) { in getConnectionSummary()
258 switch (cachedDevice.getBondState()) { in getConnectionSummary()
DBluetoothPermissionActivity.java253 CachedBluetoothDevice cachedDevice = cachedDeviceManager.findDevice(mDevice); in savePhonebookPermissionChoice() local
254 if (cachedDevice != null ) { in savePhonebookPermissionChoice()
255 cachedDevice.setPhonebookPermissionChoice(permissionChoice); in savePhonebookPermissionChoice()
257 cachedDevice = cachedDeviceManager.addDevice(bluetoothManager.getBluetoothAdapter(), in savePhonebookPermissionChoice()
260 cachedDevice.setPhonebookPermissionChoice(permissionChoice); in savePhonebookPermissionChoice()
DLocalBluetoothProfileManager.java219 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive() local
220 if (cachedDevice == null) { in onReceive()
222 cachedDevice = mDeviceManager.addDevice(mLocalAdapter, in onReceive()
232 cachedDevice.onProfileStateChanged(mProfile, newState); in onReceive()
233 cachedDevice.refresh(); in onReceive()
DBluetoothPermissionRequest.java139 CachedBluetoothDevice cachedDevice = cachedDeviceManager.findDevice(mDevice); in checkUserChoice() local
141 if (cachedDevice == null) { in checkUserChoice()
142 cachedDevice = cachedDeviceManager.addDevice(bluetoothManager.getBluetoothAdapter(), in checkUserChoice()
146 int phonebookPermission = cachedDevice.getPhonebookPermissionChoice(); in checkUserChoice()
DBluetoothCallback.java26 void onDeviceAdded(CachedBluetoothDevice cachedDevice); in onDeviceAdded() argument
27 void onDeviceDeleted(CachedBluetoothDevice cachedDevice); in onDeviceDeleted() argument
28 void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState); in onDeviceBondStateChanged() argument
DBluetoothSettings.java359 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
391 CachedBluetoothDevice cachedDevice = preference.getCachedDevice(); in initDevicePreference() local
392 if (cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED) { in initDevicePreference()
DDevicePickerFragment.java87 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, in onDeviceBondStateChanged() argument
90 BluetoothDevice device = cachedDevice.getDevice(); in onDeviceBondStateChanged()