Home
last modified time | relevance | path

Searched refs:timer (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/docs/html/training/wearables/ui/
Dconfirm.jd30 <dd>Automatic confirmation timers show users an animated timer that lets them cancel an action
44 A confirmation timer.</p>
48 performs the action, your app shows a button to cancel the action with a timer animation and
49 starts the timer. The user has the option to cancel the action until the timer finishes. Your app
50 gets notified if the user cancels the action and when the timer expires.</p>
52 <p>To show a confirmation timer when users complete an action in your app:</p>
57 <li>Set the duration of the timer and start it when the user completes an action.</li>
78 <p>To be notified when the timer finishes or when users tap on it, implement the corresponding
109 <p>To start the timer, add the following code to the point in your activity where users select
115 // Start the timer
/frameworks/rs/scriptc/
Drs_time.rsh67 * 1970). If @p timer is non-NULL, the result is also stored in the memory
70 * @param timer Location to also store the returned calendar time.
75 rsTime(rs_time_t *timer);
78 * Converts the time specified by @p timer into broken-down time and stores it
83 * @param timer Input time as calendar time.
88 rsLocaltime(rs_tm *local, const rs_time_t *timer);
/frameworks/base/docs/html/training/wearables/watch-faces/
Ddrawing.jd45 that your watch face needs, including loading bitmap resources, creating timer objects to run
53 <li>Declare variables for a custom timer, graphic objects, and other elements.</li>
55 <li>Initialize the custom timer in the <code>Engine.onVisibilityChanged()</code> method.</li>
76 <dt><em>Periodic timer</em></dt>
78 run animations at custom time intervals. In these cases, you need to provide a custom timer that
87 these variables as shown in the snippet below. The custom timer is implemented as a
89 message queue. For this particular watch face, the custom timer ticks once every second. When the
90 timer ticks, the handler calls the <code>invalidate()</code> method and the system then calls
193 <h3 id="Timer">Initialize the custom timer</h3>
196 providing a custom timer that ticks with the required frequency while the device is in
[all …]
Dinformation.jd89 <li>Create a custom timer to invoke your task periodically, or notify your watch face service
127 /* get the number of meetings and set the next timer tick */
143 <h3 id="Timer">Create a custom timer</h3>
145 <p>You can implement a custom timer that ticks periodically to update your data.
172 <p>This method initializes the timer when the watch face becomes visible:</p>
187 <p>The next timer tick is set in the <code>onMeetingsLoaded()</code> method, as shown in the next
213 schedules the next timer tick to run the task again.</p>
/frameworks/rs/
DrsScriptC_Lib.cpp84 time_t rsrTime(Context *rsc, time_t *timer) { in rsrTime() argument
85 return time(timer); in rsrTime()
88 tm* rsrLocalTime(Context *rsc, tm *local, time_t *timer) { in rsrLocalTime() argument
96 tm *tmp = localtime(timer); in rsrLocalTime()
DrsRuntime.h122 time_t rsrTime(Context *, time_t *timer);
123 tm* rsrLocalTime(Context *, tm *local, time_t *timer);
/frameworks/base/core/java/android/os/
DBatteryStats.java1779 private static long computeWakeLock(Timer timer, long elapsedRealtimeUs, int which) { in computeWakeLock() argument
1780 if (timer != null) { in computeWakeLock()
1782 long totalTimeMicros = timer.getTotalTimeLocked(elapsedRealtimeUs, which); in computeWakeLock()
1799 private static final String printWakeLock(StringBuilder sb, Timer timer, in printWakeLock() argument
1802 if (timer != null) { in printWakeLock()
1803 long totalTimeMillis = computeWakeLock(timer, elapsedRealtimeUs, which); in printWakeLock()
1805 int count = timer.getCountLocked(which); in printWakeLock()
1833 private static final String printWakeLockCheckin(StringBuilder sb, Timer timer, in printWakeLockCheckin() argument
1837 if (timer != null) { in printWakeLockCheckin()
1838 totalTimeMicros = timer.getTotalTimeLocked(elapsedRealtimeUs, which); in printWakeLockCheckin()
[all …]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DGLFrame.java145 StopWatchMap timer = GLFrameTimer.get(); in flushGPU() local
146 if (timer.LOG_MFF_RUNNING_TIMES) { in flushGPU()
147 timer.start("glFinish " + message); in flushGPU()
149 timer.stop("glFinish " + message); in flushGPU()
/frameworks/base/tools/orientationplot/
Dorientationplot.py182 self.timer = self.fig.canvas.new_timer(interval=100)
183 self.timer.add_callback(lambda: self.update())
184 self.timer.start()
193 self.timer.stop()
196 self.timer.start()
/frameworks/base/tools/velocityplot/
Dvelocityplot.py117 self.timer = self.fig.canvas.new_timer(interval=100)
118 self.timer.add_callback(lambda: self.update())
119 self.timer.start()
/frameworks/base/services/tests/servicestests/src/com/android/server/location/
DLocationBasedCountryDetectorTest.java354 Timer timer = detector.getTimer(); in waitForTimerReset() local
355 assertTrue(timer == null); in waitForTimerReset()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java998 public static void writeTimerToParcel(Parcel out, Timer timer, long elapsedRealtimeUs) { in writeTimerToParcel() argument
999 if (timer == null) { in writeTimerToParcel()
1005 timer.writeToParcel(out, elapsedRealtimeUs); in writeTimerToParcel()
1706 SamplingTimer timer = mWakeupReasonStats.get(name); in getWakeupReasonTimerLocked() local
1707 if (timer == null) { in getWakeupReasonTimerLocked()
1708 timer = new SamplingTimer(mOnBatteryTimeBase, true); in getWakeupReasonTimerLocked()
1709 mWakeupReasonStats.put(name, timer); in getWakeupReasonTimerLocked()
1711 return timer; in getWakeupReasonTimerLocked()
2802 SamplingTimer timer = getWakeupReasonTimerLocked(mLastWakeupReason); in aggregateLastWakeupUptimeLocked() local
2803 timer.addCurrentReportedCount(1); in aggregateLastWakeupUptimeLocked()
[all …]
DBatteryStatsHelper.java478 BatteryStats.Timer timer = wakelock.getWakeTime(BatteryStats.WAKE_TYPE_PARTIAL); in processAppUsage() local
479 if (timer != null) { in processAppUsage()
480 wakelockTime += timer.getTotalTimeLocked(mRawRealtime, which); in processAppUsage()
556 BatteryStats.Timer timer = sensor.getSensorTime(); in processAppUsage() local
557 long sensorTime = timer.getTotalTimeLocked(mRawRealtime, which) / 1000; in processAppUsage()
/frameworks/rs/driver/
DrsdRuntimeStubs.cpp669 time_t SC_Time(time_t *timer) { in SC_Time() argument
671 return rsrTime(rsc, timer); in SC_Time()
674 static int SC_Time(int *timer) { in SC_Time() argument
676 return rsrTime(rsc, (long*)timer); in SC_Time()
680 tm* SC_LocalTime(tm *local, time_t *timer) { in SC_LocalTime() argument
682 return rsrLocalTime(rsc, local, timer); in SC_LocalTime()
1563 int rsTime(int *timer) { in rsTime() argument
1564 return SC_Time(timer); in rsTime()
1567 rs_tm* rsLocaltime(rs_tm* local, const int *timer) { in rsLocaltime() argument
1568 return (rs_tm*)(SC_LocalTime((tm*)local, (long*)timer)); in rsLocaltime()
/frameworks/base/docs/html/training/wearables/apps/
Dvoice.jd120 <td>Set timer</td>
121 <td>"Ok Google, set a timer for 10 minutes"</td>
128 1 to 86400 (number of seconds in 24 hours) representing the length of the timer </dd>
Dlayouts.jd123 <li><code>DelayedConfirmationView</code> - A view that provides a circular countdown timer,
/frameworks/base/libs/androidfw/
DAssetManager.cpp1730 DurationTimer timer; in loadFileNameCacheLocked() local
1731 timer.start(); in loadFileNameCacheLocked()
1737 timer.stop(); in loadFileNameCacheLocked()
1739 timer.durationUsecs() / 1000.0); in loadFileNameCacheLocked()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipSessionGroup.java132 SipWakeupTimer timer, SipWakeLock wakeLock) throws SipException { in SipSessionGroup() argument
135 mWakeupTimer = timer; in SipSessionGroup()
142 void setWakeupTimer(SipWakeupTimer timer) { in setWakeupTimer() argument
143 mWakeupTimer = timer; in setWakeupTimer()
DSipService.java486 void setWakeupTimer(SipWakeupTimer timer) { in setWakeupTimer() argument
487 mSipGroup.setWakeupTimer(timer); in setWakeupTimer()
/frameworks/base/docs/html/training/notify-user/
Dexpanded.jd74 <li>A way to view the reminder text the user set as part of the timer.</li>
/frameworks/base/docs/html/guide/components/
Dintents-common.jd17 <li><a href="#CreateTimer">Create a timer</a></li>
306 <h3 id="CreateTimer">Create a timer</h3>
318 <li>"set timer for 5 minutes"</li>
322 <p>To create a countdown timer, use the {@link android.provider.AlarmClock#ACTION_SET_TIMER}
323 action and specify timer details such as the duration using extras defined below.</p>
343 <dd>The length of the timer in seconds.</dd>
345 <dd>A custom message to identify the timer.</dd>
347 <dd>A boolean specifying whether the responding app should skip its UI when setting the timer.
348 If true, the app should bypass any confirmation UI and simply start the specified timer.</dd>
2678 <p><a href="#CreateTimer">Set timer</a></p>
[all …]
/frameworks/base/docs/html/training/tv/discovery/
Drecommendations.jd250 recommendations. To run your service, create a class that runs a timer and invokes
/frameworks/base/docs/html/guide/topics/media/jet/
Djetcreator_manual.jd257 not pressed a button, a timer is set to half the length of the window. If the
258 player presses the button before the timer expires, the game registers a
264 event is received, a timer is set to half the length of the window. If an event
265 is received before the timer expires, the game registers a success, and if not,
/frameworks/base/docs/html/training/cloudsync/
Dgcm.jd188 beep or vibrate to alert the user, consider setting up a timer. Don't let the
/frameworks/base/docs/html/design/wear/
Dpatterns.jd74 …ng the action is played, which the user can interrupt to cancel. Once the timer has counted down, …

12