Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceManager.java36 private final List<CachedBluetoothDevice> mCachedDevices =
37 new ArrayList<CachedBluetoothDevice>();
45 public synchronized Collection<CachedBluetoothDevice> getCachedDevicesCopy() { in getCachedDevicesCopy()
46 return new ArrayList<CachedBluetoothDevice>(mCachedDevices); in getCachedDevicesCopy()
49 public static boolean onDeviceDisappeared(CachedBluetoothDevice cachedDevice) { in onDeviceDisappeared()
55 CachedBluetoothDevice cachedDevice = findDevice(device); in onDeviceNameUpdated()
71 public CachedBluetoothDevice findDevice(BluetoothDevice device) { in findDevice()
72 for (CachedBluetoothDevice cachedDevice : mCachedDevices) { in findDevice()
86 public CachedBluetoothDevice addDevice(LocalBluetoothAdapter adapter, in addDevice()
89 CachedBluetoothDevice newDevice = new CachedBluetoothDevice(mContext, adapter, in addDevice()
[all …]
DBluetoothCallback.java27 void onDeviceAdded(CachedBluetoothDevice cachedDevice); in onDeviceAdded()
28 void onDeviceDeleted(CachedBluetoothDevice cachedDevice); in onDeviceDeleted()
29 void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState); in onDeviceBondStateChanged()
30 void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state); in onConnectionStateChanged()
DBluetoothEventManager.java194 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
210 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
217 private void dispatchConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { in dispatchConnectionStateChanged()
225 void dispatchDeviceAdded(CachedBluetoothDevice cachedDevice) { in dispatchDeviceAdded()
236 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
267 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
353 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
365 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
380 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in readPairedDevices()
DPbapClientProfile.java68 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
89 Collection<CachedBluetoothDevice> cachedDevices = mDeviceManager.getCachedDevicesCopy(); in refreshProfiles()
90 for (CachedBluetoothDevice device : cachedDevices) { in refreshProfiles()
DCachedBluetoothDevice.java46 public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> { class
161 CachedBluetoothDevice(Context context, in CachedBluetoothDevice() method in CachedBluetoothDevice
649 if ((o == null) || !(o instanceof CachedBluetoothDevice)) { in equals()
652 return mDevice.equals(((CachedBluetoothDevice) o).mDevice); in equals()
663 public int compareTo(CachedBluetoothDevice another) { in compareTo()
830 if (getPhonebookPermissionChoice() == CachedBluetoothDevice.ACCESS_UNKNOWN) { in processPhonebookAccess()
837 setPhonebookPermissionChoice(CachedBluetoothDevice.ACCESS_REJECTED); in processPhonebookAccess()
DHidProfile.java61 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DHfpClientProfile.java70 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DSapProfile.java68 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DMapClientProfile.java70 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DA2dpSinkProfile.java66 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DMapProfile.java69 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DHeadsetProfile.java69 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DA2dpProfile.java75 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DLocalBluetoothProfileManager.java299 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImpl.java32 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
44 CachedBluetoothDevice.Callback {
51 private final WeakHashMap<CachedBluetoothDevice, ActuallyCachedState> mCachedState =
57 private CachedBluetoothDevice mLastDevice;
94 for (CachedBluetoothDevice device : in dump()
114 private String getDeviceString(CachedBluetoothDevice device) { in getDeviceString()
119 public int getBondState(CachedBluetoothDevice device) { in getBondState()
124 public CachedBluetoothDevice getLastDevice() { in getLastDevice()
129 public int getMaxConnectionState(CachedBluetoothDevice device) { in getMaxConnectionState()
177 public void connect(final CachedBluetoothDevice device) { in connect()
[all …]
DBluetoothController.java19 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
35 Collection<CachedBluetoothDevice> getDevices(); in getDevices()
36 void connect(CachedBluetoothDevice device); in connect()
37 void disconnect(CachedBluetoothDevice device); in disconnect()
40 int getMaxConnectionState(CachedBluetoothDevice device); in getMaxConnectionState()
41 int getBondState(CachedBluetoothDevice device); in getBondState()
42 CachedBluetoothDevice getLastDevice(); in getLastDevice()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/
DFakeBluetoothController.java19 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
68 public Collection<CachedBluetoothDevice> getDevices() { in getDevices()
73 public void connect(CachedBluetoothDevice device) { in connect()
78 public void disconnect(CachedBluetoothDevice device) { in disconnect()
88 public int getMaxConnectionState(CachedBluetoothDevice device) { in getMaxConnectionState()
93 public int getBondState(CachedBluetoothDevice device) { in getBondState()
98 public CachedBluetoothDevice getLastDevice() { in getLastDevice()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImplTest.java34 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
58 private List<CachedBluetoothDevice> mDevices;
78 CachedBluetoothDevice device = mock(CachedBluetoothDevice.class); in testNoConnectionWithDevices()
91 CachedBluetoothDevice device = mock(CachedBluetoothDevice.class); in testDefaultConnectionState()
99 CachedBluetoothDevice device = mock(CachedBluetoothDevice.class); in testAsyncBondState()
120 CachedBluetoothDevice device = mock(CachedBluetoothDevice.class); in testAsyncConnectionState()
143 CachedBluetoothDevice device = mock(CachedBluetoothDevice.class); in testNullAsync_DoesNotCrash()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/
DKeyboardUI.java46 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
240 CachedBluetoothDevice device = getPairedKeyboard(); in processKeyboardState()
297 private CachedBluetoothDevice getPairedKeyboard() { in getPairedKeyboard()
307 private CachedBluetoothDevice getDiscoveredKeyboard() { in getDiscoveredKeyboard()
308 Collection<CachedBluetoothDevice> devices = mCachedDeviceManager.getCachedDevicesCopy(); in getDiscoveredKeyboard()
309 for (CachedBluetoothDevice d : devices) { in getDiscoveredKeyboard()
318 private CachedBluetoothDevice getCachedBluetoothDevice(BluetoothDevice d) { in getCachedBluetoothDevice()
319 CachedBluetoothDevice cachedDevice = mCachedDeviceManager.findDevice(d); in getCachedBluetoothDevice()
367 private void onDeviceAddedInternal(CachedBluetoothDevice d) { in onDeviceAddedInternal()
383 private void onDeviceBondStateChangedInternal(CachedBluetoothDevice d, int bondState) { in onDeviceBondStateChangedInternal()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceTest.java65 private CachedBluetoothDevice mCachedDevice;
79 new CachedBluetoothDevice(mContext, mAdapter, mProfileManager, mDevice)); in setUp()
169 CachedBluetoothDevice cachedBluetoothDevice = in testDeviceName_testAliasNameAvailable()
170 new CachedBluetoothDevice(mContext, mAdapter, mProfileManager, mDevice); in testDeviceName_testAliasNameAvailable()
179 CachedBluetoothDevice cachedBluetoothDevice = in testDeviceName_testNameNotAvailable()
180 new CachedBluetoothDevice(mContext, mAdapter, mProfileManager, mDevice); in testDeviceName_testNameNotAvailable()
196 CachedBluetoothDevice cachedBluetoothDevice = in testDeviceName_testRenameDevice()
197 new CachedBluetoothDevice(mContext, mAdapter, mProfileManager, mDevice); in testDeviceName_testRenameDevice()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DBluetoothTile.java37 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
133 CachedBluetoothDevice lastDevice = mController.getLastDevice(); in handleUpdateState()
298 final Collection<CachedBluetoothDevice> devices = mController.getDevices(); in updateItems()
302 for (CachedBluetoothDevice device : devices) { in updateItems()
341 final CachedBluetoothDevice device = (CachedBluetoothDevice) item.tag; in onDetailItemClick()
351 final CachedBluetoothDevice device = (CachedBluetoothDevice) item.tag; in onDetailItemDisconnect()