Home
last modified time | relevance | path

Searched refs:OnAlarmListener (Results 1 – 25 of 32) 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.java199 public interface OnAlarmListener { interface in AlarmManager
207 final OnAlarmListener mListener;
211 public ListenerWrapper(OnAlarmListener listener) { in ListenerWrapper()
268 private static ArrayMap<OnAlarmListener, ListenerWrapper> sWrappers;
383 public void set(@AlarmType int type, long triggerAtMillis, String tag, OnAlarmListener listener, in set()
510 String tag, OnAlarmListener listener, Handler targetHandler) { in setWindow()
563 OnAlarmListener listener, Handler targetHandler) { in setExact()
574 OnAlarmListener listener, Handler targetHandler) { in setIdleUntil()
641 long intervalMillis, String tag, OnAlarmListener listener, Handler targetHandler, in set()
660 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;
419 private void updateAlarmWithListenerLocked(String tag, OnAlarmListener listener, in updateAlarmWithListenerLocked()
435 private final OnAlarmListener mDeadlineExpiredListener = new OnAlarmListener() {
445 private final OnAlarmListener mNextDelayExpiredListener = new OnAlarmListener() {
DQuotaController.java467 private final AlarmManager.OnAlarmListener mSessionCleanupAlarmListener =
468 new AlarmManager.OnAlarmListener() {
1965 private class QcAlarmListener implements AlarmManager.OnAlarmListener {
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWificondControlTest.java1045 final ArgumentCaptor<AlarmManager.OnAlarmListener> alarmListenerCaptor = in testSendMgmtFrameThrowsException()
1046 ArgumentCaptor.forClass(AlarmManager.OnAlarmListener.class); in testSendMgmtFrameThrowsException()
1078 final ArgumentCaptor<AlarmManager.OnAlarmListener> alarmListenerCaptor = in testSendMgmtFrameSuccess()
1079 ArgumentCaptor.forClass(AlarmManager.OnAlarmListener.class); in testSendMgmtFrameSuccess()
1110 final ArgumentCaptor<AlarmManager.OnAlarmListener> alarmListenerCaptor = in testSendMgmtFrameFailure()
1111 ArgumentCaptor.forClass(AlarmManager.OnAlarmListener.class); in testSendMgmtFrameFailure()
1142 final ArgumentCaptor<AlarmManager.OnAlarmListener> alarmListenerCaptor = in testSendMgmtFrameTimeout()
1143 ArgumentCaptor.forClass(AlarmManager.OnAlarmListener.class); in testSendMgmtFrameTimeout()
1208 final ArgumentCaptor<AlarmManager.OnAlarmListener> alarmListenerCaptor = in testSendMgmtFrameTimeoutAckThreadSafe()
1209 ArgumentCaptor.forClass(AlarmManager.OnAlarmListener.class); in testSendMgmtFrameTimeoutAckThreadSafe()
[all …]
DWifiNetworkFactoryTest.java33 import android.app.AlarmManager.OnAlarmListener;
139 ArgumentCaptor<OnAlarmListener> mPeriodicScanListenerArgumentCaptor =
140 ArgumentCaptor.forClass(OnAlarmListener.class);
141 ArgumentCaptor<OnAlarmListener> mConnectionTimeoutAlarmListenerArgumentCaptor =
142 ArgumentCaptor.forClass(OnAlarmListener.class);
644 verify(mAlarmManager).cancel(any(OnAlarmListener.class)); in testPeriodicScanCancelOnReleaseNetworkRequestWithSpecifier()
1066 verify(mAlarmManager).cancel(any(OnAlarmListener.class)); in testNetworkSpecifierHandleUserSelectionConnectToNetwork()
1111 verify(mAlarmManager).cancel(any(OnAlarmListener.class)); in testNetworkSpecifierHandleUserSelectionConnectToExistingSavedNetwork()
1262 verify(mAlarmManager).cancel(any(OnAlarmListener.class)); in testNetworkSpecifierHandleUserSelectionReject()
2412 OnAlarmListener alarmListener = null; in verifyPeriodicScans()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsStrongAuth.java25 import android.app.AlarmManager.OnAlarmListener;
186 private class StrongAuthTimeoutAlarmListener implements OnAlarmListener {
/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.java186 private final AlarmManager.OnAlarmListener mBufferedWriteListener =
187 new AlarmManager.OnAlarmListener() {
DWifiNetworkFactory.java275 private class PeriodicScanAlarmListener implements AlarmManager.OnAlarmListener {
283 private class ConnectionTimeoutAlarmListener implements AlarmManager.OnAlarmListener {
DWificondControl.java201 private AlarmManager.OnAlarmListener mTimeoutCallback;
/frameworks/base/core/java/com/android/internal/util/
DWakeupMessage.java39 public class WakeupMessage implements AlarmManager.OnAlarmListener {
/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/services/core/java/com/android/server/twilight/
DTwilightService.java49 implements AlarmManager.OnAlarmListener, Handler.Callback, LocationListener {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DKeyguardSliceProviderTest.java218 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;
262 private final OnAlarmListener mAnomalyAlarmListener = new AnomalyAlarmListener();
263 private final OnAlarmListener mPullingAlarmListener = new PullingAlarmListener();
264 private final OnAlarmListener mPeriodicAlarmListener = new PeriodicAlarmListener();
591 public final static class AnomalyAlarmListener implements OnAlarmListener {
612 public final static class PullingAlarmListener implements OnAlarmListener {
633 public final static class PeriodicAlarmListener implements OnAlarmListener {
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardSliceProvider.java105 private final AlarmManager.OnAlarmListener mUpdateNextAlarm = this::updateNextAlarm;
/frameworks/base/services/core/java/com/android/server/
DDeviceIdleController.java598 private final AlarmManager.OnAlarmListener mLightAlarmListener
599 = new AlarmManager.OnAlarmListener() {
608 private final AlarmManager.OnAlarmListener mSensingTimeoutAlarmListener
609 = new AlarmManager.OnAlarmListener() {
623 final AlarmManager.OnAlarmListener mDeepAlarmListener
624 = new AlarmManager.OnAlarmListener() {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DScrimControllerTest.java507 verify(mAlarmManager).cancel(any(AlarmManager.OnAlarmListener.class)); in testWillHideAodWallpaper()
/frameworks/base/services/core/java/com/android/server/trust/
DTrustManagerService.java23 import android.app.AlarmManager.OnAlarmListener;
1507 private class TrustTimeoutAlarmListener implements OnAlarmListener {

12