/packages/apps/Calendar/src/com/android/calendar/event/ |
D | EditEventHelper.java | 620 protected long constructDefaultEndTime(long startTime) { in constructDefaultEndTime() argument 621 return startTime + DateUtils.HOUR_IN_MILLIS; in constructDefaultEndTime() 987 Time startTime = new Time(model.mTimezone); in updateRecurrenceRule() local 988 startTime.set(model.mStart); in updateRecurrenceRule() 990 days[0] = EventRecurrence.timeDay2Day(startTime.weekDay); in updateRecurrenceRule() 1002 Time startTime = new Time(model.mTimezone); in updateRecurrenceRule() local 1003 startTime.set(model.mStart); in updateRecurrenceRule() 1004 bymonthday[0] = startTime.monthDay; in updateRecurrenceRule() 1013 Time startTime = new Time(model.mTimezone); in updateRecurrenceRule() local 1014 startTime.set(model.mStart); in updateRecurrenceRule() [all …]
|
D | EditEventView.java | 243 Time startTime = mStartTime; in onTimeSet() local 253 int hourDuration = endTime.hour - startTime.hour; in onTimeSet() 254 int minuteDuration = endTime.minute - startTime.minute; in onTimeSet() 256 startTime.hour = hourOfDay; in onTimeSet() 257 startTime.minute = minute; in onTimeSet() 258 startMillis = startTime.normalize(true); in onTimeSet() 268 startMillis = startTime.toMillis(true); in onTimeSet() 274 if (endTime.before(startTime)) { in onTimeSet() 275 endTime.monthDay = startTime.monthDay + 1; in onTimeSet() 341 Time startTime = mStartTime; in onDateSet() local [all …]
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | CalendarController.java | 163 public Time startTime; field in CalendarController.EventInfo 375 info.startTime = new Time(Utils.getTimeZone(mContext, mUpdateTimezone)); in sendEventRelatedEventWithExtraWithTitleWithCalendarId() 376 info.startTime.set(startMillis); in sendEventRelatedEventWithExtraWithTitleWithCalendarId() 381 info.selectedTime = info.startTime; in sendEventRelatedEventWithExtraWithTitleWithCalendarId() 421 info.startTime = start; in sendEvent() 467 Log.d(TAG, "Start " + (event.startTime == null ? "null" : event.startTime.toString())); in sendEvent() 474 if (event.startTime != null) { in sendEvent() 475 startMillis = event.startTime.toMillis(false); in sendEvent() 488 mTime.set(event.startTime); in sendEvent() 500 event.startTime = mTime; in sendEvent() [all …]
|
D | Event.java | 130 public int startTime; // Start and end time are in minutes since midnight field in Event 167 e.startTime = startTime; in clone() 188 dest.startTime = startTime; in copyTo() 209 e.startTime = 0; in newInstance() 398 e.startTime = cEvents.getInt(PROJECTION_START_MINUTE_INDEX); in generateEventFromCursor() 548 Log.e("Cal", "+ startTime = " + startTime); in dump() 572 && (startTime != endTime || startDay != endDay)) { in intersects() 577 if (startDay == julianDay && startTime > endMinute) { in intersects()
|
D | Utils.java | 983 event.startTime = 0; in createDNAStrands() 987 if (event.startTime > DAY_IN_MINUTES - minOtherMinutes) { in createDNAStrands() 988 event.startTime = DAY_IN_MINUTES - minOtherMinutes; in createDNAStrands() 1004 event.endTime - event.startTime < minOtherMinutes) { in createDNAStrands() 1007 if (event.startTime < WORK_DAY_START_MINUTES) { in createDNAStrands() 1010 event.endTime = Math.min(event.startTime + minOtherMinutes, in createDNAStrands() 1017 if (event.endTime - event.startTime < minOtherMinutes) { in createDNAStrands() 1018 event.startTime = event.endTime - minOtherMinutes; in createDNAStrands() 1031 int startMinute = (event.startDay - firstJulianDay) * DAY_IN_MINUTES + event.startTime; in createDNAStrands() 1240 lhs.startTime = event.startTime; in addNewSegment() [all …]
|
D | AllInOneActivity.java | 670 info.startTime = new Time(); in initFragments() 671 info.startTime.set(begin); in initFragments() 1003 final long start = event.startTime.toMillis(false /* use isDst */); in setTitleInActionBar() 1100 null, R.id.main_pane, event.viewType, event.startTime.toMillis(false), false); in handleEvent() 1145 : event.startTime.toMillis(true); in handleEvent() 1156 if (event.startTime != null && event.endTime != null) { in handleEvent() 1160 event.startTime, event.startTime.toMillis(false), mTimeZone); in handleEvent() 1164 mController.sendEvent(this, EventType.GO_TO, event.startTime, event.endTime, in handleEvent() 1189 intent.putExtra(EXTRA_EVENT_BEGIN_TIME, event.startTime.toMillis(false)); in handleEvent() 1196 event.id, event.startTime.toMillis(false), in handleEvent() [all …]
|
D | EventGeometry.java | 61 int startTime = event.startTime; in computeEventRect() local 67 startTime = 0; in computeEventRect() 78 int startHour = startTime / 60; in computeEventRect() 88 event.top += (int) (startTime * cellMinuteHeight); in computeEventRect()
|
D | SearchActivity.java | 193 event.startTime.toMillis(false), event.endTime.toMillis(false), in showEventInfo() 204 event.startTime != null ? event.startTime.toMillis(true) : -1); in showEventInfo() 225 searchEventInfo.startTime = goToTime; in search() 361 deleteEvent(event.id, event.startTime.toMillis(false), endTime); in handleEvent()
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
D | AgendaByDayAdapter.java | 312 long startTime = cursor.getLong(AgendaWindowAdapter.INDEX_BEGIN); in calculateDays() local 317 startTime = Utils.convertAlldayUtcToLocal(tempTime, startTime, mTimeZone); in calculateDays() 325 startTime = Math.max(startTime, adapterStartTime); in calculateDays() 383 long nextMidnight = Utils.getNextMidnight(tempTime, startTime, mTimeZone); in calculateDays() 388 rowInfo.add(new RowInfo(TYPE_MEETING, startDay, position, id, startTime, in calculateDays() 392 rowInfo.add(new RowInfo(TYPE_MEETING, startDay, position, id, startTime, endTime, in calculateDays() 450 RowInfo(int type, int julianDay, int position, long id, long startTime, long endTime, in RowInfo() argument 456 mEventStartTimeMilli = startTime; in RowInfo() 485 MultipleDayInfo(int position, int endDay, long id, long startTime, long endTime, in MultipleDayInfo() argument 490 mEventStartTimeMilli = startTime; in MultipleDayInfo()
|
D | AgendaListView.java | 184 long startTime = item.begin; in onItemClick() local 193 holderStartTime = startTime; in onItemClick() 196 startTime = Utils.convertAlldayLocalToUTC(mTime, startTime, mTimeZone); in onItemClick() 199 mTime.set(startTime); in onItemClick() 202 startTime, endTime, 0, 0, CalendarController.EventInfo.buildViewExtraLong( in onItemClick() 326 public boolean isAgendaItemVisible(Time startTime, long id) { in isAgendaItemVisible() argument 328 if (id == -1 || startTime == null) { in isAgendaItemVisible() 338 long milliTime = startTime.toMillis(true); in isAgendaItemVisible()
|
D | AgendaFragment.java | 320 } else if (event.startTime != null) { in goTo() 321 mTime.set(event.startTime); in goTo() 372 (event.selectedTime != null) ? event.selectedTime : event.startTime; in handleEvent() 375 search(event.query, event.startTime); in handleEvent() 409 event.startTime.timezone = Time.TIMEZONE_UTC; in showEventInfo() 415 Log.d(TAG, "showEventInfo: start: " + new Date(event.startTime.toMillis(true))); in showEventInfo() 421 long startMillis = event.startTime.toMillis(true); in showEventInfo()
|
/packages/apps/Exchange/src/com/android/exchange/adapter/ |
D | CalendarSyncParser.java | 286 /*package*/ void setTimeRelatedValues(ContentValues cv, long startTime, long endTime, in setTimeRelatedValues() argument 289 if (startTime < 0) return; in setTimeRelatedValues() 292 if (endTime < 0) endTime = startTime + (30 * DateUtils.MINUTE_IN_MILLIS); in setTimeRelatedValues() 296 startTime = CalendarUtilities.getUtcAllDayCalendarTime(startTime, mLocalTimeZone); in setTimeRelatedValues() 322 cv.put(Events.DTSTART, startTime); in setTimeRelatedValues() 326 … cv.put(Events.DURATION, "P" + ((endTime - startTime) / DateUtils.DAY_IN_MILLIS) + "D"); in setTimeRelatedValues() 329 … cv.put(Events.DURATION, "P" + ((endTime - startTime) / DateUtils.MINUTE_IN_MILLIS) + "M"); in setTimeRelatedValues() 356 long startTime = -1; in addEvent() local 417 cal.setTimeInMillis(startTime); in addEvent() 448 startTime = Utility.parseDateTimeToMillis(getValue()); in addEvent() [all …]
|
/packages/apps/Exchange/src/com/android/exchange/utility/ |
D | CalendarUtilities.java | 348 static GregorianCalendar findTransitionDate(TimeZone tz, long startTime, in findTransitionDate() argument 354 while ((endTime - startTime) > MINUTES) { in findTransitionDate() 355 long checkTime = ((startTime + endTime) / 2) + 1; in findTransitionDate() 361 startTime = checkTime; in findTransitionDate() 372 calendar.setTimeInMillis(startTime); in findTransitionDate() 558 long startTime = cal.getTimeInMillis(); in getDSTCalendars() local 560 long endOfYearTime = startTime + (365*DAYS) + (DAYS>>2); in getDSTCalendars() 561 Date date = new Date(startTime); in getDSTCalendars() 564 cal = findTransitionDate(tz, startTime, endOfYearTime, startInDaylightTime); in getDSTCalendars() 573 cal = findTransitionDate(tz, startTime, endOfYearTime, !startInDaylightTime); in getDSTCalendars() [all …]
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | DeleteDropTarget.java | 324 long startTime, float friction) { 328 mPrevTime = startTime; 361 DragObject d, PointF vel, final long startTime, final int duration, 366 return new FlingAlongVectorAnimatorUpdateListener(dragLayer, vel, from, startTime, 390 final long startTime = AnimationUtils.currentAnimationTimeMillis(); 407 startTime) / duration); 417 updateCb = createFlingAlongVectorAnimatorListener(dragLayer, d, vel, startTime,
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
D | GlobalDismissManager.java | 57 private GlobalDismissId(String accountName, String syncId, long startTime) { in GlobalDismissId() argument 66 mStartTime = startTime; in GlobalDismissId() 109 long startTime) { in LocalDismissId() argument 119 mStartTime = startTime; in LocalDismissId() 310 long startTime = dismissId.mStartTime; in syncSenderDismissCache() local 313 data.putString(START_TIME, Long.toString(startTime)); in syncSenderDismissCache() 316 cnb.send(accountName, syncId + ":" + startTime, data); in syncSenderDismissCache()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | DeleteDropTarget.java | 421 long startTime, float friction) { 425 mPrevTime = startTime; 458 DragObject d, PointF vel, final long startTime, final int duration, 463 return new FlingAlongVectorAnimatorUpdateListener(dragLayer, vel, from, startTime, 487 final long startTime = AnimationUtils.currentAnimationTimeMillis(); 504 startTime) / duration); 514 updateCb = createFlingAlongVectorAnimatorListener(dragLayer, d, vel, startTime,
|
/packages/experimental/RpcPerformance/src/com/android/rpc_performance/ |
D | ProviderPerfActivity.java | 422 long startTime = System.nanoTime(); in doNoOpLookup() local 433 long duration = System.nanoTime() - startTime; in doNoOpLookup() 612 long startTime = SystemClock.uptimeMillis(); in settingsRead() local 623 long duration = SystemClock.uptimeMillis() - startTime; in settingsRead() 641 long startTime = SystemClock.uptimeMillis(); in settingsWrite() local 646 values.put("value", (mode == MODE_WRITE ? (""+startTime) : "foo")); in settingsWrite() 653 long duration = SystemClock.uptimeMillis() - startTime; in settingsWrite()
|
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
D | StopwatchService.java | 335 private void writeToSharedPrefs(Long startTime, Long lapTimeElapsed, Long elapsedTime, in writeToSharedPrefs() argument 340 if (startTime != null) { in writeToSharedPrefs() 341 editor.putLong(Stopwatches.PREF_START_TIME, startTime); in writeToSharedPrefs() 342 mStartTime = startTime; in writeToSharedPrefs() 372 private void writeSharedPrefsStarted(long startTime, boolean updateCircle) { in writeSharedPrefsStarted() argument 373 writeToSharedPrefs(startTime, null, null, Stopwatches.STOPWATCH_RUNNING, updateCircle); in writeSharedPrefsStarted()
|
/packages/experimental/StrictModeTest/src/com/android/strictmodetest/ |
D | StrictModeActivity.java | 138 long startTime = SystemClock.uptimeMillis(); in onCreate() 145 Log.d(TAG, "Time for " + iters + ": " + (endTime - startTime) + ", avg=" + in onCreate() 146 (endTime - startTime) / (double) iters); in onCreate() 446 long startTime = SystemClock.uptimeMillis(); in settingsWrite() local 451 values.put("value", "" + startTime); in settingsWrite() 458 long duration = SystemClock.uptimeMillis() - startTime; in settingsWrite()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarAlarmManager.java | 409 final long startTime = cursor.getLong(beginIndex); in scheduleNextAlarmLocked() local 415 time.set(startTime); in scheduleNextAlarmLocked() 419 " looking at id: " + eventId + " " + startTime + startTimeStr in scheduleNextAlarmLocked() 437 if (CalendarAlerts.alarmExists(resolver, eventId, startTime, alarmTime)) { in scheduleNextAlarmLocked() 449 resolver, eventId, startTime, endTime, alarmTime, minutes); in scheduleNextAlarmLocked()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | ChartNetworkSeriesView.java | 206 final long startTime = entry.bucketStart; in generatePath() local 207 final long endTime = startTime + entry.bucketDuration; in generatePath() 209 final float startX = mHoriz.convertToPoint(startTime); in generatePath() 221 if (lastTime != startTime) { in generatePath()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | VideoUtils.java | 239 double startTime = startMs / 1000; in trimUsingMp4Parser() local 259 startTime = correctTimeToSyncSample(track, startTime, false); in trimUsingMp4Parser() 277 if (currentTime <= startTime) { in trimUsingMp4Parser()
|
/packages/apps/Email/src/com/android/email/service/ |
D | AttachmentDownloadService.java | 185 long startTime; field in AttachmentDownloadService.DownloadRequest 212 startTime = orig.startTime; in DownloadRequest() 537 req.startTime = System.currentTimeMillis(); in startDownload() 1064 pw.println(" Started: " + req.startTime + ", Callback: " + in dump() 1066 pw.println(" Elapsed: " + ((time - req.startTime) / 1000L) + "s"); in dump()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | FireflyRenderer.java | 210 long startTime = System.currentTimeMillis(); in run() local 213 long timeElapsedMs = System.currentTimeMillis() - startTime; in run() 214 startTime = System.currentTimeMillis(); in run() 235 long elapsed = System.currentTimeMillis() - startTime; in run()
|
/packages/wallpapers/Basic/src/com/android/wallpaper/nexus/ |
D | nexus.rs | 41 int startTime; 118 pulse->startTime = gNow + rsRand(MAX_DELAY); 161 int delta = gNow - p->startTime; 290 p->startTime = gNow;
|