Home
last modified time | relevance | path

Searched refs:mBatteryLevel (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java59 private int mBatteryLevel = 100; field in PowerUI
169 final int oldBatteryLevel = mBatteryLevel; in onReceive()
170 mBatteryLevel = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, 100); in onReceive()
183 int bucket = findBatteryLevelBucket(mBatteryLevel); in onReceive()
189 Slog.d(TAG, "level " + oldBatteryLevel + " --> " + mBatteryLevel); in onReceive()
197 mWarnings.update(mBatteryLevel, bucket, mScreenOffTime); in onReceive()
349 pw.println(Integer.toString(mBatteryLevel)); in dump()
368 pw.println(Integer.toString(findBatteryLevelBucket(mBatteryLevel))); in dump()
DPowerNotificationWarnings.java92 private int mBatteryLevel; field in PowerNotificationWarnings
130 mBatteryLevel = batteryLevel; in update()
175 …final String percentage = NumberFormat.getPercentInstance().format((double) mBatteryLevel / 100.0); in showWarningNotification()
320 if (DEBUG) Slog.d(TAG, "dismissing low battery warning: level=" + mBatteryLevel); in dismissLowBatteryWarning()
337 "show low battery warning: level=" + mBatteryLevel in showLowBatteryWarning()
/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/
DDemoModeController.java153 if (batteryLevel != mBatteryLevel) { in onTouch()
154 mBatteryLevel = batteryLevel; in onTouch()
305 private int mBatteryLevel; // 0 - 100 field in DemoModeController
311 intent.putExtra("level", Integer.toString(mBatteryLevel));
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java346 private int mBatteryLevel; field in PowerManagerService
1682 mBatteryLevel = mBatteryManagerInternal.getBatteryLevel(); in updateIsPoweredLocked()
1690 + ", mBatteryLevel=" + mBatteryLevel); in updateIsPoweredLocked()
1698 mIsPowered, mPlugType, mBatteryLevel); in updateIsPoweredLocked()
2181 mBatteryLevelWhenDreamStarted = mBatteryLevel; in handleSandman()
2199 && mBatteryLevel < mBatteryLevelWhenDreamStarted in handleSandman()
2209 + "Battery level now: " + mBatteryLevel + "%."); in handleSandman()
2262 && mBatteryLevel < mDreamsBatteryLevelMinimumWhenNotPoweredConfig) { in canDreamLocked()
2267 && mBatteryLevel < mDreamsBatteryLevelMinimumWhenPoweredConfig) { in canDreamLocked()
3180 pw.println(" mBatteryLevel=" + mBatteryLevel); in dumpInternal()
[all …]
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java134 private int mBatteryLevel; field in MtpDatabase
150 if (newLevel != mBatteryLevel) {
151 mBatteryLevel = newLevel;