/frameworks/base/services/core/java/com/android/server/ |
D | AlarmManagerService.java | 354 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/ |
D | alarms.jd | 49 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/ |
D | README | 5 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/ |
D | always-on.jd | 233 <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 …]
|
D | voice.jd | 31 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/ |
D | DemoStatusIcons.java | 88 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()
|
D | PhoneStatusBarPolicy.java | 182 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/ |
D | KeyguardStatusView.java | 156 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/ |
D | strategy_for_stream.pfw | 12 /Policy/policy/streams/alarm/applicable_strategy/strategy = sonification
|
D | strategy_for_usage.pfw | 9 /Policy/policy/usages/alarm/applicable_strategy/strategy = sonification
|
D | volumes.pfw | 157 component: alarm/volume_profiles
|
/frameworks/base/docs/html/training/efficient-downloads/ |
D | regular_updates.jd | 55 …t repeating alarms that allow the system to "phase shift" the exact moment each alarm triggers.</p> 65 …alarm type to {@code ELAPSED_REALTIME} or {@code RTC} rather than to their {@code _WAKEUP} equival…
|
/frameworks/base/docs/html/tools/adk/ |
D | adk2.jd | 84 <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/ |
D | intents-common.jd | 16 <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/ |
D | manifest-receivers.jd | 60 performing an update and rescheduling a recurring update alarm.</p>
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | MccTable.java | 335 AlarmManager alarm = in setTimezoneFromMccIfNeeded() local 337 alarm.setTimeZone(zoneId); in setTimezoneFromMccIfNeeded()
|
/frameworks/base/docs/html/about/versions/ |
D | android-2.3.jd | 438 <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
|
D | android-4.4.jd | 164 …imilar times so the system wakes the device once instead of several times to handle each alarm.</p> 166 …alarm 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/ |
D | SystemServer.java | 412 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/ |
D | demo_mode.md | 49 …| ```alarm``` | | Sets the icon in the alarm_clock slot (```show```,…
|
/frameworks/base/docs/html/training/managing-audio/ |
D | volume-playback.jd | 51 <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/ |
D | CdmaServiceStateTracker.java | 1811 AlarmManager alarm = in setAndBroadcastNetworkSetTimeZone() local 1813 alarm.setTimeZone(zoneId); in setAndBroadcastNetworkSetTimeZone()
|
/frameworks/native/libs/binder/tests/ |
D | binderLibTest.cpp | 887 alarm(10); in onTransact()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
D | GsmServiceStateTracker.java | 1917 AlarmManager alarm = in setAndBroadcastNetworkSetTimeZone() local 1919 alarm.setTimeZone(zoneId); in setAndBroadcastNetworkSetTimeZone()
|
/frameworks/base/docs/html/google/play/ |
D | expansion-files.jd | 34 <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
|