/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | MockAlarmManager.java | 26 import android.app.AlarmManager; 45 private final AlarmManager mAlarmManager; 51 mAlarmManager = mock(AlarmManager.class); in MockAlarmManager() 53 any(AlarmManager.OnAlarmListener.class), any(Handler.class)); in MockAlarmManager() 55 anyString(), any(AlarmManager.OnAlarmListener.class), any(Handler.class)); in MockAlarmManager() 57 .when(mAlarmManager).cancel(any(AlarmManager.OnAlarmListener.class)); in MockAlarmManager() 60 public AlarmManager getAlarmManager() { in getAlarmManager() 141 AlarmManager.OnAlarmListener listener, Handler handler) { in answer() 148 public void answer(AlarmManager.OnAlarmListener listener) { in answer() 164 private final AlarmManager.OnAlarmListener mListener; [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | NextAlarmController.java | 19 import android.app.AlarmManager; 34 private AlarmManager mAlarmManager; 35 private AlarmManager.AlarmClockInfo mNextAlarm; 38 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in NextAlarmController() 41 filter.addAction(AlarmManager.ACTION_NEXT_ALARM_CLOCK_CHANGED); in NextAlarmController() 63 || action.equals(AlarmManager.ACTION_NEXT_ALARM_CLOCK_CHANGED)) { in onReceive() 81 void onNextAlarmChanged(AlarmManager.AlarmClockInfo nextAlarm); in onNextAlarmChanged()
|
D | ZenModeControllerImpl.java | 20 import android.app.AlarmManager; 59 private final AlarmManager mAlarmManager; 86 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in ZenModeControllerImpl() 135 final AlarmManager.AlarmClockInfo info = mAlarmManager.getNextAlarmClock(mUserId); in getNextAlarm() 145 final IntentFilter filter = new IntentFilter(AlarmManager.ACTION_NEXT_ALARM_CLOCK_CHANGED); in setUserId() 244 if (AlarmManager.ACTION_NEXT_ALARM_CLOCK_CHANGED.equals(intent.getAction())) {
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | BluetoothDiscoverableTimeoutReceiver.java | 20 import android.app.AlarmManager; 42 AlarmManager alarmManager = in setDiscoverableAlarm() 43 (AlarmManager) context.getSystemService (Context.ALARM_SERVICE); in setDiscoverableAlarm() 53 alarmManager.set(AlarmManager.RTC_WAKEUP, alarmTime, pending); in setDiscoverableAlarm() 65 AlarmManager alarmManager = in cancelDiscoverableAlarm() 66 (AlarmManager) context.getSystemService (Context.ALARM_SERVICE); in cancelDiscoverableAlarm()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | WakeupMessage.java | 19 import android.app.AlarmManager; 39 public class WakeupMessage implements AlarmManager.OnAlarmListener { 40 private final AlarmManager mAlarmManager; 52 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in WakeupMessage() 76 AlarmManager.ELAPSED_REALTIME_WAKEUP, when, mCmdName, this, mHandler); in schedule()
|
/frameworks/base/docs/html/training/scheduling/ |
D | alarms.jd | 47 <p>Alarms (based on the {@link android.app.AlarmManager} class) give you a way to perform 87 is a better solution than {@link android.app.AlarmManager}. A sync adapter gives you all 88 the same scheduling options as {@link android.app.AlarmManager}, but it offers 120 <p>Use {@link android.app.AlarmManager#setInexactRepeating setInexactRepeating()} instead 121 of {@link android.app.AlarmManager#setRepeating setRepeating()}. 122 When you use {@link android.app.AlarmManager#setInexactRepeating setInexactRepeating()}, 127 {@link android.app.AlarmManager#setInexactRepeating setInexactRepeating()} is an 128 improvement over {@link android.app.AlarmManager#setRepeating setRepeating()}, it can 136 Use {@link android.app.AlarmManager#ELAPSED_REALTIME} if you can. The different alarm 193 <li>{@link android.app.AlarmManager#ELAPSED_REALTIME}—Fires the pending intent based [all …]
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | WakeupMessageTest.java | 22 import android.app.AlarmManager; 49 @Mock AlarmManager mAlarmManager; 54 ArgumentCaptor<AlarmManager.OnAlarmListener> mListenerCaptor = 55 ArgumentCaptor.forClass(AlarmManager.OnAlarmListener.class); 108 verify(mAlarmManager).setExact(eq(AlarmManager.ELAPSED_REALTIME_WAKEUP), eq(when), in scheduleAndVerifyAlarm() 109 eq(TEST_CMD_NAME), any(AlarmManager.OnAlarmListener.class), eq(mHandler)); in scheduleAndVerifyAlarm()
|
/frameworks/base/tests/utils/SleepUtils/AlarmService/src/com/android/testing/alarmservice/ |
D | AlarmImpl.java | 19 import android.app.AlarmManager; 51 AlarmManager am = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in setAlarmAndWait() 55 am.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, atTime, pi); in setAlarmAndWait()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ScheduleConditionProvider.java | 20 import android.app.AlarmManager; 60 private AlarmManager mAlarmManager; 144 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in evaluateSubscriptions() 174 final AlarmManager alarms = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in updateAlarm() 185 alarms.setExact(AlarmManager.RTC_WAKEUP, time, pendingIntent); in updateAlarm() 192 final AlarmManager.AlarmClockInfo info = mAlarmManager.getNextAlarmClock( in getNextAlarm() 219 filter.addAction(AlarmManager.ACTION_NEXT_ALARM_CLOCK_CHANGED); in setRegistered()
|
D | CountdownConditionProvider.java | 19 import android.app.AlarmManager; 113 final AlarmManager alarms = (AlarmManager) in onSubscribe() 129 alarms.setExact(AlarmManager.RTC_WAKEUP, mTime, pendingIntent); in onSubscribe()
|
/frameworks/base/core/java/android/app/ |
D | IAlarmManager.aidl | 19 import android.app.AlarmManager; 34 … String listenerTag, in WorkSource workSource, in AlarmManager.AlarmClockInfo alarmClock); in set() 39 AlarmManager.AlarmClockInfo getNextAlarmClock(int userId); in getNextAlarmClock()
|
D | AlarmManager.java | 78 public class AlarmManager { class 206 synchronized (AlarmManager.class) { in cancel() 223 synchronized (AlarmManager.class) { in run() 252 AlarmManager(IAlarmManager service, Context ctx) { in AlarmManager() method in AlarmManager 648 synchronized (AlarmManager.class) { in setImpl() 915 synchronized (AlarmManager.class) { in cancel()
|
/frameworks/base/tests/utils/SleepUtils/WakeLoopService/src/android/test/wakeuploop/ |
D | WakeLoopService.java | 19 import android.app.AlarmManager; 77 AlarmManager am = (AlarmManager)getSystemService(Context.ALARM_SERVICE); in onStartCommand() 86 am.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, atTime, pi); in onStartCommand()
|
D | WakeUpCall.java | 19 import android.app.AlarmManager; 46 AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in onReceive() 82 am.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, atTime, pi); in onReceive()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | SetTimeZonePermissionsTest.java | 19 import android.app.AlarmManager; 30 private AlarmManager mAlarm; 38 mAlarm = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in setUp()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiConnectivityManager.java | 22 import android.app.AlarmManager; 131 private final AlarmManager mAlarmManager; 168 private final AlarmManager.OnAlarmListener mRestartScanListener = 169 new AlarmManager.OnAlarmListener() { 177 private class RestartSingleScanListener implements AlarmManager.OnAlarmListener { 194 private final AlarmManager.OnAlarmListener mWatchdogListener = 195 new AlarmManager.OnAlarmListener() { 203 private final AlarmManager.OnAlarmListener mPeriodicScanTimerListener = 204 new AlarmManager.OnAlarmListener() { 486 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in WifiConnectivityManager() [all …]
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
D | KeyguardStatusView.java | 20 import android.app.AlarmManager; 45 private final AlarmManager mAlarmManager; 95 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in KeyguardStatusView() 145 AlarmManager.AlarmClockInfo nextAlarm = in refresh() 153 void refreshAlarmStatus(AlarmManager.AlarmClockInfo nextAlarm) { in refreshAlarmStatus() 165 public static String formatNextAlarm(Context context, AlarmManager.AlarmClockInfo info) { in formatNextAlarm()
|
/frameworks/base/services/core/java/com/android/server/ |
D | AlarmManagerService.java | 22 import android.app.AlarmManager; 79 import static android.app.AlarmManager.RTC_WAKEUP; 80 import static android.app.AlarmManager.RTC; 81 import static android.app.AlarmManager.ELAPSED_REALTIME_WAKEUP; 82 import static android.app.AlarmManager.ELAPSED_REALTIME; 115 new Intent(AlarmManager.ACTION_NEXT_ALARM_CLOCK_CHANGED) 181 private final SparseArray<AlarmManager.AlarmClockInfo> mNextAlarmClockForUser = 183 private final SparseArray<AlarmManager.AlarmClockInfo> mTmpSparseAlarmClockArray = 190 private final SparseArray<AlarmManager.AlarmClockInfo> mHandlerSparseAlarmClockArray = 737 if ((b.flags&AlarmManager.FLAG_STANDALONE) == 0 && b.canHold(whenElapsed, maxWhen)) { in attemptCoalesceLocked() [all …]
|
/frameworks/base/tests/DozeTest/src/com/android/dreams/dozetest/ |
D | DozeTestDream.java | 19 import android.app.AlarmManager; 58 private AlarmManager mAlarmManager; 78 mAlarmManager = (AlarmManager)getSystemService(Context.ALARM_SERVICE); in onCreate() 150 mAlarmManager.setExact(AlarmManager.RTC_WAKEUP, now + 60000, mAlarmIntent); in performTimeUpdate()
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | TimeController.java | 19 import android.app.AlarmManager; 20 import android.app.AlarmManager.OnAlarmListener; 52 private AlarmManager mAlarmService = null; 130 mAlarmService = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in ensureAlarmServiceLocked() 261 mAlarmService.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, alarmTimeElapsed, in updateAlarmWithListenerLocked() 262 AlarmManager.WINDOW_HEURISTIC, 0, tag, listener, null, new WorkSource(uid)); in updateAlarmWithListenerLocked()
|
D | IdleController.java | 22 import android.app.AlarmManager; 107 private AlarmManager mAlarm; 113 mAlarm = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in IdlenessTracker() 176 mAlarm.setWindow(AlarmManager.ELAPSED_REALTIME_WAKEUP, in onReceive()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | KeyValueBackupJob.java | 19 import android.app.AlarmManager; 42 static final long BATCH_INTERVAL = 4 * AlarmManager.INTERVAL_HOUR; 51 private static final long MAX_DEFERRAL = AlarmManager.INTERVAL_DAY;
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
D | SupplicantWifiScannerImpl.java | 19 import android.app.AlarmManager; 66 private final AlarmManager mAlarmManager; 118 AlarmManager.OnAlarmListener mScanPeriodListener = new AlarmManager.OnAlarmListener() { 126 AlarmManager.OnAlarmListener mScanTimeoutListener = new AlarmManager.OnAlarmListener() { 139 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in SupplicantWifiScannerImpl() 399 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, in processPendingScans() 445 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, in processPendingScans() 1008 private final AlarmManager mAlarmManager; 1027 public HwPnoDebouncer(WifiNative wifiNative, AlarmManager alarmManager, in HwPnoDebouncer() 1056 private final AlarmManager.OnAlarmListener mAlarmListener = [all …]
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
D | LocationStatsAggregator.java | 19 import android.app.AlarmManager; 61 private AlarmManager mAlarmManager; 80 (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in LocationStatsAggregator() 103 mAlarmManager.setInexactRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, in LocationStatsAggregator()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | BurnInProtectionHelper.java | 21 import android.app.AlarmManager; 78 private final AlarmManager mAlarmManager; 107 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in BurnInProtectionHelper() 168 mAlarmManager.setExact(AlarmManager.ELAPSED_REALTIME, nextElapsed, in updateBurnInProtection()
|