/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | AlarmTimeout.java | 33 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/ |
D | DozeUiTest.java | 52 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()
|
D | DozeTriggersTest.java | 60 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/ |
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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | WificondPnoScannerTest.java | 57 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/ |
D | WifiConfigStoreTest.java | 131 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()
|
D | WifiConnectivityManagerTest.java | 81 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/ |
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 | NextAlarmControllerImpl.java | 37 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()
|
D | ZenModeControllerImpl.java | 62 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/ |
D | WificondScannerImpl.java | 64 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/ |
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/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsStrongAuth.java | 68 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/ |
D | BurnInProtectionHelper.java | 81 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/ |
D | NetworkLoggingHandler.java | 65 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/ |
D | TwilightService.java | 62 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/ |
D | NetworkTimeUpdateService.java | 86 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/ |
D | WifiConfigStore.java | 93 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()
|
D | WifiConnectivityManager.java | 140 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()
|
D | WifiController.java | 65 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/ |
D | PacManager.java | 80 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/ |
D | ScheduleConditionProvider.java | 70 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/ |
D | NightDisplayService.java | 477 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()
|