Searched refs:time (Results 1 - 25 of 162) sorted by relevance

1234567

/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/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/UnifiedEmail/src/com/android/mail/
H A DFormattedDateBuilder.java80 final Time time = new Time();
81 time.set(when);
83 final int thenYear = time.year;
84 final int thenMonth = time.month;
85 final int thenMonthDay = time.monthDay;
87 time.set(System.currentTimeMillis());
88 return (thenYear == time.year)
89 && (thenMonth == time.month)
90 && (thenMonthDay == (time.monthDay-1));
/packages/apps/Mms/src/com/android/mms/dom/smil/
H A DTimeListImpl.java44 Time time = null;
46 time = mTimes.get(index);
50 return time;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
H A DStatistics.java76 // Timers to count average time to enter a key, first press a delete key,
110 // The last time that a tap was performed
160 public void recordChar(int codePoint, long time) { argument
166 recordUserAction(time, true /* isDeletion */);
178 recordUserAction(time, false /* isDeletion */);
197 public void recordGestureInput(final int numCharsEntered, final long time) { argument
200 recordUserAction(time, false /* isDeletion */);
208 public void recordGestureDelete(final int length, final long time) { argument
210 recordUserAction(time, true /* isDeletion */);
213 public void recordManualSuggestion(final long time) { argument
218 recordAutoCorrection(final long time) argument
223 recordRevertCommit(final long time) argument
228 recordUserAction(final long time, final boolean isDeletion) argument
[all...]
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 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/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/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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DGestureStroke.java236 public void duplicateLastPointWith(final int time) { argument
243 x, y, time));
246 appendPoint(x, y, time);
247 updateIncrementalRecognitionSize(x, y, time);
262 private void appendPoint(final int x, final int y, final int time) { argument
265 // time than the next {@link MotionEvent}. To maintain the monotonicity of the event time,
267 if (lastIndex >= 0 && mEventTimes.get(lastIndex) > time) {
269 x, y, time, mXCoordinates.get(lastIndex), mYCoordinates.get(lastIndex),
273 mEventTimes.add(time);
278 updateMajorEvent(final int x, final int y, final int time) argument
288 detectFastMove(final int x, final int y, final int time) argument
327 addPointOnKeyboard(final int x, final int y, final int time, final boolean isMajorEvent) argument
347 updateIncrementalRecognitionSize(final int x, final int y, final int time) argument
[all...]
/packages/apps/Nfc/nci/jni/
H A DIntervalTimer.h21 #include <time.h>
/packages/apps/Calendar/src/com/android/calendar/month/
H A DSimpleWeekView.java77 * How many days to display at a time. Days will be displayed starting with
118 // Cache the number strings so we don't have to recompute them each time
210 * @param tz The time zone this view should reference times in
247 Time time = new Time(tz);
248 time.setJulianDay(julianMonday);
253 mDayNumbers[0] = Integer.toString(time.getWeekNumber());
264 if (time.weekDay != mWeekStart) {
265 int diff = time.weekDay - mWeekStart;
269 time.monthDay -= diff;
270 time
[all...]
/packages/apps/Calendar/tests/src/com/android/calendar/widget/
H A DCalendarAppWidgetServiceTest.java80 // Set the "current time" to 2am tomorrow.
81 Time time = new Time();
82 time.setToNow();
83 time.monthDay += 1;
84 time.hour = 2;
85 time.minute = 0;
86 time.second = 0;
87 now = time.normalize(false);
148 // Set the start time to 5 days from now at midnight UTC.
149 Time time
[all...]
/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/PinyinIME/jni/command/
H A Dpinyinime_dictbuilder.cpp20 #include <time.h>
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
H A DSyncCalendarTest.java60 Time time = new Time();
61 time.setToNow();
62 long dtStart = time.toMillis(false);
63 long dtEnd = time.toMillis(false) + ONE_HOUR_IN_MILLIS;
79 Time time = new Time();
80 time.setToNow();
81 String newTitle = cursor.getString(cursor.getColumnIndex("title")) + time.toString();
107 Time time = new Time();
110 time.set(dtStart + 2 * ONE_HOUR_IN_MILLIS);
111 long newDtStart = time
[all...]
H A DCalendarSyncTestingBase.java270 Time time = new Time();
272 time.timezone = Time.TIMEZONE_UTC;
274 time.timezone = timezone;
276 mTimezone = time.timezone;
277 time.parse3339(startDate);
278 mDtstart = time.toMillis(false /* use isDst */);
279 time.parse3339(endDate);
280 mDtend = time.toMillis(false /* use isDst */);
302 Time time = new Time();
304 time
[all...]
/packages/wallpapers/Basic/src/com/android/wallpaper/grass/
H A DSunCalculator.java56 * Computes the sunrise time for the given zenith at the given date.
62 * @return the sunrise time
69 * Computes the sunset time for the given zenith at the given date.
75 * @return the sunset time
81 public static int timeToHours(double time) { argument
82 int hour = (int) Math.floor(time);
83 int minute = (int) Math.round((time - hour) * 60);
90 public static int timeToMinutes(double time) { argument
91 int hour = (int) Math.floor(time);
92 int minute = (int) Math.round((time
99 timeToDayFraction(double time) argument
109 timeToString(double time) argument
[all...]
/packages/apps/Calendar/src/com/android/calendar/widget/
H A DCalendarAppWidgetService.java103 * Update interval used when no next-update calculated, or bad trigger time in past.
117 // Suppress unnecessary logging about update time. Need to be static as this object is
365 * until some time in the future. Widen the time range that we query by
368 * in the list of events starting at midnight local time. This may fetch
377 // Search for events from now until some time in the future
421 * Calculates and returns the next time we should push widget updates.
432 // We want to update widget when we enter/exit time range of an event.
443 Time time = new Time();
444 time
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/timer/
H A DCountingTimerView.java37 * Class to measure and draw the time in the {@link com.android.deskclock.CircleTimerView}.
40 * drawing digits (and optional label) of the time set in {@link #setTime(long, boolean, boolean)}
64 // Hours and minutes are signed for when a timer goes past the set time and thus negative
138 protected void updateWidth(final String time) { argument
141 mWidth = time.length() * mEm;
148 public float calcTotalWidth(final String time) { argument
149 if (time != null) {
150 updateWidth(time);
163 * Draws each character with a fixed spacing from time starting at ii.
164 * @param canvas the canvas on which the time segmen
171 drawTime(Canvas canvas, final String time, int ii, float x, float y) argument
190 draw(Canvas canvas, final String time, float x, float y) argument
208 draw(Canvas canvas, final String time, float x, float y) argument
224 updateWidth(final String time) argument
246 draw(Canvas canvas, final String time, float x, float y) argument
325 setTime(long time, boolean showHundredths, boolean update) argument
[all...]
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/header/
H A Dheader_policy.h42 LAST_UPDATED_TIME_KEY, time(0) /* defaultValue */)),
44 LAST_DECAYED_TIME_KEY, time(0) /* defaultValue */)),
62 LAST_UPDATED_TIME_KEY, time(0) /* defaultValue */)),
64 LAST_UPDATED_TIME_KEY, time(0) /* defaultValue */)),
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarAlarmManager.java84 * We search backward in time for event reminders that we may have missed
97 * because the device time was incorrectly in the future. This threshold
240 Time time = new Time();
241 time.set(triggerTime);
242 String timeStr = time.format(" %a, %b %d, %Y %I:%M%P");
274 Time time = new Time();
280 time.set(start);
281 String startTimeStr = time.format(" %a, %b %d, %Y %I:%M%P");
289 // should be further in the past than the point in time where
304 // Extract events from the database sorted by alarm time
[all...]
/packages/apps/QuickSearchBox/benchmarks/src/com/android/quicksearchbox/benchmarks/
H A DSourceLatency.java74 public synchronized void addTime(long time) { argument
75 mTotal += time;
91 final ElapsedTime time = new ElapsedTime();
100 time.addTime(t);
111 while (time.getCount() < count) {
118 Log.d(TAG, src + "[DONE]: " + length + " queries in " + formatTime(time.getAverage())
119 + " (average), " + formatTime(time.getTotal()) + " (total)");
123 ElapsedTime time = new ElapsedTime();
127 time.addTime(t);
129 Log.d(TAG, src + "[DONE]: " + count + " queries in " + formatTime(time
[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

Completed in 640 milliseconds

1234567