Home
last modified time | relevance | path

Searched refs:getBatteryLevel (Results 1 – 18 of 18) 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.java394 || mBatteryLevel != mLastBatteryStateSnapshot.getBatteryLevel()) { in refreshEstimateIfNeeded()
410 if (currentSnapshot.getBatteryLevel() >= CHARGE_CYCLE_PERCENT_RESET) { in maybeShowHybridWarning()
425 if (currentSnapshot.getBatteryLevel() <= currentSnapshot.getSevereLevelThreshold()) { in maybeShowHybridWarning()
460 && snapshot.getBatteryLevel() <= snapshot.getLowLevelThreshold(); in shouldShowHybridWarning()
464 && snapshot.getBatteryLevel() <= snapshot.getSevereLevelThreshold(); in shouldShowHybridWarning()
480 || snapshot.getBatteryLevel() in shouldDismissHybridWarning()
DPowerNotificationWarnings.java303 .format((double) mCurrentBatterySnapshot.getBatteryLevel() / 100.0); in showWarningNotification()
/frameworks/base/core/tests/batterystatstests/BatteryStatsLoadTests/src/com/android/frameworks/core/batterystatsloadtests/
DPowerMetricsCollector.java117 mInitialBatteryLevel = mCurrentBatteryLevel = getBatteryLevel(intent);
153 mCurrentBatteryLevel = getBatteryLevel(intent);
170 private float getBatteryLevel(Intent intent) {
/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/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDevice.java631 public int getBatteryLevel() { in getBatteryLevel() method in CachedBluetoothDevice
632 return mDevice.getBatteryLevel(); in getBatteryLevel()
1121 final int batteryLevel = getBatteryLevel(); in getConnectionSummary()
1280 final int batteryLevel = getBatteryLevel(); in getCarConnectionSummary()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DBluetoothTile.java196 final int batteryLevel = lastDevice.getBatteryLevel(); in getSecondaryLabel()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySavingStats.java277 return bmi.getBatteryLevel(); in injectBatteryPercent()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DThemedBatteryDrawable.kt323 public fun getBatteryLevel(): Int { in <lambda>() method
DBatteryMeterDrawableBase.java204 public int getBatteryLevel() { in getBatteryLevel() method in BatteryMeterDrawableBase
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceTest.java100 doAnswer((invocation) -> mBatteryLevel).when(mCachedDevice).getBatteryLevel(); in setUp()
101 doAnswer((invocation) -> mBatteryLevel).when(mSubCachedDevice).getBatteryLevel(); in setUp()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DUtils.java196 public static int getBatteryLevel(Intent batteryChangedIntent) { in getBatteryLevel() method in Utils
/frameworks/base/apex/jobscheduler/service/java/com/android/server/tare/
DInternalResourceService.java642 return mBatteryManagerInternal.getBatteryLevel(); in getCurrentBatteryLevel()
/frameworks/base/services/core/java/com/android/server/
DBatteryService.java1269 public int getBatteryLevel() { in getBatteryLevel() method in BatteryService.LocalService
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DPowerManagerServiceTest.java379 when(mBatteryManagerInternalMock.getBatteryLevel()) in setBatteryLevel()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java2465 mBatteryLevel = mBatteryManagerInternal.getBatteryLevel();
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt34753 Landroid/os/BatteryManagerInternal;->getBatteryLevel()I
/frameworks/base/services/
Dart-profile847 HSPLcom/android/server/BatteryService$LocalService;->getBatteryLevel()I