Home | History | Annotate | Download | only in btservice

Lines Matching defs:batteryLevel

78         int batteryLevel = 10;
84 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel);
86 verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument);
92 batteryLevel);
95 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel);
99 batteryLevel = 15;
100 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel);
104 verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument);
108 batteryLevel);
115 int batteryLevel = BluetoothDevice.BATTERY_LEVEL_UNKNOWN;
121 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel);
132 int batteryLevel = 101;
138 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel);
161 int batteryLevel = 10;
167 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel);
169 verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument);
175 batteryLevel);
196 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel);
199 verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument);
207 int batteryLevel = 10;
213 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel);
215 verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument);
221 batteryLevel);
240 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel);
243 verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument);
251 int batteryLevel = 10;
257 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel);
259 verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument);
264 Assert.assertEquals(batteryLevel,
290 mRemoteDevices.updateBatteryLevel(mDevice1, batteryLevel);
293 verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument);
301 int batteryLevel = 10;
307 mRemoteDevices.onHfIndicatorValueChanged(getHfIndicatorIntent(mDevice1, batteryLevel,
310 verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument);
316 int batteryLevel = 10;
322 mRemoteDevices.onHfIndicatorValueChanged(getHfIndicatorIntent(mDevice1, batteryLevel, 3));
428 private static void verifyBatteryLevelChangedIntent(BluetoothDevice device, int batteryLevel,
430 verifyBatteryLevelChangedIntent(device, batteryLevel, intentArgument.getValue());
433 private static void verifyBatteryLevelChangedIntent(BluetoothDevice device, int batteryLevel,
437 Assert.assertEquals(batteryLevel,
451 private static Intent getHfIndicatorIntent(BluetoothDevice device, int batteryLevel,
456 intent.putExtra(BluetoothHeadset.EXTRA_HF_INDICATORS_IND_VALUE, batteryLevel);
473 private static Object[] getXEventArray(int batteryLevel, int numLevels) {
476 list.add(batteryLevel);