Lines Matching refs:mDevice1
39 private BluetoothDevice mDevice1;
48 mDevice1 = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(TEST_BT_ADDR_1);
54 mRemoteDevices.updateUuids(mDevice1);
67 Assert.assertNull(mRemoteDevices.getDeviceProperties(mDevice1));
70 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel);
72 verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument);
76 Assert.assertNotNull(mRemoteDevices.getDeviceProperties(mDevice1));
78 mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel(), batteryLevel);
81 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel);
86 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel);
90 verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument);
94 mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel(), batteryLevel);
104 Assert.assertNull(mRemoteDevices.getDeviceProperties(mDevice1));
107 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel);
111 Assert.assertNull(mRemoteDevices.getDeviceProperties(mDevice1));
121 Assert.assertNull(mRemoteDevices.getDeviceProperties(mDevice1));
124 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel);
128 Assert.assertNull(mRemoteDevices.getDeviceProperties(mDevice1));
136 Assert.assertNull(mRemoteDevices.getDeviceProperties(mDevice1));
139 mRemoteDevices.resetBatteryLevel(mDevice1);
140 Assert.assertNull(mRemoteDevices.getDeviceProperties(mDevice1));
150 Assert.assertNull(mRemoteDevices.getDeviceProperties(mDevice1));
153 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel);
155 verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument);
159 Assert.assertNotNull(mRemoteDevices.getDeviceProperties(mDevice1));
161 mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel(), batteryLevel);
165 mRemoteDevices.resetBatteryLevel(mDevice1);
170 mDevice1, BluetoothDevice.BATTERY_LEVEL_UNKNOWN, mIntentArgument);
173 Assert.assertNotNull(mRemoteDevices.getDeviceProperties(mDevice1));
174 Assert.assertEquals(mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel(),
178 mRemoteDevices.resetBatteryLevel(mDevice1);
182 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel);
185 verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument);
196 Assert.assertNull(mRemoteDevices.getDeviceProperties(mDevice1));
199 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel);
201 verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument);
205 Assert.assertNotNull(mRemoteDevices.getDeviceProperties(mDevice1));
207 mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel(), batteryLevel);
212 getHeadsetConnectionStateChangedIntent(mDevice1,
218 mDevice1, BluetoothDevice.BATTERY_LEVEL_UNKNOWN, mIntentArgument);
221 Assert.assertNotNull(mRemoteDevices.getDeviceProperties(mDevice1));
222 Assert.assertEquals(mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel(),
226 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel);
229 verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument);
240 Assert.assertNull(mRemoteDevices.getDeviceProperties(mDevice1));
243 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel);
245 verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument);
249 Assert.assertNotNull(mRemoteDevices.getDeviceProperties(mDevice1));
251 batteryLevel, mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel());
257 0, Utils.getByteAddress(mDevice1), AbstractionLayer.BT_ACL_STATE_DISCONNECTED);
259 verify(mAdapterService).getConnectionState(mDevice1);
263 verifyBatteryLevelChangedIntent(mDevice1, BluetoothDevice.BATTERY_LEVEL_UNKNOWN,
271 Assert.assertNotNull(mRemoteDevices.getDeviceProperties(mDevice1));
273 mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel());
276 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel);
279 verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument);
290 Assert.assertNull(mRemoteDevices.getDeviceProperties(mDevice1));
294 mDevice1, batteryLevel, HeadsetHalConstants.HF_INDICATOR_BATTERY_LEVEL_STATUS));
296 verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument);
305 Assert.assertNull(mRemoteDevices.getDeviceProperties(mDevice1));
308 mRemoteDevices.onHfIndicatorValueChanged(getHfIndicatorIntent(mDevice1, batteryLevel, 3));
311 Assert.assertNull(mRemoteDevices.getDeviceProperties(mDevice1));
317 Assert.assertNull(mRemoteDevices.getDeviceProperties(mDevice1));
323 getXEventArray(3, 8), mDevice1));
325 verifyBatteryLevelChangedIntent(mDevice1, 37, mIntentArgument);
332 Assert.assertNull(mRemoteDevices.getDeviceProperties(mDevice1));
341 mDevice1));
343 verifyBatteryLevelChangedIntent(mDevice1, 60, mIntentArgument);