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
154 final int oldBatteryLevel = mBatteryLevel; in onReceive()
155 mBatteryLevel = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, 100); in onReceive()
168 int bucket = findBatteryLevelBucket(mBatteryLevel); in onReceive()
174 Slog.d(TAG, "level " + oldBatteryLevel + " --> " + mBatteryLevel); in onReceive()
182 mWarnings.update(mBatteryLevel, bucket, mScreenOffTime); in onReceive()
226 pw.println(Integer.toString(mBatteryLevel)); in dump()
245 pw.println(Integer.toString(findBatteryLevelBucket(mBatteryLevel))); in dump()
DPowerNotificationWarnings.java82 private int mBatteryLevel; field in PowerNotificationWarnings
114 mBatteryLevel = batteryLevel; in update()
180 .setContentText(mContext.getString(textRes, mBatteryLevel)) in showWarningNotification()
268 if (DEBUG) Slog.d(TAG, "dismissing low battery warning: level=" + mBatteryLevel); in dismissLowBatteryWarning()
289 "show low battery warning: level=" + mBatteryLevel in showLowBatteryWarning()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardStatusBarView.java53 private TextView mBatteryLevel; field in KeyguardStatusBarView
71 mBatteryLevel = (TextView) findViewById(R.id.battery_level); in onFinishInflate()
87 mBatteryLevel.setTextSize(TypedValue.COMPLEX_UNIT_PX, in onConfigurationChanged()
105 mBatteryLevel.setVisibility(mBatteryCharging ? View.VISIBLE : View.GONE); in updateVisibilities()
153 mBatteryLevel.setText(getResources().getString(R.string.battery_level_template, level)); in onBatteryLevelChanged()
DStatusBarHeaderView.java78 private TextView mBatteryLevel; field in StatusBarHeaderView
149 mBatteryLevel = (TextView) findViewById(R.id.battery_level); in onFinishInflate()
199 FontSizeUtils.updateFontSize(mBatteryLevel, R.dimen.battery_level_text_size); in onConfigurationChanged()
331 mBatteryLevel.setVisibility(mExpanded ? View.VISIBLE : View.GONE); in updateVisibilities()
398 mBatteryLevel.setText(getResources().getString(R.string.battery_level_template, level)); 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.java265 private int mBatteryLevel; field in PowerManagerService
1260 mBatteryLevel = mBatteryManagerInternal.getBatteryLevel(); in updateIsPoweredLocked()
1268 + ", mBatteryLevel=" + mBatteryLevel); in updateIsPoweredLocked()
1276 mIsPowered, mPlugType, mBatteryLevel); in updateIsPoweredLocked()
1685 mBatteryLevelWhenDreamStarted = mBatteryLevel; in handleSandman()
1703 && mBatteryLevel < mBatteryLevelWhenDreamStarted in handleSandman()
1713 + "Battery level now: " + mBatteryLevel + "%."); in handleSandman()
1764 && mBatteryLevel < mDreamsBatteryLevelMinimumWhenNotPoweredConfig) { in canDreamLocked()
1769 && mBatteryLevel < mDreamsBatteryLevelMinimumWhenPoweredConfig) { in canDreamLocked()
2328 pw.println(" mBatteryLevel=" + mBatteryLevel); in dumpInternal()
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java124 private int mBatteryLevel; field in MtpDatabase
138 if (newLevel != mBatteryLevel) {
139 mBatteryLevel = newLevel;