Searched defs:time (Results 1 - 25 of 77) sorted by relevance

1234

/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/utils/
H A DObexTime.java30 public ObexTime(String time) { argument
32 * match OBEX time string: YYYYMMDDTHHMMSS with optional UTF offset
37 Matcher m = p.matcher(time);
61 /* time zone offset is specified in miliseconds */
/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/Camera2/tests_camera/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);
64 // Otherwise, format the remaining time until the alarm rings.
83 // Compute the index of the most appropriate time format based on the time delta.
/packages/experimental/procstatlog/
H A Dprocstatreport.py24 import time namespace
157 "date": cgi.escape(time.ctime()),
659 time = (scan_time + float(line[4:])) / 2.0
660 history[time] = dict(current_state)
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/
H A DMockClock.java20 /** Current time. Only updated with advance(). */
38 public void setCurrentTimeMillis(long time) { argument
39 mCurrentTimeMillis = time;
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
H A DAsyncResultHolderTests.java33 final long time) {
38 Thread.sleep(time);
32 setAfterGivenTime(final AsyncResultHolder<T> holder, final T value, final long time) argument
/packages/apps/Gallery2/src/com/android/gallery3d/anim/
H A DAnimation.java23 // Animation calculates a value according to the current input time.
27 // 2. Then we should call start(). The actual start time is the first value
29 // 3. Each time we want to get an animation value, we call
68 public void setStartTime(long time) { argument
69 mStartTime = time;
/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DMigrateEstimateTask.java114 final String time = DateUtils.formatDuration(timeMillis).toString();
115 onPostExecute(size, time);
118 public abstract void onPostExecute(String size, String time); argument
/packages/apps/Settings/src/com/android/settings/fuelgauge/
H A DBatteryCellParser.java54 public void onDataPoint(long time, HistoryItem record) { argument
57 mData.put((int) time, value);
60 mLastTime = time;
H A DBatteryFlagParser.java50 public void onDataPoint(long time, HistoryItem record) { argument
53 mData.put((int) time, isSet);
56 mLastTime = time;
/packages/apps/UnifiedEmail/src/com/android/mail/
H A DFormattedDateBuilder.java45 * Times on today's date will just display time, e.g. 8:15 AM
49 * @param when The time to generate a formatted date for
64 * Times on today's date will just display time, e.g. 8:15 AM
65 * Times not today, but within two weeks ago will display relative date and time,
68 * absolute date and time, e.g. Nov 6, 8:15 AM
71 * @param when The time to generate a formatted date for
88 * Displays full date and time e.g. Tue, Nov 18, 2012, 8:15 AM, or
91 * @param when The time to generate a formatted date for
106 * @param when The time to generate a formatted date for
132 * that does not include the time i
134 getRelativeDateTimeString(Context c, long time, long minResolution, long transitionResolution, int flags) argument
[all...]
/packages/inputmethods/LatinIME/native/jni/src/utils/
H A Dprofiler.h38 AKLOGI("Total time is %6.3f ms.", totalTime);
39 for (const auto &time : mTimes) {
40 AKLOGI("(%d): Used %4.2f%%, %8.4f ms. Called %d times.", time.first,
41 time.second / totalTime * 100.0f, time.second, mCounters[time.first]);
66 timespec time; local
67 clock_gettime(mClockId, &time);
68 return static_cast<int64_t>(time.tv_sec) * 1000000
69 + static_cast<int64_t>(time
[all...]
/packages/apps/Camera2/src/com/android/camera/session/
H A DPlaceholderManager.java49 final long time; field in class:PlaceholderManager.Placeholder
54 time = timestamp;
138 placeholder.outputTitle, placeholder.time, location, orientation, exif, jpeg, width,
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
H A DDateUtils.java223 * anniversary of the date that is equal to or after the current point in time if the date
224 * does not contain a year, or the date converted to the local time zone (if the date contains
227 * @param target The date we wish to convert(in the UTC time zone).
229 * that is after the current point in time (in the local time zone). Otherwise, returns the
230 * adjusted Date in the local time zone.
236 // Round the current time to the exact start of today so that when we compare
263 // to be in 4 years time).
277 * @param time Instance of time objec
282 getDayDifference(Time time, long date1, long date2) argument
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/data/
H A DStopwatchModel.java156 * @return the longest lap time of all recorded laps and the current lap
163 // Compute the maximum lap time across all recorded laps.
168 // Compare with the maximum lap time for the current lap.
178 * In practice, {@code time} can be any value due to device reboots. When the real-time clock is
179 * reset, there is no more guarantee that this time falls after the last recorded lap.
181 * @param time a point in time expected, but not required, to be after the end of the prior lap
182 * @return the elapsed time between the given {@code time} an
185 getCurrentLapTime(long time) argument
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
H A DLapsAdapter.java45 /** Used to determine when the time format for the lap time column has changed length. */
48 /** Used to determine when the time format for the total time column has changed length. */
113 * @param totalTime time accumulated for the current lap and all prior laps
123 // Compute the lap time using the total time.
160 // Clear the computed time lengths related to the old recorded laps.
168 * @return a formatted textual description of lap times and total time
178 // Add the total elapsed time o
223 formatTime(long maxTime, long time, String separator) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DControllerOverlay.java26 void onSeekMove(int time); argument
27 void onSeekEnd(int time, int trimStartTime, int trimEndTime); argument
H A DMovieControllerOverlay.java175 public void onScrubbingMove(int time) { argument
177 super.onScrubbingMove(time);
181 public void onScrubbingEnd(int time, int trimStartTime, int trimEndTime) { argument
183 super.onScrubbingEnd(time, trimStartTime, trimEndTime);
/packages/apps/Messaging/src/com/android/messaging/util/
H A DLogSaver.java110 void set(int tid, int level, long time, String tag, String message) { argument
112 this.mTimeMillis = time;
/packages/apps/Settings/src/com/android/settings/applications/
H A DProcessStatsUi.java139 public static String makeDuration(long time) { argument
141 TimeUtils.formatDuration(time, sb);
/packages/apps/TV/src/com/android/tv/dvr/
H A DDvrDataManager.java62 * Returns the next start time after {@code time} or {@link #NEXT_START_TIME_NOT_FOUND}
65 * @param time time milliseconds
67 long getNextScheduledStartTimeAfter(long time); argument
70 * Returns a list of all Recordings with a overlap with the given time period inclusive.
76 * @param period a time period in milliseconds.
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
H A DInputPointers.java43 // Fill the gap with the latest time.
57 final int time) {
64 mTimes.addAt(index, time);
68 public void addPointer(final int x, final int y, final int pointerId, final int time) { argument
72 mTimes.add(time);
151 * Gets the time each point was registered, in milliseconds, relative to the first event in the
153 * @return The time each point was registered, in milliseconds, relative to the first event in
163 return "size=" + getPointerSize() + " id=" + mPointerIds + " time=" + mTimes
56 addPointerAt(final int index, final int x, final int y, final int pointerId, final int time) argument
/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/Calendar/src/com/android/calendar/
H A DCalendarViewAdapter.java66 // The current selected event's time, used to calculate the date and day of the week
75 private Handler mMidnightHandler = null; // Used to run a time update every midnight
78 // Updates time specific variables (time-zone, today's Julian day).
100 // Sets time specific variables and starts a thread for midnight updates
107 // Sets the time zone and today's Julian day to be used by the adapter.
111 Time time = new Time(mTimeZone);
113 time.set(now);
114 mTodayJulianDay = Time.getJulianDay(now, time.gmtoff);
123 // Set the time update
305 setTime(long time) argument
[all...]

Completed in 1306 milliseconds

1234