Home
last modified time | relevance | path

Searched refs:nextAlarm (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/core/java/android/service/notification/
DScheduleCalendar.java66 public void maybeSetNextAlarm(long now, long nextAlarm) { in maybeSetNextAlarm() argument
68 if (nextAlarm == 0) { in maybeSetNextAlarm()
70 mSchedule.nextAlarm = 0; in maybeSetNextAlarm()
71 } else if (nextAlarm > now) { in maybeSetNextAlarm()
73 mSchedule.nextAlarm = nextAlarm; in maybeSetNextAlarm()
74 } else if (mSchedule.nextAlarm < now) { in maybeSetNextAlarm()
76 Log.d(TAG, "All alarms are in the past " + mSchedule.nextAlarm); in maybeSetNextAlarm()
78 mSchedule.nextAlarm = 0; in maybeSetNextAlarm()
165 && mSchedule.nextAlarm != 0 in shouldExitForAlarm()
166 && time >= mSchedule.nextAlarm in shouldExitForAlarm()
[all …]
DZenModeConfig.java2270 public long nextAlarm; field in ZenModeConfig.ScheduleInfo
2300 rt.nextAlarm = nextAlarm; in copy()
2313 ", nextAlarm=" + ts(nextAlarm) + in toString()
2947 long nextAlarm = getNextAlarm(context); in parseAutomaticRuleEndTime() local
2948 schedule.maybeSetNextAlarm(System.currentTimeMillis(), nextAlarm); in parseAutomaticRuleEndTime() local
2950 return nextAlarm; in parseAutomaticRuleEndTime()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/
DFakeNextAlarmController.java39 public void setNextAlarm(AlarmManager.AlarmClockInfo nextAlarm) { in setNextAlarm() argument
40 this.mNextAlarm = nextAlarm; in setNextAlarm()
42 callback.onNextAlarmChanged(nextAlarm); in setNextAlarm()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/data/repository/
DShadeHeaderClockRepository.kt31 NextAlarmController.NextAlarmChangeCallback { nextAlarm -> in <lambda>() method
32 nextAlarmIntent = nextAlarm?.showIntent in <lambda>()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DScheduleCalendarTest.java290 mScheduleInfo.nextAlarm = 1000; in testShouldExitForAlarm_settingOff()
299 mScheduleInfo.nextAlarm = 1000; in testShouldExitForAlarm_beforeAlarm()
308 mScheduleInfo.nextAlarm = 0; in testShouldExitForAlarm_noAlarm()
317 mScheduleInfo.nextAlarm = 1000; in testShouldExitForAlarm()
339 mScheduleInfo.nextAlarm = 1000; // very old alarm in testShouldExitForAlarm_oldAlarm()
373 mScheduleInfo.nextAlarm = calAlarm.getTimeInMillis(); // old alarm (5am day 2) in testShouldExitForAlarm_oldAlarmInSchedule()
386 mScheduleInfo.nextAlarm = 0; in testMaybeSetNextAlarm_settingOff()
391 assertEquals(0, mScheduleInfo.nextAlarm); in testMaybeSetNextAlarm_settingOff()
397 mScheduleInfo.nextAlarm = 0; in testMaybeSetNextAlarm_settingOn()
402 assertEquals(2000, mScheduleInfo.nextAlarm); in testMaybeSetNextAlarm_settingOn()
[all …]
DScheduleConditionProviderTest.java74 info.nextAlarm = 1000; in testIsValidConditionId()
91 info.nextAlarm = 0; in testEvaluateSubscription_noAlarmExit_InSchedule()
115 info.nextAlarm = 0; in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed()
146 info.nextAlarm = 0; in testEvaluateSubscription_noAlarmExit_beforeSchedule()
169 info.nextAlarm = 0; in testEvaluateSubscription_noAlarmExit_endSchedule()
204 assertTrue("" + info.nextAlarm + " " + now.getTimeInMillis(), in testEvaluateSubscription_alarmSetBeforeInSchedule()
233 assertTrue("" + info.nextAlarm + " " + now.getTimeInMillis(), in testEvaluateSubscription_alarmSetInSchedule()
262 assertTrue("" + info.nextAlarm + " " + now.getTimeInMillis(), in testEvaluateSubscription_earlierAlarmSet()
291 assertTrue("" + info.nextAlarm + " " + now.getTimeInMillis(), in testEvaluateSubscription_laterAlarmSet()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
DEnableZenModeDialog.java331 GregorianCalendar nextAlarm = new GregorianCalendar(); in getTimeUntilNextAlarmCondition() local
332 nextAlarm.setTimeInMillis(nextAlarmMs); in getTimeUntilNextAlarmCondition()
333 setToMidnight(nextAlarm); in getTimeUntilNextAlarmCondition()
335 if (weekRange.compareTo(nextAlarm) >= 0) { in getTimeUntilNextAlarmCondition()
501 final long nextAlarm = getNextAlarm(); in computeAlarmWarningText() local
502 if (nextAlarm < now) { in computeAlarmWarningText()
510 if (time > now && nextAlarm < time) { in computeAlarmWarningText()
518 return mContext.getResources().getString(warningRes, getTime(nextAlarm, now)); in computeAlarmWarningText()
522 protected String getTime(long nextAlarm, long now) { in getTime() argument
523 final boolean soon = (nextAlarm - now) < 24 * 60 * 60 * 1000; in getTime()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNextAlarmController.java25 void onNextAlarmChanged(AlarmManager.AlarmClockInfo nextAlarm); in onNextAlarmChanged() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DAlarmTile.kt61 private val callback = NextAlarmController.NextAlarmChangeCallback { nextAlarm -> in <lambda>() method
62 lastAlarmInfo = nextAlarm in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardSliceProvider.java452 public void onNextAlarmChanged(AlarmManager.AlarmClockInfo nextAlarm) { in onNextAlarmChanged() argument
454 mNextAlarmInfo = nextAlarm; in onNextAlarmChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DShadeHeaderController.kt296 NextAlarmController.NextAlarmChangeCallback { nextAlarm -> in <lambda>() method
297 nextAlarmIntent = nextAlarm?.showIntent in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/statusbar/ui/
DAmbientStatusBarViewController.java110 nextAlarm -> updateAlarmStatusIcon();
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarPolicy.java621 public void onNextAlarmChanged(AlarmManager.AlarmClockInfo nextAlarm) {
622 mNextAlarm = nextAlarm;
/frameworks/base/services/core/java/com/android/server/power/stats/
DBatteryStatsImpl.java14762 Calendar nextAlarm = Calendar.getInstance();
14763 nextAlarm.setTimeInMillis(timeoutMs);
14769 nextAlarm.set(Calendar.MILLISECOND, 0);
14770 nextAlarm.set(Calendar.SECOND, 0);
14771 nextAlarm.set(Calendar.MINUTE, 0);
14772 nextAlarm.set(Calendar.HOUR_OF_DAY, 2);
14773 long possibleNextTimeMs = nextAlarm.getTimeInMillis();
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt49241 Landroid/service/notification/ZenModeConfig$ScheduleInfo;->nextAlarm:J