Home
last modified time | relevance | path

Searched refs:alarmManager (Results 1 – 18 of 18) 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/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.java101 public DozeUi(Context context, AlarmManager alarmManager, in DozeUi() argument
113 mTimeTicker = new AlarmTimeout(alarmManager, this::onTimeTick, "doze_time_tick", handler); in DozeUi()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNextAlarmControllerImpl.java56 AlarmManager alarmManager, in NextAlarmControllerImpl() argument
60 mAlarmManager = alarmManager; in NextAlarmControllerImpl()
/frameworks/base/services/core/java/com/android/server/timezonedetector/
DEnvironmentImpl.java167 AlarmManager alarmManager = mContext.getSystemService(AlarmManager.class); in setDeviceTimeZone() local
168 alarmManager.setTimeZone(zoneId); in setDeviceTimeZone()
/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.java227 AlarmManager alarmManager = in cleanupRenewalAlarms() local
229 alarmManager.cancel(carrierKeyDownloadIntent); in cleanupRenewalAlarms()
282 final AlarmManager alarmManager = (AlarmManager) mContext.getSystemService( in resetRenewalAlarm() local
288 alarmManager.set(AlarmManager.RTC_WAKEUP, minExpirationDate, carrierKeyDownloadIntent); in resetRenewalAlarm()
/frameworks/base/apex/jobscheduler/framework/java/android/app/
DAlarmManager.java313 public void doAlarm(IAlarmCompleteListener alarmManager) { in doAlarm() argument
314 mCompletion = alarmManager; in doAlarm()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockSystemServices.java121 public final AlarmManager alarmManager; field in MockSystemServices
168 alarmManager = mock(AlarmManager.class); in MockSystemServices()
DDevicePolicyManagerServiceTestable.java240 AlarmManager getAlarmManager() {return services.alarmManager;} in getAlarmManager()
DDevicePolicyManagerTest.java4273 verify(getServices().alarmManager).setTime(0); in testSetTime()
4287 verify(getServices().alarmManager).setTime(0); in testSetTimeWithPOOfOrganizationOwnedDevice()
4304 verify(getServices().alarmManager).setTimeZone("Asia/Shanghai"); in testSetTimeZone()
4319 verify(getServices().alarmManager).setTimeZone("Asia/Shanghai"); in testSetTimeZoneWithPOOfOrganizationOwnedDevice()
7134 verify(getServices().alarmManager, never()) in testMaximumProfileTimeOff_profileOffTimeExceeded()
7140 clearInvocations(getServices().alarmManager); in testMaximumProfileTimeOff_profileOffTimeExceeded()
7146 verify(getServices().alarmManager, times(1)) in testMaximumProfileTimeOff_profileOffTimeExceeded()
7153 clearInvocations(getServices().alarmManager); in testMaximumProfileTimeOff_profileOffTimeExceeded()
7160 verify(getServices().alarmManager, times(1)).set(anyInt(), eq(PROFILE_OFF_DEADLINE), any()); in testMaximumProfileTimeOff_profileOffTimeExceeded()
7167 clearInvocations(getServices().alarmManager); in testMaximumProfileTimeOff_profileOffTimeExceeded()
[all …]
DDpmMockContext.java216 return mMockSystemServices.alarmManager; in getSystemService()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarPolicy.java174 AlarmManager alarmManager, UserManager userManager, in PhoneStatusBarPolicy() argument
189 mAlarmManager = alarmManager; in PhoneStatusBarPolicy()
DScrimController.java225 AlarmManager alarmManager, KeyguardStateController keyguardStateController, in ScrimController() argument
241 mTimeTicker = new AlarmTimeout(alarmManager, this::onHideWallpaperTimeout, in ScrimController()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java407 AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in create() local
413 alarmManager, wakeLock, getDefaultClock(), in create()
426 AlarmManager alarmManager, PowerManager.WakeLock wakeLock, Clock clock, in NetworkStatsService() argument
433 mAlarmManager = Objects.requireNonNull(alarmManager, "missing AlarmManager"); in NetworkStatsService()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java17314 final AlarmManager alarmManager = mContext.getSystemService(AlarmManager.class);
17316 alarmManager.setTimeZone(timeZone);
17319 alarmManager.setTime(localTime);