/frameworks/base/tests/utils/testutils/java/android/app/test/ |
D | TestAlarmManager.java | 26 import android.app.AlarmManager; 44 private final AlarmManager mAlarmManager; 50 mAlarmManager = mock(AlarmManager.class); in TestAlarmManager() 52 any(AlarmManager.OnAlarmListener.class), any(Handler.class)); in TestAlarmManager() 54 anyString(), any(AlarmManager.OnAlarmListener.class), any(Handler.class)); in TestAlarmManager() 56 .when(mAlarmManager).cancel(any(AlarmManager.OnAlarmListener.class)); in TestAlarmManager() 59 public AlarmManager getAlarmManager() { in getAlarmManager() 140 AlarmManager.OnAlarmListener listener, Handler handler) { in answer() 147 public void answer(AlarmManager.OnAlarmListener listener) { in answer() 163 private final AlarmManager.OnAlarmListener mListener; [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | AlarmTimeout.java | 19 import android.app.AlarmManager; 27 public class AlarmTimeout implements AlarmManager.OnAlarmListener { 33 private final AlarmManager mAlarmManager; 34 private final AlarmManager.OnAlarmListener mListener; 39 public AlarmTimeout(AlarmManager alarmManager, AlarmManager.OnAlarmListener listener, in AlarmTimeout() 76 mAlarmManager.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP, in schedule()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | NextAlarmControllerImpl.java | 19 import android.app.AlarmManager; 42 private AlarmManager mAlarmManager; 43 private AlarmManager.AlarmClockInfo mNextAlarm; 49 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in NextAlarmControllerImpl() 52 filter.addAction(AlarmManager.ACTION_NEXT_ALARM_CLOCK_CHANGED); in NextAlarmControllerImpl() 74 || action.equals(AlarmManager.ACTION_NEXT_ALARM_CLOCK_CHANGED)) { in onReceive()
|
D | NextAlarmController.java | 17 import android.app.AlarmManager; 25 void onNextAlarmChanged(AlarmManager.AlarmClockInfo nextAlarm); in onNextAlarmChanged()
|
D | ZenModeControllerImpl.java | 22 import android.app.AlarmManager; 70 private final AlarmManager mAlarmManager; 104 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in ZenModeControllerImpl() 172 final AlarmManager.AlarmClockInfo info = mAlarmManager.getNextAlarmClock(mUserId); in getNextAlarm() 182 final IntentFilter filter = new IntentFilter(AlarmManager.ACTION_NEXT_ALARM_CLOCK_CHANGED); in onUserSwitched() 289 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/tests/utiltests/src/com/android/internal/util/ |
D | WakeupMessageTest.java | 22 import android.app.AlarmManager; 51 @Mock AlarmManager mAlarmManager; 56 ArgumentCaptor<AlarmManager.OnAlarmListener> mListenerCaptor = 57 ArgumentCaptor.forClass(AlarmManager.OnAlarmListener.class); 109 verify(mAlarmManager).setExact(eq(AlarmManager.ELAPSED_REALTIME_WAKEUP), eq(when), in scheduleAndVerifyAlarm() 110 eq(TEST_CMD_NAME), any(AlarmManager.OnAlarmListener.class), eq(mHandler)); in scheduleAndVerifyAlarm() 180 verify(mAlarmManager).setExact(eq(AlarmManager.ELAPSED_REALTIME_WAKEUP), eq(when), in scheduleRunnable() 181 eq(TEST_CMD_NAME), any(AlarmManager.OnAlarmListener.class), eq(mHandler)); in scheduleRunnable()
|
/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; 89 private static AlarmManager getAlarmManager(Context context) { in getAlarmManager() 90 return (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in getAlarmManager() 101 AlarmManager.ELAPSED_REALTIME_WAKEUP, when, mCmdName, this, mHandler); in schedule()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | WificondScannerTest.java | 25 import android.app.AlarmManager; 103 .cancel(any(AlarmManager.OnAlarmListener.class)); in externalScanResultsDoNotCauseSpuriousTimerCancellationOrCrash() 106 .cancel(isNull(AlarmManager.OnAlarmListener.class)); in externalScanResultsDoNotCauseSpuriousTimerCancellationOrCrash() 128 .cancel(any(AlarmManager.OnAlarmListener.class)); in externalScanResultsAfterOurScanDoNotCauseSpuriousTimerCancellationOrCrash() 131 .cancel(isNull(AlarmManager.OnAlarmListener.class)); in externalScanResultsAfterOurScanDoNotCauseSpuriousTimerCancellationOrCrash() 159 .cancel(any(AlarmManager.OnAlarmListener.class)); in lateScanResultsDoNotCauseSpuriousTimerCancellationOrCrash() 162 .cancel(isNull(AlarmManager.OnAlarmListener.class)); in lateScanResultsDoNotCauseSpuriousTimerCancellationOrCrash()
|
/frameworks/base/core/java/android/app/ |
D | IAlarmManager.aidl | 19 import android.app.AlarmManager; 35 … String listenerTag, in WorkSource workSource, in AlarmManager.AlarmClockInfo alarmClock); in set() 42 AlarmManager.AlarmClockInfo getNextAlarmClock(int userId); in getNextAlarmClock()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | SetTimeZonePermissionsTest.java | 19 import android.app.AlarmManager; 31 private AlarmManager mAlarm; 39 mAlarm = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in setUp()
|
/frameworks/base/services/core/java/com/android/server/job/controllers/idle/ |
D | DeviceIdlenessTracker.java | 21 import android.app.AlarmManager; 39 private AlarmManager mAlarm; 50 private AlarmManager.OnAlarmListener mIdleAlarmListener = () -> { 74 mAlarm = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in startTracking() 153 mAlarm.setWindow(AlarmManager.ELAPSED_REALTIME_WAKEUP, in onReceive()
|
/frameworks/base/services/core/java/com/android/server/timezonedetector/ |
D | TimeZoneDetectorCallbackImpl.java | 20 import android.app.AlarmManager; 80 AlarmManager alarmManager = mContext.getSystemService(AlarmManager.class); in setDeviceTimeZone()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | KeyguardSliceProviderTest.java | 29 import android.app.AlarmManager; 76 private AlarmManager mAlarmManager; 163 … AlarmManager.AlarmClockInfo alarmClockInfo = new AlarmManager.AlarmClockInfo(in16Hours, null); in schedulesAlarm12hBefore() 168 verify(mAlarmManager).setExact(eq(AlarmManager.RTC), eq(triggerAt), anyString(), any(), in schedulesAlarm12hBefore() 175 … AlarmManager.AlarmClockInfo alarmClockInfo = new AlarmManager.AlarmClockInfo(in16Hours, null); in updatingNextAlarmInvalidatesSlice() 238 verify(mAlarmManager).cancel(any(AlarmManager.OnAlarmListener.class)); in onDestroy_unregisterListeners()
|
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/ |
D | PerfData.java | 21 import android.app.AlarmManager; 49 private AlarmManager mAlarmMgr; 75 mAlarmMgr = (AlarmManager) loadtestActivity.getSystemService(Context.ALARM_SERVICE); in PerfData() 90 mAlarmMgr.setInexactRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, -1 /* now */, in startRecording()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ScheduleConditionProvider.java | 20 import android.app.AlarmManager; 70 private AlarmManager mAlarmManager; 163 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in evaluateSubscriptions() 220 final AlarmManager alarms = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in updateAlarm() 231 alarms.setExact(AlarmManager.RTC_WAKEUP, time, pendingIntent); in updateAlarm() 238 final AlarmManager.AlarmClockInfo info = mAlarmManager.getNextAlarmClock( in getNextAlarm() 256 filter.addAction(AlarmManager.ACTION_NEXT_ALARM_CLOCK_CHANGED); in setRegistered()
|
D | CountdownConditionProvider.java | 19 import android.app.AlarmManager; 115 final AlarmManager alarms = (AlarmManager) in onSubscribe() 132 alarms.setExact(AlarmManager.RTC_WAKEUP, mTime, pendingIntent); in onSubscribe()
|
/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/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeFactory.java | 19 import android.app.AlarmManager; 50 AlarmManager alarmManager = context.getSystemService(AlarmManager.class); in assembleMachine() 96 DozeHost host, AlarmManager alarmManager, AmbientDisplayConfiguration config, in createDozeTriggers() 105 DozeMachine machine, Handler handler, AlarmManager alarmManager, in createDozeUi()
|
D | DozePauser.java | 19 import android.app.AlarmManager; 33 public DozePauser(Handler handler, DozeMachine machine, AlarmManager alarmManager, in DozePauser()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsStrongAuth.java | 24 import android.app.AlarmManager; 25 import android.app.AlarmManager.OnAlarmListener; 64 private AlarmManager mAlarmManager; 69 mAlarmManager = context.getSystemService(AlarmManager.class); in LockSettingsStrongAuth() 133 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME, when, STRONG_AUTH_TIMEOUT_ALARM_TAG, in handleScheduleStrongAuthTimeout()
|
/frameworks/base/services/core/java/com/android/server/timedetector/ |
D | TimeDetectorStrategyCallbackImpl.java | 20 import android.app.AlarmManager; 50 @NonNull private final AlarmManager mAlarmManager; 60 mAlarmManager = Objects.requireNonNull(context.getSystemService(AlarmManager.class)); in TimeDetectorStrategyCallbackImpl()
|
/frameworks/base/services/core/java/com/android/server/twilight/ |
D | TwilightService.java | 20 import android.app.AlarmManager; 50 implements AlarmManager.OnAlarmListener, Handler.Callback, LocationListener { 63 protected AlarmManager mAlarmManager; 121 mAlarmManager = (AlarmManager) c.getSystemService(Context.ALARM_SERVICE); in onBootPhase() 236 mAlarmManager.setExact(AlarmManager.RTC, triggerAtMillis, TAG, this, mHandler); in updateTwilightState()
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | TimeController.java | 23 import android.app.AlarmManager; 24 import android.app.AlarmManager.OnAlarmListener; 74 private AlarmManager mAlarmService = null; 233 mAlarmService = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in ensureAlarmServiceLocked() 398 ? AlarmManager.ELAPSED_REALTIME : AlarmManager.ELAPSED_REALTIME_WAKEUP; in setDelayExpiredAlarmLocked() 414 updateAlarmWithListenerLocked(DEADLINE_TAG, AlarmManager.ELAPSED_REALTIME_WAKEUP, in setDeadlineExpiredAlarmLocked() 422 private void updateAlarmWithListenerLocked(String tag, @AlarmManager.AlarmType int alarmType, in updateAlarmWithListenerLocked() 432 AlarmManager.WINDOW_HEURISTIC, 0, tag, listener, null, ws); in updateAlarmWithListenerLocked()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiConnectivityManager.java | 25 import android.app.AlarmManager; 149 private final AlarmManager mAlarmManager; 216 private final AlarmManager.OnAlarmListener mRestartScanListener = 217 new AlarmManager.OnAlarmListener() { 225 private class RestartSingleScanListener implements AlarmManager.OnAlarmListener { 240 private final AlarmManager.OnAlarmListener mWatchdogListener = 241 new AlarmManager.OnAlarmListener() { 249 private final AlarmManager.OnAlarmListener mPeriodicScanTimerListener = 250 new AlarmManager.OnAlarmListener() { 610 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in WifiConnectivityManager() [all …]
|