/frameworks/base/core/java/android/service/notification/ |
D | ScheduleCalendar.java | 65 public void maybeSetNextAlarm(long now, long nextAlarm) { in maybeSetNextAlarm() argument 68 if (nextAlarm == 0) { in maybeSetNextAlarm() 69 mSchedule.nextAlarm = 0; in maybeSetNextAlarm() 72 if (nextAlarm > now) { in maybeSetNextAlarm() 73 if (mSchedule.nextAlarm == 0 || mSchedule.nextAlarm < now) { in maybeSetNextAlarm() 74 mSchedule.nextAlarm = nextAlarm; in maybeSetNextAlarm() 77 mSchedule.nextAlarm = Math.min(mSchedule.nextAlarm, nextAlarm); in maybeSetNextAlarm() 79 } else if (mSchedule.nextAlarm < now) { in maybeSetNextAlarm() 81 Log.d(TAG, "All alarms are in the past " + mSchedule.nextAlarm); in maybeSetNextAlarm() 83 mSchedule.nextAlarm = 0; in maybeSetNextAlarm() [all …]
|
D | ZenModeConfig.java | 1414 public long nextAlarm; field in ZenModeConfig.ScheduleInfo 1444 rt.nextAlarm = nextAlarm; in copy() 1457 ", nextAlarm=" + ts(nextAlarm) + in toString() 2049 long nextAlarm = getNextAlarm(context); in parseAutomaticRuleEndTime() local 2050 schedule.maybeSetNextAlarm(System.currentTimeMillis(), nextAlarm); in parseAutomaticRuleEndTime() local 2052 return nextAlarm; in parseAutomaticRuleEndTime()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ScheduleCalendarTest.java | 176 mScheduleInfo.nextAlarm = 1000; in testShouldExitForAlarm_settingOff() 185 mScheduleInfo.nextAlarm = 1000; in testShouldExitForAlarm_beforeAlarm() 194 mScheduleInfo.nextAlarm = 0; in testShouldExitForAlarm_noAlarm() 203 mScheduleInfo.nextAlarm = 1000; in testShouldExitForAlarm() 225 mScheduleInfo.nextAlarm = 1000; // very old alarm in testShouldExitForAlarm_oldAlarm() 259 mScheduleInfo.nextAlarm = calAlarm.getTimeInMillis(); // old alarm (5am day 2) in testShouldExitForAlarm_oldAlarmInSchedule() 272 mScheduleInfo.nextAlarm = 0; in testMaybeSetNextAlarm_settingOff() 277 assertEquals(0, mScheduleInfo.nextAlarm); in testMaybeSetNextAlarm_settingOff() 283 mScheduleInfo.nextAlarm = 0; in testMaybeSetNextAlarm_settingOn() 288 assertEquals(2000, mScheduleInfo.nextAlarm); in testMaybeSetNextAlarm_settingOn() [all …]
|
D | ScheduleConditionProviderTest.java | 70 info.nextAlarm = 1000; in testIsValidConditionId() 87 info.nextAlarm = 0; in testEvaluateSubscription_noAlarmExit_InSchedule() 111 info.nextAlarm = 0; in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() 142 info.nextAlarm = 0; in testEvaluateSubscription_noAlarmExit_beforeSchedule() 165 info.nextAlarm = 0; in testEvaluateSubscription_noAlarmExit_endSchedule() 200 assertTrue("" + info.nextAlarm + " " + now.getTimeInMillis(), in testEvaluateSubscription_alarmSetBeforeInSchedule() 229 assertTrue("" + info.nextAlarm + " " + now.getTimeInMillis(), in testEvaluateSubscription_alarmSetInSchedule() 258 assertTrue("" + info.nextAlarm + " " + now.getTimeInMillis(), in testEvaluateSubscription_earlierAlarmSet() 287 assertTrue("" + info.nextAlarm + " " + now.getTimeInMillis(), in testEvaluateSubscription_laterAlarmSet()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/ |
D | EnableZenModeDialog.java | 304 GregorianCalendar nextAlarm = new GregorianCalendar(); in getTimeUntilNextAlarmCondition() local 305 nextAlarm.setTimeInMillis(nextAlarmMs); in getTimeUntilNextAlarmCondition() 306 setToMidnight(nextAlarm); in getTimeUntilNextAlarmCondition() 308 if (weekRange.compareTo(nextAlarm) >= 0) { in getTimeUntilNextAlarmCondition() 473 final long nextAlarm = getNextAlarm(); in computeAlarmWarningText() local 474 if (nextAlarm < now) { in computeAlarmWarningText() 482 if (time > now && nextAlarm < time) { in computeAlarmWarningText() 490 return mContext.getResources().getString(warningRes, getTime(nextAlarm, now)); in computeAlarmWarningText() 494 protected String getTime(long nextAlarm, long now) { in getTime() argument 495 final boolean soon = (nextAlarm - now) < 24 * 60 * 60 * 1000; in getTime() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | NextAlarmController.java | 25 void onNextAlarmChanged(AlarmManager.AlarmClockInfo nextAlarm); in onNextAlarmChanged() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | ZenModePanel.java | 489 final long nextAlarm = mController.getNextAlarm(); in computeAlarmWarningText() local 490 if (nextAlarm < now) { in computeAlarmWarningText() 498 if (time > now && nextAlarm < time) { in computeAlarmWarningText() 505 final boolean soon = (nextAlarm - now) < 24 * 60 * 60 * 1000; in computeAlarmWarningText() 509 final CharSequence formattedTime = DateFormat.format(pattern, nextAlarm); in computeAlarmWarningText() 590 GregorianCalendar nextAlarm = new GregorianCalendar(); 591 nextAlarm.setTimeInMillis(nextAlarmMs); 592 setToMidnight(nextAlarm); 594 if (weekRange.compareTo(nextAlarm) >= 0) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | KeyguardSliceProvider.java | 434 public void onNextAlarmChanged(AlarmManager.AlarmClockInfo nextAlarm) { in onNextAlarmChanged() argument 436 mNextAlarmInfo = nextAlarm; in onNextAlarmChanged()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QuickStatusBarHeader.java | 463 public void onNextAlarmChanged(AlarmManager.AlarmClockInfo nextAlarm) { in onNextAlarmChanged() argument 464 mNextAlarm = nextAlarm; in onNextAlarmChanged()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | PhoneStatusBarPolicy.java | 507 public void onNextAlarmChanged(AlarmManager.AlarmClockInfo nextAlarm) { 508 mNextAlarm = nextAlarm;
|
/frameworks/base/services/core/java/com/android/server/ |
D | AlarmManagerService.java | 3768 for (int nextAlarm = 0; nextAlarm < numAlarms; nextAlarm++) { in recordWakeupAlarms() 3769 Alarm a = b.alarms.get(nextAlarm); in recordWakeupAlarms()
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 68365 Landroid/service/notification/ZenModeConfig$ScheduleInfo;->nextAlarm:J
|