Searched refs:mAlarmManager (Results 1 - 25 of 44) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/util/
H A DWakeupMessage.java40 private final AlarmManager mAlarmManager; field in class:WakeupMessage
54 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
83 mAlarmManager.setExact(
94 mAlarmManager.cancel(this);
/frameworks/base/tests/utils/testutils/java/android/app/test/
H A DTestAlarmManager.java44 private final AlarmManager mAlarmManager; field in class:TestAlarmManager
50 mAlarmManager = mock(AlarmManager.class);
51 doAnswer(new SetListenerAnswer()).when(mAlarmManager).set(anyInt(), anyLong(), anyString(),
53 doAnswer(new SetListenerAnswer()).when(mAlarmManager).setExact(anyInt(), anyLong(),
56 .when(mAlarmManager).cancel(any(AlarmManager.OnAlarmListener.class));
60 return mAlarmManager;
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DMockAlarmManager.java45 private final AlarmManager mAlarmManager; field in class:MockAlarmManager
51 mAlarmManager = mock(AlarmManager.class);
52 doAnswer(new SetListenerAnswer()).when(mAlarmManager).set(anyInt(), anyLong(), anyString(),
54 doAnswer(new SetListenerAnswer()).when(mAlarmManager).setExact(anyInt(), anyLong(),
57 .when(mAlarmManager).cancel(any(AlarmManager.OnAlarmListener.class));
61 return mAlarmManager;
H A DWifiConnectivityManagerTest.java70 mAlarmManager = new MockAlarmManager();
95 private MockAlarmManager mAlarmManager; field in class:WifiConnectivityManagerTest
129 mAlarmManager.getAlarmManager());
535 mAlarmManager.dispatch(WifiConnectivityManager.WATCHDOG_TIMER_TAG);
562 mAlarmManager.dispatch(WifiConnectivityManager.WATCHDOG_TIMER_TAG);
594 long firstIntervalMs = mAlarmManager
603 mAlarmManager.dispatch(WifiConnectivityManager.PERIODIC_SCAN_TIMER_TAG);
607 long secondIntervalMs = mAlarmManager
620 mAlarmManager.dispatch(WifiConnectivityManager.PERIODIC_SCAN_TIMER_TAG);
622 intervalMs = mAlarmManager
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DNextAlarmController.java34 private AlarmManager mAlarmManager; field in class:NextAlarmController
38 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
69 mNextAlarm = mAlarmManager.getNextAlarmClock(UserHandle.USER_CURRENT);
H A DZenModeControllerImpl.java59 private final AlarmManager mAlarmManager; field in class:ZenModeControllerImpl
86 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
135 final AlarmManager.AlarmClockInfo info = mAlarmManager.getNextAlarmClock(mUserId);
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DNetworkLoggingHandler.java54 private final AlarmManager mAlarmManager; field in class:NetworkLoggingHandler
83 mAlarmManager = mDpm.mInjector.getAlarmManager();
108 mAlarmManager.setWindow(AlarmManager.ELAPSED_REALTIME_WAKEUP, when,
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
H A DWakeupMessageTest.java50 @Mock AlarmManager mAlarmManager; field in class:WakeupMessageTest
90 when(context.getSystemService(Context.ALARM_SERVICE)).thenReturn(mAlarmManager);
92 doNothing().when(mAlarmManager).setExact(anyInt(), anyLong(), any(String.class),
109 verify(mAlarmManager).setExact(eq(AlarmManager.ELAPSED_REALTIME_WAKEUP), eq(when),
/frameworks/base/tests/DozeTest/src/com/android/dreams/dozetest/
H A DDozeTestDream.java58 private AlarmManager mAlarmManager; field in class:DozeTestDream
78 mAlarmManager = (AlarmManager)getSystemService(Context.ALARM_SERVICE);
150 mAlarmManager.setExact(AlarmManager.RTC_WAKEUP, now + 60000, mAlarmIntent);
173 mAlarmManager.cancel(mAlarmIntent);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
H A DSupplicantPnoScannerTest.java60 MockAlarmManager mAlarmManager; field in class:SupplicantPnoScannerTest
73 mAlarmManager = new MockAlarmManager();
79 .thenReturn(mAlarmManager.getAlarmManager());
132 mAlarmManager.dispatch(
202 mAlarmManager.dispatch(
211 mAlarmManager.dispatch(
238 mAlarmManager.dispatch(
246 mAlarmManager.dispatch(
277 assertTrue(mAlarmManager.isPending(
293 mAlarmManager
[all...]
H A DBaseWifiScannerImplTest.java62 MockAlarmManager mAlarmManager; field in class:BaseWifiScannerImplTest
79 mAlarmManager = new MockAlarmManager();
86 .thenReturn(mAlarmManager.getAlarmManager());
283 mAlarmManager.dispatch(SupplicantWifiScannerImpl.TIMEOUT_ALARM_TAG);
/frameworks/base/services/core/java/com/android/server/policy/
H A DBurnInProtectionHelper.java81 private final AlarmManager mAlarmManager; field in class:BurnInProtectionHelper
110 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
173 mAlarmManager.setExact(AlarmManager.ELAPSED_REALTIME, nextElapsed,
176 mAlarmManager.cancel(mBurnInProtectionIntent);
/frameworks/base/services/core/java/com/android/server/twilight/
H A DTwilightService.java62 protected AlarmManager mAlarmManager; field in class:TwilightService
120 mAlarmManager = (AlarmManager) c.getSystemService(Context.ALARM_SERVICE);
199 mAlarmManager.cancel(this);
238 mAlarmManager.setExact(AlarmManager.RTC, triggerAtMillis, TAG, this, mHandler);
/frameworks/base/services/tests/servicestests/src/com/android/server/twilight/
H A DTwilightServiceTest.java33 mTwilightService.mAlarmManager =
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DLocationStatsAggregator.java61 private AlarmManager mAlarmManager; field in class:LocationStatsAggregator
79 mAlarmManager =
103 mAlarmManager.setInexactRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP,
111 mAlarmManager.cancel(mPendingIntent);
/frameworks/opt/net/voip/src/java/com/android/server/sip/
H A DSipWakeupTimer.java42 private AlarmManager mAlarmManager; field in class:SipWakeupTimer
54 mAlarmManager = (AlarmManager)
68 mAlarmManager.cancel(mPendingIntent);
85 mAlarmManager.cancel(mPendingIntent);
220 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP,
/frameworks/base/services/core/java/com/android/server/
H A DNetworkTimeUpdateService.java82 private AlarmManager mAlarmManager; field in class:NetworkTimeUpdateService
105 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE);
236 mAlarmManager.cancel(mPendingPollIntent);
239 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME, next, mPendingPollIntent);
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DPacManager.java78 private AlarmManager mAlarmManager; field in class:PacManager
153 if (mAlarmManager == null) {
154 mAlarmManager = (AlarmManager)mContext.getSystemService(Context.ALARM_SERVICE);
156 return mAlarmManager;
/frameworks/base/services/core/java/com/android/server/notification/
H A DScheduleConditionProvider.java68 private AlarmManager mAlarmManager; field in class:ScheduleConditionProvider
154 if (mAlarmManager == null) {
155 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE);
209 final AlarmManager.AlarmClockInfo info = mAlarmManager.getNextAlarmClock(
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardStatusView.java45 private final AlarmManager mAlarmManager; field in class:KeyguardStatusView
95 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
151 mAlarmManager.getNextAlarmClock(UserHandle.USER_CURRENT);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
H A DSupplicantWifiScannerImpl.java66 private final AlarmManager mAlarmManager; field in class:SupplicantWifiScannerImpl
139 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE);
142 mHwPnoDebouncer = new HwPnoDebouncer(mWifiNative, mAlarmManager, mEventHandler, mClock);
313 mAlarmManager.cancel(mScanPeriodListener);
404 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP,
450 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP,
501 mAlarmManager.cancel(mScanTimeoutListener);
506 mAlarmManager.cancel(mScanTimeoutListener);
1031 private final AlarmManager mAlarmManager; field in class:SupplicantWifiScannerImpl.HwPnoDebouncer
1053 mAlarmManager
[all...]
/frameworks/base/services/core/java/com/android/server/display/
H A DNightDisplayService.java368 private final AlarmManager mAlarmManager; field in class:NightDisplayService.CustomAutoMode
377 mAlarmManager = (AlarmManager) getContext().getSystemService(Context.ALARM_SERVICE);
427 mAlarmManager.setExact(AlarmManager.RTC, next.getTimeInMillis(), TAG, this, null);
448 mAlarmManager.cancel(this);
/frameworks/base/services/core/java/com/android/server/trust/
H A DTrustAgentWrapper.java92 private AlarmManager mAlarmManager; field in class:TrustAgentWrapper
140 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, expiration,
269 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE);
384 mAlarmManager.cancel(mAlarmPendingIntent);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiController.java66 private AlarmManager mAlarmManager; field in class:WifiController
155 mAlarmManager = (AlarmManager)mContext.getSystemService(Context.ALARM_SERVICE);
357 mAlarmManager.cancel(mIdleIntent);
375 mAlarmManager.set(AlarmManager.RTC_WAKEUP,
400 mAlarmManager.set(AlarmManager.RTC_WAKEUP, triggerTime, mIdleIntent);
H A DWifiConnectivityManager.java132 private final AlarmManager mAlarmManager; field in class:WifiConnectivityManager
535 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
942 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP,
950 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP,
960 mAlarmManager.cancel(mPeriodicScanTimerListener);
971 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP,
981 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP,

Completed in 1485 milliseconds

12