diff options
author | Julia Reynolds <juliacr@google.com> | 2016-04-27 12:59:03 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2016-04-27 12:59:05 +0000 |
commit | 9fa8b54589b68dc6da3a7201cad1fc43e01e59e3 (patch) | |
tree | 022787011f04475513f5aa5bea3f52cb4ac90ad8 | |
parent | 074e23c37b841065eefc26a79175fb3140bdc998 (diff) | |
parent | 7f73308f50791740beb380fecc17903301054ad3 (diff) |
Merge "More bugreport logging for scheduleconditionprovider." into nyc-dev
3 files changed, 17 insertions, 1 deletions
diff --git a/core/java/android/service/notification/ZenModeConfig.java b/core/java/android/service/notification/ZenModeConfig.java index 3e25edbaba6e..6911b0161704 100644 --- a/core/java/android/service/notification/ZenModeConfig.java +++ b/core/java/android/service/notification/ZenModeConfig.java @@ -40,6 +40,7 @@ import org.xmlpull.v1.XmlSerializer; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.Calendar; import java.util.GregorianCalendar; import java.util.Locale; @@ -878,6 +879,19 @@ public class ZenModeConfig implements Parcelable { rt.nextAlarm = nextAlarm; return rt; } + + @Override + public String toString() { + return "ScheduleInfo{" + + "days=" + Arrays.toString(days) + + ", startHour=" + startHour + + ", startMinute=" + startMinute + + ", endHour=" + endHour + + ", endMinute=" + endMinute + + ", exitAtAlarm=" + exitAtAlarm + + ", nextAlarm=" + nextAlarm + + '}'; + } } // ==== Built-in system condition: event ==== diff --git a/services/core/java/com/android/server/notification/ScheduleCalendar.java b/services/core/java/com/android/server/notification/ScheduleCalendar.java index 4c57c1dc0e94..9267d8229e16 100644 --- a/services/core/java/com/android/server/notification/ScheduleCalendar.java +++ b/services/core/java/com/android/server/notification/ScheduleCalendar.java @@ -31,7 +31,7 @@ public class ScheduleCalendar { @Override public String toString() { - return "ScheduleCalendar[mDays=" + mDays + "]"; + return "ScheduleCalendar[mDays=" + mDays + ", mSchedule=" + mSchedule + "]"; } public void setSchedule(ScheduleInfo schedule) { diff --git a/services/core/java/com/android/server/notification/ScheduleConditionProvider.java b/services/core/java/com/android/server/notification/ScheduleConditionProvider.java index 8d0ad96be44e..15a63ec6875b 100644 --- a/services/core/java/com/android/server/notification/ScheduleConditionProvider.java +++ b/services/core/java/com/android/server/notification/ScheduleConditionProvider.java @@ -86,6 +86,8 @@ public class ScheduleConditionProvider extends SystemConditionProviderService { pw.print(" "); pw.print(meetsSchedule(mSubscriptions.get(conditionId), now) ? "* " : " "); pw.println(conditionId); + pw.print(" "); + pw.println(mSubscriptions.get(conditionId).toString()); } dumpUpcomingTime(pw, "mNextAlarmTime", mNextAlarmTime, now); } |