/frameworks/base/core/java/android/service/notification/ |
D | ScheduleCalendar.java | 66 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 …]
|
D | ZenModeConfig.java | 2270 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/ |
D | FakeNextAlarmController.java | 39 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/ |
D | ShadeHeaderClockRepository.kt | 31 NextAlarmController.NextAlarmChangeCallback { nextAlarm -> in <lambda>() method 32 nextAlarmIntent = nextAlarm?.showIntent in <lambda>()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ScheduleCalendarTest.java | 290 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 …]
|
D | ScheduleConditionProviderTest.java | 74 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/ |
D | EnableZenModeDialog.java | 331 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/ |
D | NextAlarmController.java | 25 void onNextAlarmChanged(AlarmManager.AlarmClockInfo nextAlarm); in onNextAlarmChanged() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | AlarmTile.kt | 61 private val callback = NextAlarmController.NextAlarmChangeCallback { nextAlarm -> in <lambda>() method 62 lastAlarmInfo = nextAlarm in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | KeyguardSliceProvider.java | 452 public void onNextAlarmChanged(AlarmManager.AlarmClockInfo nextAlarm) { in onNextAlarmChanged() argument 454 mNextAlarmInfo = nextAlarm; in onNextAlarmChanged()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/ |
D | ShadeHeaderController.kt | 296 NextAlarmController.NextAlarmChangeCallback { nextAlarm -> in <lambda>() method 297 nextAlarmIntent = nextAlarm?.showIntent in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/statusbar/ui/ |
D | AmbientStatusBarViewController.java | 110 nextAlarm -> updateAlarmStatusIcon();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | PhoneStatusBarPolicy.java | 621 public void onNextAlarmChanged(AlarmManager.AlarmClockInfo nextAlarm) { 622 mNextAlarm = nextAlarm;
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | BatteryStatsImpl.java | 14762 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/ |
D | hiddenapi-max-target-o.txt | 49241 Landroid/service/notification/ZenModeConfig$ScheduleInfo;->nextAlarm:J
|