Home
last modified time | relevance | path

Searched refs:Alarm (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/
DAlarmStoreTest.java24 import static com.android.server.alarm.Alarm.EXACT_ALLOW_REASON_NOT_APPLICABLE;
63 private static Alarm createAlarm(long whenElapsed, long windowLength) { in createAlarm()
67 private static Alarm createWakeupAlarm(long whenElapsed, long windowLength, int flags) { in createWakeupAlarm()
71 private static Alarm createAlarmClock(long whenElapsed) { in createAlarmClock()
74 return new Alarm(ELAPSED_REALTIME_WAKEUP, whenElapsed, whenElapsed, 0, 0, in createAlarmClock()
79 private static Alarm createAlarm(int type, long whenElapsed, long windowLength, int flags) { in createAlarm()
80 return new Alarm(type, whenElapsed, whenElapsed, windowLength, 0, mock(PendingIntent.class), in createAlarm()
85 private void addAlarmsToStore(Alarm... alarms) { in addAlarmsToStore()
86 for (Alarm a : alarms) { in addAlarmsToStore()
98 final Alarm a1 = createAlarm(1, 0); in add()
[all …]
DBackgroundRestrictedAlarmsTest.java40 private SparseArray<ArrayList<Alarm>> addPendingAlarm( in addPendingAlarm()
41 SparseArray<ArrayList<Alarm>> all, int uid, String name, boolean removeIt) { in addPendingAlarm()
42 ArrayList<Alarm> uidAlarms = all.get(uid); in addPendingAlarm()
46 uidAlarms.add(new Alarm( in addPendingAlarm()
52 private static String toString(SparseArray<ArrayList<Alarm>> pendingAlarms) { in toString()
68 private static String toString(ArrayList<Alarm> alarms) { in toString()
74 for (Alarm a : alarms) { in toString()
83 SparseArray<ArrayList<Alarm>> pending, ArrayList<Alarm> alarmsToDeliver) { in runCheckAllPendingAlarms()
91 SparseArray<ArrayList<Alarm>> pending = new SparseArray<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_empty()
93 final ArrayList<Alarm> alarmsToDeliver = new ArrayList<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_empty()
[all …]
DAlarmTest.java27 import static com.android.server.alarm.Alarm.APP_STANDBY_POLICY_INDEX;
28 import static com.android.server.alarm.Alarm.NUM_POLICIES;
29 import static com.android.server.alarm.Alarm.REQUESTER_POLICY_INDEX;
55 private Alarm createDefaultAlarm(long requestedElapsed, long windowLength, int flags) { in createDefaultAlarm()
56 return new Alarm(ELAPSED_REALTIME, 0, requestedElapsed, windowLength, 0, in createDefaultAlarm()
61 private Alarm createAlarmClock(long requestedRtc) { in createAlarmClock()
63 return new Alarm(RTC_WAKEUP, requestedRtc, requestedRtc, 0, 0, createAlarmSender(), in createAlarmClock()
77 final Alarm a = createDefaultAlarm(4567, 2, 0); in initSetsOnlyRequesterPolicy()
112 final Alarm a = createDefaultAlarm(0, 0, 0); in whenElapsed()
130 final Alarm a = createDefaultAlarm(10, 12, 0); in maxWhenElapsed()
[all …]
DAlarmManagerServiceTest.java54 import static com.android.server.alarm.Alarm.EXACT_ALLOW_REASON_ALLOW_LIST;
55 import static com.android.server.alarm.Alarm.EXACT_ALLOW_REASON_COMPAT;
56 import static com.android.server.alarm.Alarm.EXACT_ALLOW_REASON_NOT_APPLICABLE;
57 import static com.android.server.alarm.Alarm.EXACT_ALLOW_REASON_PERMISSION;
1108 final SparseArray<ArrayList<Alarm>> restrictedAlarms = in testAlarmRestrictedByFAS()
2007 ArgumentCaptor<ArrayList<Alarm>> listCaptor = ArgumentCaptor.forClass(ArrayList.class); in dispatchOrder()
2009 final ArrayList<Alarm> deliveryList = listCaptor.getValue(); in dispatchOrder()
2459 final Alarm a = mService.mAlarmStore.remove(unused -> true).get(0); in minWindowChangeEnabled()
2471 final Alarm a = mService.mAlarmStore.remove(unused -> true).get(0); in minWindowChangeEnabled()
2481 final Alarm a = mService.mAlarmStore.remove(unused -> true).get(0); in minWindowChangeEnabled()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/
DLazyAlarmStore.java45 private final ArrayList<Alarm> mAlarms = new ArrayList<>();
61 private static final Comparator<Alarm> sDecreasingTimeOrder = Comparator.comparingLong(
62 Alarm::getWhenElapsed).reversed();
65 public void add(Alarm a) { in add()
74 public void addAll(ArrayList<Alarm> alarms) { in addAll()
83 public ArrayList<Alarm> remove(Predicate<Alarm> whichAlarms) { in remove()
84 final ArrayList<Alarm> removedAlarms = new ArrayList<>(); in remove()
87 final Alarm removed = mAlarms.remove(i); in remove()
108 public Alarm getNextWakeFromIdleAlarm() { in getNextWakeFromIdleAlarm()
110 final Alarm alarm = mAlarms.get(i); in getNextWakeFromIdleAlarm()
[all …]
DAlarmStore.java40 void add(Alarm a); in add()
47 void addAll(ArrayList<Alarm> alarms); in addAll()
55 ArrayList<Alarm> remove(Predicate<Alarm> whichAlarms); in remove()
70 Alarm getNextWakeFromIdleAlarm(); in getNextWakeFromIdleAlarm()
99 ArrayList<Alarm> removePendingAlarms(long nowElapsed); in removePendingAlarms()
112 ArrayList<Alarm> asList(); in asList()
144 int getCount(Predicate<Alarm> condition); in getCount()
158 boolean updateAlarmDelivery(Alarm a); in updateAlarmDelivery()
DBatchingAlarmStore.java62 private static final Comparator<Alarm> sIncreasingTimeOrder = Comparator.comparingLong(
63 Alarm::getWhenElapsed);
66 public void add(Alarm a) { in add()
72 public void addAll(ArrayList<Alarm> alarms) { in addAll()
76 for (final Alarm a : alarms) { in addAll()
82 public ArrayList<Alarm> remove(Predicate<Alarm> whichAlarms) { in remove()
83 final ArrayList<Alarm> removed = new ArrayList<>(); in remove()
105 public Alarm getNextWakeFromIdleAlarm() { in getNextWakeFromIdleAlarm()
111 final Alarm a = batch.get(i); in getNextWakeFromIdleAlarm()
156 public ArrayList<Alarm> removePendingAlarms(long nowElapsed) { in removePendingAlarms()
[all …]
DMetricsHelper.java86 case Alarm.EXACT_ALLOW_REASON_ALLOW_LIST: in reasonToStatsReason()
88 case Alarm.EXACT_ALLOW_REASON_PERMISSION: in reasonToStatsReason()
90 case Alarm.EXACT_ALLOW_REASON_COMPAT: in reasonToStatsReason()
97 static void pushAlarmScheduled(Alarm a, int callerProcState) { in pushAlarmScheduled()
DAlarmManagerService.java40 import static com.android.server.alarm.Alarm.APP_STANDBY_POLICY_INDEX;
41 import static com.android.server.alarm.Alarm.BATTERY_SAVER_POLICY_INDEX;
42 import static com.android.server.alarm.Alarm.DEVICE_IDLE_POLICY_INDEX;
43 import static com.android.server.alarm.Alarm.EXACT_ALLOW_REASON_ALLOW_LIST;
44 import static com.android.server.alarm.Alarm.EXACT_ALLOW_REASON_COMPAT;
45 import static com.android.server.alarm.Alarm.EXACT_ALLOW_REASON_NOT_APPLICABLE;
46 import static com.android.server.alarm.Alarm.EXACT_ALLOW_REASON_PERMISSION;
47 import static com.android.server.alarm.Alarm.REQUESTER_POLICY_INDEX;
233 SparseArray<ArrayList<Alarm>> mPendingBackgroundAlarms = new SparseArray<>();
252 ArrayList<Alarm> mPendingNonWakeupAlarms = new ArrayList<>();
[all …]
DAlarm.java44 class Alarm { class
117 Alarm(int type, long when, long requestedWhenElapsed, long windowLength, long interval, in Alarm() method in Alarm
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DFakeAlarmHelper.java27 private static class Alarm { class in FakeAlarmHelper
31 Alarm(long delayMs, OnAlarmListener listener) { in Alarm() method in FakeAlarmHelper.Alarm
37 private final ArrayList<Alarm> mAlarms = new ArrayList<>();
42 mAlarms.add(new Alarm(delayMs, listener)); in setDelayedAlarmInternal()
51 Iterator<Alarm> it = mAlarms.iterator(); in incrementAlarmTime()
53 Alarm alarm = it.next(); in incrementAlarmTime()
/frameworks/base/core/proto/android/app/
Dalarmmanager.proto31 // Alarm time in System.currentTimeMillis() (wall clock time in UTC), which
34 // Alarm time in System.currentTimeMillis() (wall clock time in UTC). This
38 // Alarm time in SystemClock.elapsedRealtime() (time since boot, including
41 // Alarm time in SystemClock.elapsedRealtime() (time since boot, including
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DOWNERS1 per-file *Alarm* = file:/apex/jobscheduler/OWNERS
/frameworks/base/services/tests/servicestests/src/com/android/server/
DOWNERS1 per-file *Alarm* = file:/apex/jobscheduler/OWNERS
/frameworks/base/core/proto/android/util/
Dquotatracker.proto43 message Alarm { message
51 repeated Alarm alarms = 2;
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Settings/
Dstrategy_for_usage.pfw24 # In case of Ring or Alarm stream type active, switching to sonification
/frameworks/base/core/java/android/app/
DOWNERS36 # Alarm
37 per-file *Alarm* = file:/apex/jobscheduler/OWNERS
/frameworks/base/services/core/java/com/android/server/
DOWNERS19 per-file *Alarm* = file:/apex/jobscheduler/OWNERS
/frameworks/base/services/core/java/com/android/server/utils/quota/
DQuotaTracker.java613 uptc.dumpDebug(proto, QuotaTrackerProto.InQuotaAlarmListener.Alarm.UPTC); in dumpLocked()
614 proto.write(QuotaTrackerProto.InQuotaAlarmListener.Alarm.IN_QUOTA_TIME_ELAPSED, in dumpLocked()
/frameworks/base/core/proto/android/providers/settings/
Dsystem.proto34 message Alarm { message
41 optional Alarm alarm = 3;
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/CarEmu/Settings/
Ddevice_for_product_strategies.pfw464 supDomain: Alarm
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Car/Settings/
Ddevice_for_product_strategies.pfw506 supDomain: Alarm
/frameworks/base/core/proto/android/server/alarm/
Dalarmmanagerservice.proto163 // A com.android.server.AlarmManagerService.Alarm object.
/frameworks/base/core/proto/android/server/
Djobscheduler.proto752 message Alarm { message
760 repeated Alarm alarms = 2;
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DQuotaController.java2937 StateControllerProto.QuotaController.InQuotaAlarmListener.Alarm.PKG);
2939 … StateControllerProto.QuotaController.InQuotaAlarmListener.Alarm.IN_QUOTA_TIME_ELAPSED,

12