Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java50 private int mBatteryLevel = 100; field in PowerUI
155 final int oldBatteryLevel = mBatteryLevel; in onReceive()
156 mBatteryLevel = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, 100); in onReceive()
169 int bucket = findBatteryLevelBucket(mBatteryLevel); in onReceive()
175 Slog.d(TAG, "level " + oldBatteryLevel + " --> " + mBatteryLevel); in onReceive()
183 mWarnings.update(mBatteryLevel, bucket, mScreenOffTime); in onReceive()
229 pw.println(Integer.toString(mBatteryLevel)); in dump()
248 pw.println(Integer.toString(findBatteryLevelBucket(mBatteryLevel))); in dump()
DPowerNotificationWarnings.java84 private int mBatteryLevel; field in PowerNotificationWarnings
116 mBatteryLevel = batteryLevel; in update()
175 …final String percentage = NumberFormat.getPercentInstance().format((double) mBatteryLevel / 100.0); in showWarningNotification()
269 if (DEBUG) Slog.d(TAG, "dismissing low battery warning: level=" + mBatteryLevel); in dismissLowBatteryWarning()
290 "show low battery warning: level=" + mBatteryLevel in showLowBatteryWarning()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardStatusBarView.java55 private TextView mBatteryLevel; field in KeyguardStatusBarView
73 mBatteryLevel = (TextView) findViewById(R.id.battery_level); in onFinishInflate()
89 mBatteryLevel.setTextSize(TypedValue.COMPLEX_UNIT_PX, in onConfigurationChanged()
107 mBatteryLevel.setVisibility(mBatteryCharging ? View.VISIBLE : View.GONE); in updateVisibilities()
156 mBatteryLevel.setText(percentage); in onBatteryLevelChanged()
DStatusBarHeaderView.java80 private TextView mBatteryLevel; field in StatusBarHeaderView
151 mBatteryLevel = (TextView) findViewById(R.id.battery_level); in onFinishInflate()
201 FontSizeUtils.updateFontSize(mBatteryLevel, R.dimen.battery_level_text_size); in onConfigurationChanged()
330 mBatteryLevel.setVisibility(mExpanded ? View.VISIBLE : View.GONE); in updateVisibilities()
398 mBatteryLevel.setText(percentage); in onBatteryLevelChanged()
566 target.batteryLevelAlpha = getAlphaForVisibility(mBatteryLevel); in captureLayoutValues()
632 applyAlpha(mBatteryLevel, values.batteryLevelAlpha); in applyLayoutValues()
/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.java261 private int mBatteryLevel; field in PowerManagerService
1262 mBatteryLevel = mBatteryManagerInternal.getBatteryLevel(); in updateIsPoweredLocked()
1270 + ", mBatteryLevel=" + mBatteryLevel); in updateIsPoweredLocked()
1278 mIsPowered, mPlugType, mBatteryLevel); in updateIsPoweredLocked()
1693 mBatteryLevelWhenDreamStarted = mBatteryLevel; in handleSandman()
1711 && mBatteryLevel < mBatteryLevelWhenDreamStarted in handleSandman()
1721 + "Battery level now: " + mBatteryLevel + "%."); in handleSandman()
1772 && mBatteryLevel < mDreamsBatteryLevelMinimumWhenNotPoweredConfig) { in canDreamLocked()
1777 && mBatteryLevel < mDreamsBatteryLevelMinimumWhenPoweredConfig) { in canDreamLocked()
2410 pw.println(" mBatteryLevel=" + mBatteryLevel); in dumpInternal()
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java128 private int mBatteryLevel; field in MtpDatabase
142 if (newLevel != mBatteryLevel) {
143 mBatteryLevel = newLevel;