Home
last modified time | relevance | path

Searched refs:getBatteryLevel (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DRemoteDevicesTest.java92 Assert.assertEquals(mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel(), in testUpdateBatteryLevel_normalSequence()
108 Assert.assertEquals(mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel(), in testUpdateBatteryLevel_normalSequence()
175 Assert.assertEquals(mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel(), in testResetBatteryLevel_testResetAfterUpdate()
189 Assert.assertEquals(mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel(), in testResetBatteryLevel_testResetAfterUpdate()
221 Assert.assertEquals(mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel(), in testResetBatteryLevelOnHeadsetStateChange()
237 Assert.assertEquals(mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel(), in testResetBatteryLevelOnHeadsetStateChange()
266 mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel()); in testResetBatteryLevel_testAclStateChangeCallback()
287 mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel()); in testResetBatteryLevel_testAclStateChangeCallback()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryMeterView.java82 public int getBatteryLevel() { in getBatteryLevel() method in BatteryMeterView
83 return mDrawable.getBatteryLevel(); in getBatteryLevel()
97 final int level = mDrawable.getBatteryLevel(); in updateColorFilter()
DBatteryHeaderPreferenceController.java124 final int batteryLevel = Utils.getBatteryLevel(batteryBroadcast); in quickUpdateHeaderPreference()
DBatteryInfo.java231 info.batteryLevel = Utils.getBatteryLevel(batteryBroadcast); in getBatteryInfo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryHeaderPreferenceControllerTest.java139 R.id.battery_header_icon)).getBatteryLevel()).isEqualTo(BATTERY_LEVEL); in displayPreference_displayBatteryLevel()
162 assertThat(mBatteryMeterView.mDrawable.getBatteryLevel()).isEqualTo(BATTERY_LEVEL); in updatePreference_updateBatteryInfo()
193 assertThat(mBatteryMeterView.getBatteryLevel()).isEqualTo(BATTERY_LEVEL); in quickUpdateHeaderPreference_onlyUpdateBatteryLevelAndChargingState()
DBatteryMeterViewTest.java72 assertThat(mDrawable.getBatteryLevel()).isEqualTo(BATTERY_LEVEL); in testSetBatteryInfo_setCorrectly()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DRemoteDevices.java365 int getBatteryLevel() { in getBatteryLevel() method in RemoteDevices.DeviceProperties
427 int currentBatteryLevel = deviceProperties.getBatteryLevel(); in updateBatteryLevel()
454 if (deviceProperties.getBatteryLevel() == BluetoothDevice.BATTERY_LEVEL_UNKNOWN) { in resetBatteryLevel()
DAdapterService.java1844 public int getBatteryLevel(BluetoothDevice device) { in getBatteryLevel() method in AdapterService.AdapterServiceBinder
1856 return deviceProp.getBatteryLevel(); in getBatteryLevel()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryMeterView.java85 public int getBatteryLevel() { in getBatteryLevel() method in BatteryMeterView
DBatteryHeaderPreferenceController.java130 final int batteryLevel = Utils.getBatteryLevel(batteryBroadcast); in quickUpdateHeaderPreference()
DBatteryInfo.java228 info.batteryLevel = Utils.getBatteryLevel(batteryBroadcast); in getBatteryInfo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DAdvancedBluetoothDetailsHeaderControllerTest.java103 assertThat(iconDrawable.getBatteryLevel()).isEqualTo(BATTERY_LEVEL_MAIN); in createBatteryIcon_hasCorrectInfo()
/packages/apps/Settings/src/com/android/settings/
DUtils.java273 return formatPercentage(getBatteryLevel(batteryChangedIntent)); in getBatteryPercentage()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUtils.java278 return formatPercentage(getBatteryLevel(batteryChangedIntent)); in getBatteryPercentage()