Home
last modified time | relevance | path

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

/frameworks/support/compat/src/main/java/androidx/core/app/
DAlarmManagerCompat.java57 public static void setAlarmClock(@NonNull AlarmManager alarmManager, long triggerTime, in setAlarmClock() argument
60 alarmManager.setAlarmClock(new AlarmManager.AlarmClockInfo(triggerTime, showIntent), in setAlarmClock()
63 AlarmManagerCompat.setExact(alarmManager, AlarmManager.RTC_WAKEUP, triggerTime, in setAlarmClock()
115 public static void setAndAllowWhileIdle(@NonNull AlarmManager alarmManager, int type, in setAndAllowWhileIdle() argument
118 alarmManager.setAndAllowWhileIdle(type, triggerAtMillis, operation); in setAndAllowWhileIdle()
120 alarmManager.set(type, triggerAtMillis, operation); in setAndAllowWhileIdle()
160 public static void setExact(@NonNull AlarmManager alarmManager, int type, long triggerAtMillis, in setExact() argument
163 alarmManager.setExact(type, triggerAtMillis, operation); in setExact()
165 alarmManager.set(type, triggerAtMillis, operation); in setExact()
220 public static void setExactAndAllowWhileIdle(@NonNull AlarmManager alarmManager, int type, in setExactAndAllowWhileIdle() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeFactory.java47 AlarmManager alarmManager = context.getSystemService(AlarmManager.class); in assembleMachine() local
64 new DozePauser(handler, machine, alarmManager, params.getPolicy()), in assembleMachine()
66 createDozeTriggers(context, sensorManager, host, alarmManager, config, params, in assembleMachine()
68 createDozeUi(context, host, wakeLock, machine, handler, alarmManager, params), in assembleMachine()
88 DozeHost host, AlarmManager alarmManager, AmbientDisplayConfiguration config, in createDozeTriggers() argument
91 return new DozeTriggers(context, machine, host, alarmManager, config, params, in createDozeTriggers()
96 DozeMachine machine, Handler handler, AlarmManager alarmManager, in createDozeUi() argument
98 return new DozeUi(context, alarmManager, machine, wakeLock, host, handler, params, in createDozeUi()
DDozePauser.java33 public DozePauser(Handler handler, DozeMachine machine, AlarmManager alarmManager, in DozePauser() argument
36 mPauseTimeout = new AlarmTimeout(alarmManager, this::onTimeout, TAG, handler); in DozePauser()
DDozeUi.java66 public DozeUi(Context context, AlarmManager alarmManager, DozeMachine machine, in DozeUi() argument
76 mTimeTicker = new AlarmTimeout(alarmManager, this::onTimeTick, "doze_time_tick", handler); in DozeUi()
DDozeTriggers.java74 AlarmManager alarmManager, AmbientDisplayConfiguration config, in DozeTriggers() argument
86 mDozeSensors = new DozeSensors(context, alarmManager, mSensorManager, dozeParameters, in DozeTriggers()
DDozeSensors.java72 public DozeSensors(Context context, AlarmManager alarmManager, SensorManager sensorManager, in DozeSensors() argument
77 mAlarmManager = alarmManager; in DozeSensors()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemalarm/
DAlarms.java102 AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in cancelExactAlarm() local
106 if (pendingIntent != null && alarmManager != null) { in cancelExactAlarm()
111 alarmManager.cancel(pendingIntent); in cancelExactAlarm()
121 AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in setExactAlarm() local
125 if (alarmManager != null) { in setExactAlarm()
127 alarmManager.setExact(RTC_WAKEUP, triggerAtMillis, pendingIntent); in setExactAlarm()
129 alarmManager.set(RTC_WAKEUP, triggerAtMillis, pendingIntent); in setExactAlarm()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothDiscoverableTimeoutReceiver.java42 AlarmManager alarmManager = in setDiscoverableAlarm() local
47 alarmManager.cancel(pending); in setDiscoverableAlarm()
53 alarmManager.set(AlarmManager.RTC_WAKEUP, alarmTime, pending); in setDiscoverableAlarm()
65 AlarmManager alarmManager = in cancelDiscoverableAlarm() local
68 alarmManager.cancel(pending); in cancelDiscoverableAlarm()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/utils/
DForceStopRunnable.java141 AlarmManager alarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in setAlarm() local
145 if (alarmManager != null) { in setAlarm()
147 alarmManager.setExact(RTC_WAKEUP, triggerAt, pendingIntent); in setAlarm()
149 alarmManager.set(RTC_WAKEUP, triggerAt, pendingIntent); in setAlarm()
/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/opt/telephony/src/java/com/android/internal/telephony/
DTimeServiceHelper.java186 AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in setDeviceTimeZoneStatic() local
187 alarmManager.setTimeZone(zoneId); in setDeviceTimeZoneStatic()
DCarrierKeyDownloadManager.java197 AlarmManager alarmManager = in cleanupRenewalAlarms() local
199 alarmManager.cancel(carrierKeyDownloadIntent); in cleanupRenewalAlarms()
252 final AlarmManager alarmManager = (AlarmManager) mContext.getSystemService( in resetRenewalAlarm() local
257 alarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, minExpirationDate, in resetRenewalAlarm()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DInstallCarrierAppUtils.java122 AlarmManager alarmManager = (AlarmManager) context.getSystemService(ALARM_SERVICE); in showNotificationIfNotInstalledDelayed() local
128 alarmManager.set(AlarmManager.ELAPSED_REALTIME, in showNotificationIfNotInstalledDelayed()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSystemUIFactory.java111 AlarmManager alarmManager) { in createScrimController() argument
113 scrimVisibleListener, dozeParameters, alarmManager); in createScrimController()
/frameworks/base/core/java/android/app/
DAlarmManager.java227 public void doAlarm(IAlarmCompleteListener alarmManager) { in doAlarm() argument
228 mCompletion = alarmManager; in doAlarm()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockSystemServices.java105 public final AlarmManager alarmManager; field in MockSystemServices
142 alarmManager = mock(AlarmManager.class); in MockSystemServices()
DDevicePolicyManagerServiceTestable.java209 AlarmManager getAlarmManager() {return services.alarmManager;} in getAlarmManager()
DDpmMockContext.java196 return mMockSystemServices.alarmManager; in getSystemService()
DDevicePolicyManagerTest.java3476 verify(getServices().alarmManager).setTime(0); in testSetTime()
3496 verify(getServices().alarmManager).setTimeZone("Asia/Shanghai"); in testSetTimeZone()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DScrimControllerTest.java651 AlarmManager alarmManager) { in SynchronousScrimController() argument
653 dozeParameters, alarmManager); in SynchronousScrimController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DScrimController.java168 AlarmManager alarmManager) { in ScrimController() argument
178 mTimeTicker = new AlarmTimeout(alarmManager, this::onHideWallpaperTimeout, in ScrimController()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java319 AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in create() local
324 NetworkStatsService service = new NetworkStatsService(context, networkManager, alarmManager, in create()
339 AlarmManager alarmManager, PowerManager.WakeLock wakeLock, Clock clock, in NetworkStatsService() argument
344 mAlarmManager = checkNotNull(alarmManager, "missing AlarmManager"); in NetworkStatsService()
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java352 public void setAlarmManager(AlarmManager alarmManager) { in setAlarmManager() argument
353 mAlarmManager = alarmManager; in setAlarmManager()