/frameworks/base/core/java/com/android/internal/util/ |
H A D | WakeupMessage.java | 40 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 D | TestAlarmManager.java | 44 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 D | MockAlarmManager.java | 45 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 D | WifiConnectivityManagerTest.java | 70 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 D | NextAlarmController.java | 34 private AlarmManager mAlarmManager; field in class:NextAlarmController 38 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); 69 mNextAlarm = mAlarmManager.getNextAlarmClock(UserHandle.USER_CURRENT);
|
H A D | ZenModeControllerImpl.java | 59 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 D | NetworkLoggingHandler.java | 54 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 D | WakeupMessageTest.java | 50 @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 D | DozeTestDream.java | 58 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 D | SupplicantPnoScannerTest.java | 60 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 D | BaseWifiScannerImplTest.java | 62 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 D | BurnInProtectionHelper.java | 81 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 D | TwilightService.java | 62 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 D | TwilightServiceTest.java | 33 mTwilightService.mAlarmManager =
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
H A D | LocationStatsAggregator.java | 61 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 D | SipWakeupTimer.java | 42 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 D | NetworkTimeUpdateService.java | 82 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 D | PacManager.java | 78 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 D | ScheduleConditionProvider.java | 68 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 D | KeyguardStatusView.java | 45 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 D | SupplicantWifiScannerImpl.java | 66 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 D | NightDisplayService.java | 368 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 D | TrustAgentWrapper.java | 92 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 D | WifiController.java | 66 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 D | WifiConnectivityManager.java | 132 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,
|