Home
last modified time | relevance | path

Searched refs:mRemoteDevices (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DRemoteDevicesTest.java41 private RemoteDevices mRemoteDevices; field in RemoteDevicesTest
55 mRemoteDevices = new RemoteDevices(mAdapterService, mHandlerThread.getLooper()); in setUp()
67 mRemoteDevices.updateUuids(mDevice1); in testSendUuidIntent()
82 Assert.assertNull(mRemoteDevices.getDeviceProperties(mDevice1)); in testUpdateBatteryLevel_normalSequence()
85 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel); in testUpdateBatteryLevel_normalSequence()
91 Assert.assertNotNull(mRemoteDevices.getDeviceProperties(mDevice1)); in testUpdateBatteryLevel_normalSequence()
92 Assert.assertEquals(mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel(), in testUpdateBatteryLevel_normalSequence()
96 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel); in testUpdateBatteryLevel_normalSequence()
101 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel); in testUpdateBatteryLevel_normalSequence()
108 Assert.assertEquals(mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel(), in testUpdateBatteryLevel_normalSequence()
[all …]
DBondStateMachineTest.java57 private RemoteDevices mRemoteDevices; field in BondStateMachineTest
73 mRemoteDevices = new RemoteDevices(mAdapterService, mHandlerThread.getLooper()); in setUp()
74 mRemoteDevices.reset(); in setUp()
78 mAdapterProperties.init(mRemoteDevices); in setUp()
80 mRemoteDevices); in setUp()
95 mRemoteDevices.reset(); in testSendIntent()
96 mDeviceProperties = mRemoteDevices.addDeviceProperties(TEST_BT_ADDR_BYTES); in testSendIntent()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DBondStateMachine.java73 private RemoteDevices mRemoteDevices; field in BondStateMachine
88 mRemoteDevices = remoteDevices; in BondStateMachine()
109 mRemoteDevices = null; in cleanup()
183 DeviceProperties devProp = mRemoteDevices.getDeviceProperties(dev); in processMessage()
350 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mRemoteDevices.getDevice(address)); in sendDisplayPinIntent()
363 DeviceProperties devProp = mRemoteDevices.getDeviceProperties(device); in sendIntent()
426 BluetoothDevice device = mRemoteDevices.getDevice(address); in bondStateChangeCallback()
455 BluetoothDevice bdDevice = mRemoteDevices.getDevice(address); in sspRequestCallback()
457 mRemoteDevices.addDeviceProperties(address); in sspRequestCallback()
487 BluetoothDevice device = mRemoteDevices.getDevice(address); in sspRequestCallback()
[all …]
DJniCallbacks.java21 private RemoteDevices mRemoteDevices; field in JniCallbacks
32 mRemoteDevices = remoteDevices; in init()
37 mRemoteDevices = null; in cleanup()
53 mRemoteDevices.devicePropertyChangedCallback(address, types, val); in devicePropertyChangedCallback()
57 mRemoteDevices.deviceFoundCallback(address); in deviceFoundCallback()
69 mRemoteDevices.aclStateChangeCallback(status, address, newState); in aclStateChangeCallback()
DAdapterService.java171 private RemoteDevices mRemoteDevices; field in AdapterService
389 mRemoteDevices = new RemoteDevices(this, Looper.getMainLooper()); in onCreate()
390 mRemoteDevices.init(); in onCreate()
523 mRemoteDevices.reset(); in bringUpBle()
524 mAdapterProperties.init(mRemoteDevices); in bringUpBle()
527 mBondStateMachine = BondStateMachine.make(this, mAdapterProperties, mRemoteDevices); in bringUpBle()
529 mJniCallbacks.init(mBondStateMachine, mRemoteDevices); in bringUpBle()
701 if (mRemoteDevices != null) { in cleanup()
702 mRemoteDevices.cleanup(); in cleanup()
2023 DeviceProperties deviceProp = mRemoteDevices.getDeviceProperties(device); in createBond()
[all …]
DAdapterProperties.java99 private RemoteDevices mRemoteDevices; field in AdapterProperties
189 mRemoteDevices = remoteDevices; in init()
229 mRemoteDevices = null; in cleanup()
521 DeviceProperties prop = mRemoteDevices.getDeviceProperties(device); in onBondStateChanged()
523 prop = mRemoteDevices.addDeviceProperties(addrByte); in onBondStateChanged()