Home
last modified time | relevance | path

Searched refs:mAlarmManager (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DMockAlarmManager.java45 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()
DWifiConnectivityManagerTest.java69 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/
DTestAlarmManager.java44 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/
DWakeupMessage.java40 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/
DWakeupMessageTest.java50 @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/
DDozeTestDream.java58 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/
DNextAlarmController.java34 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()
DZenModeControllerImpl.java59 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/
DBurnInProtectionHelper.java78 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/
DLocationStatsAggregator.java61 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/
DSupplicantWifiScannerImpl.java66 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/
DSipWakeupTimer.java42 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/
DSupplicantPnoScannerTest.java59 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()
DBaseWifiScannerImplTest.java62 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/
DTwilightService.java62 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/
DNetworkTimeUpdateService.java82 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/
DScheduleConditionProvider.java68 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/
DPacManager.java78 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/
DWifiConnectivityManager.java132 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()
DWifiController.java66 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/
DKeyguardStatusView.java45 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/
DTrustAgentWrapper.java92 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/
DNightDisplayService.java313 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/
DGnssLocationProvider.java406 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/
DServiceStateTrackerTest.java77 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()

12