/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | MockAlarmManager.java | 45 private final AlarmManager mAlarmManager; field in MockAlarmManager 51 mAlarmManager = mock(AlarmManager.class); in MockAlarmManager() 52 doAnswer(new SetListenerAnswer()).when(mAlarmManager).set(anyInt(), anyLong(), anyString(), in MockAlarmManager() 54 doAnswer(new SetListenerAnswer()).when(mAlarmManager).setExact(anyInt(), anyLong(), in MockAlarmManager() 57 .when(mAlarmManager).cancel(any(AlarmManager.OnAlarmListener.class)); in MockAlarmManager() 61 return mAlarmManager; in getAlarmManager()
|
D | WifiConnectivityManagerTest.java | 69 mAlarmManager = new MockAlarmManager(); in setUp() 93 private MockAlarmManager mAlarmManager; field in WifiConnectivityManagerTest 126 mAlarmManager.getAlarmManager()); in mockContext() 525 mAlarmManager.dispatch(WifiConnectivityManager.WATCHDOG_TIMER_TAG); in watchdogBitePnoBadIncrementsMetrics() 552 mAlarmManager.dispatch(WifiConnectivityManager.WATCHDOG_TIMER_TAG); in watchdogBitePnoGoodIncrementsMetrics() 584 long firstIntervalMs = mAlarmManager in checkPeriodicScanIntervalWhenDisconnected() 593 mAlarmManager.dispatch(WifiConnectivityManager.PERIODIC_SCAN_TIMER_TAG); in checkPeriodicScanIntervalWhenDisconnected() 597 long secondIntervalMs = mAlarmManager in checkPeriodicScanIntervalWhenDisconnected() 610 mAlarmManager.dispatch(WifiConnectivityManager.PERIODIC_SCAN_TIMER_TAG); in checkPeriodicScanIntervalWhenDisconnected() 612 intervalMs = mAlarmManager in checkPeriodicScanIntervalWhenDisconnected() [all …]
|
/frameworks/base/tests/utils/testutils/java/android/app/test/ |
D | TestAlarmManager.java | 44 private final AlarmManager mAlarmManager; field in TestAlarmManager 50 mAlarmManager = mock(AlarmManager.class); in TestAlarmManager() 51 doAnswer(new SetListenerAnswer()).when(mAlarmManager).set(anyInt(), anyLong(), anyString(), in TestAlarmManager() 53 doAnswer(new SetListenerAnswer()).when(mAlarmManager).setExact(anyInt(), anyLong(), in TestAlarmManager() 56 .when(mAlarmManager).cancel(any(AlarmManager.OnAlarmListener.class)); in TestAlarmManager() 60 return mAlarmManager; in getAlarmManager()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | WakeupMessage.java | 40 private final AlarmManager mAlarmManager; field in WakeupMessage 54 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in WakeupMessage() 83 mAlarmManager.setExact( in schedule() 94 mAlarmManager.cancel(this); in cancel()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | WakeupMessageTest.java | 50 @Mock AlarmManager mAlarmManager; field in WakeupMessageTest 90 when(context.getSystemService(Context.ALARM_SERVICE)).thenReturn(mAlarmManager); in setUp() 92 doNothing().when(mAlarmManager).setExact(anyInt(), anyLong(), any(String.class), in setUp() 109 verify(mAlarmManager).setExact(eq(AlarmManager.ELAPSED_REALTIME_WAKEUP), eq(when), in scheduleAndVerifyAlarm()
|
/frameworks/base/tests/DozeTest/src/com/android/dreams/dozetest/ |
D | DozeTestDream.java | 58 private AlarmManager mAlarmManager; field in DozeTestDream 78 mAlarmManager = (AlarmManager)getSystemService(Context.ALARM_SERVICE); in onCreate() 150 mAlarmManager.setExact(AlarmManager.RTC_WAKEUP, now + 60000, mAlarmIntent); in performTimeUpdate() 173 mAlarmManager.cancel(mAlarmIntent); in cancelTimeUpdate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | NextAlarmController.java | 34 private AlarmManager mAlarmManager; field in NextAlarmController 38 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in NextAlarmController() 69 mNextAlarm = mAlarmManager.getNextAlarmClock(UserHandle.USER_CURRENT); in updateNextAlarm()
|
D | ZenModeControllerImpl.java | 59 private final AlarmManager mAlarmManager; field in ZenModeControllerImpl 86 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in ZenModeControllerImpl() 135 final AlarmManager.AlarmClockInfo info = mAlarmManager.getNextAlarmClock(mUserId); in getNextAlarm()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | BurnInProtectionHelper.java | 78 private final AlarmManager mAlarmManager; field in BurnInProtectionHelper 107 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in BurnInProtectionHelper() 168 mAlarmManager.setExact(AlarmManager.ELAPSED_REALTIME, nextElapsed, in updateBurnInProtection() 171 mAlarmManager.cancel(mBurnInProtectionIntent); in updateBurnInProtection()
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
D | LocationStatsAggregator.java | 61 private AlarmManager mAlarmManager; field in LocationStatsAggregator 79 mAlarmManager = in LocationStatsAggregator() 103 mAlarmManager.setInexactRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, in LocationStatsAggregator() 111 mAlarmManager.cancel(mPendingIntent); in release()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
D | SupplicantWifiScannerImpl.java | 66 private final AlarmManager mAlarmManager; field in SupplicantWifiScannerImpl 139 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in SupplicantWifiScannerImpl() 142 mHwPnoDebouncer = new HwPnoDebouncer(mWifiNative, mAlarmManager, mEventHandler, mClock); in SupplicantWifiScannerImpl() 313 mAlarmManager.cancel(mScanPeriodListener); in unscheduleScansLocked() 399 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, in processPendingScans() 445 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, in processPendingScans() 488 mAlarmManager.cancel(mScanTimeoutListener); in handleMessage() 493 mAlarmManager.cancel(mScanTimeoutListener); in handleMessage() 1008 private final AlarmManager mAlarmManager; field in SupplicantWifiScannerImpl.HwPnoDebouncer 1030 mAlarmManager = alarmManager; in HwPnoDebouncer() [all …]
|
/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
D | SipWakeupTimer.java | 42 private AlarmManager mAlarmManager; field in SipWakeupTimer 54 mAlarmManager = (AlarmManager) in SipWakeupTimer() 68 mAlarmManager.cancel(mPendingIntent); in stop() 85 mAlarmManager.cancel(mPendingIntent); in cancelAlarm() 220 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, in scheduleNext()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | SupplicantPnoScannerTest.java | 59 MockAlarmManager mAlarmManager; field in SupplicantPnoScannerTest 72 mAlarmManager = new MockAlarmManager(); in setup() 78 .thenReturn(mAlarmManager.getAlarmManager()); in setup() 131 mAlarmManager.dispatch( in pauseResumeHwDisconnectedPnoScanForSingleScan() 201 mAlarmManager.dispatch( in delayedHwDisconnectedPnoScanFailure() 210 mAlarmManager.dispatch( in delayedHwDisconnectedPnoScanFailure()
|
D | BaseWifiScannerImplTest.java | 62 MockAlarmManager mAlarmManager; field in BaseWifiScannerImplTest 79 mAlarmManager = new MockAlarmManager(); in setUpBase() 86 .thenReturn(mAlarmManager.getAlarmManager()); in setUpBase() 275 mAlarmManager.dispatch(SupplicantWifiScannerImpl.TIMEOUT_ALARM_TAG); in singleScanFailOnTimeout()
|
/frameworks/base/services/core/java/com/android/server/twilight/ |
D | TwilightService.java | 62 private AlarmManager mAlarmManager; field in TwilightService 120 mAlarmManager = (AlarmManager) c.getSystemService(Context.ALARM_SERVICE); in onBootPhase() 199 mAlarmManager.cancel(this); in stopListening() 238 mAlarmManager.setExact(AlarmManager.RTC, triggerAtMillis, TAG, this, mHandler); in updateTwilightState()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkTimeUpdateService.java | 82 private AlarmManager mAlarmManager; field in NetworkTimeUpdateService 105 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in NetworkTimeUpdateService() 236 mAlarmManager.cancel(mPendingPollIntent); in resetAlarm() 239 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME, next, mPendingPollIntent); in resetAlarm()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ScheduleConditionProvider.java | 68 private AlarmManager mAlarmManager; field in ScheduleConditionProvider 154 if (mAlarmManager == null) { in evaluateSubscriptions() 155 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in evaluateSubscriptions() 209 final AlarmManager.AlarmClockInfo info = mAlarmManager.getNextAlarmClock( in getNextAlarm()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | PacManager.java | 78 private AlarmManager mAlarmManager; field in PacManager 153 if (mAlarmManager == null) { in getAlarmManager() 154 mAlarmManager = (AlarmManager)mContext.getSystemService(Context.ALARM_SERVICE); in getAlarmManager() 156 return mAlarmManager; in getAlarmManager()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiConnectivityManager.java | 132 private final AlarmManager mAlarmManager; field in WifiConnectivityManager 521 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in WifiConnectivityManager() 925 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, in scheduleWatchdogTimer() 933 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, in schedulePeriodicScanTimer() 943 mAlarmManager.cancel(mPeriodicScanTimerListener); in cancelPeriodicScanTimer() 954 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, in scheduleDelayedSingleScan() 964 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, in scheduleDelayedConnectivityScan()
|
D | WifiController.java | 66 private AlarmManager mAlarmManager; field in WifiController 155 mAlarmManager = (AlarmManager)mContext.getSystemService(Context.ALARM_SERVICE); in WifiController() 357 mAlarmManager.cancel(mIdleIntent); in processMessage() 375 mAlarmManager.set(AlarmManager.RTC_WAKEUP, in processMessage() 400 mAlarmManager.set(AlarmManager.RTC_WAKEUP, triggerTime, mIdleIntent); in processMessage()
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
D | KeyguardStatusView.java | 45 private final AlarmManager mAlarmManager; field in KeyguardStatusView 95 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in KeyguardStatusView() 151 mAlarmManager.getNextAlarmClock(UserHandle.USER_CURRENT); in refresh()
|
/frameworks/base/services/core/java/com/android/server/trust/ |
D | TrustAgentWrapper.java | 92 private AlarmManager mAlarmManager; field in TrustAgentWrapper 140 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, expiration, 269 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in TrustAgentWrapper() 384 mAlarmManager.cancel(mAlarmPendingIntent); in updateDevicePolicyFeatures()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | NightDisplayService.java | 313 private final AlarmManager mAlarmManager; field in NightDisplayService.CustomAutoMode 322 mAlarmManager = (AlarmManager) getContext().getSystemService(Context.ALARM_SERVICE); in CustomAutoMode() 372 mAlarmManager.setExact(AlarmManager.RTC, next.getTimeInMillis(), TAG, this, null); in updateNextAlarm() 393 mAlarmManager.cancel(this); in onStop()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | GnssLocationProvider.java | 406 private final AlarmManager mAlarmManager; field in GnssLocationProvider 718 mAlarmManager = (AlarmManager)mContext.getSystemService(Context.ALARM_SERVICE); in GnssLocationProvider() 1170 mAlarmManager.cancel(mWakeupIntent); in handleDisable() 1171 mAlarmManager.cancel(mTimeoutIntent); in handleDisable() 1270 mAlarmManager.cancel(mWakeupIntent); in updateRequirements() 1271 mAlarmManager.cancel(mTimeoutIntent); in updateRequirements() 1454 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, in startNavigating() 1479 mAlarmManager.cancel(mTimeoutIntent); in hibernate() 1480 mAlarmManager.cancel(mWakeupIntent); in hibernate() 1482 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, now + mFixInterval, mWakeupIntent); in hibernate() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ServiceStateTrackerTest.java | 77 protected IAlarmManager mAlarmManager; field in ServiceStateTrackerTest 861 doReturn(mAlarmManager).when(mIBinder).queryLocalInterface(anyString()); in testSetTimeFromNITZStr() 869 verify(mAlarmManager, times(0)).setTime(anyLong()); in testSetTimeFromNITZStr() 874 verify(mAlarmManager, times(1)).setTime(anyLong()); in testSetTimeFromNITZStr()
|