/packages/apps/VideoEditor/src/com/android/videoeditor/util/ |
D | StringUtils.java | 112 public static String getTimestampAsString(Context context, long time) { in getTimestampAsString() argument 113 final long hours = time / 3600000; in getTimestampAsString() 114 time %= 3600000; in getTimestampAsString() 115 final long mins = time / 60000; in getTimestampAsString() 116 time %= 60000; in getTimestampAsString() 117 final long sec = time / 1000; in getTimestampAsString() 118 time %= 1000; in getTimestampAsString() 119 time /= 100; in getTimestampAsString() 120 return String.format("%02d:%02d:%02d.%01d", hours, mins, sec, time); in getTimestampAsString() 131 public static String getSimpleTimestampAsString(Context context, long time) { in getSimpleTimestampAsString() argument [all …]
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
D | SimpleWeekView.java | 247 Time time = new Time(tz); in setWeekParams() local 248 time.setJulianDay(julianMonday); in setWeekParams() 253 mDayNumbers[0] = Integer.toString(time.getWeekNumber()); in setWeekParams() 264 if (time.weekDay != mWeekStart) { in setWeekParams() 265 int diff = time.weekDay - mWeekStart; in setWeekParams() 269 time.monthDay -= diff; in setWeekParams() 270 time.normalize(true); in setWeekParams() 273 mFirstJulianDay = Time.getJulianDay(time.toMillis(true), time.gmtoff); in setWeekParams() 274 mFirstMonth = time.month; in setWeekParams() 287 if (time.monthDay == 1) { in setWeekParams() [all …]
|
D | MonthByWeekFragment.java | 432 protected void setMonthDisplayed(Time time, boolean updateHighlight) { in setMonthDisplayed() argument 433 super.setMonthDisplayed(time, updateHighlight); in setMonthDisplayed() 436 if (time.year == mDesiredDay.year && time.month == mDesiredDay.month) { in setMonthDisplayed() 441 mSelectedDay.set(time); in setMonthDisplayed() 442 mAdapter.setSelectedDay(time); in setMonthDisplayed() 455 controller.sendEvent(this, EventType.UPDATE_TITLE, time, time, time, -1, in setMonthDisplayed()
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | SyncCalendarTest.java | 60 Time time = new Time(); in testCreateAllDayEvent() local 61 time.setToNow(); in testCreateAllDayEvent() 62 long dtStart = time.toMillis(false); in testCreateAllDayEvent() 63 long dtEnd = time.toMillis(false) + ONE_HOUR_IN_MILLIS; in testCreateAllDayEvent() 79 Time time = new Time(); in testEditEventTitle() local 80 time.setToNow(); in testEditEventTitle() 81 String newTitle = cursor.getString(cursor.getColumnIndex("title")) + time.toString(); in testEditEventTitle() 107 Time time = new Time(); in testEditEventDate() local 110 time.set(dtStart + 2 * ONE_HOUR_IN_MILLIS); in testEditEventDate() 111 long newDtStart = time.toMillis(false); in testEditEventDate() [all …]
|
D | CalendarSyncTestingBase.java | 270 Time time = new Time(); in init() local 272 time.timezone = Time.TIMEZONE_UTC; in init() 274 time.timezone = timezone; in init() 276 mTimezone = time.timezone; in init() 277 time.parse3339(startDate); in init() 278 mDtstart = time.toMillis(false /* use isDst */); in init() 279 time.parse3339(endDate); in init() 280 mDtend = time.toMillis(false /* use isDst */); in init() 302 Time time = new Time(); in init() local 304 time.timezone = Time.TIMEZONE_UTC; in init() [all …]
|
D | CalendarProvider2Test.java | 297 Time time = new Time(DEFAULT_TIMEZONE); in DumpInstances() local 298 time.parse3339(startDate); in DumpInstances() 299 begin = time.toMillis(false /* use isDst */); in DumpInstances() 300 time.parse3339(endDate); in DumpInstances() 301 end = time.toMillis(false /* use isDst */); in DumpInstances() 321 Time time = new Time(DEFAULT_TIMEZONE); in QueryNumInstances() local 322 time.parse3339(startDate); in QueryNumInstances() 323 begin = time.toMillis(false /* use isDst */); in QueryNumInstances() 324 time.parse3339(endDate); in QueryNumInstances() 325 end = time.toMillis(false /* use isDst */); in QueryNumInstances() [all …]
|
/packages/wallpapers/Basic/src/com/android/wallpaper/grass/ |
D | SunCalculator.java | 81 public static int timeToHours(double time) { in timeToHours() argument 82 int hour = (int) Math.floor(time); in timeToHours() 83 int minute = (int) Math.round((time - hour) * 60); in timeToHours() 90 public static int timeToMinutes(double time) { in timeToMinutes() argument 91 int hour = (int) Math.floor(time); in timeToMinutes() 92 int minute = (int) Math.round((time - hour) * 60); in timeToMinutes() 99 public static float timeToDayFraction(double time) { in timeToDayFraction() argument 100 int hour = (int) Math.floor(time); in timeToDayFraction() 101 int minute = (int) Math.round((time - hour) * 60); in timeToDayFraction() 109 public static String timeToString(double time) { in timeToString() argument [all …]
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
D | CalendarAppWidgetService.java | 437 Time time = new Time(); 438 time.setToNow(); 439 time.monthDay++; 440 time.hour = 0; 441 time.minute = 0; 442 time.second = 0; 443 long midnightDeviceTz = time.normalize(true); 445 time.timezone = timezone; 446 time.setToNow(); 447 time.monthDay++; [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | Alarms.java | 152 long time = 0; in createContentValues() local 154 time = calculateAlarm(alarm); in createContentValues() 160 values.put(Alarm.Columns.ALARM_TIME, time); in createContentValues() 272 long time = 0; in enableAlarmInternal() local 274 time = calculateAlarm(alarm); in enableAlarmInternal() 276 values.put(Alarm.Columns.ALARM_TIME, time); in enableAlarmInternal() 325 if (a.time == 0) { in calculateNextAlert() 326 a.time = calculateAlarm(a); in calculateNextAlert() 332 if (a.time < now) { in calculateNextAlert() 333 Log.v("Disabling expired alarm set for " + Log.formatTime(a.time)); in calculateNextAlert() [all …]
|
D | SetAlarm.java | 141 long time = saveAlarm(null); in onCreate() 143 popAlarmSetToast(SetAlarm.this, time); in onCreate() 314 long time; in saveAlarm() local 316 time = Alarms.addAlarm(this, alarm); in saveAlarm() 321 time = Alarms.setAlarm(this, alarm); in saveAlarm() 323 return time; in saveAlarm() 374 long time = saveAlarm(null); in saveAndExit() local 376 popAlarmSetToast(SetAlarm.this, time); in saveAndExit()
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
D | AlertUtils.java | 115 Time time = new Time(tz); in formatTimeLocation() local 116 time.setToNow(); in formatTimeLocation() 117 int today = Time.getJulianDay(time.toMillis(false), time.gmtoff); in formatTimeLocation() 118 time.set(startMillis); in formatTimeLocation() 119 int eventDay = Time.getJulianDay(time.toMillis(false), time.gmtoff); in formatTimeLocation() 140 time.set(startMillis); in formatTimeLocation() 141 boolean isDST = time.isDst != 0; in formatTimeLocation()
|
/packages/apps/QuickSearchBox/benchmarks/src/com/android/quicksearchbox/benchmarks/ |
D | SourceLatency.java | 74 public synchronized void addTime(long time) { in addTime() argument 75 mTotal += time; in addTime() 91 final ElapsedTime time = new ElapsedTime(); in checkSourceConcurrent() local 100 time.addTime(t); in checkSourceConcurrent() 111 while (time.getCount() < count) { in checkSourceConcurrent() 118 Log.d(TAG, src + "[DONE]: " + length + " queries in " + formatTime(time.getAverage()) in checkSourceConcurrent() 119 + " (average), " + formatTime(time.getTotal()) + " (total)"); in checkSourceConcurrent() 123 ElapsedTime time = new ElapsedTime(); in checkSource() local 127 time.addTime(t); in checkSource() 129 Log.d(TAG, src + "[DONE]: " + count + " queries in " + formatTime(time.getAverage()) in checkSource() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
D | AgendaWindowAdapter.java | 302 Time time = new Time(); in toString() local 304 time.setJulianDay(start); in toString() 305 time.normalize(false); in toString() 306 sb.append("Start:").append(time.toString()); in toString() 307 time.setJulianDay(end); in toString() 308 time.normalize(false); in toString() 309 sb.append(" End:").append(time.toString()); in toString() 511 private int findEventPositionNearestTime(Time time, long id) { in findEventPositionNearestTime() argument 512 DayAdapterInfo info = getAdapterInfoByTime(time); in findEventPositionNearestTime() 515 pos = info.offset + info.dayAdapter.findEventPositionNearestTime(time, id); in findEventPositionNearestTime() [all …]
|
D | AgendaListView.java | 135 Time time = new Time(mTimeZone); in updatePastEvents() local 136 time.set(now); in updatePastEvents() 137 int todayJulianDay = Time.getJulianDay(now, time.gmtoff); in updatePastEvents() 201 public void goTo(Time time, long id, String searchQuery, boolean forced, in goTo() argument 203 if (time == null) { in goTo() 204 time = mTime; in goTo() 209 time.set(goToTime); in goTo() 211 mTime.set(time); in goTo()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarAlarmManager.java | 224 Time time = new Time(); in scheduleNextAlarmCheck() local 225 time.set(triggerTime); in scheduleNextAlarmCheck() 226 String timeStr = time.format(" %a, %b %d, %Y %I:%M%P"); in scheduleNextAlarmCheck() 258 Time time = new Time(); in scheduleNextAlarmLocked() local 264 time.set(start); in scheduleNextAlarmLocked() 265 String startTimeStr = time.format(" %a, %b %d, %Y %I:%M%P"); in scheduleNextAlarmLocked() 310 time.setToNow(); in scheduleNextAlarmLocked() 311 time.normalize(false); in scheduleNextAlarmLocked() 312 long localOffset = time.gmtoff * 1000; in scheduleNextAlarmLocked() 376 time.set(nextAlarmTime); in scheduleNextAlarmLocked() [all …]
|
/packages/apps/Email/src/com/android/email/activity/ |
D | RecentMailboxManager.java | 131 final long accountId, final long mailboxId, final long time) { in fireAndForget() argument 135 ensureDefaultsInitialized(accountId, time); in fireAndForget() 136 touchMailboxSynchronous(accountId, mailboxId, time); in fireAndForget() 141 private void touchMailboxSynchronous(long accountId, long mailboxId, long time) { 143 values.put(MailboxColumns.LAST_TOUCHED_TIME, time); 152 private synchronized void ensureDefaultsInitialized(long accountId, long time) { 163 touchMailboxSynchronous(accountId, mailbox, time);
|
/packages/apps/Camera/perftests/panorama/ |
D | README.txt | 19 Total elapsed time: 56.02 seconds 21 The first number in the parenthesis is the time to align the frames; the second 22 number is the time to stitch them. 24 The total elapsed time is the interesting number for benchmarking.
|
/packages/apps/Mms/src/com/android/mms/dom/smil/ |
D | TimeListImpl.java | 44 Time time = null; in item() local 46 time = mTimes.get(index); in item() 50 return time; in item()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | CalendarViewAdapter.java | 111 Time time = new Time(mTimeZone); in refresh() local 113 time.set(now); in refresh() 114 mTodayJulianDay = Time.getJulianDay(now, time.gmtoff); in refresh() 125 Time time = new Time(mTimeZone); in setMidnightHandler() local 126 time.set(now); in setMidnightHandler() 127 long runInMillis = (24 * 3600 - time.hour * 3600 - time.minute * 60 - in setMidnightHandler() 128 time.second + 1) * 1000; in setMidnightHandler() 305 public void setTime(long time) { in setTime() argument 306 mMilliTime = time; in setTime()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | DialogDetailsView.java | 156 double time = Double.valueOf(value); in setDetails() local 157 if (time < 1.0f) { in setDetails() 158 value = String.format("1/%d", (int) (0.5f + 1 / time)); in setDetails() 160 int integer = (int) time; in setDetails() 161 time -= integer; in setDetails() 163 if (time > 0.0001) { in setDetails() 164 value += String.format(" 1/%d", (int) (0.5f + 1 / time)); in setDetails()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | ChartDataUsageView.java | 516 final Time time = new Time(); in getTickPoints() local 517 time.set(mMax); in getTickPoints() 518 time.monthDay -= time.weekDay - FIRST_DAY_OF_WEEK; in getTickPoints() 519 time.hour = time.minute = time.second = 0; in getTickPoints() 521 time.normalize(true); in getTickPoints() 522 long timeMillis = time.toMillis(true); in getTickPoints() 527 time.monthDay -= 7; in getTickPoints() 528 time.normalize(true); in getTickPoints() 529 timeMillis = time.toMillis(true); in getTickPoints()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | ExpandableBinaryDictionary.java | 370 final long time = SystemClock.uptimeMillis(); in setRequiresReload() local 371 mLocalDictionaryController.mLastUpdateRequestTime = time; in setRequiresReload() 372 mSharedDictionaryController.mLastUpdateRequestTime = time; in setRequiresReload() 374 Log.d(TAG, "Reload request: " + mFilename + ": request=" + time + " update=" in setRequiresReload() 414 final long time = SystemClock.uptimeMillis(); in syncReloadDictionaryInternal() local 423 mSharedDictionaryController.mLastUpdateTime = time; in syncReloadDictionaryInternal() 438 mLocalDictionaryController.mLastUpdateTime = time; in syncReloadDictionaryInternal()
|
/packages/apps/Browser/src/com/android/browser/ |
D | EventLogTags.logtags | 12 70104 browser_page_loaded (url|3), (time|2|3) 14 # This event is logged when the user navigates to a new page, sending the time spent on the current… 15 70105 browser_timeonpage (url|3), (time|2|3)
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/ |
D | MockClock.java | 38 public void setCurrentTimeMillis(long time) { in setCurrentTimeMillis() argument 39 mCurrentTimeMillis = time; in setCurrentTimeMillis()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | ControllerOverlay.java | 26 void onSeekMove(int time); in onSeekMove() argument 27 void onSeekEnd(int time); in onSeekEnd() argument
|