Home
last modified time | relevance | path

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

123

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DAlarmTimeout.java33 private final AlarmManager mAlarmManager; field in AlarmTimeout
41 mAlarmManager = alarmManager; in AlarmTimeout()
68 mAlarmManager.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP, in schedule()
79 mAlarmManager.cancel(this); in cancel()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeUiTest.java52 private AlarmManager mAlarmManager; field in DozeUiTest
64 mAlarmManager = mock(AlarmManager.class); in setUp()
70 mDozeUi = new DozeUi(mContext, mAlarmManager, mMachine, mWakeLock, mHost, mHandler); in setUp()
86 clearInvocations(mAlarmManager); in pausingAndUnpausingAod_registersTimeTickAfterUnpausing()
90 verify(mAlarmManager).setExact(anyInt(), anyLong(), eq("doze_time_tick"), any(), any()); in pausingAndUnpausingAod_registersTimeTickAfterUnpausing()
DDozeTriggersTest.java60 private AlarmManager mAlarmManager; field in DozeTriggersTest
72 mAlarmManager = mock(AlarmManager.class); in setUp()
81 mTriggers = new DozeTriggers(mContext, mMachine, mHost, mAlarmManager, in setUp()
/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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DWificondPnoScannerTest.java57 TestAlarmManager mAlarmManager; field in WificondPnoScannerTest
70 mAlarmManager = new TestAlarmManager(); in setup()
76 .thenReturn(mAlarmManager.getAlarmManager()); in setup()
128 mAlarmManager.dispatch( in pauseResumeHwDisconnectedPnoScanForSingleScan()
197 mAlarmManager.dispatch( in delayedHwDisconnectedPnoScanFailure()
206 mAlarmManager.dispatch( in delayedHwDisconnectedPnoScanFailure()
233 mAlarmManager.dispatch( in ignoreHwDisconnectedPnoScanStopFailure()
241 mAlarmManager.dispatch( in ignoreHwDisconnectedPnoScanStopFailure()
272 assertTrue(mAlarmManager.isPending( in forceRestartHwDisconnectedPnoScanWhenSettingsChange()
288 mAlarmManager.dispatch(WificondScannerImpl.HwPnoDebouncer.PNO_DEBOUNCER_ALARM_TAG); in forceRestartHwDisconnectedPnoScanWhenSettingsChange()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigStoreTest.java131 private TestAlarmManager mAlarmManager; field in WifiConfigStoreTest
148 mAlarmManager = new TestAlarmManager(); in setupMocks()
151 .thenReturn(mAlarmManager.getAlarmManager()); in setupMocks()
191 assertFalse(mAlarmManager.isPending(WifiConfigStore.BUFFERED_WRITE_ALARM_TAG)); in testWriteWithEmptyData()
210 assertFalse(mAlarmManager.isPending(WifiConfigStore.BUFFERED_WRITE_ALARM_TAG)); in testForceWrite()
224 assertTrue(mAlarmManager.isPending(WifiConfigStore.BUFFERED_WRITE_ALARM_TAG)); in testBufferedWrite()
229 mAlarmManager.dispatch(WifiConfigStore.BUFFERED_WRITE_ALARM_TAG); in testBufferedWrite()
251 assertTrue(mAlarmManager.isPending(WifiConfigStore.BUFFERED_WRITE_ALARM_TAG)); in testForceWriteAfterBufferedWrite()
261 assertFalse(mAlarmManager.isPending(WifiConfigStore.BUFFERED_WRITE_ALARM_TAG)); in testForceWriteAfterBufferedWrite()
DWifiConnectivityManagerTest.java81 mAlarmManager = new TestAlarmManager(); in setUp()
112 private TestAlarmManager mAlarmManager; field in WifiConnectivityManagerTest
169 mAlarmManager.getAlarmManager()); in mockContext()
580 mAlarmManager.dispatch(WifiConnectivityManager.WATCHDOG_TIMER_TAG); in watchdogBitePnoBadIncrementsMetrics()
607 mAlarmManager.dispatch(WifiConnectivityManager.WATCHDOG_TIMER_TAG); in watchdogBitePnoGoodIncrementsMetrics()
752 long firstIntervalMs = mAlarmManager in checkPeriodicScanIntervalWhenDisconnected()
761 mAlarmManager.dispatch(WifiConnectivityManager.PERIODIC_SCAN_TIMER_TAG); in checkPeriodicScanIntervalWhenDisconnected()
765 long secondIntervalMs = mAlarmManager in checkPeriodicScanIntervalWhenDisconnected()
778 mAlarmManager.dispatch(WifiConnectivityManager.PERIODIC_SCAN_TIMER_TAG); in checkPeriodicScanIntervalWhenDisconnected()
780 intervalMs = mAlarmManager in checkPeriodicScanIntervalWhenDisconnected()
[all …]
/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/
DNextAlarmControllerImpl.java37 private AlarmManager mAlarmManager; field in NextAlarmControllerImpl
41 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in NextAlarmControllerImpl()
72 mNextAlarm = mAlarmManager.getNextAlarmClock(UserHandle.USER_CURRENT); in updateNextAlarm()
DZenModeControllerImpl.java62 private final AlarmManager mAlarmManager; field in ZenModeControllerImpl
90 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in ZenModeControllerImpl()
140 final AlarmManager.AlarmClockInfo info = mAlarmManager.getNextAlarmClock(mUserId); in getNextAlarm()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWificondScannerImpl.java64 private final AlarmManager mAlarmManager; field in WificondScannerImpl
135 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in WificondScannerImpl()
138 mHwPnoDebouncer = new HwPnoDebouncer(mWifiNative, mAlarmManager, mEventHandler, mClock); in WificondScannerImpl()
307 mAlarmManager.cancel(mScanPeriodListener); in unscheduleScansLocked()
388 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, in processPendingScans()
449 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, in processPendingScans()
499 mAlarmManager.cancel(mScanTimeoutListener); in handleMessage()
508 mAlarmManager.cancel(mScanTimeoutListener); in handleMessage()
920 private final AlarmManager mAlarmManager; field in WificondScannerImpl.HwPnoDebouncer
943 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/base/services/core/java/com/android/server/locksettings/
DLockSettingsStrongAuth.java68 private AlarmManager mAlarmManager; field in LockSettingsStrongAuth
74 mAlarmManager = context.getSystemService(AlarmManager.class); in LockSettingsStrongAuth()
149 mAlarmManager.cancel(alarm); in handleScheduleStrongAuthTimeout()
155 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME, when, STRONG_AUTH_TIMEOUT_ALARM_TAG, in handleScheduleStrongAuthTimeout()
/frameworks/base/services/core/java/com/android/server/policy/
DBurnInProtectionHelper.java81 private final AlarmManager mAlarmManager; field in BurnInProtectionHelper
110 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in BurnInProtectionHelper()
173 mAlarmManager.setExact(AlarmManager.ELAPSED_REALTIME, nextElapsed, in updateBurnInProtection()
176 mAlarmManager.cancel(mBurnInProtectionIntent); in updateBurnInProtection()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DNetworkLoggingHandler.java65 private final AlarmManager mAlarmManager; field in NetworkLoggingHandler
109 mAlarmManager = mDpm.mInjector.getAlarmManager(); in NetworkLoggingHandler()
142 mAlarmManager.setWindow(AlarmManager.ELAPSED_REALTIME_WAKEUP, when, in scheduleBatchFinalization()
/frameworks/base/services/core/java/com/android/server/twilight/
DTwilightService.java62 protected 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.java86 private AlarmManager mAlarmManager; field in NetworkTimeUpdateService
111 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in NetworkTimeUpdateService()
237 mAlarmManager.cancel(mPendingPollIntent); in resetAlarm()
240 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME, next, mPendingPollIntent); in resetAlarm()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigStore.java93 private final AlarmManager mAlarmManager; field in WifiConfigStore
147 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in WifiConfigStore()
302 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, in startBufferedWriteAlarm()
314 mAlarmManager.cancel(mBufferedWriteListener); in stopBufferedWriteAlarm()
DWifiConnectivityManager.java140 private final AlarmManager mAlarmManager; field in WifiConnectivityManager
563 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in WifiConnectivityManager()
952 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, in scheduleWatchdogTimer()
960 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, in schedulePeriodicScanTimer()
970 mAlarmManager.cancel(mPeriodicScanTimerListener); in cancelPeriodicScanTimer()
981 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, in scheduleDelayedSingleScan()
991 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, in scheduleDelayedConnectivityScan()
DWifiController.java65 private AlarmManager mAlarmManager; field in WifiController
154 mAlarmManager = (AlarmManager)mContext.getSystemService(Context.ALARM_SERVICE); in WifiController()
355 mAlarmManager.cancel(mIdleIntent); in processMessage()
373 mAlarmManager.set(AlarmManager.RTC_WAKEUP, in processMessage()
398 mAlarmManager.set(AlarmManager.RTC_WAKEUP, triggerTime, mIdleIntent); in processMessage()
/frameworks/base/services/core/java/com/android/server/connectivity/
DPacManager.java80 private AlarmManager mAlarmManager; field in PacManager
163 if (mAlarmManager == null) { in getAlarmManager()
164 mAlarmManager = (AlarmManager)mContext.getSystemService(Context.ALARM_SERVICE); in getAlarmManager()
166 return mAlarmManager; in getAlarmManager()
/frameworks/base/services/core/java/com/android/server/notification/
DScheduleConditionProvider.java70 private AlarmManager mAlarmManager; field in ScheduleConditionProvider
162 if (mAlarmManager == null) { in evaluateSubscriptions()
163 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in evaluateSubscriptions()
224 final AlarmManager.AlarmClockInfo info = mAlarmManager.getNextAlarmClock( in getNextAlarm()
/frameworks/base/services/core/java/com/android/server/display/
DNightDisplayService.java477 private final AlarmManager mAlarmManager; field in NightDisplayService.CustomAutoMode
486 mAlarmManager = (AlarmManager) getContext().getSystemService(Context.ALARM_SERVICE); in CustomAutoMode()
521 mAlarmManager.setExact(AlarmManager.RTC, millis, TAG, this, null); in updateNextAlarm()
544 mAlarmManager.cancel(this); in onStop()

123