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

123

/packages/apps/Camera/tests/src/com/android/camera/stress/
H A DShotToShotLatency.java78 private void sleep(long time) { argument
80 Thread.sleep(time);
/packages/apps/Camera2/tests/src/com/android/camera/stress/
H A DShotToShotLatency.java78 private void sleep(long time) { argument
80 Thread.sleep(time);
/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/apps/DeskClock/src/com/android/deskclock/
H A DAlarmUtils.java26 import com.android.datetimepicker.time.TimePickerDialog;
39 public static String getFormattedTime(Context context, Calendar time) { argument
42 return (String) DateFormat.format(pattern, time);
H A DAnalogClock.java120 // The time zone may have changed while the receiver wasn't registered, so update the Time
123 // Make sure we update to the current time
258 String tz = intent.getStringExtra("time-zone");
276 private void updateContentDescription(Time time) { argument
279 time.toMillis(false), flags);
H A DCircleTimerView.java95 public void setPassedTime(long time, boolean drawRed) { argument
104 mCurrentIntervalTime = mAccumulatedTime = time;
/packages/apps/VideoEditor/src/com/android/videoeditor/util/
H A DStringUtils.java105 * Get a readable string displaying the time
107 * @param context The context (needed only for relative time)
108 * @param time The time
110 * @return The time string
112 public static String getTimestampAsString(Context context, long time) { argument
113 final long hours = time / 3600000;
114 time %= 3600000;
115 final long mins = time / 60000;
116 time
131 getSimpleTimestampAsString(Context context, long time) argument
148 getDurationAsString(Context context, long time) argument
[all...]
/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/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
H A DResearchLogDirectory.java85 public void cleanupLogFilesOlderThan(final long time) { argument
91 && (file.lastModified() < time)) {
100 public File getLogFilePath(final long time, final long nanoTime) { argument
101 return new File(mFilesDir, getUniqueFilename(LOG_FILENAME_PREFIX, time, nanoTime));
104 public File getUserRecordingFilePath(final long time, final long nanoTime) { argument
105 return new File(mFilesDir, getUniqueFilename(USER_RECORDING_FILENAME_PREFIX, time,
109 private static String getUniqueFilename(final String prefix, final long time, argument
111 return prefix + "-" + time + "-" + nanoTime + FILENAME_SUFFIX;
H A DLogStatement.java175 public boolean outputToLocked(final JsonWriter jsonWriter, final Long time, argument
185 jsonWriter.name(UPTIME_KEY).value(time);
H A DMotionEventReader.java146 long time = UNINITIALIZED_LONG;
155 time = jsonReader.nextLong();
191 if (logStatementType != null && time != UNINITIALIZED_LONG && x != UNINITIALIZED_INT
209 addMotionEventData(replayData, actionType, time, pointerPropertiesArray,
253 long time = UNINITIALIZED_LONG;
261 time = jsonReader.nextLong();
278 if (time != UNINITIALIZED_LONG) {
279 addMotionEventData(replayData, actionType, time, pointerPropertiesArray,
319 final long time, final PointerProperties[] pointerProperties,
322 replayData.mTimes.add(time);
318 addMotionEventData(final ReplayData replayData, final int actionType, final long time, final PointerProperties[] pointerProperties, final PointerCoords[] pointerCoords) argument
[all...]
/packages/apps/Browser/src/com/android/browser/
H A DCrashRecoveryHandler.java43 * instead of automatically restoring. The first time the browser crashes,
146 private void updateLastRecovered(long time) { argument
148 browserSettings.setLastRecovered(time);
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
H A DStopwatches.java71 * @param time total elapsed time
75 public static String buildShareResults(Context context, String time, long[] laps) { argument
76 StringBuilder b = new StringBuilder (context.getString(R.string.sw_share_main, time));
96 * @param time total elapsed time
100 public static String buildShareResults(Context context, long time, long[] laps) { argument
101 return buildShareResults(context, getTimeText(context, time, NO_LAP_NUMBER), laps);
105 * Format the string of the time running on the stopwatch up to hundred of a second accuracy
107 * @param time
111 getTimeText(Context context, long time, int lap) argument
150 formatTimeText(long time, final String format) argument
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/timer/
H A DTimerListItem.java113 public void setTime(long time, boolean forceUpdate) { argument
117 mTimerText.setTime(time, false, forceUpdate);
/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/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
H A DDictionaryService.java82 * We are waked around midnight, local time. We want to wake between midnight and 6 am,
83 * roughly. So use a random time between 0 and this delay.
88 * How long we consider a "very long time". If no update took place in this time,
104 // the single thread to time out after WORKER_THREAD_TIMEOUT_SECONDS = 15 seconds, allowing
105 // the process to be reclaimed by the system any time after that if it's not doing
132 * - Check last update time and possibly schedule an update of the data for later.
175 // at midnight local time, but it may happen if the user changes the date
206 // from sleep, but fires the next time the device actually wakes for any
212 * Utility method to decide whether the last update is older than a certain time
216 isLastUpdateAtLeastThisOld(final Context context, final long time) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DInputPointers.java41 public void addPointer(int index, int x, int y, int pointerId, int time) { argument
45 mTimes.add(index, time);
49 void addPointer(int x, int y, int pointerId, int time) { argument
53 mTimes.add(time);
154 return "size=" + getPointerSize() + " id=" + mPointerIds + " time=" + mTimes
/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...]
/packages/apps/Calendar/src/com/android/calendar/agenda/
H A DAgendaListView.java135 Time time = new Time(mTimeZone);
136 time.set(now);
137 int todayJulianDay = Time.getJulianDay(now, time.gmtoff);
208 public void goTo(Time time, long id, String searchQuery, boolean forced, argument
210 if (time == null) {
211 time = mTime;
216 time.set(goToTime);
218 mTime.set(time);
222 Log.d(TAG, "Goto with time " + mTime.toString());
275 // Save and restore the time sinc
[all...]
/packages/apps/Camera/src/com/android/camera/
H A DCameraHolder.java53 private long mKeepBeforeTime; // Keep the Camera before this time.
67 long time; field in class:CameraHolder.OpenReleaseState
79 s.time = System.currentTimeMillis();
103 String date = sDateFormat.format(new Date(s.time));
284 public synchronized void keep(int time) { argument
288 mKeepBeforeTime = System.currentTimeMillis() + time;
/packages/apps/Camera2/src/com/android/camera/
H A DCameraHolder.java53 private long mKeepBeforeTime; // Keep the Camera before this time.
67 long time; field in class:CameraHolder.OpenReleaseState
79 s.time = System.currentTimeMillis();
103 String date = sDateFormat.format(new Date(s.time));
284 public synchronized void keep(int time) { argument
288 mKeepBeforeTime = System.currentTimeMillis() + time;
/packages/apps/Camera2/src/com/android/camera/app/
H A DPlaceholderManager.java44 long time; field in class:PlaceholderManager.Session
49 time = timestamp;
171 session.time, location, orientation, exif, jpeg, width, height, mimeType);

Completed in 495 milliseconds

123