Searched refs:mLastBatteryStateSnapshot (Results 1 – 2 of 2) sorted by relevance
107 @VisibleForTesting BatteryStateSnapshot mLastBatteryStateSnapshot; field in PowerUI327 mLastBatteryStateSnapshot = mCurrentBatteryStateSnapshot; in onReceive()411 maybeShowHybridWarning(mCurrentBatteryStateSnapshot, mLastBatteryStateSnapshot); in maybeShowBatteryWarningV2()417 if (mLastBatteryStateSnapshot == null in refreshEstimateIfNeeded()418 || mLastBatteryStateSnapshot.getTimeRemainingMillis() == NO_ESTIMATE_AVAILABLE in refreshEstimateIfNeeded()419 || mBatteryLevel != mLastBatteryStateSnapshot.getBatteryLevel()) { in refreshEstimateIfNeeded()426 return new Estimate(mLastBatteryStateSnapshot.getTimeRemainingMillis(), in refreshEstimateIfNeeded()427 mLastBatteryStateSnapshot.isBasedOnUsage(), in refreshEstimateIfNeeded()428 mLastBatteryStateSnapshot.getAverageTimeToDischargeMillis()); in refreshEstimateIfNeeded()
552 mPowerUI.mLastBatteryStateSnapshot = snapshot; in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()562 mPowerUI.mLastBatteryStateSnapshot = snapshot; in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()