/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 | 162 public Time startTime; field in CalendarController.EventInfo 369 info.startTime = new Time(Utils.getTimeZone(mContext, mUpdateTimezone)); in sendEventRelatedEventWithExtraWithTitleWithCalendarId() 370 info.startTime.set(startMillis); in sendEventRelatedEventWithExtraWithTitleWithCalendarId() 375 info.selectedTime = info.startTime; in sendEventRelatedEventWithExtraWithTitleWithCalendarId() 415 info.startTime = start; in sendEvent() 461 Log.d(TAG, "Start " + (event.startTime == null ? "null" : event.startTime.toString())); in sendEvent() 468 if (event.startTime != null) { in sendEvent() 469 startMillis = event.startTime.toMillis(false); in sendEvent() 482 mTime.set(event.startTime); in sendEvent() 494 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 | 953 event.startTime = 0; in createDNAStrands() 957 if (event.startTime > DAY_IN_MINUTES - minOtherMinutes) { in createDNAStrands() 958 event.startTime = DAY_IN_MINUTES - minOtherMinutes; in createDNAStrands() 974 event.endTime - event.startTime < minOtherMinutes) { in createDNAStrands() 977 if (event.startTime < WORK_DAY_START_MINUTES) { in createDNAStrands() 980 event.endTime = Math.min(event.startTime + minOtherMinutes, in createDNAStrands() 987 if (event.endTime - event.startTime < minOtherMinutes) { in createDNAStrands() 988 event.startTime = event.endTime - minOtherMinutes; in createDNAStrands() 1001 int startMinute = (event.startDay - firstJulianDay) * DAY_IN_MINUTES + event.startTime; in createDNAStrands() 1210 lhs.startTime = event.startTime; in addNewSegment() [all …]
|
D | AllInOneActivity.java | 667 info.startTime = new Time(); in initFragments() 668 info.startTime.set(begin); in initFragments() 996 final long start = event.startTime.toMillis(false /* use isDst */); in setTitleInActionBar() 1093 null, R.id.main_pane, event.viewType, event.startTime.toMillis(false), false); in handleEvent() 1138 : event.startTime.toMillis(true); in handleEvent() 1149 if (event.startTime != null && event.endTime != null) { in handleEvent() 1153 event.startTime, event.startTime.toMillis(false), mTimeZone); in handleEvent() 1157 mController.sendEvent(this, EventType.GO_TO, event.startTime, event.endTime, in handleEvent() 1182 intent.putExtra(EXTRA_EVENT_BEGIN_TIME, event.startTime.toMillis(false)); in handleEvent() 1189 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()
|
D | DayView.java | 2150 int hour = event.startTime / 60; in computeEventRelations() 2733 event.startTime = minutesSinceMidnight; in getNewEvent() 2734 event.endTime = event.startTime + MINUTES_PER_HOUR; in getNewEvent() 3233 int startTime = ev.startTime; in computeNeighbors() local 3314 if (neighbor.endTime <= startTime) { in computeNeighbors() 3318 int distance = startTime - neighbor.endTime; in computeNeighbors() 3345 } else if (neighbor.startTime >= endTime) { in computeNeighbors() 3349 int distance = neighbor.startTime - endTime; in computeNeighbors() 3928 Time startTime = new Time(mBaseDate); in doSingleTapUp() local 3929 startTime.setJulianDay(mSelectionDay); in doSingleTapUp() [all …]
|
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/adapter/ |
D | CalendarSyncAdapterTests.java | 117 Long startTime = startCalendar.getTimeInMillis(); in testSetTimeRelatedValues_NonRecurring() local 121 p.setTimeRelatedValues(cv, startTime, endTime, 0); in testSetTimeRelatedValues_NonRecurring() 123 assertEquals(startTime, cv.getAsLong(Events.DTSTART)); in testSetTimeRelatedValues_NonRecurring() 135 Long startTime = startCalendar.getTimeInMillis(); in testSetTimeRelatedValues_Recurring() local 139 p.setTimeRelatedValues(cv, startTime, endTime, 0); in testSetTimeRelatedValues_Recurring() 141 assertEquals(startTime, cv.getAsLong(Events.DTSTART)); in testSetTimeRelatedValues_Recurring() 152 Long startTime = startCalendar.getTimeInMillis(); in testSetTimeRelatedValues_AllDay() local 156 p.setTimeRelatedValues(cv, startTime, endTime, 1); in testSetTimeRelatedValues_AllDay() 162 startTime = startCalendar.getTimeInMillis(); in testSetTimeRelatedValues_AllDay() 163 assertEquals(startTime, cv.getAsLong(Events.DTSTART)); in testSetTimeRelatedValues_AllDay() [all …]
|
/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/tests/src/com/android/exchange/adapter/ |
D | CalendarSyncAdapterTests.java | 117 Long startTime = startCalendar.getTimeInMillis(); in testSetTimeRelatedValues_NonRecurring() local 121 p.setTimeRelatedValues(cv, startTime, endTime, 0); in testSetTimeRelatedValues_NonRecurring() 123 assertEquals(startTime, cv.getAsLong(Events.DTSTART)); in testSetTimeRelatedValues_NonRecurring() 135 Long startTime = startCalendar.getTimeInMillis(); in testSetTimeRelatedValues_Recurring() local 139 p.setTimeRelatedValues(cv, startTime, endTime, 0); in testSetTimeRelatedValues_Recurring() 141 assertEquals(startTime, cv.getAsLong(Events.DTSTART)); in testSetTimeRelatedValues_Recurring() 152 Long startTime = startCalendar.getTimeInMillis(); in testSetTimeRelatedValues_AllDay() local 156 p.setTimeRelatedValues(cv, startTime, endTime, 1); in testSetTimeRelatedValues_AllDay() 162 startTime = startCalendar.getTimeInMillis(); in testSetTimeRelatedValues_AllDay() 163 assertEquals(startTime, cv.getAsLong(Events.DTSTART)); in testSetTimeRelatedValues_AllDay() [all …]
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/ |
D | CalendarSyncAdapter.java | 367 /*package*/ void setTimeRelatedValues(ContentValues cv, long startTime, long endTime, in setTimeRelatedValues() argument 370 if (startTime < 0) return; in setTimeRelatedValues() 373 if (endTime < 0) endTime = startTime + (30*MINUTES); in setTimeRelatedValues() 377 startTime = CalendarUtilities.getUtcAllDayCalendarTime(startTime, mLocalTimeZone); in setTimeRelatedValues() 401 cv.put(Events.DTSTART, startTime); in setTimeRelatedValues() 405 cv.put(Events.DURATION, "P" + ((endTime - startTime) / DAYS) + "D"); in setTimeRelatedValues() 408 cv.put(Events.DURATION, "P" + ((endTime - startTime) / MINUTES) + "M"); in setTimeRelatedValues() 435 long startTime = -1; in addEvent() local 496 cal.setTimeInMillis(startTime); in addEvent() 527 startTime = Utility.parseDateTimeToMillis(getValue()); in addEvent() [all …]
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/utility/ |
D | CalendarUtilities.java | 351 static GregorianCalendar findTransitionDate(TimeZone tz, long startTime, in findTransitionDate() argument 357 while ((endTime - startTime) > MINUTES) { in findTransitionDate() 358 long checkTime = ((startTime + endTime) / 2) + 1; in findTransitionDate() 364 startTime = checkTime; in findTransitionDate() 375 calendar.setTimeInMillis(startTime); in findTransitionDate() 561 long startTime = cal.getTimeInMillis(); in getDSTCalendars() local 563 long endOfYearTime = startTime + (365*DAYS) + (DAYS>>2); in getDSTCalendars() 564 Date date = new Date(startTime); in getDSTCalendars() 567 cal = findTransitionDate(tz, startTime, endOfYearTime, startInDaylightTime); in getDSTCalendars() 576 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/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 | 324 private void writeToSharedPrefs(Long startTime, Long lapTimeElapsed, Long elapsedTime, in writeToSharedPrefs() argument 329 if (startTime != null) { in writeToSharedPrefs() 330 editor.putLong(Stopwatches.PREF_START_TIME, startTime); in writeToSharedPrefs() 331 mStartTime = startTime; in writeToSharedPrefs() 361 private void writeSharedPrefsStarted(long startTime, boolean updateCircle) { in writeSharedPrefsStarted() argument 362 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 | 403 final long startTime = cursor.getLong(beginIndex); in scheduleNextAlarmLocked() local 409 time.set(startTime); in scheduleNextAlarmLocked() 413 " looking at id: " + eventId + " " + startTime + startTimeStr in scheduleNextAlarmLocked() 431 if (CalendarAlerts.alarmExists(resolver, eventId, startTime, alarmTime)) { in scheduleNextAlarmLocked() 443 resolver, eventId, startTime, endTime, alarmTime, minutes); in scheduleNextAlarmLocked()
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/exif/ |
D | ExifOutputStreamTest.java | 155 long startTime = System.nanoTime(); in testOutputSpeed() local 158 long duration = endTime - startTime; in testOutputSpeed() 168 startTime = System.nanoTime(); in testOutputSpeed() 171 duration = endTime - startTime; in testOutputSpeed()
|
/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 | 234 double startTime = startMs / 1000; in trimUsingMp4Parser() local 254 startTime = correctTimeToSyncSample(track, startTime, false); in trimUsingMp4Parser() 272 if (currentTime <= startTime) { in trimUsingMp4Parser()
|
/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;
|