/frameworks/base/cmds/statsd/src/anomaly/ |
D | AlarmMonitor.cpp | 52 void AlarmMonitor::add(sp<const InternalAlarm> alarm) { in add() argument 54 if (alarm == nullptr) { in add() 58 if (alarm->timestampSec < 1) { in add() 64 VLOG("Adding alarm with time %u", alarm->timestampSec); in add() 65 mPq.push(alarm); in add() 67 alarm->timestampSec + mMinUpdateTimeSec < mRegisteredAlarmTimeSec) { in add() 68 updateRegisteredAlarmTime_l(alarm->timestampSec); in add() 72 void AlarmMonitor::remove(sp<const InternalAlarm> alarm) { in remove() argument 74 if (alarm == nullptr) { in remove() 78 VLOG("Removing alarm with time %u", alarm->timestampSec); in remove() [all …]
|
D | DurationAnomalyTracker.cpp | 52 sp<const InternalAlarm> alarm = new InternalAlarm{timestampSec}; in startAlarm() local 53 mAlarms[dimensionKey] = alarm; in startAlarm() 55 mAlarmMonitor->add(alarm); in startAlarm()
|
D | AlarmMonitor.h | 82 void add(sp<const InternalAlarm> alarm); 89 void remove(sp<const InternalAlarm> alarm);
|
D | AlarmTracker.cpp | 35 const Alarm& alarm, const ConfigKey& configKey, in AlarmTracker() argument 37 : mAlarmConfig(alarm), in AlarmTracker()
|
D | AlarmTracker.h | 39 const Alarm& alarm, const ConfigKey& configKey,
|
/frameworks/base/services/core/java/com/android/server/ |
D | AlarmManagerService.java | 716 boolean add(Alarm alarm) { in add() argument 719 int index = Collections.binarySearch(alarms, alarm, sIncreasingTimeOrder); in add() 723 alarms.add(index, alarm); in add() 724 if (alarm.listener == mTimeTickTrigger) { in add() 728 Slog.v(TAG, "Adding " + alarm + " to " + this); in add() 730 if (alarm.whenElapsed > start) { in add() 731 start = alarm.whenElapsed; in add() 734 if (alarm.maxWhenElapsed < end) { in add() 735 end = alarm.maxWhenElapsed; in add() 737 flags |= alarm.flags; in add() [all …]
|
/frameworks/base/cmds/statsd/tests/e2e/ |
D | Alarm_e2e_test.cpp | 35 auto alarm = config.add_alarm(); in CreateStatsdConfig() local 36 alarm->set_id(123456); in CreateStatsdConfig() 37 alarm->set_offset_millis(TimeUnitToBucketSizeInMillis(TEN_MINUTES)); in CreateStatsdConfig() 38 alarm->set_period_millis(TimeUnitToBucketSizeInMillis(ONE_HOUR)); in CreateStatsdConfig() 40 alarm = config.add_alarm(); in CreateStatsdConfig() 41 alarm->set_id(654321); in CreateStatsdConfig() 42 alarm->set_offset_millis(TimeUnitToBucketSizeInMillis(FIVE_MINUTES)); in CreateStatsdConfig() 43 alarm->set_period_millis(TimeUnitToBucketSizeInMillis(THIRTY_MINUTES)); in CreateStatsdConfig()
|
/frameworks/base/tests/utils/testutils/java/android/app/test/ |
D | TestAlarmManager.java | 69 PendingAlarm alarm = mPendingAlarms.get(i); in dispatch() local 70 if (Objects.equals(tag, alarm.getTag())) { in dispatch() 72 alarm.dispatch(); in dispatch() 84 PendingAlarm alarm = mPendingAlarms.get(i); in isPending() local 85 if (Objects.equals(tag, alarm.getTag())) { in isPending() 98 PendingAlarm alarm = mPendingAlarms.get(i); in getTriggerTimeMillis() local 99 if (Objects.equals(tag, alarm.getTag())) { in getTriggerTimeMillis() 100 return alarm.getTriggerTimeMillis(); in getTriggerTimeMillis() 150 PendingAlarm alarm = alarmItr.next(); in answer() local 151 if (alarm.getCallback() instanceof AlarmListenerRunnable) { in answer() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ScheduleCalendarTest.java | 419 Calendar alarm = getDaylightSavingsDay(); in testIsAlarmInSchedule_alarmAndNowInSchedule_sameScheduleTrigger_daylightSavings() local 420 alarm.set(Calendar.HOUR_OF_DAY, 23); in testIsAlarmInSchedule_alarmAndNowInSchedule_sameScheduleTrigger_daylightSavings() 421 alarm.set(Calendar.MINUTE, 15); in testIsAlarmInSchedule_alarmAndNowInSchedule_sameScheduleTrigger_daylightSavings() 422 alarm.set(Calendar.SECOND, 0); in testIsAlarmInSchedule_alarmAndNowInSchedule_sameScheduleTrigger_daylightSavings() 423 alarm.set(Calendar.MILLISECOND, 0); in testIsAlarmInSchedule_alarmAndNowInSchedule_sameScheduleTrigger_daylightSavings() 444 assertTrue(mScheduleCalendar.isInSchedule(alarm.getTimeInMillis())); in testIsAlarmInSchedule_alarmAndNowInSchedule_sameScheduleTrigger_daylightSavings() 446 assertTrue(mScheduleCalendar.isAlarmInSchedule(alarm.getTimeInMillis(), in testIsAlarmInSchedule_alarmAndNowInSchedule_sameScheduleTrigger_daylightSavings() 452 Calendar alarm = new GregorianCalendar(); in testIsAlarmInSchedule_alarmAndNowInSchedule_sameScheduleTrigger() local 453 alarm.set(Calendar.HOUR_OF_DAY, 23); in testIsAlarmInSchedule_alarmAndNowInSchedule_sameScheduleTrigger() 454 alarm.set(Calendar.MINUTE, 15); in testIsAlarmInSchedule_alarmAndNowInSchedule_sameScheduleTrigger() [all …]
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsStrongAuth.java | 125 StrongAuthTimeoutAlarmListener alarm = mStrongAuthTimeoutAlarmListenerForUser.get(userId); in handleScheduleStrongAuthTimeout() local 126 if (alarm != null) { in handleScheduleStrongAuthTimeout() 127 mAlarmManager.cancel(alarm); in handleScheduleStrongAuthTimeout() 129 alarm = new StrongAuthTimeoutAlarmListener(userId); in handleScheduleStrongAuthTimeout() 130 mStrongAuthTimeoutAlarmListenerForUser.put(userId, alarm); in handleScheduleStrongAuthTimeout() 134 alarm, mHandler); in handleScheduleStrongAuthTimeout()
|
/frameworks/base/cmds/statsd/tests/metrics/ |
D | MaxDurationTracker_test.cpp | 281 sp<const InternalAlarm> alarm = anomalyTracker->mAlarms.begin()->second; in TEST() local 282 EXPECT_EQ((long long)(53ULL * NS_PER_SEC), (long long)(alarm->timestampSec * NS_PER_SEC)); in TEST() 291 alarm = anomalyTracker->mAlarms.begin()->second; in TEST() 292 EXPECT_EQ((long long)(63ULL * NS_PER_SEC), (long long)(alarm->timestampSec * NS_PER_SEC)); in TEST() 346 auto alarm = anomalyTracker->mAlarms.begin()->second; in TEST() local 347 int64_t anomalyFireTimeSec = alarm->timestampSec; in TEST() 354 std::unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> firedAlarms({alarm}); in TEST() 368 alarm = anomalyTracker->mAlarms.begin()->second; in TEST() 369 EXPECT_EQ(refractoryPeriodEndsSec, (long long)(alarm->timestampSec)); in TEST() 375 alarm = anomalyTracker->mAlarms.begin()->second; in TEST() [all …]
|
D | OringDurationTracker_test.cpp | 550 sp<const InternalAlarm> alarm = anomalyTracker->mAlarms.begin()->second; in TEST() local 551 EXPECT_EQ((long long)(55ULL * NS_PER_SEC), (long long)(alarm->timestampSec * NS_PER_SEC)); in TEST() 560 alarm = anomalyTracker->mAlarms.begin()->second; in TEST() 561 EXPECT_EQ((long long)(60ULL * NS_PER_SEC), (long long)(alarm->timestampSec * NS_PER_SEC)); in TEST() 566 alarm = anomalyTracker->mAlarms.begin()->second; in TEST() 567 EXPECT_EQ((long long)(60ULL * NS_PER_SEC), (long long)(alarm->timestampSec * NS_PER_SEC)); in TEST() 572 alarm = anomalyTracker->mAlarms.begin()->second; in TEST() 573 EXPECT_EQ((long long)(60ULL * NS_PER_SEC), (long long)(alarm->timestampSec * NS_PER_SEC)); in TEST() 577 std::unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> firedAlarms({alarm}); in TEST()
|
/frameworks/base/core/proto/android/server/ |
D | alarmmanagerservice.proto | 54 // Can be negative if the non-wakeup alarm time is in the past (non-wakeup 82 // This is a special alarm that will put the system into idle until it goes 122 // alarm, used to determine the earliest we can dispatch the next such alarm. 148 // This is a soft wrapper for alarm clock information. It is not representative 166 // How long until the alarm goes off, in the 'elapsed' timebase. Can be 211 // Minimum futurity of a new alarm. 213 // Minimum alarm recurrence interval. 215 // Direct alarm listener callback timeout. 223 // Maximum alarm recurrence interval. 231 // Tag given to AlarmManager by the app or component scheduling the alarm. [all …]
|
/frameworks/base/cmds/statsd/tests/anomaly/ |
D | AlarmTracker_test.cpp | 39 Alarm alarm; in TEST() local 40 alarm.set_offset_millis(15 * MS_PER_SEC); in TEST() 41 alarm.set_period_millis(60 * 60 * MS_PER_SEC); // 1hr in TEST() 44 AlarmTracker tracker(startMillis, startMillis, alarm, kConfigKey, subscriberAlarmMonitor); in TEST()
|
/frameworks/base/core/java/android/service/notification/ |
D | ScheduleCalendar.java | 142 public boolean isAlarmInSchedule(long alarm, long now) { in isAlarmInSchedule() argument 144 final long start = getTime(alarm, mSchedule.startHour, mSchedule.startMinute); in isAlarmInSchedule() 145 long end = getTime(alarm, mSchedule.endHour, mSchedule.endMinute); in isAlarmInSchedule() 149 return (isInSchedule(-1, alarm, start, end) in isAlarmInSchedule() 151 || (isInSchedule(0, alarm, start, end) in isAlarmInSchedule()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | CountdownConditionProvider.java | 151 final boolean alarm = ZenModeConfig.isValidCountdownToAlarmConditionId(conditionId); in onReceive() 155 notifyCondition(newCondition(time, alarm, Condition.STATE_FALSE)); in onReceive() 161 private static final Condition newCondition(long time, boolean alarm, int state) { in newCondition() argument 162 return new Condition(ZenModeConfig.toCountdownConditionId(time, alarm), in newCondition()
|
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Settings/ |
D | volumes.pfw | 8 /Policy/policy/streams/alarm/applicable_volume_profile/volume_profile = alarm
|
/frameworks/base/services/core/java/com/android/server/trust/ |
D | TrustManagerService.java | 313 TrustTimeoutAlarmListener alarm = mTrustTimeoutAlarmListenerForUser.get(userId); in maybeLockScreen() local 314 if (alarm != null && mSettingsObserver.getTrustAgentsExtendUnlock()) { in maybeLockScreen() 315 mAlarmManager.cancel(alarm); in maybeLockScreen() 316 alarm.setQueued(false /* isQueued */); in maybeLockScreen() 332 TrustTimeoutAlarmListener alarm = mTrustTimeoutAlarmListenerForUser.get(userId); in handleScheduleTrustTimeout() local 335 if (alarm != null) { in handleScheduleTrustTimeout() 336 if (shouldOverride == 0 && alarm.isQueued()) { in handleScheduleTrustTimeout() 340 mAlarmManager.cancel(alarm); in handleScheduleTrustTimeout() 342 alarm = new TrustTimeoutAlarmListener(userId); in handleScheduleTrustTimeout() 343 mTrustTimeoutAlarmListenerForUser.put(userId, alarm); in handleScheduleTrustTimeout() [all …]
|
/frameworks/base/core/proto/android/app/ |
D | alarmmanager.proto | 35 // alarm does not wake the device up; if it goes off while the device is 42 // sleep). This alarm does not wake the device up; if it goes off while the
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | BackgroundRestrictedAlarmsTest.java | 85 alarmsToDeliver, alarm -> alarm.type == RTC_WAKEUP); in runCheckAllPendingAlarms()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | DemoStatusIcons.java | 126 String alarm = args.getString("alarm"); in dispatchDemoCommand() local 127 if (alarm != null) { in dispatchDemoCommand() 128 int iconId = alarm.equals("show") ? R.drawable.stat_sys_alarm in dispatchDemoCommand()
|
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Car/Settings/ |
D | device_for_product_strategies.pfw | 509 component: /Policy/policy/product_strategies/alarm/selected_output_devices/mask 536 /Policy/policy/product_strategies/alarm/device_address = BUS05_ALARM 543 component: /Policy/policy/product_strategies/alarm/selected_output_devices/mask 549 component: /Policy/policy/product_strategies/alarm/selected_output_devices/mask 554 component: /Policy/policy/product_strategies/alarm/selected_output_devices/mask
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | metrics_manager_util.cpp | 669 const Alarm& alarm = config.alarm(i); in initAlarms() local 670 if (alarm.offset_millis() <= 0) { in initAlarms() 674 if (alarm.period_millis() <= 0) { in initAlarms() 678 alarmTrackerMap.insert(std::make_pair(alarm.id(), allAlarmTrackers.size())); in initAlarms() 681 alarm, key, periodicAlarmMonitor)); in initAlarms()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/notification/ |
D | EnableZenModeDialogTest.java | 95 Uri alarm = Condition.newId(mContext).appendPath("alarm").build(); in setup() local 96 mAlarmCondition = new Condition(alarm, "alarm", "", "", 0, 0, 0); in setup()
|
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/CarEmu/Settings/ |
D | device_for_product_strategies.pfw | 467 component: /Policy/policy/product_strategies/alarm/selected_output_devices/mask 495 /Policy/policy/product_strategies/alarm/device_address = BUS00_MEDIA 502 component: /Policy/policy/product_strategies/alarm/selected_output_devices/mask 506 component: /Policy/policy/product_strategies/alarm/selected_output_devices/mask
|