Home
last modified time | relevance | path

Searched refs:CachedBluetoothDevice (Results 1 – 17 of 17) sorted by relevance

/packages/apps/Settings/src/com/android/settings/bluetooth/
DCachedBluetoothDeviceManager.java36 private final List<CachedBluetoothDevice> mCachedDevices =
37 new ArrayList<CachedBluetoothDevice>();
43 public synchronized Collection<CachedBluetoothDevice> getCachedDevicesCopy() { in getCachedDevicesCopy()
44 return new ArrayList<CachedBluetoothDevice>(mCachedDevices); in getCachedDevicesCopy()
47 public static boolean onDeviceDisappeared(CachedBluetoothDevice cachedDevice) { in onDeviceDisappeared()
53 CachedBluetoothDevice cachedDevice = findDevice(device); in onDeviceNameUpdated()
69 CachedBluetoothDevice findDevice(BluetoothDevice device) { in findDevice()
70 for (CachedBluetoothDevice cachedDevice : mCachedDevices) { in findDevice()
84 CachedBluetoothDevice addDevice(LocalBluetoothAdapter adapter, in addDevice()
87 CachedBluetoothDevice newDevice = new CachedBluetoothDevice(mContext, adapter, in addDevice()
[all …]
DDeviceProfilesSettings.java54 implements CachedBluetoothDevice.Callback, Preference.OnPreferenceChangeListener {
61 private CachedBluetoothDevice mCachedDevice;
132 public void setDevice(CachedBluetoothDevice cachedDevice) { in setDevice()
151 if (pbapPermission != CachedBluetoothDevice.ACCESS_UNKNOWN) { in addPreferencesForProfiles()
159 if (mapPermission != CachedBluetoothDevice.ACCESS_UNKNOWN) { in addPreferencesForProfiles()
224 == CachedBluetoothDevice.ACCESS_ALLOWED ? CachedBluetoothDevice.ACCESS_REJECTED in onProfileClicked()
225 : CachedBluetoothDevice.ACCESS_ALLOWED; in onProfileClicked()
227 profilePref.setChecked(newPermission == CachedBluetoothDevice.ACCESS_ALLOWED); in onProfileClicked()
256 final CachedBluetoothDevice device = mCachedDevice; in askDisconnect()
329 == CachedBluetoothDevice.ACCESS_ALLOWED); in refreshProfilePreference()
[all …]
DDeviceListPreferenceFragment.java57 final WeakHashMap<CachedBluetoothDevice, BluetoothDevicePreference> mDevicePreferenceMap =
58 new WeakHashMap<CachedBluetoothDevice, BluetoothDevicePreference>();
126 Collection<CachedBluetoothDevice> cachedDevices = in addCachedDevices()
128 for (CachedBluetoothDevice cachedDevice : cachedDevices) { in addCachedDevices()
143 CachedBluetoothDevice device = btPreference.getCachedDevice(); in onPreferenceTreeClick()
156 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) { in onDeviceAdded()
169 void createDevicePreference(CachedBluetoothDevice cachedDevice) { in createDevicePreference()
192 public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) { in onDeviceDeleted()
DBluetoothPermissionRequest.java206 CachedBluetoothDevice cachedDevice = cachedDeviceManager.findDevice(mDevice); in checkUserChoice()
217 if (phonebookPermission == CachedBluetoothDevice.ACCESS_UNKNOWN) { in checkUserChoice()
219 } else if (phonebookPermission == CachedBluetoothDevice.ACCESS_ALLOWED) { in checkUserChoice()
222 } else if (phonebookPermission == CachedBluetoothDevice.ACCESS_REJECTED) { in checkUserChoice()
231 if (messagePermission == CachedBluetoothDevice.ACCESS_UNKNOWN) { in checkUserChoice()
233 } else if (messagePermission == CachedBluetoothDevice.ACCESS_ALLOWED) { in checkUserChoice()
236 } else if (messagePermission == CachedBluetoothDevice.ACCESS_REJECTED) { in checkUserChoice()
DBluetoothEventManager.java199 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
214 private void dispatchDeviceAdded(CachedBluetoothDevice cachedDevice) { in dispatchDeviceAdded()
225 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
256 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
352 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
364 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
380 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in readPairedDevices()
DCachedBluetoothDevice.java43 final class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> { class
161 CachedBluetoothDevice(Context context, in CachedBluetoothDevice() method in CachedBluetoothDevice
623 if ((o == null) || !(o instanceof CachedBluetoothDevice)) { in equals()
626 return mDevice.equals(((CachedBluetoothDevice) o).mDevice); in equals()
637 public int compareTo(CachedBluetoothDevice another) { in compareTo()
784 setPhonebookPermissionChoice(CachedBluetoothDevice.ACCESS_ALLOWED); in processPhonebookAccess()
DDockService.java419 Collection<CachedBluetoothDevice> cachedDevices = mDeviceManager.getCachedDevicesCopy(); in hasOtherConnectedDevices()
429 for (CachedBluetoothDevice deviceUI : cachedDevices) { in hasOtherConnectedDevices()
784 CachedBluetoothDevice cachedDevice = getCachedBluetoothDevice( in handleUnexpectedDisconnect()
796 CachedBluetoothDevice cachedDevice = getCachedBluetoothDevice( in connectIfEnabled()
844 CachedBluetoothDevice cachedDevice = getCachedBluetoothDevice( in applyBtSettings()
897 CachedBluetoothDevice cachedDevice = getCachedBluetoothDevice(device); in handleUndocked()
902 private CachedBluetoothDevice getCachedBluetoothDevice(BluetoothDevice device) { in getCachedBluetoothDevice()
903 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in getCachedBluetoothDevice()
DBluetoothDevicePreference.java48 CachedBluetoothDevice.Callback, OnClickListener {
53 private final CachedBluetoothDevice mCachedDevice;
59 public BluetoothDevicePreference(Context context, CachedBluetoothDevice cachedDevice) { in BluetoothDevicePreference()
84 CachedBluetoothDevice getCachedDevice() { in getCachedDevice()
231 final CachedBluetoothDevice cachedDevice = mCachedDevice; in getConnectionSummary()
DBluetoothSettings.java386 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged()
395 if (!(v.getTag() instanceof CachedBluetoothDevice)) {
400 final CachedBluetoothDevice device = (CachedBluetoothDevice) v.getTag();
481 CachedBluetoothDevice cachedDevice = preference.getCachedDevice(); in initDevicePreference()
DBluetoothCallback.java26 void onDeviceAdded(CachedBluetoothDevice cachedDevice); in onDeviceAdded()
27 void onDeviceDeleted(CachedBluetoothDevice cachedDevice); in onDeviceDeleted()
28 void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState); in onDeviceBondStateChanged()
DDevicePickerFragment.java118 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, in onDeviceBondStateChanged()
DHidProfile.java61 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DMapProfile.java69 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DA2dpProfile.java66 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DHeadsetProfile.java69 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DBluetoothPermissionActivity.java198 CachedBluetoothDevice cachedDevice = cachedDeviceManager.findDevice(mDevice); in onNegative()
DLocalBluetoothProfileManager.java227 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()