Home
last modified time | relevance | path

Searched refs:alarmManager (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/services/core/java/com/android/server/location/injector/
DSystemAlarmHelper.java45 AlarmManager alarmManager = Objects.requireNonNull( in setDelayedAlarmInternal() local
47 alarmManager.set(ELAPSED_REALTIME_WAKEUP, SystemClock.elapsedRealtime() + delayMs, in setDelayedAlarmInternal()
53 AlarmManager alarmManager = Objects.requireNonNull( in cancel() local
55 alarmManager.cancel(listener); in cancel()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothDiscoverableTimeoutReceiver.java42 AlarmManager alarmManager = in setDiscoverableAlarm() local
47 alarmManager.cancel(pending); in setDiscoverableAlarm()
52 alarmManager.set(AlarmManager.RTC_WAKEUP, alarmTime, pending); in setDiscoverableAlarm()
64 AlarmManager alarmManager = in cancelDiscoverableAlarm() local
67 alarmManager.cancel(pending); in cancelDiscoverableAlarm()
/frameworks/base/services/core/java/com/android/server/utils/
DAlarmQueue.java100 final AlarmManager alarmManager = mContext.getSystemService(AlarmManager.class);
101 if (alarmManager == null) {
120 alarmManager.setExact(AlarmManager.ELAPSED_REALTIME,
123 alarmManager.setWindow(AlarmManager.ELAPSED_REALTIME,
294 final AlarmManager alarmManager = mContext.getSystemService(AlarmManager.class); in setNextAlarmLocked() local
295 if (alarmManager != null) { in setNextAlarmLocked()
298 alarmManager.cancel(this); in setNextAlarmLocked()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarPolicyTest.kt89 @Mock private lateinit var alarmManager: AlarmManager variable in com.android.systemui.statusbar.phone.PhoneStatusBarPolicyTest
129 whenever(alarmManager.getNextAlarmClock(anyInt())).thenReturn(alarmInfo) in testDeviceNotProvisioned_alarmIconNotShown()
143 whenever(alarmManager.getNextAlarmClock(anyInt())).thenReturn(alarmInfo) in testDeviceProvisioned_alarmIconShown()
157 whenever(alarmManager.getNextAlarmClock(anyInt())).thenReturn(alarmInfo) in testDeviceProvisionedChanged_alarmIconShownAfterCurrentUserSetup()
192 alarmManager, in createStatusBarPolicy()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DAlarmTimeout.java39 public AlarmTimeout(AlarmManager alarmManager, AlarmManager.OnAlarmListener listener, in AlarmTimeout() argument
41 mAlarmManager = alarmManager; in AlarmTimeout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozePauser.java39 public DozePauser(@Main Handler handler, AlarmManager alarmManager, in DozePauser() argument
41 mPauseTimeout = new AlarmTimeout(alarmManager, this::onTimeout, TAG, handler); in DozePauser()
DDozeUi.java60 public DozeUi(Context context, AlarmManager alarmManager, in DozeUi() argument
71 mTimeTicker = new AlarmTimeout(alarmManager, this::onTimeTick, "doze_time_tick", handler); in DozeUi()
/frameworks/base/services/core/java/com/android/server/timezonedetector/
DEnvironmentImpl.java81 AlarmManager alarmManager = mContext.getSystemService(AlarmManager.class); in setDeviceTimeZone() local
82 alarmManager.setTimeZone(zoneId); in setDeviceTimeZone()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNextAlarmControllerImpl.java68 AlarmManager alarmManager, in NextAlarmControllerImpl() argument
73 mAlarmManager = alarmManager; in NextAlarmControllerImpl()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DInstallCarrierAppUtils.java123 AlarmManager alarmManager = (AlarmManager) context.getSystemService(ALARM_SERVICE); in showNotificationIfNotInstalledDelayed() local
129 alarmManager.set(AlarmManager.ELAPSED_REALTIME, in showNotificationIfNotInstalledDelayed()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierKeyDownloadManager.java234 AlarmManager alarmManager = in cleanupRenewalAlarms() local
236 alarmManager.cancel(carrierKeyDownloadIntent); in cleanupRenewalAlarms()
289 final AlarmManager alarmManager = (AlarmManager) mContext.getSystemService( in resetRenewalAlarm() local
295 alarmManager.set(AlarmManager.RTC_WAKEUP, minExpirationDate, carrierKeyDownloadIntent); in resetRenewalAlarm()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/tare/
DInternalResourceService.java628 AlarmManager alarmManager = getContext().getSystemService(AlarmManager.class); in scheduleUnusedWealthReclamationLocked() local
629 if (alarmManager != null) { in scheduleUnusedWealthReclamationLocked()
630 alarmManager.setWindow(AlarmManager.ELAPSED_REALTIME, in scheduleUnusedWealthReclamationLocked()
753 AlarmManager alarmManager = getContext().getSystemService(AlarmManager.class); in tearDownEverything() local
754 if (alarmManager != null) { in tearDownEverything()
755 alarmManager.cancel(mUnusedWealthReclamationListener); in tearDownEverything()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/
DDreamOverlayStatusBarViewController.java150 AlarmManager alarmManager, in DreamOverlayStatusBarViewController() argument
165 mAlarmManager = alarmManager; in DreamOverlayStatusBarViewController()
/frameworks/base/apex/jobscheduler/framework/java/android/app/
DAlarmManager.java347 public void doAlarm(IAlarmCompleteListener alarmManager) { in doAlarm() argument
348 mCompletion = alarmManager; in doAlarm()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockSystemServices.java126 public final AlarmManager alarmManager; field in MockSystemServices
178 alarmManager = mock(AlarmManager.class); in MockSystemServices()
DDevicePolicyManagerServiceTestable.java227 AlarmManager getAlarmManager() {return services.alarmManager;} in getAlarmManager()
DDpmMockContext.java217 return mMockSystemServices.alarmManager; in getSystemService()
DDevicePolicyManagerTest.java4476 verify(getServices().alarmManager).setTime(0); in testSetTime()
4490 verify(getServices().alarmManager).setTime(0); in testSetTimeWithPOOfOrganizationOwnedDevice()
4507 verify(getServices().alarmManager).setTimeZone("Asia/Shanghai"); in testSetTimeZone()
4522 verify(getServices().alarmManager).setTimeZone("Asia/Shanghai"); in testSetTimeZoneWithPOOfOrganizationOwnedDevice()
7368 verify(getServices().alarmManager, never()) in testMaximumProfileTimeOff_profileOffTimeExceeded()
7374 clearInvocations(getServices().alarmManager); in testMaximumProfileTimeOff_profileOffTimeExceeded()
7380 verify(getServices().alarmManager, times(1)) in testMaximumProfileTimeOff_profileOffTimeExceeded()
7387 clearInvocations(getServices().alarmManager); in testMaximumProfileTimeOff_profileOffTimeExceeded()
7394 verify(getServices().alarmManager, times(1)).set(anyInt(), eq(PROFILE_OFF_DEADLINE), any()); in testMaximumProfileTimeOff_profileOffTimeExceeded()
7400 clearInvocations(getServices().alarmManager); in testMaximumProfileTimeOff_profileOffTimeExceeded()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyguardIndicationController.java252 AlarmManager alarmManager in KeyguardIndicationController() argument
297 alarmManager, in KeyguardIndicationController()
303 alarmManager, in KeyguardIndicationController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarPolicy.java178 SensorPrivacyController sensorPrivacyController, AlarmManager alarmManager, in PhoneStatusBarPolicy() argument
195 mAlarmManager = alarmManager; in PhoneStatusBarPolicy()
DScrimController.java290 AlarmManager alarmManager, in ScrimController() argument
318 mTimeTicker = new AlarmTimeout(alarmManager, this::onHideWallpaperTimeout, in ScrimController()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java18181 final AlarmManager alarmManager = mContext.getSystemService(AlarmManager.class);
18183 alarmManager.setTimeZone(timeZone);
18186 alarmManager.setTime(localTime);