Home
last modified time | relevance | path

Searched refs:AlarmManager (Results 1 – 25 of 123) sorted by relevance

12345

/frameworks/base/tests/utils/testutils/java/android/app/test/
DTestAlarmManager.java26 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/
DAlarmTimeout.java19 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/
DNextAlarmControllerImpl.java19 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()
DNextAlarmController.java17 import android.app.AlarmManager;
25 void onNextAlarmChanged(AlarmManager.AlarmClockInfo nextAlarm); in onNextAlarmChanged()
DZenModeControllerImpl.java22 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/
DBluetoothDiscoverableTimeoutReceiver.java20 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/
DWakeupMessageTest.java22 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/
DWakeupMessage.java19 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/
DWificondScannerTest.java25 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/
DIAlarmManager.aidl19 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/
DSetTimeZonePermissionsTest.java19 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/
DDeviceIdlenessTracker.java21 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/
DTimeZoneDetectorCallbackImpl.java20 import android.app.AlarmManager;
80 AlarmManager alarmManager = mContext.getSystemService(AlarmManager.class); in setDeviceTimeZone()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DKeyguardSliceProviderTest.java29 import android.app.AlarmManager;
76 private AlarmManager mAlarmManager;
163AlarmManager.AlarmClockInfo alarmClockInfo = new AlarmManager.AlarmClockInfo(in16Hours, null); in schedulesAlarm12hBefore()
168 verify(mAlarmManager).setExact(eq(AlarmManager.RTC), eq(triggerAt), anyString(), any(), in schedulesAlarm12hBefore()
175AlarmManager.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/
DPerfData.java21 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/
DScheduleConditionProvider.java20 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()
DCountdownConditionProvider.java19 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/
DDozeTestDream.java19 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/
DDozeFactory.java19 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()
DDozePauser.java19 import android.app.AlarmManager;
33 public DozePauser(Handler handler, DozeMachine machine, AlarmManager alarmManager, in DozePauser()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsStrongAuth.java24 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/
DTimeDetectorStrategyCallbackImpl.java20 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/
DTwilightService.java20 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/
DTimeController.java23 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/
DWifiConnectivityManager.java25 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 …]

12345