summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/power
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2014-06-16 13:32:48 -0400
committerJohn Spurlock <jspurlock@google.com>2014-06-16 13:32:48 -0400
commit3ff2de64f4b84ef60eba4fb3b23eef80ea841cdd (patch)
tree49009a575445938410def640215ac1b928fd2bd7 /packages/SystemUI/src/com/android/systemui/power
parent97df96d8ebabd437db6a7691b8260bd51cf7f8d5 (diff)
downloadframeworks_base-3ff2de64f4b84ef60eba4fb3b23eef80ea841cdd.zip
frameworks_base-3ff2de64f4b84ef60eba4fb3b23eef80ea841cdd.tar.gz
frameworks_base-3ff2de64f4b84ef60eba4fb3b23eef80ea841cdd.tar.bz2
PowerUI: Dial down logging.
Only log notification dismissals on state changes. Bug:15611493 Change-Id: Id304f7aed58e3584235513677abe97dd85595009
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/power')
-rw-r--r--packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java b/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java
index e8f3745..c3ba349 100644
--- a/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java
+++ b/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java
@@ -126,7 +126,7 @@ public class PowerNotificationWarnings implements PowerUI.WarningsUI {
}
private void updateNotification() {
- Slog.d(TAG, "updateNotification mWarning=" + mWarning
+ if (DEBUG) Slog.d(TAG, "updateNotification mWarning=" + mWarning
+ " mSaver=" + mSaver + " mInvalidCharger=" + mInvalidCharger);
if (mInvalidCharger) {
showInvalidChargerNotification();
@@ -238,13 +238,13 @@ public class PowerNotificationWarnings implements PowerUI.WarningsUI {
@Override
public void dismissLowBatteryWarning() {
- Slog.i(TAG, "dismissing low battery warning: level=" + mBatteryLevel);
+ if (DEBUG) Slog.d(TAG, "dismissing low battery warning: level=" + mBatteryLevel);
dismissLowBatteryNotification();
mFallbackDialogs.dismissLowBatteryWarning();
}
private void dismissLowBatteryNotification() {
- Slog.i(TAG, "dismissing low battery notification");
+ if (mWarning) Slog.i(TAG, "dismissing low battery notification");
mWarning = false;
updateNotification();
}
@@ -307,7 +307,7 @@ public class PowerNotificationWarnings implements PowerUI.WarningsUI {
}
private void dismissInvalidChargerNotification() {
- Slog.i(TAG, "dismissing invalid charger notification");
+ if (mInvalidCharger) Slog.i(TAG, "dismissing invalid charger notification");
mInvalidCharger = false;
updateNotification();
}