Searched refs:mLastBatteryStateSnapshot (Results 1 – 2 of 2) sorted by relevance
101 @VisibleForTesting BatteryStateSnapshot mLastBatteryStateSnapshot; field in PowerUI272 mLastBatteryStateSnapshot = mCurrentBatteryStateSnapshot; in onReceive()363 maybeShowHybridWarning(mCurrentBatteryStateSnapshot, mLastBatteryStateSnapshot); in maybeShowBatteryWarningV2()365 maybeShowBatteryWarning(mCurrentBatteryStateSnapshot, mLastBatteryStateSnapshot); in maybeShowBatteryWarningV2()372 if (mLastBatteryStateSnapshot == null in refreshEstimateIfNeeded()373 || mLastBatteryStateSnapshot.getTimeRemainingMillis() == NO_ESTIMATE_AVAILABLE in refreshEstimateIfNeeded()374 || mBatteryLevel != mLastBatteryStateSnapshot.getBatteryLevel()) { in refreshEstimateIfNeeded()381 return new Estimate(mLastBatteryStateSnapshot.getTimeRemainingMillis(), in refreshEstimateIfNeeded()382 mLastBatteryStateSnapshot.isBasedOnUsage(), in refreshEstimateIfNeeded()383 mLastBatteryStateSnapshot.getAverageTimeToDischargeMillis()); in refreshEstimateIfNeeded()
544 mPowerUI.mLastBatteryStateSnapshot = snapshot; in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()554 mPowerUI.mLastBatteryStateSnapshot = snapshot; in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()