Searched refs:CachedBluetoothDevice (Results 1 - 14 of 14) sorted by relevance

/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DBluetoothCallback.java26 void onDeviceAdded(CachedBluetoothDevice cachedDevice);
27 void onDeviceDeleted(CachedBluetoothDevice cachedDevice);
28 void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState);
H A DCachedBluetoothDeviceManager.java35 private final List<CachedBluetoothDevice> mCachedDevices =
36 new ArrayList<CachedBluetoothDevice>();
42 public synchronized Collection<CachedBluetoothDevice> getCachedDevicesCopy() {
43 return new ArrayList<CachedBluetoothDevice>(mCachedDevices);
46 public static boolean onDeviceDisappeared(CachedBluetoothDevice cachedDevice) {
52 CachedBluetoothDevice cachedDevice = findDevice(device);
59 * Search for existing {@link CachedBluetoothDevice} or return null
61 * to create and return a new {@link CachedBluetoothDevice} for
68 CachedBluetoothDevice findDevice(BluetoothDevice device) {
69 for (CachedBluetoothDevice cachedDevic
[all...]
H A DDeviceListPreferenceFragment.java58 final WeakHashMap<CachedBluetoothDevice, BluetoothDevicePreference> mDevicePreferenceMap =
59 new WeakHashMap<CachedBluetoothDevice, BluetoothDevicePreference>();
124 Collection<CachedBluetoothDevice> cachedDevices =
126 for (CachedBluetoothDevice cachedDevice : cachedDevices) {
141 CachedBluetoothDevice device = btPreference.getCachedDevice();
154 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) {
167 void createDevicePreference(CachedBluetoothDevice cachedDevice) {
184 public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) {
H A DBluetoothDevicePreference.java46 CachedBluetoothDevice.Callback, OnClickListener {
51 private final CachedBluetoothDevice mCachedDevice;
57 public BluetoothDevicePreference(Context context, CachedBluetoothDevice cachedDevice) {
77 CachedBluetoothDevice getCachedDevice() {
213 final CachedBluetoothDevice cachedDevice = mCachedDevice;
H A DBluetoothPermissionRequest.java139 CachedBluetoothDevice cachedDevice = cachedDeviceManager.findDevice(mDevice);
148 if (phonebookPermission == CachedBluetoothDevice.PHONEBOOK_ACCESS_UNKNOWN) {
153 if (phonebookPermission == CachedBluetoothDevice.PHONEBOOK_ACCESS_ALLOWED) {
156 } else if (phonebookPermission == CachedBluetoothDevice.PHONEBOOK_ACCESS_REJECTED) {
H A DBluetoothEventManager.java195 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device);
198 Log.d(TAG, "DeviceFoundHandler created new CachedBluetoothDevice: "
210 private void dispatchDeviceAdded(CachedBluetoothDevice cachedDevice) {
221 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device);
252 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device);
254 Log.w(TAG, "CachedBluetoothDevice for device " + device +
348 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device);
360 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device);
377 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device);
H A DBluetoothSettings.java346 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) {
355 if (v.getTag() instanceof CachedBluetoothDevice) {
356 CachedBluetoothDevice device = (CachedBluetoothDevice) v.getTag();
376 CachedBluetoothDevice cachedDevice = preference.getCachedDevice();
H A DCachedBluetoothDevice.java36 * CachedBluetoothDevice represents a remote Bluetooth device. It contains
41 final class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> { class in inherits:Comparable
42 private static final String TAG = "CachedBluetoothDevice";
143 CachedBluetoothDevice(Context context, method in class:CachedBluetoothDevice
562 if ((o == null) || !(o instanceof CachedBluetoothDevice)) {
565 return mDevice.equals(((CachedBluetoothDevice) o).mDevice);
576 public int compareTo(CachedBluetoothDevice another) {
H A DDevicePickerFragment.java81 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice,
H A DBluetoothPermissionActivity.java184 savePhonebookPermissionChoice(CachedBluetoothDevice.PHONEBOOK_ACCESS_ALLOWED);
195 savePhonebookPermissionChoice(CachedBluetoothDevice.PHONEBOOK_ACCESS_REJECTED);
253 CachedBluetoothDevice cachedDevice = cachedDeviceManager.findDevice(mDevice);
H A DDeviceProfilesSettings.java50 implements CachedBluetoothDevice.Callback, Preference.OnPreferenceChangeListener {
60 private CachedBluetoothDevice mCachedDevice;
271 final CachedBluetoothDevice device = mCachedDevice;
H A DDockService.java400 Collection<CachedBluetoothDevice> cachedDevices = mDeviceManager.getCachedDevicesCopy();
410 for (CachedBluetoothDevice deviceUI : cachedDevices) {
733 CachedBluetoothDevice cachedDevice = getCachedBluetoothDevice(
745 CachedBluetoothDevice cachedDevice = getCachedBluetoothDevice(
793 CachedBluetoothDevice cachedDevice = getCachedBluetoothDevice(
844 CachedBluetoothDevice cachedDevice = getCachedBluetoothDevice(device);
848 private CachedBluetoothDevice getCachedBluetoothDevice(BluetoothDevice device) {
849 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device);
H A DHeadsetProfile.java69 CachedBluetoothDevice device = mDeviceManager.findDevice(firstDevice);
H A DLocalBluetoothProfileManager.java209 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device);

Completed in 130 milliseconds