/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/apps/VideoEditor/src/com/android/videoeditor/util/ |
H A D | StringUtils.java | 105 * 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/apps/Email/src/com/android/email/activity/ |
H A D | RecentMailboxManager.java | 95 /** Updates the specified mailbox's touch time. Returns an async task for test only. */ 129 /** Updates the last touched time for the mailbox in the background */ 131 final long accountId, final long mailboxId, final long time) { 135 ensureDefaultsInitialized(accountId, time); 136 touchMailboxSynchronous(accountId, mailboxId, time); 141 private void touchMailboxSynchronous(long accountId, long mailboxId, long time) { argument 143 values.put(MailboxColumns.LAST_TOUCHED_TIME, time); 152 private synchronized void ensureDefaultsInitialized(long accountId, long time) { argument 163 touchMailboxSynchronous(accountId, mailbox, time); 130 fireAndForget( final long accountId, final long mailboxId, final long time) argument
|
/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/Browser/src/com/android/browser/ |
H A D | CrashRecoveryHandler.java | 45 * instead of automatically restoring. The first time the browser crashes, 175 private void updateLastRecovered(long time) { argument 179 .putLong(KEY_LAST_RECOVERED, time)
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | ControllerOverlay.java | 26 void onSeekMove(int time); argument 27 void onSeekEnd(int time); argument
|
H A D | TimeBar.java | 33 * The time bar view, which includes the current and total time, the progress bar, 40 void onScrubbingMove(int time); argument 41 void onScrubbingEnd(int time); argument 134 * @return the height of the time bar, excluding invisible padding
|
H A D | MovieControllerOverlay.java | 380 public void onScrubbingMove(int time) { argument 382 listener.onSeekMove(time); 385 public void onScrubbingEnd(int time) { argument 387 listener.onSeekEnd(time);
|
H A D | MoviePlayer.java | 80 // If the time bar is being dragged. 83 // If the time bar is visible. 231 // This updates the time bar display (if necessary). It is called every 232 // second by mProgressChecker and also from places where the time bar needs 306 public void onSeekMove(int time) { argument 307 mVideoView.seekTo(time); 311 public void onSeekEnd(int time) { argument 313 mVideoView.seekTo(time);
|
/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 77 // Updates time specific variables (time-zone, today's Julian day). 98 // Sets time specific variables and starts a thread for midnight updates 103 // Sets the time zone and today's Julian day to be used by the adapter. 107 Time time = new Time(mTimeZone); 109 time.set(now); 110 mTodayJulianDay = Time.getJulianDay(now, time.gmtoff); 119 // Set the time update 261 setTime(long time) argument [all...] |
H A D | Utils.java | 100 // reasons, as it's what PreferenceManager assigned the first time the file 156 * Writes a new home time zone to the db. Updates the home time zone in the 157 * db asynchronously and updates the local cache. Sending a time zone of 158 * **tbd** will cause it to be set to the device's time zone. null or empty 162 * @param timeZone The time zone to set Calendar to, or **tbd** 169 * Gets the time zone that Calendar should be displayed in This is a helper 170 * method to get the appropriate time zone for Calendar. If this is the 171 * first time this method has been called it will initiate an asynchronous 180 * @return The string value representing the time zon 359 formatMonthYear(Context context, Time time) argument [all...] |
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
H A D | AgendaFragment.java | 73 // Tracks the time of the top visible view in order to send UPDATE_TITLE messages to the action 90 // timeMillis - time of first event to show 128 Log.d(TAG, "Restoring time to " + mTime.toString()); 269 // The view hasn't been set yet. Just save the time and use it 274 // Set mTime if we have a start time and we aren't in the range of the 288 private void search(String query, Time time) { argument 290 if (time != null) { 291 mTime.set(time); 297 mAgendaListView.goTo(time, -1, mQuery, true, false); 317 // TODO support a range of time [all...] |
H A D | AgendaListView.java | 115 // Calculate the time until midnight + 1 second and set the handler to 116 // do a refresh at that time. 118 Time time = new Time(mTimeZone); 119 time.set(now); 120 long runInMillis = (24 * 3600 - time.hour * 3600 - time.minute * 60 - 121 time.second + 1) * 1000; 155 Time time = new Time(mTimeZone); 156 time.set(now); 157 int todayJulianDay = Time.getJulianDay(now, time 212 goTo(Time time, long id, String searchQuery, boolean forced, boolean refreshEventInfo) argument [all...] |
H A D | AgendaByDayAdapter.java | 200 // time zone. 308 // Make sure event's start time is not before the start of the day 309 // (setJulianDay sets the time to 12:00am) 480 * Finds the position in the cursor of the event that best matches the time and Id. 481 * It will try to find the event that has the specified id and start time, if such event 482 * doesn't exist, it will return the event with a matching id that is closest to the start time. 483 * If the id doesn't exist, it will return the event with start time closest to the specified 484 * time. 485 * @param time - start of event in milliseconds (or any arbitrary time i 490 findEventPositionNearestTime(Time time, long id) argument [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | Alarm.java | 56 p.writeLong(time); 95 * Alarm time in UTC milliseconds from the epoch. 162 public long time; field in class:Alarm 174 time = c.getLong(Columns.ALARM_TIME_INDEX); 203 time = p.readLong(); 210 // Creates a default alarm at the current time.
|
H A D | Alarms.java | 152 long time = 0; 154 time = calculateAlarm(alarm); 160 values.put(Alarm.Columns.ALARM_TIME, time); 269 // If we are enabling the alarm, calculate alarm time since the time 272 long time = 0; 274 time = calculateAlarm(alarm); 276 values.put(Alarm.Columns.ALARM_TIME, time); 323 // A time of 0 indicates this is a repeating alarm, so 324 // calculate the time t 448 saveSnoozeAlert(final Context context, final int id, final long time) argument [all...] |
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/datetime/parser/ |
H A D | DateTimeParser.java | 157 t = time(); 165 t.getZone());} // time zone offset 283 final public Time time() throws ParseException { method in class:DateTimeParser
|
/packages/apps/QuickSearchBox/benchmarks/src/com/android/quicksearchbox/benchmarks/ |
H A D | SourceLatency.java | 74 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/wallpapers/Basic/src/com/android/wallpaper/grass/ |
H A D | SunCalculator.java | 56 * 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/month/ |
H A D | MonthByWeekFragment.java | 80 // The minimum time between requeries of the data if the db is 148 // -1 to ensure we get all day events from any time zone 152 // +1 to ensure we get all day events from any time zone 422 protected void setMonthDisplayed(Time time, boolean updateHighlight) { argument 423 super.setMonthDisplayed(time, updateHighlight); 426 if (time.year == mDesiredDay.year && time.month == mDesiredDay.month) { 431 mSelectedDay.set(time); 432 mAdapter.setSelectedDay(time); 445 controller.sendEvent(this, EventType.UPDATE_TITLE, time, tim [all...] |
H A D | SimpleDayPickerFragment.java | 51 * reduced number of days, or display an arbitrary number of weeks at a time. By 93 // highlighted time 100 // disposable variable used for time calculations 170 // Ensure we're in the correct time zone 357 * selected time. 366 * This moves to the specified time in the view. If the time is not already 368 * the time is at the top of the view. If the new time is already in view 369 * the list will not be scrolled unless forceScroll is true. This time ma 380 goTo(long time, boolean animate, boolean setSelected, boolean forceScroll) argument 563 setMonthDisplayed(Time time, boolean updateHighlight) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | GLCanvas.java | 40 // This is the time value used to calculate the animation in the current 42 // "time" parameter must be nonnegative. 43 public void setCurrentAnimationTimeMillis(long time); argument
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/ |
H A D | GLCanvasStub.java | 26 public void setCurrentAnimationTimeMillis(long time) {} argument
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
H A D | PowerUsageSummary.java | 62 * consumed since the last time it was unplugged. 436 // Process CPU time 453 // Then compute the ratio of time spent at each speed 476 Log.i(TAG, "WARNING! Cputime is more than 10 seconds behind Foreground time"); 577 // time and application wake lock time would account for. Assign 616 Log.i(TAG, "Screen bin power = " + (int) screenBinPower + ", time = " 744 private BatterySipper addEntry(String label, DrainType drainType, long time, int iconId, argument 750 bs.usageTime = time;
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
H A D | BalloonHint.java | 38 * Delayed time to show the balloon hint. 43 * Delayed time to dismiss the balloon hint. 83 * Timer used to show/dismiss the balloon window with some time delay. 285 public void startTimer(long time, int action, int positionInParent[], argument 294 postDelayed(this, time);
|