Home
last modified time | relevance | path

Searched refs:OnAlarmListener (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/tests/utils/testutils/java/android/app/test/
DTestAlarmManager.java52 any(AlarmManager.OnAlarmListener.class), any(Handler.class)); in TestAlarmManager()
54 anyString(), any(AlarmManager.OnAlarmListener.class), any(Handler.class)); in TestAlarmManager()
56 .when(mAlarmManager).cancel(any(AlarmManager.OnAlarmListener.class)); in TestAlarmManager()
140 AlarmManager.OnAlarmListener listener, Handler handler) { in answer()
147 public void answer(AlarmManager.OnAlarmListener listener) { in answer()
163 private final AlarmManager.OnAlarmListener mListener;
165 public AlarmListenerRunnable(AlarmManager.OnAlarmListener listener, Handler handler) { in AlarmListenerRunnable()
170 public AlarmManager.OnAlarmListener getListener() { in getListener()
/frameworks/base/core/java/android/app/
DAlarmManager.java198 public interface OnAlarmListener { interface in AlarmManager
206 final OnAlarmListener mListener;
210 public ListenerWrapper(OnAlarmListener listener) { in ListenerWrapper()
267 private static ArrayMap<OnAlarmListener, ListenerWrapper> sWrappers;
382 public void set(@AlarmType int type, long triggerAtMillis, String tag, OnAlarmListener listener, in set()
509 String tag, OnAlarmListener listener, Handler targetHandler) { in setWindow()
562 OnAlarmListener listener, Handler targetHandler) { in setExact()
573 OnAlarmListener listener, Handler targetHandler) { in setIdleUntil()
640 long intervalMillis, String tag, OnAlarmListener listener, Handler targetHandler, in set()
659 long intervalMillis, OnAlarmListener listener, Handler targetHandler, in set()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DAlarmTimeout.java27 public class AlarmTimeout implements AlarmManager.OnAlarmListener {
34 private final AlarmManager.OnAlarmListener mListener;
39 public AlarmTimeout(AlarmManager alarmManager, AlarmManager.OnAlarmListener listener, in AlarmTimeout()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DWificondScannerTest.java103 .cancel(any(AlarmManager.OnAlarmListener.class)); in externalScanResultsDoNotCauseSpuriousTimerCancellationOrCrash()
106 .cancel(isNull(AlarmManager.OnAlarmListener.class)); in externalScanResultsDoNotCauseSpuriousTimerCancellationOrCrash()
128 .cancel(any(AlarmManager.OnAlarmListener.class)); in externalScanResultsAfterOurScanDoNotCauseSpuriousTimerCancellationOrCrash()
131 .cancel(isNull(AlarmManager.OnAlarmListener.class)); in externalScanResultsAfterOurScanDoNotCauseSpuriousTimerCancellationOrCrash()
159 .cancel(any(AlarmManager.OnAlarmListener.class)); in lateScanResultsDoNotCauseSpuriousTimerCancellationOrCrash()
162 .cancel(isNull(AlarmManager.OnAlarmListener.class)); in lateScanResultsDoNotCauseSpuriousTimerCancellationOrCrash()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DWakeupMessageTest.java56 ArgumentCaptor<AlarmManager.OnAlarmListener> mListenerCaptor =
57 ArgumentCaptor.forClass(AlarmManager.OnAlarmListener.class);
110 eq(TEST_CMD_NAME), any(AlarmManager.OnAlarmListener.class), eq(mHandler)); in scheduleAndVerifyAlarm()
181 eq(TEST_CMD_NAME), any(AlarmManager.OnAlarmListener.class), eq(mHandler)); in scheduleRunnable()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DNetworkLoggingHandler.java22 import android.app.AlarmManager.OnAlarmListener;
78 private final OnAlarmListener mBatchTimeoutAlarmListener = new OnAlarmListener() {
/frameworks/base/services/core/java/com/android/server/job/controllers/
DTimeController.java24 import android.app.AlarmManager.OnAlarmListener;
423 OnAlarmListener listener, long alarmTimeElapsed, WorkSource ws) { in updateAlarmWithListenerLocked()
438 private final OnAlarmListener mDeadlineExpiredListener = new OnAlarmListener() {
448 private final OnAlarmListener mNextDelayExpiredListener = new OnAlarmListener() {
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWificondControlTest.java1040 final ArgumentCaptor<AlarmManager.OnAlarmListener> alarmListenerCaptor = in testSendMgmtFrameThrowsException()
1041 ArgumentCaptor.forClass(AlarmManager.OnAlarmListener.class); in testSendMgmtFrameThrowsException()
1073 final ArgumentCaptor<AlarmManager.OnAlarmListener> alarmListenerCaptor = in testSendMgmtFrameSuccess()
1074 ArgumentCaptor.forClass(AlarmManager.OnAlarmListener.class); in testSendMgmtFrameSuccess()
1105 final ArgumentCaptor<AlarmManager.OnAlarmListener> alarmListenerCaptor = in testSendMgmtFrameFailure()
1106 ArgumentCaptor.forClass(AlarmManager.OnAlarmListener.class); in testSendMgmtFrameFailure()
1137 final ArgumentCaptor<AlarmManager.OnAlarmListener> alarmListenerCaptor = in testSendMgmtFrameTimeout()
1138 ArgumentCaptor.forClass(AlarmManager.OnAlarmListener.class); in testSendMgmtFrameTimeout()
1203 final ArgumentCaptor<AlarmManager.OnAlarmListener> alarmListenerCaptor = in testSendMgmtFrameTimeoutAckThreadSafe()
1204 ArgumentCaptor.forClass(AlarmManager.OnAlarmListener.class); in testSendMgmtFrameTimeoutAckThreadSafe()
[all …]
DWifiNetworkFactoryTest.java33 import android.app.AlarmManager.OnAlarmListener;
149 ArgumentCaptor<OnAlarmListener> mPeriodicScanListenerArgumentCaptor =
150 ArgumentCaptor.forClass(OnAlarmListener.class);
151 ArgumentCaptor<OnAlarmListener> mConnectionTimeoutAlarmListenerArgumentCaptor =
152 ArgumentCaptor.forClass(OnAlarmListener.class);
655 verify(mAlarmManager).cancel(any(OnAlarmListener.class)); in testPeriodicScanCancelOnReleaseNetworkRequestWithSpecifier()
1067 verify(mAlarmManager).cancel(any(OnAlarmListener.class)); in testNetworkSpecifierHandleUserSelectionConnectToNetwork()
1179 verify(mAlarmManager).cancel(any(OnAlarmListener.class)); in testNetworkSpecifierHandleUserSelectionConnectToExistingSavedNetwork()
1330 verify(mAlarmManager).cancel(any(OnAlarmListener.class)); in testNetworkSpecifierHandleUserSelectionReject()
2674 OnAlarmListener alarmListener = null; in verifyPeriodicScans()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConnectivityManager.java216 private final AlarmManager.OnAlarmListener mRestartScanListener =
217 new AlarmManager.OnAlarmListener() {
225 private class RestartSingleScanListener implements AlarmManager.OnAlarmListener {
240 private final AlarmManager.OnAlarmListener mWatchdogListener =
241 new AlarmManager.OnAlarmListener() {
249 private final AlarmManager.OnAlarmListener mPeriodicScanTimerListener =
250 new AlarmManager.OnAlarmListener() {
DWifiConfigStore.java208 private final AlarmManager.OnAlarmListener mBufferedWriteListener =
209 new AlarmManager.OnAlarmListener() {
DWifiNetworkFactory.java254 private class PeriodicScanAlarmListener implements AlarmManager.OnAlarmListener {
262 private class ConnectionTimeoutAlarmListener implements AlarmManager.OnAlarmListener {
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsStrongAuth.java25 import android.app.AlarmManager.OnAlarmListener;
186 private class StrongAuthTimeoutAlarmListener implements OnAlarmListener {
/frameworks/base/core/java/com/android/internal/util/
DWakeupMessage.java39 public class WakeupMessage implements AlarmManager.OnAlarmListener {
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DDeviceIdleControllerTest.java1700 final ArgumentCaptor<AlarmManager.OnAlarmListener> motionAlarmListener = ArgumentCaptor in testStationaryDetection_QuickDozeOn_NoMotion()
1701 .forClass(AlarmManager.OnAlarmListener.class); in testStationaryDetection_QuickDozeOn_NoMotion()
1702 final ArgumentCaptor<AlarmManager.OnAlarmListener> motionRegistrationAlarmListener = in testStationaryDetection_QuickDozeOn_NoMotion()
1703 ArgumentCaptor.forClass(AlarmManager.OnAlarmListener.class); in testStationaryDetection_QuickDozeOn_NoMotion()
1778 final ArgumentCaptor<AlarmManager.OnAlarmListener> alarmListener = ArgumentCaptor in testStationaryDetection_QuickDozeOn_OneShot()
1779 .forClass(AlarmManager.OnAlarmListener.class); in testStationaryDetection_QuickDozeOn_OneShot()
1822 final ArgumentCaptor<AlarmManager.OnAlarmListener> alarmListener = ArgumentCaptor in testStationaryDetection_QuickDozeOn_MultiShot()
1823 .forClass(AlarmManager.OnAlarmListener.class); in testStationaryDetection_QuickDozeOn_MultiShot()
/frameworks/base/services/core/java/com/android/server/job/controllers/idle/
DDeviceIdlenessTracker.java50 private AlarmManager.OnAlarmListener mIdleAlarmListener = () -> {
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWificondScannerImpl.java94 private AlarmManager.OnAlarmListener mScanTimeoutListener;
207 mScanTimeoutListener = new AlarmManager.OnAlarmListener() { in startSingleScan()
/frameworks/base/non-updatable-api/
Dsystem-lint-baseline.txt126 …oid.app.AlarmManager#set(int, long, String, android.app.AlarmManager.OnAlarmListener, android.os.H…
128 …pp.AlarmManager#setExact(int, long, String, android.app.AlarmManager.OnAlarmListener, android.os.H…
130 …mManager#setWindow(int, long, long, String, android.app.AlarmManager.OnAlarmListener, android.os.H…
/frameworks/base/services/core/java/com/android/server/twilight/
DTwilightService.java50 implements AlarmManager.OnAlarmListener, Handler.Callback, LocationListener {
/frameworks/base/api/
Dsystem-lint-baseline.txt213 …oid.app.AlarmManager#set(int, long, String, android.app.AlarmManager.OnAlarmListener, android.os.H…
215 …pp.AlarmManager#setExact(int, long, String, android.app.AlarmManager.OnAlarmListener, android.os.H…
217 …mManager#setWindow(int, long, long, String, android.app.AlarmManager.OnAlarmListener, android.os.H…
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DKeyguardSliceProviderTest.java238 verify(mAlarmManager).cancel(any(AlarmManager.OnAlarmListener.class)); in onDestroy_unregisterListeners()
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java38 import android.app.AlarmManager.OnAlarmListener;
264 private final OnAlarmListener mAnomalyAlarmListener = new AnomalyAlarmListener();
265 private final OnAlarmListener mPullingAlarmListener = new PullingAlarmListener();
266 private final OnAlarmListener mPeriodicAlarmListener = new PeriodicAlarmListener();
593 public final static class AnomalyAlarmListener implements OnAlarmListener {
614 public final static class PullingAlarmListener implements OnAlarmListener {
635 public final static class PeriodicAlarmListener implements OnAlarmListener {
/frameworks/base/services/core/java/com/android/server/
DDeviceIdleController.java606 private final AlarmManager.OnAlarmListener mLightAlarmListener
607 = new AlarmManager.OnAlarmListener() {
617 private final AlarmManager.OnAlarmListener mMotionRegistrationAlarmListener = () -> {
625 private final AlarmManager.OnAlarmListener mMotionTimeoutAlarmListener = () -> {
640 private final AlarmManager.OnAlarmListener mSensingTimeoutAlarmListener
641 = new AlarmManager.OnAlarmListener() {
655 final AlarmManager.OnAlarmListener mDeepAlarmListener
656 = new AlarmManager.OnAlarmListener() {
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardSliceProvider.java107 private final AlarmManager.OnAlarmListener mUpdateNextAlarm = this::updateNextAlarm;
/frameworks/base/services/core/java/com/android/server/trust/
DTrustManagerService.java23 import android.app.AlarmManager.OnAlarmListener;
1557 private class TrustTimeoutAlarmListener implements OnAlarmListener {

12