Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardStatusBarView.java55 private TextView mBatteryLevel; field in KeyguardStatusBarView
74 mBatteryLevel = (TextView) findViewById(R.id.battery_level); in onFinishInflate()
112 lp = (MarginLayoutParams) mBatteryLevel.getLayoutParams(); in onConfigurationChanged()
115 mBatteryLevel.setLayoutParams(lp); in onConfigurationChanged()
116 mBatteryLevel.setPaddingRelative(mBatteryLevel.getPaddingStart(), in onConfigurationChanged()
117 mBatteryLevel.getPaddingTop(), in onConfigurationChanged()
119 mBatteryLevel.getPaddingBottom()); in onConfigurationChanged()
120 mBatteryLevel.setTextSize(TypedValue.COMPLEX_UNIT_PX, in onConfigurationChanged()
152 mBatteryLevel.setVisibility(mBatteryCharging ? View.VISIBLE : View.GONE); in updateVisibilities()
209 mBatteryLevel.setText(percentage); in onBatteryLevelChanged()
DStatusBarHeaderView.java87 private TextView mBatteryLevel; field in StatusBarHeaderView
161 mBatteryLevel = (TextView) findViewById(R.id.battery_level); in onFinishInflate()
217 FontSizeUtils.updateFontSize(mBatteryLevel, R.dimen.battery_level_text_size); in onConfigurationChanged()
349 mBatteryLevel.setVisibility(mExpanded ? View.VISIBLE : View.GONE); in updateVisibilities()
419 mBatteryLevel.setText(percentage); in onBatteryLevelChanged()
606 target.batteryLevelAlpha = getAlphaForVisibility(mBatteryLevel); in captureLayoutValues()
674 applyAlpha(mBatteryLevel, values.batteryLevelAlpha); in applyLayoutValues()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java50 private int mBatteryLevel = 100; field in PowerUI
146 final int oldBatteryLevel = mBatteryLevel; in onReceive()
147 mBatteryLevel = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, 100); in onReceive()
160 int bucket = findBatteryLevelBucket(mBatteryLevel); in onReceive()
166 Slog.d(TAG, "level " + oldBatteryLevel + " --> " + mBatteryLevel); in onReceive()
174 mWarnings.update(mBatteryLevel, bucket, mScreenOffTime); in onReceive()
218 pw.println(Integer.toString(mBatteryLevel)); in dump()
237 pw.println(Integer.toString(findBatteryLevelBucket(mBatteryLevel))); in dump()
DPowerNotificationWarnings.java80 private int mBatteryLevel; field in PowerNotificationWarnings
110 mBatteryLevel = batteryLevel; in update()
154 …final String percentage = NumberFormat.getPercentInstance().format((double) mBatteryLevel / 100.0); in showWarningNotification()
212 if (DEBUG) Slog.d(TAG, "dismissing low battery warning: level=" + mBatteryLevel); in dismissLowBatteryWarning()
229 "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/packages/SettingsLib/src/com/android/settingslib/
DBatteryInfo.java36 public int mBatteryLevel; field in BatteryInfo
134 info.mBatteryLevel = Utils.getBatteryLevel(batteryBroadcast); in getBatteryInfo()
135 info.batteryPercentString = Utils.formatPercentage(info.mBatteryLevel); in getBatteryInfo()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java293 private int mBatteryLevel; field in PowerManagerService
1420 mBatteryLevel = mBatteryManagerInternal.getBatteryLevel(); in updateIsPoweredLocked()
1428 + ", mBatteryLevel=" + mBatteryLevel); in updateIsPoweredLocked()
1436 mIsPowered, mPlugType, mBatteryLevel); in updateIsPoweredLocked()
1877 mBatteryLevelWhenDreamStarted = mBatteryLevel; in handleSandman()
1895 && mBatteryLevel < mBatteryLevelWhenDreamStarted in handleSandman()
1905 + "Battery level now: " + mBatteryLevel + "%."); in handleSandman()
1957 && mBatteryLevel < mDreamsBatteryLevelMinimumWhenNotPoweredConfig) { in canDreamLocked()
1962 && mBatteryLevel < mDreamsBatteryLevelMinimumWhenPoweredConfig) { in canDreamLocked()
2741 pw.println(" mBatteryLevel=" + mBatteryLevel); in dumpInternal()
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java133 private int mBatteryLevel; field in MtpDatabase
147 if (newLevel != mBatteryLevel) {
148 mBatteryLevel = newLevel;