Searched refs:oldPlugged (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/ |
D | PowerUI.java | 219 final boolean oldPlugged = oldPlugType != 0; in onReceive() 233 Slog.d(TAG, "plugged " + oldPlugged + " --> " + plugged); in onReceive() 250 maybeShowBatteryWarning(plugged, oldPlugged, oldBucket, bucket); in onReceive() 265 protected void maybeShowBatteryWarning(boolean plugged, boolean oldPlugged, int oldBucket, in maybeShowBatteryWarning() argument 269 final boolean playSound = bucket != oldBucket || oldPlugged; in maybeShowBatteryWarning() 291 if (shouldShowLowBatteryWarning(plugged, oldPlugged, oldBucket, bucket, in maybeShowBatteryWarning() 314 boolean shouldShowLowBatteryWarning(boolean plugged, boolean oldPlugged, int oldBucket, in shouldShowLowBatteryWarning() argument 323 && (((bucket < oldBucket || oldPlugged) && bucket < 0)) in shouldShowLowBatteryWarning()
|
/frameworks/base/services/core/java/com/android/server/ |
D | BatteryService.java | 346 final boolean oldPlugged = mLastPlugType != BATTERY_PLUGGED_NONE; in shouldSendBatteryLowLocked() 357 && (oldPlugged || mLastBatteryLevel > mLowBatteryWarningLevel); in shouldSendBatteryLowLocked()
|