Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/os/
DBatteryManagerInternal.java47 public abstract int getBatteryLevel(); in getBatteryLevel() method in BatteryManagerInternal
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java336 || mBatteryLevel != mLastBatteryStateSnapshot.getBatteryLevel()) { in refreshEstimateIfNeeded()
353 if (currentSnapshot.getBatteryLevel() >= CHARGE_CYCLE_PERCENT_RESET in maybeShowHybridWarning()
371 || currentSnapshot.getBatteryLevel() in maybeShowHybridWarning()
409 || snapshot.getBatteryLevel() <= snapshot.getLowLevelThreshold()); in shouldShowHybridWarning()
414 || snapshot.getBatteryLevel() <= snapshot.getSevereLevelThreshold()); in shouldShowHybridWarning()
DPowerNotificationWarnings.java255 .format((double) mCurrentBatterySnapshot.getBatteryLevel() / 100.0); in showWarningNotification()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDevice.java437 public int getBatteryLevel() { in getBatteryLevel() method in CachedBluetoothDevice
438 return mDevice.getBatteryLevel(); in getBatteryLevel()
888 final int batteryLevel = getBatteryLevel(); in getConnectionSummary()
996 final int batteryLevel = getBatteryLevel(); in getCarConnectionSummary()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/graph/
DBluetoothDeviceLayerDrawableTest.java81 assertThat(batteryDrawable.getBatteryLevel()).isEqualTo(BATTERY_LEVEL); in testBatteryMeterDrawable_configCorrect()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DBluetoothTile.java200 final int batteryLevel = lastDevice.getBatteryLevel(); in getSecondaryLabel()
394 int batteryLevel = device.getBatteryLevel(); in updateItems()
/frameworks/base/services/core/java/com/android/server/pm/
DBackgroundDexOptService.java149 private int getBatteryLevel() { in getBatteryLevel() method in BackgroundDexOptService
214 if (getBatteryLevel() < lowBatteryThreshold) { in postBootUpdate()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySavingStats.java257 return bmi.getBatteryLevel(); in injectBatteryPercent()
/frameworks/base/core/java/android/bluetooth/
DBluetoothDevice.java1123 public int getBatteryLevel() { in getBatteryLevel() method in BluetoothDevice
1130 return service.getBatteryLevel(this); in getBatteryLevel()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DThemedBatteryDrawable.kt322 public fun getBatteryLevel(): Int { in <lambda>() method
DBatteryMeterDrawableBase.java204 public int getBatteryLevel() { in getBatteryLevel() method in BatteryMeterDrawableBase
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DUtils.java171 public static int getBatteryLevel(Intent batteryChangedIntent) { in getBatteryLevel() method in Utils
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceTest.java84 doAnswer((invocation) -> mBatteryLevel).when(mCachedDevice).getBatteryLevel(); in setUp()
/frameworks/base/services/core/java/com/android/server/
DBatteryService.java1265 public int getBatteryLevel() { in getBatteryLevel() method in BatteryService.LocalService
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java1745 mBatteryLevel = mBatteryManagerInternal.getBatteryLevel(); in updateIsPoweredLocked()
/frameworks/base/services/
Dart-profile602 HSPLcom/android/server/BatteryService$LocalService;->getBatteryLevel()I
10183 PLcom/android/server/pm/BackgroundDexOptService;->getBatteryLevel()I
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt11625 Landroid/bluetooth/IBluetooth$Stub$Proxy;->getBatteryLevel(Landroid/bluetooth/BluetoothDevice;)I
11760 Landroid/bluetooth/IBluetooth;->getBatteryLevel(Landroid/bluetooth/BluetoothDevice;)I
52095 Landroid/os/BatteryManagerInternal;->getBatteryLevel()I