Searched refs:time (Results 76 - 100 of 210) sorted by relevance

123456789

/packages/services/Car/tools/emulator/
H A Ddiagnostic_injector.py26 import time namespace
78 # time travel isn't supported (yet)
82 # or we'd wait for a long long long time
85 time.sleep((currentTimestamp-lastTimestamp)/1000000000)
/packages/apps/Calendar/src/com/android/calendar/
H A DOtherPreferences.java43 // time the file was created.
205 Log.d(TAG, "Set time for unknown listener: "+mListenerId);
218 Time time = new Time();
219 time.hour = hourOfDay;
220 time.minute = minute;
223 return time.format(format);
246 // Value was not known ahead of time, so the default value will be set.
/packages/apps/Calendar/src/com/android/calendar/widget/
H A DCalendarAppWidgetProvider.java134 Time time = new Time(Utils.getTimeZone(context, null));
135 time.setToNow();
136 long millis = time.toMillis(true);
137 final String dayOfWeek = DateUtils.getDayOfWeekString(time.weekDay + 1,
153 .setData(Uri.parse("content://com.android.calendar/time/" + millis));
201 * If the go to time is 0, then calendar will be launched without a starting time.
203 * @param goToTime time that calendar should take the user to, or 0 to
204 * indicate no specific start time.
/packages/apps/DeskClock/src/com/android/deskclock/data/
H A DWeekdays.java185 * Note: only the day-of-week is read from the {@code time}. The time fields
188 * @param time a timestamp relative to which the answer is given
189 * @return the number of days between the given {@code time} and the previous enabled weekday
192 public int getDistanceToPreviousDay(Calendar time) { argument
193 int calendarDay = time.get(DAY_OF_WEEK);
208 * Note: only the day-of-week is read from the {@code time}. The time fields
211 * @param time a timestamp relative to which the answer is given
212 * @return the number of days between the given {@code time} an
215 getDistanceToNextDay(Calendar time) argument
[all...]
H A DStopwatchModel.java185 * @return the longest lap time of all recorded laps and the current lap
192 // Compute the maximum lap time across all recorded laps.
197 // Compare with the maximum lap time for the current lap.
207 * In practice, {@code time} can be any value due to device reboots. When the real-time clock is
208 * reset, there is no more guarantee that this time falls after the last recorded lap.
210 * @param time a point in time expected, but not required, to be after the end of the prior lap
211 * @return the elapsed time between the given {@code time} an
214 getCurrentLapTime(long time) argument
[all...]
/packages/apps/Settings/src/com/android/settings/display/
H A DNightDisplaySettings.java35 import java.time.LocalTime;
161 final LocalTime time = LocalTime.of(hourOfDay, minute);
163 mController.setCustomStartTime(time);
165 mController.setCustomEndTime(time);
/packages/apps/Calendar/src/com/android/calendar/month/
H A DSimpleDayPickerFragment.java51 * reduced number of days, or display an arbitrary number of weeks at a time. By
92 // highlighted time
99 // disposable variable used for time calculations
169 // Ensure we're in the correct time zone
355 * selected time.
364 * This moves to the specified time in the view. If the time is not already
366 * the time is at the top of the view. If the new time is already in view
367 * the list will not be scrolled unless forceScroll is true. This time ma
378 goTo(long time, boolean animate, boolean setSelected, boolean forceScroll) argument
561 setMonthDisplayed(Time time, boolean updateHighlight) argument
[all...]
H A DMonthByWeekFragment.java87 // The minimum time between requeries of the data if the db is
180 // -1 to ensure we get all day events from any time zone
184 // +1 to ensure we get all day events from any time zone
245 // Synchronized the loading time of the month's events with the animation of the
456 protected void setMonthDisplayed(Time time, boolean updateHighlight) { argument
457 super.setMonthDisplayed(time, updateHighlight);
460 if (time.year == mDesiredDay.year && time.month == mDesiredDay.month) {
465 mSelectedDay.set(time);
466 mAdapter.setSelectedDay(time);
[all...]
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
H A DCalendarProvider2Test.java185 * start and end time, whether it is an all-day event, and so on) are
307 Time time = new Time(DEFAULT_TIMEZONE);
308 time.parse3339(startDate);
309 begin = time.toMillis(false /* use isDst */);
310 time.parse3339(endDate);
311 end = time.toMillis(false /* use isDst */);
331 Time time = new Time(DEFAULT_TIMEZONE);
332 time.parse3339(startDate);
333 begin = time.toMillis(false /* use isDst */);
334 time
[all...]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarDatabaseHelper.java658 // sync time in UTC
1472 private static boolean fixAllDayTime(Time time, String timezone, Long timeInMillis) { argument
1473 time.set(timeInMillis);
1474 if(time.hour != 0 || time.minute != 0 || time.second != 0) {
1475 time.hour = 0;
1476 time.minute = 0;
1477 time.second = 0;
2541 Time time
[all...]
/packages/apps/Camera2/tests/src/com/android/camera/stress/
H A DShotToShotLatency.java78 private void sleep(long time) { argument
80 Thread.sleep(time);
/packages/apps/DeskClock/src/com/android/deskclock/
H A DAlarmUtils.java39 public static String getFormattedTime(Context context, Calendar time) { argument
42 return (String) DateFormat.format(pattern, time);
70 // Otherwise, format the remaining time until the alarm rings.
89 // Compute the index of the most appropriate time format based on the time delta.
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
H A DServiceProxy.java201 long time = System.currentTimeMillis();
213 (System.currentTimeMillis() - time) + "ms");
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DOverScroller.java234 * @param extend Additional time to scroll in milliseconds.
297 long time = AnimationUtils.currentAnimationTimeMillis();
298 // Any scroller can be used for time, since they were started
300 final long elapsedTime = time - mScrollerX.mStartTime;
517 * Returns the time elapsed since the beginning of the scrolling.
519 * @return The elapsed time in milliseconds.
524 final long time = AnimationUtils.currentAnimationTimeMillis();
526 return (int) (time - startTime);
558 // Animation starting time, in system milliseconds
710 final long time
[all...]
/packages/apps/Settings/src/com/android/settings/notification/
H A DZenModeVoiceActivity.java110 long time = System.currentTimeMillis() + minutes * MINUTES_MS;
113 CharSequence formattedTime = DateFormat.format(pattern, time);
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
H A DBatteryUtilsTest.java207 final long time = mBatteryUtils.getProcessTimeMs(BatteryUtils.StatusType.FOREGROUND, mUid,
210 assertThat(time).isEqualTo(TIME_EXPECTED_FOREGROUND);
215 final long time = mBatteryUtils.getProcessTimeMs(BatteryUtils.StatusType.BACKGROUND, mUid,
218 assertThat(time).isEqualTo(TIME_EXPECTED_BACKGROUND);
226 final long time = mBatteryUtils.getProcessTimeMs(BatteryUtils.StatusType.ALL, mUid,
229 assertThat(time).isEqualTo(TIME_EXPECTED_ALL);
234 final long time = mBatteryUtils.getProcessTimeMs(BatteryUtils.StatusType.ALL, null,
237 assertThat(time).isEqualTo(0);
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
H A DStorageManagerUpsellDialog.java116 * @param context Context to get shared preferences for determining the next show time.
117 * @param time The current time in millis.
119 public static boolean shouldShow(Context context, long time) { argument
132 return time >= nextTimeToShow;
165 * Clock provides the current time.
169 * Returns the current time in milliseconds.
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/
H A DSetupAnimationHelper.java184 * Applies the animation scale to the given {@code time}.
186 public static long applyAnimationTimeScale(long time) { argument
187 return (long) (time * ANIMATION_TIME_SCALE);
/packages/apps/TV/src/com/android/tv/dialog/
H A DRecentlyWatchedDialogFragment.java90 long time = cursor.getLong(columnIndex);
91 CharSequence timeString = DateUtils.getRelativeTimeSpanString(time,
/packages/apps/TV/src/com/android/tv/search/
H A DTvProviderSearch.java162 long time = SystemClock.elapsedRealtime();
183 Log.d(TAG, "Found " + results.size() + " channels. Elapsed time for searching" +
184 " channels: " + (SystemClock.elapsedRealtime() - time) + "(msec)");
310 long time = SystemClock.elapsedRealtime();
398 Log.d(TAG, "Found " + searchResults.size() + " programs. Elapsed time for searching" +
399 " programs: " + (SystemClock.elapsedRealtime() - time) + "(msec)");
425 long time = SystemClock.elapsedRealtime();
442 Log.d(TAG, "Found " + results.size() + " inputs. Elapsed time for" +
443 " searching inputs: " + (SystemClock.elapsedRealtime() - time) +
463 Log.d(TAG, "Found " + results.size() + " inputs. Elapsed time fo
[all...]
/packages/apps/TimeZoneData/oem_template/data_app_prebuilt/
H A DAndroid.mk15 # Targets for including the real signed versions of the time zone data app.
/packages/apps/TimeZoneData/oem_template/data_app_prebuilt/testing/
H A DAndroid.mk15 # Targets for including testing versions of the time zone data app needed
/packages/apps/TimeZoneData/testing/xts/
H A DAndroid.mk17 # A testing support library for testing time zone updates on real devices.
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
H A DDictionaryService.java89 * We are waked around midnight, local time. We want to wake between midnight and 6 am,
90 * roughly. So use a random time between 0 and this delay.
95 * How long we consider a "very long time". If no update took place in this time,
103 * the request; if it's within this time, we just leave it be.
104 * It's important to note that we do not re-submit the request merely because the time is up.
121 // the single thread to time out after WORKER_THREAD_TIMEOUT_SECONDS = 15 seconds, allowing
122 // the process to be reclaimed by the system any time after that if it's not doing
149 * - Check last update time and possibly schedule an update of the data for later.
198 // at midnight local time, bu
246 isLastUpdateAtLeastThisOld(final Context context, final long time) argument
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
H A DLapsAdapter.java51 /** Reusable StringBuilder that assembles a formatted time; alleviates memory churn. */
57 /** Used to determine when the time format for the lap time column has changed length. */
60 /** Used to determine when the time format for the total time column has changed length. */
125 * @param totalTime time accumulated for the current lap and all prior laps
135 // Compute the lap time using the total time.
170 // Clear the computed time lengths related to the old recorded laps.
178 * @return a formatted textual description of lap times and total time
241 formatTime(long maxTime, long time, String separator) argument
[all...]

Completed in 629 milliseconds

123456789