/packages/apps/Camera/tests/src/com/android/camera/stress/ |
H A D | ShotToShotLatency.java | 78 private void sleep(long time) { argument 80 Thread.sleep(time);
|
/packages/apps/Camera2/tests/src/com/android/camera/stress/ |
H A D | ShotToShotLatency.java | 78 private void sleep(long time) { argument 80 Thread.sleep(time);
|
/packages/apps/Camera2/tests_camera/src/com/android/camera/stress/ |
H A D | ShotToShotLatency.java | 78 private void sleep(long time) { argument 80 Thread.sleep(time);
|
/packages/experimental/procstatlog/ |
H A D | procstatreport.py | 24 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 D | MockClock.java | 20 /** 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 D | AsyncResultHolderTests.java | 33 final long time) { 38 Thread.sleep(time); 32 setAfterGivenTime(final AsyncResultHolder<T> holder, final T value, final long time) argument
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | AlarmUtils.java | 48 public static String getFormattedTime(Context context, Calendar time) { argument 53 return (String) DateFormat.format(pattern, time); 59 return (String) DateFormat.format(pattern, time); 68 // show time picker dialog for pre-L devices 70 com.android.datetimepicker.time.TimePickerDialog.OnTimeSetListener listener, 81 com.android.datetimepicker.time.TimePickerDialog dialog = 82 com.android.datetimepicker.time.TimePickerDialog.newInstance(listener, 101 * Show the time picker dialog for post-L devices. 166 // Otherwise, format the remaining time until the alarm rings. 185 // Compute the index of the most appropriate time forma [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/anim/ |
H A D | Animation.java | 23 // 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 D | MigrateEstimateTask.java | 115 final String time = DateUtils.formatDuration(mTimeMillis).toString(); 116 onPostExecute(size, time); 119 public abstract void onPostExecute(String size, String time); argument
|
/packages/apps/UnifiedEmail/src/com/android/mail/ |
H A D | FormattedDateBuilder.java | 45 * 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 D | profiler.h | 38 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/Browser/src/com/android/browser/ |
H A D | CrashRecoveryHandler.java | 43 * instead of automatically restoring. The first time the browser crashes, 146 private void updateLastRecovered(long time) { argument 148 browserSettings.setLastRecovered(time);
|
/packages/apps/Camera2/src/com/android/camera/session/ |
H A D | PlaceholderManager.java | 49 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 D | DateUtils.java | 223 * 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/stopwatch/ |
H A D | Stopwatches.java | 67 * @param time total elapsed time 71 public static String buildShareResults(Context context, String time, long[] laps) { argument 72 StringBuilder b = new StringBuilder (context.getString(R.string.sw_share_main, time)); 92 * @param time total elapsed time 96 public static String buildShareResults(Context context, long time, long[] laps) { argument 97 return buildShareResults(context, getTimeText(context, time, NO_LAP_NUMBER), laps); 101 * Format the string of the time running on the stopwatch up to hundred of a second accuracy 103 * @param time 107 getTimeText(Context context, long time, int lap) argument 146 formatTimeText(long time, final String format) argument [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
H A D | TimerListItem.java | 128 public void setTime(long time, boolean forceUpdate) { argument 132 mTimerText.setTime(time, false, forceUpdate);
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | ControllerOverlay.java | 26 void onSeekMove(int time); argument 27 void onSeekEnd(int time, int trimStartTime, int trimEndTime); argument
|
H A D | MovieControllerOverlay.java | 175 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 D | LogSaver.java | 110 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 D | ProcessStatsUi.java | 140 public static String makeDuration(long time) { argument 142 TimeUtils.formatDuration(time, sb);
|
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
H A D | InputPointers.java | 43 // 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 D | DictionaryService.java | 89 * 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 D | CalendarViewAdapter.java | 66 // 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 D | AgendaListView.java | 135 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 D | CameraHolder.java | 53 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;
|