Home
last modified time | relevance | path

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

123

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DWificondScannerTest.java100 verify(mAlarmManager.getAlarmManager(), never()).cancel(any(PendingIntent.class)); in externalScanResultsDoNotCauseSpuriousTimerCancellationOrCrash()
101 verify(mAlarmManager.getAlarmManager(), never()) in externalScanResultsDoNotCauseSpuriousTimerCancellationOrCrash()
103 verify(mAlarmManager.getAlarmManager(), never()).cancel(isNull(PendingIntent.class)); in externalScanResultsDoNotCauseSpuriousTimerCancellationOrCrash()
104 verify(mAlarmManager.getAlarmManager(), never()) in externalScanResultsDoNotCauseSpuriousTimerCancellationOrCrash()
125 verify(mAlarmManager.getAlarmManager(), never()).cancel(any(PendingIntent.class)); in externalScanResultsAfterOurScanDoNotCauseSpuriousTimerCancellationOrCrash()
126 verify(mAlarmManager.getAlarmManager(), times(1)) in externalScanResultsAfterOurScanDoNotCauseSpuriousTimerCancellationOrCrash()
128 verify(mAlarmManager.getAlarmManager(), never()).cancel(isNull(PendingIntent.class)); in externalScanResultsAfterOurScanDoNotCauseSpuriousTimerCancellationOrCrash()
129 verify(mAlarmManager.getAlarmManager(), never()) in externalScanResultsAfterOurScanDoNotCauseSpuriousTimerCancellationOrCrash()
149 mAlarmManager.dispatch(WificondScannerImpl.TIMEOUT_ALARM_TAG); in lateScanResultsDoNotCauseSpuriousTimerCancellationOrCrash()
156 verify(mAlarmManager.getAlarmManager(), never()).cancel(any(PendingIntent.class)); in lateScanResultsDoNotCauseSpuriousTimerCancellationOrCrash()
[all …]
DWificondPnoScannerTest.java57 TestAlarmManager mAlarmManager; field in WificondPnoScannerTest
70 mAlarmManager = new TestAlarmManager(); in setup()
81 .thenReturn(mAlarmManager.getAlarmManager()); in setup()
/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/core/java/com/android/internal/util/
DWakeupMessage.java40 private final AlarmManager mAlarmManager; field in WakeupMessage
55 mAlarmManager = getAlarmManager(context); in WakeupMessage()
79 mAlarmManager = getAlarmManager(context); in WakeupMessage()
100 mAlarmManager.setExact( in schedule()
111 mAlarmManager.cancel(this); in cancel()
/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/support/work/workmanager-firebase/src/main/java/androidx/work/impl/background/firebase/
DFirebaseJobScheduler.java53 private AlarmManager mAlarmManager; field in FirebaseJobScheduler
92 if (mAlarmManager == null) { in scheduleLater()
93 mAlarmManager = (AlarmManager) mAppContext.getSystemService(Context.ALARM_SERVICE); in scheduleLater()
105 mAlarmManager.setExact(AlarmManager.RTC_WAKEUP, triggerAtMillis, pendingIntent); in scheduleLater()
107 mAlarmManager.set(AlarmManager.RTC_WAKEUP, triggerAtMillis, pendingIntent); in scheduleLater()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DWakeupMessageTest.java51 @Mock AlarmManager mAlarmManager; field in WakeupMessageTest
90 when(mContext.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()
180 verify(mAlarmManager).setExact(eq(AlarmManager.ELAPSED_REALTIME_WAKEUP), eq(when), in scheduleRunnable()
/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/tests/src/com/android/systemui/doze/
DDozeUiTest.java62 private AlarmManager mAlarmManager; field in DozeUiTest
85 mDozeUi = new DozeUi(mContext, mAlarmManager, mMachine, mWakeLock, mHost, mHandler, in setUp()
102 clearInvocations(mAlarmManager); in pausingAndUnpausingAod_registersTimeTickAfterUnpausing()
106 verify(mAlarmManager).setExact(anyInt(), anyLong(), eq("doze_time_tick"), any(), any()); in pausingAndUnpausingAod_registersTimeTickAfterUnpausing()
140 mDozeUi = new DozeUi(mContext, mAlarmManager, mMachine, mWakeLock, mHost, mHandler, in neverAnimateScreenOff_whenNotSupported()
DDozeTriggersTest.java61 private AlarmManager mAlarmManager; field in DozeTriggersTest
73 mAlarmManager = mock(AlarmManager.class); in setUp()
80 mTriggers = new DozeTriggers(mContext, mMachine, mHost, mAlarmManager, mConfig, mParameters, in setUp()
/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()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DKeyguardSliceProviderTest.java68 private AlarmManager mAlarmManager; field in KeyguardSliceProviderTest
119 verify(mAlarmManager).setExact(eq(AlarmManager.RTC), eq(triggerAt), anyString(), any(), in schedulesAlarm12hBefore()
160 mAlarmManager = KeyguardSliceProviderTest.this.mAlarmManager; in onCreateSliceProvider()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigStoreTest.java148 private TestAlarmManager mAlarmManager; field in WifiConfigStoreTest
165 mAlarmManager = new TestAlarmManager(); in setupMocks()
168 .thenReturn(mAlarmManager.getAlarmManager()); in setupMocks()
208 assertFalse(mAlarmManager.isPending(WifiConfigStore.BUFFERED_WRITE_ALARM_TAG)); in testWriteWithEmptyData()
227 assertFalse(mAlarmManager.isPending(WifiConfigStore.BUFFERED_WRITE_ALARM_TAG)); in testForceWrite()
241 assertTrue(mAlarmManager.isPending(WifiConfigStore.BUFFERED_WRITE_ALARM_TAG)); in testBufferedWrite()
246 mAlarmManager.dispatch(WifiConfigStore.BUFFERED_WRITE_ALARM_TAG); in testBufferedWrite()
268 assertTrue(mAlarmManager.isPending(WifiConfigStore.BUFFERED_WRITE_ALARM_TAG)); in testForceWriteAfterBufferedWrite()
278 assertFalse(mAlarmManager.isPending(WifiConfigStore.BUFFERED_WRITE_ALARM_TAG)); in testForceWriteAfterBufferedWrite()
DWifiConnectivityManagerTest.java85 mAlarmManager = new TestAlarmManager(); in setUp()
117 private TestAlarmManager mAlarmManager; field in WifiConnectivityManagerTest
178 mAlarmManager.getAlarmManager()); in mockContext()
601 mAlarmManager.dispatch(WifiConnectivityManager.WATCHDOG_TIMER_TAG); in watchdogBitePnoBadIncrementsMetrics()
628 mAlarmManager.dispatch(WifiConnectivityManager.WATCHDOG_TIMER_TAG); in watchdogBitePnoGoodIncrementsMetrics()
917 long firstIntervalMs = mAlarmManager in checkPeriodicScanIntervalWhenDisconnected()
926 mAlarmManager.dispatch(WifiConnectivityManager.PERIODIC_SCAN_TIMER_TAG); in checkPeriodicScanIntervalWhenDisconnected()
930 long secondIntervalMs = mAlarmManager in checkPeriodicScanIntervalWhenDisconnected()
943 mAlarmManager.dispatch(WifiConnectivityManager.PERIODIC_SCAN_TIMER_TAG); in checkPeriodicScanIntervalWhenDisconnected()
945 intervalMs = mAlarmManager in checkPeriodicScanIntervalWhenDisconnected()
[all …]
DSoftApManagerTest.java84 private TestAlarmManager mAlarmManager; field in SoftApManagerTest
110 mAlarmManager = new TestAlarmManager(); in setUp()
112 .thenReturn(mAlarmManager.getAlarmManager()); in setUp()
759 verify(mAlarmManager.getAlarmManager()).setExact(anyInt(), anyLong(), in schedulesTimeoutTimerOnStart()
772 verify(mAlarmManager.getAlarmManager()).cancel(any(WakeupMessage.class)); in cancelsTimeoutTimerOnStop()
785 verify(mAlarmManager.getAlarmManager()).cancel(any(WakeupMessage.class)); in cancelsTimeoutTimerOnNewClientsConnect()
799 verify(mAlarmManager.getAlarmManager()).cancel(any(WakeupMessage.class)); in schedulesTimeoutTimerWhenAllClientsDisconnect()
805 verify(mAlarmManager.getAlarmManager(), times(2)).setExact(anyInt(), anyLong(), in schedulesTimeoutTimerWhenAllClientsDisconnect()
815 mAlarmManager.dispatch(mSoftApManager.SOFT_AP_SEND_MESSAGE_TIMEOUT_TAG); in stopsSoftApOnTimeoutMessage()
833 verify(mAlarmManager.getAlarmManager()).cancel(any(WakeupMessage.class)); in cancelsTimeoutTimerOnTimeoutToggleChangeWhenNoClients()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsStrongAuth.java64 private AlarmManager mAlarmManager; field in LockSettingsStrongAuth
70 mAlarmManager = context.getSystemService(AlarmManager.class); in LockSettingsStrongAuth()
135 mAlarmManager.cancel(alarm); in handleScheduleStrongAuthTimeout()
141 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME, when, STRONG_AUTH_TIMEOUT_ALARM_TAG, in handleScheduleStrongAuthTimeout()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/
DRttServiceImplTest.java103 private TestAlarmManager mAlarmManager; field in RttServiceImplTest
190 mAlarmManager = new TestAlarmManager(); in setUp()
200 .thenReturn(mAlarmManager.getAlarmManager()); in setUp()
201 mInOrder = inOrder(mAlarmManager.getAlarmManager(), mockContext); in setUp()
297 mAlarmManager.getAlarmManager()); in testRangingFlow()
361 mAlarmManager.getAlarmManager()); in testRangingFlowUsingAwarePeerHandles()
426 mAlarmManager.getAlarmManager()); in testRangingFlowNativeFailure()
463 mAlarmManager.getAlarmManager()); in testRangingRequestWithoutRuntimePermission()
543 mAlarmManager.getAlarmManager()); in testBinderDeathOfRangingApp()
582 mAlarmManager.getAlarmManager()); in testBinderDeathWithWorkSource()
[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/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/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/devicepolicy/java/com/android/server/devicepolicy/
DNetworkLoggingHandler.java65 private final AlarmManager mAlarmManager; field in NetworkLoggingHandler
117 this.mAlarmManager = mDpm.mInjector.getAlarmManager(); in NetworkLoggingHandler()
151 mAlarmManager.setWindow(AlarmManager.ELAPSED_REALTIME_WAKEUP, when, in scheduleBatchFinalization()
/frameworks/base/services/core/java/com/android/server/
DNetworkTimeUpdateService.java78 private final AlarmManager mAlarmManager; field in NetworkTimeUpdateService
104 mAlarmManager = mContext.getSystemService(AlarmManager.class); in NetworkTimeUpdateService()
229 mAlarmManager.cancel(mPendingPollIntent); in resetAlarm()
232 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME, next, mPendingPollIntent); in resetAlarm()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardSliceProvider.java88 protected AlarmManager mAlarmManager; field in KeyguardSliceProvider
189 mAlarmManager = getContext().getSystemService(AlarmManager.class); in onCreateSliceProvider()
283 mAlarmManager.cancel(mUpdateNextAlarm); in onNextAlarmChanged()
288 mAlarmManager.setExact(AlarmManager.RTC, triggerAt, "lock_screen_next_alarm", in onNextAlarmChanged()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigStore.java97 private final AlarmManager mAlarmManager; field in WifiConfigStore
151 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in WifiConfigStore()
306 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, in startBufferedWriteAlarm()
318 mAlarmManager.cancel(mBufferedWriteListener); in stopBufferedWriteAlarm()
/frameworks/base/services/core/java/com/android/server/connectivity/
DPacManager.java78 private AlarmManager mAlarmManager; field in PacManager
161 if (mAlarmManager == null) { in getAlarmManager()
162 mAlarmManager = (AlarmManager)mContext.getSystemService(Context.ALARM_SERVICE); in getAlarmManager()
164 return mAlarmManager; in getAlarmManager()

123