Home
last modified time | relevance | path

Searched refs:alarm (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/
DAlarmManagerService.java354 boolean add(Alarm alarm) { in add() argument
357 int index = Collections.binarySearch(alarms, alarm, sIncreasingTimeOrder); in add()
361 alarms.add(index, alarm); in add()
363 Slog.v(TAG, "Adding " + alarm + " to " + this); in add()
365 if (alarm.whenElapsed > start) { in add()
366 start = alarm.whenElapsed; in add()
369 if (alarm.maxWhenElapsed < end) { in add()
370 end = alarm.maxWhenElapsed; in add()
372 flags |= alarm.flags; in add()
386 Alarm alarm = alarms.get(i); in remove() local
[all …]
/frameworks/base/docs/html/training/scheduling/
Dalarms.jd49 For example, you could use an alarm to initiate a long-running operation, such
76 <p>A repeating alarm is a relatively simple mechanism with limited flexibility.
79 operations. A poorly designed alarm can cause battery drain and put a significant load on
84 repeating alarm. But if you own the server that is hosting your app's
98 <p>Every choice you make in designing your repeating alarm can have consequences in how your
106 trigger as a result of a repeating alarm:
108 <li>Do any local work when the alarm triggers. "Local work" means anything that doesn't
110 <li>At the same time, schedule the alarm that contains the network requests to fire at some
114 <li>Keep your alarm frequency to a minimum.</li>
115 <li>Don't wake up the device unnecessarily (this behavior is determined by the alarm type,
[all …]
/frameworks/base/tests/utils/SleepUtils/
DREADME5 2) setting alarm for a specified period and releasing the wakelock; service
6 call will block until alarm has been triggered and the wakelock is held
16 2) setting alarm and wait til triggered
/frameworks/base/docs/html/training/wearables/apps/
Dalways-on.jd233 <p>To implement an alarm that updates content more frequently in ambient mode, follow these steps:
237 <li>Prepare the alarm manager.</li>
241 <li>Cancel the alarm when the activity switches to interactive mode or the activity is stopped
245 <p class="note"><b>Note:</b> The alarm manager may create new instances of your activity as they are
251 <h4 id="PrepareAlarm">Prepare the alarm manager</h4>
253 <p>The alarm manager launches a pending intent that updates the screen and schedules the next alarm.
254 The following example shows how to declare the alarm manager and the pending intent in the
282 <p>When the alarm triggers and launches the pending intent, update the screen and schedule the next
283 alarm by overriding the
302 <p>In this example activity, the alarm manager triggers every 20 seconds in ambient mode. When
[all …]
Dvoice.jd31 voice action is spoken. Examples include "Take a note" or "Set an alarm".</dd>
41 as "Take a note" or "Set an alarm". This allows users to say what they want to do and let
101 <td>Set alarm</td>
102 <td>"OK Google, set an alarm for 8 AM"<br/><br/>"OK Google, wake me up at 6 tomorrow"</td>
109 the alarm.
111 an integer with the minute of the alarm
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DDemoStatusIcons.java88 String alarm = args.getString("alarm"); in dispatchDemoCommand() local
89 if (alarm != null) { in dispatchDemoCommand()
90 int iconId = alarm.equals("show") ? R.drawable.stat_sys_alarm in dispatchDemoCommand()
DPhoneStatusBarPolicy.java182 final AlarmClockInfo alarm = mAlarmManager.getNextAlarmClock(UserHandle.USER_CURRENT); in updateAlarm() local
183 final boolean hasAlarm = alarm != null && alarm.getTriggerTime() > 0; in updateAlarm()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardStatusView.java156 String alarm = formatNextAlarm(mContext, nextAlarm); in refreshAlarmStatus() local
157 mAlarmStatusView.setText(alarm); in refreshAlarmStatus()
159 getResources().getString(R.string.keyguard_accessibility_next_alarm, alarm)); in refreshAlarmStatus()
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/example/Settings/
Dstrategy_for_stream.pfw12 /Policy/policy/streams/alarm/applicable_strategy/strategy = sonification
Dstrategy_for_usage.pfw9 /Policy/policy/usages/alarm/applicable_strategy/strategy = sonification
Dvolumes.pfw157 component: alarm/volume_profiles
/frameworks/base/docs/html/training/efficient-downloads/
Dregular_updates.jd55 …t repeating alarms that allow the system to "phase shift" the exact moment each alarm triggers.</p>
65alarm type to {@code ELAPSED_REALTIME} or {@code RTC} rather than to their {@code _WAKEUP} equival…
/frameworks/base/docs/html/tools/adk/
Dadk2.jd84 <p>The ADK comes preloaded with an alarm clock firmware program that you can use immediately. A
102 <p>An alarm clock program comes preloaded on the ADK. This firmware program allows you to use the
103 ADK as an alarm clock.</p>
105 <p>To use the ADK as an alarm clock:</p>
116 <li>Place your fingertip over the alarm clock symbol to activate alarm setting.</li>
117 <li>Use the plus (+) and minus (-) symbols inside the clock digits to set the alarm time.</li>
118 <li>Use the plus (+) and minus (-) symbols inside the last two clock digits to turn the alarm on
120 <li>To set the alarm tone, place and hold your fingertip over the alarm clock symbol, then tap the
124 <p>To use the <strong>ADK 2012</strong> companion application for the alarm clock:</p>
/frameworks/base/docs/html/guide/components/
Dintents-common.jd16 <li><a href="#CreateAlarm">Create an alarm</a></li>
199 <h3 id="CreateAlarm">Create an alarm</h3>
211 <li>"set an alarm for 7 am"</li>
215 <p>To create a new alarm, use the {@link android.provider.AlarmClock#ACTION_SET_ALARM}
216 action and specify alarm details such as the time and message using extras defined below.</p>
237 <dd>The hour for the alarm.</dd>
239 <dd>The minutes for the alarm.</dd>
241 <dd>A custom message to identify the alarm.</dd>
243 <dd>An {@link java.util.ArrayList} including each week day on which this alarm should
246 <p>For a one-time alarm, do not specify this extra.</dd>
[all …]
/frameworks/base/docs/html/training/monitoring-device-state/
Dmanifest-receivers.jd60 performing an update and rescheduling a recurring update alarm.</p>
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DMccTable.java335 AlarmManager alarm = in setTimezoneFromMccIfNeeded() local
337 alarm.setTimeZone(zoneId); in setTimezoneFromMccIfNeeded()
/frameworks/base/docs/html/about/versions/
Dandroid-2.3.jd438 <li>New {@link android.provider.AlarmClock} provider class for setting an alarm
439 or handling an alarm. The provider contains a <code>ACTION_SET_ALARM</code> Intent
440 action and extras that can be used to start an Activity to set a new alarm in an
441 alarm clock application. Applications that wish to receive the
444 alarm should use {@link
447 which alarm clock application to use.</li>
625 to broadcast an Intent to set an alarm for the user. An Activity that handles
Dandroid-4.4.jd164 …imilar times so the system wakes the device once instead of several times to handle each alarm.</p>
166alarm is not associated with an exact clock time, but it's still important that your alarm be invo…
168 <p>If your alarm must be pinned to an exact clock time (such as for a calendar event reminder), the…
/frameworks/base/services/java/com/android/server/
DSystemServer.java412 IAlarmManager alarm = null; in startOtherServices() local
489 alarm = IAlarmManager.Stub.asInterface( in startOtherServices()
678 networkStats = new NetworkStatsService(context, networkManagement, alarm); in startOtherServices()
/frameworks/base/packages/SystemUI/docs/
Ddemo_mode.md49 …| ```alarm``` | | Sets the icon in the alarm_clock slot (```show```,…
/frameworks/base/docs/html/training/managing-audio/
Dvolume-playback.jd51 <p>Most of these streams are restricted to system events, so unless your app is a replacement alarm
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaServiceStateTracker.java1811 AlarmManager alarm = in setAndBroadcastNetworkSetTimeZone() local
1813 alarm.setTimeZone(zoneId); in setAndBroadcastNetworkSetTimeZone()
/frameworks/native/libs/binder/tests/
DbinderLibTest.cpp887 alarm(10); in onTransact()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmServiceStateTracker.java1917 AlarmManager alarm = in setAndBroadcastNetworkSetTimeZone() local
1919 alarm.setTimeZone(zoneId); in setAndBroadcastNetworkSetTimeZone()
/frameworks/base/docs/html/google/play/
Dexpansion-files.jd34 <li><a href="#AlarmReceiver">Implementing the alarm receiver</a></li>
564 <li>Schedules an {@link android.app.AlarmManager#RTC_WAKEUP} alarm to retry the download for
590 your application that should receive the alarm indicating that the download should be
637 <h3 id="AlarmReceiver">Implementing the alarm receiver</h3>
640 {@code DownloaderService} schedules an {@link android.app.AlarmManager#RTC_WAKEUP} alarm that

12