Home
last modified time | relevance | path

Searched refs:mBatteryStatus (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsResetTest.java64 private int mBatteryStatus; field in BatteryStatsResetTest
102 mBatteryStatus = BatteryManager.BATTERY_STATUS_FULL; in setUp()
309 mBatteryStatus = BatteryManager.BATTERY_STATUS_DISCHARGING; in dischargeToLevel()
318 mBatteryStatus = BatteryManager.BATTERY_STATUS_CHARGING; in chargeToLevel()
320 if (level >= 100) mBatteryStatus = BatteryManager.BATTERY_STATUS_FULL; in chargeToLevel()
351 mBatteryStatsImpl.setBatteryStateLocked(mBatteryStatus, mBatteryHealth, mBatteryPlugType, in updateBatteryState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerUITest.java414 state.mBatteryStatus = BatteryManager.BATTERY_STATUS_UNKNOWN; in testShouldShowHybridWarning_lowLevelWarning()
418 state.mBatteryStatus = BatteryManager.BATTERY_HEALTH_GOOD; in testShouldShowHybridWarning_lowLevelWarning()
473 state.mBatteryStatus = BatteryManager.BATTERY_STATUS_UNKNOWN; in testShouldShowHybridWarning_severeLevelWarning()
477 state.mBatteryStatus = BatteryManager.BATTERY_HEALTH_GOOD; in testShouldShowHybridWarning_severeLevelWarning()
604 state.mBatteryStatus = BatteryManager.BATTERY_STATUS_UNKNOWN; in testShouldShowStandardWarning()
608 state.mBatteryStatus = BatteryManager.BATTERY_HEALTH_GOOD; in testShouldShowStandardWarning()
725 public int mBatteryStatus = BatteryManager.BATTERY_HEALTH_GOOD; field in PowerUITest.BatteryStateSnapshotWrapper
735 mBatteryStatus, mSevereLevelThreshold, mLowLevelThreshold, in get()
740 mBatteryStatus, mSevereLevelThreshold, mLowLevelThreshold); in get()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java111 @VisibleForTesting int mBatteryStatus = BatteryManager.BATTERY_STATUS_UNKNOWN; field in PowerUI
320 final int oldBatteryStatus = mBatteryStatus; in onReceive()
321 mBatteryStatus = intent.getIntExtra(BatteryManager.EXTRA_STATUS, in onReceive()
340 Slog.d(TAG, "status " + oldBatteryStatus + " --> " + mBatteryStatus); in onReceive()
395 plugged, bucket, mBatteryStatus, mLowBatteryReminderLevels[1], in maybeShowBatteryWarningV2()
406 plugged, bucket, mBatteryStatus, mLowBatteryReminderLevels[1], in maybeShowBatteryWarningV2()
665 pw.println(Integer.toString(mBatteryStatus)); in dump()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardUpdateMonitor.java337 BatteryStatus mBatteryStatus; field in KeyguardUpdateMonitor
2349 mBatteryStatus = new BatteryStatus(BATTERY_STATUS_UNKNOWN, /* level= */ 100, /* plugged= */ in start()
3256 final boolean batteryUpdateInteresting = isBatteryUpdateInteresting(mBatteryStatus, status); in handleBatteryUpdate()
3257 mBatteryStatus = status; in handleBatteryUpdate()
3259 mLogger.logHandleBatteryUpdate(mBatteryStatus); in handleBatteryUpdate()
3589 callback.onRefreshBatteryInfo(mBatteryStatus); in sendUpdates()
/frameworks/base/services/core/java/com/android/server/power/stats/
DBatteryStatsImpl.java937 private int mBatteryStatus; field in BatteryStatsImpl
15029 mBatteryStatus = status;
15041 int oldStatus = mBatteryStatus;
15059 mBatteryStatus = status;
15092 if (mBatteryStatus != status) {
15093 mBatteryStatus = status;
15192 mHistory.setBatteryState(mBatteryStatus, mBatteryLevel, mBatteryHealth,
15224 if (!mHaveBatteryLevel || mBatteryStatus != status) {
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardUpdateMonitorTest.java440 assertThat(mKeyguardUpdateMonitor.mBatteryStatus).isNotNull(); in testInitialBatteryLevelRequested()