Searched refs:REQUESTER_POLICY_INDEX (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/ |
D | AlarmTest.java | 29 import static com.android.server.alarm.Alarm.REQUESTER_POLICY_INDEX; 80 if (i == REQUESTER_POLICY_INDEX) { in initSetsOnlyRequesterPolicy() 133 a.setPolicyElapsed(REQUESTER_POLICY_INDEX, 15); in maxWhenElapsed() 136 a.setPolicyElapsed(REQUESTER_POLICY_INDEX, 2); in maxWhenElapsed() 140 if (i == REQUESTER_POLICY_INDEX) { in maxWhenElapsed() 156 assertTrue(exactAlarm.setPolicyElapsed(REQUESTER_POLICY_INDEX, 4)); in setPolicyElapsedExact() 159 assertFalse(exactAlarm.setPolicyElapsed(REQUESTER_POLICY_INDEX, 8)); in setPolicyElapsedExact() 160 assertFalse(exactAlarm.setPolicyElapsed(REQUESTER_POLICY_INDEX, 10)); in setPolicyElapsedExact() 163 assertTrue(exactAlarm.setPolicyElapsed(REQUESTER_POLICY_INDEX, 7)); in setPolicyElapsedExact() 171 assertTrue(inexactAlarm.setPolicyElapsed(REQUESTER_POLICY_INDEX, 4)); in setPolicyElapsedInexact() [all …]
|
D | AlarmStoreTest.java | 225 a.setPolicyElapsed(Alarm.REQUESTER_POLICY_INDEX, a.getWhenElapsed() + 3); in updateAlarmDeliveries() 231 a.setPolicyElapsed(Alarm.REQUESTER_POLICY_INDEX, 20 - a.getWhenElapsed()); in updateAlarmDeliveries()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/ |
D | Alarm.java | 51 public static final int REQUESTER_POLICY_INDEX = 0; field in Alarm 126 mPolicyWhenElapsed[REQUESTER_POLICY_INDEX] = requestedWhenElapsed; in Alarm() 178 return mPolicyWhenElapsed[REQUESTER_POLICY_INDEX]; in getRequestedElapsed() 224 mPolicyWhenElapsed[REQUESTER_POLICY_INDEX] + windowLength); in updateWhenElapsed() 249 case REQUESTER_POLICY_INDEX: in policyIndexToString()
|
D | AlarmManagerService.java | 47 import static com.android.server.alarm.Alarm.REQUESTER_POLICY_INDEX; 1285 return a.setPolicyElapsed(REQUESTER_POLICY_INDEX, convertToElapsed(a.origWhen, a.type)); in restoreRequestedTime() 2112 alarm.setPolicyElapsed(REQUESTER_POLICY_INDEX, nowElapsed); in adjustIdleUntilTime() 2117 alarm.setPolicyElapsed(REQUESTER_POLICY_INDEX, upcomingWakeFromIdle - fuzz); in adjustIdleUntilTime()
|