/packages/providers/TvProvider/tests/src/com/android/providers/tv/ |
D | EpgDataCleanupServiceTests.java | 92 final long endTime; field in EpgDataCleanupServiceTests.Program 94 Program(long startTime, long endTime) { in Program() argument 95 this(-1, startTime, endTime); in Program() 98 Program(long id, long startTime, long endTime) { in Program() argument 101 this.endTime = endTime; in Program() 112 && Objects.equals(endTime, that.endTime); in equals() 117 return Objects.hash(id, startTime, endTime); in hashCode() 122 return "Program(id=" + id + ",start=" + startTime + ",end=" + endTime + ")"; in toString() 145 values.put(Programs.COLUMN_END_TIME_UTC_MILLIS, program.endTime); in insertPrograms() 184 values.put(WatchedPrograms.COLUMN_WATCH_END_TIME_UTC_MILLIS, program.endTime); in insertWatchedPrograms()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | CalendarController.java | 164 public Time endTime; field in CalendarController.EventInfo 383 info.endTime = new Time(Utils.getTimeZone(mContext, mUpdateTimezone)); in sendEventRelatedEventWithExtraWithTitleWithCalendarId() 384 info.endTime.set(endMillis); in sendEventRelatedEventWithExtraWithTitleWithCalendarId() 423 info.endTime = end; in sendEvent() 468 Log.d(TAG, "End " + (event.endTime == null ? "null" : event.endTime.toString())); in sendEvent() 487 || (event.endTime != null && mtimeMillis > event.endTime.toMillis(false))) { in sendEvent() 504 Log.d(TAG, "End " + (event.endTime == null ? "null" : event.endTime.toString())); in sendEvent() 598 long endTime = (event.endTime == null) ? -1 : event.endTime.toMillis(false); in sendEvent() local 600 launchCreateEvent(event.startTime.toMillis(false), endTime, in sendEvent() local 605 launchViewEvent(event.id, event.startTime.toMillis(false), endTime, in sendEvent() [all …]
|
D | Event.java | 131 public int endTime; field in Event 168 e.endTime = endTime; in clone() 189 dest.endTime = endTime; in copyTo() 210 e.endTime = 0; in newInstance() 402 e.endTime = cEvents.getInt(PROJECTION_END_MINUTE_INDEX); in generateEventFromCursor() 549 Log.e("Cal", "+ endTime = " + endTime); in dump() 565 if (endTime < startMinute) { in intersects() 571 if (endTime == startMinute in intersects() 572 && (startTime != endTime || startDay != endDay)) { in intersects()
|
D | EventGeometry.java | 62 int endTime = event.endTime; in computeEventRect() local 73 endTime = DayView.MINUTES_PER_DAY; in computeEventRect() 79 int endHour = endTime / 60; in computeEventRect() 84 if (endHour * 60 == endTime) in computeEventRect() 92 event.bottom += (int) (endTime * cellMinuteHeight); in computeEventRect()
|
D | SearchActivity.java | 193 event.startTime.toMillis(false), event.endTime.toMillis(false), in showEventInfo() 206 … EXTRA_EVENT_END_TIME, event.endTime != null ? event.endTime.toMillis(true) : -1); in showEventInfo() 357 long endTime = (event.endTime == null) ? -1 : event.endTime.toMillis(false); in handleEvent() local 361 deleteEvent(event.id, event.startTime.toMillis(false), endTime); in handleEvent()
|
D | Utils.java | 992 event.endTime = DAY_IN_MINUTES - 1; in createDNAStrands() 996 if (event.endTime < minOtherMinutes) { in createDNAStrands() 997 event.endTime = minOtherMinutes; in createDNAStrands() 1004 event.endTime - event.startTime < minOtherMinutes) { in createDNAStrands() 1010 event.endTime = Math.min(event.startTime + minOtherMinutes, in createDNAStrands() 1013 } else if (event.endTime > WORK_DAY_END_MINUTES) { in createDNAStrands() 1015 event.endTime = Math.min(event.endTime + minOtherMinutes, DAY_IN_MINUTES - 1); in createDNAStrands() 1017 if (event.endTime - event.startTime < minOtherMinutes) { in createDNAStrands() 1018 event.startTime = event.endTime - minOtherMinutes; in createDNAStrands() 1033 + event.endTime, startMinute + minMinutes); in createDNAStrands() [all …]
|
D | AllInOneActivity.java | 666 info.endTime = new Time(); in initFragments() 667 info.endTime.set(end); in initFragments() 1005 if (event.endTime != null) { in setTitleInActionBar() 1006 end = event.endTime.toMillis(false /* use isDst */); in setTitleInActionBar() 1156 if (event.startTime != null && event.endTime != null) { in handleEvent() 1162 event.endTime, event.endTime.toMillis(false), mTimeZone); in handleEvent() 1164 mController.sendEvent(this, EventType.GO_TO, event.startTime, event.endTime, in handleEvent() 1190 intent.putExtra(EXTRA_EVENT_END_TIME, event.endTime.toMillis(false)); in handleEvent() 1197 event.endTime.toMillis(false), response, true, in handleEvent()
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/dvr/ |
D | RecordingTestUtils.java | 31 long channelId, long startTime, long endTime) { in createTestRecordingWithIdAndPeriod() argument 32 return ScheduledRecording.builder(inputId, channelId, startTime, endTime) in createTestRecordingWithIdAndPeriod() 39 long channelId, long startTime, long endTime) { in createTestRecordingWithPeriod() argument 41 startTime, endTime); in createTestRecordingWithPeriod() 45 long priority, long startTime, long endTime) { in createTestRecordingWithPriorityAndPeriod() argument 46 return ScheduledRecording.builder(INPUT_ID, CHANNEL_ID, startTime, endTime) in createTestRecordingWithPriorityAndPeriod() 53 long channelId, long priority, long startTime, long endTime) { in createTestRecordingWithIdAndPriorityAndPeriod() argument 54 return ScheduledRecording.builder(INPUT_ID, CHANNEL_ID, startTime, endTime) in createTestRecordingWithIdAndPriorityAndPeriod()
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
D | EditEventView.java | 244 Time endTime = mEndTime; in onTimeSet() local 253 int hourDuration = endTime.hour - startTime.hour; in onTimeSet() 254 int minuteDuration = endTime.minute - startTime.minute; in onTimeSet() 261 endTime.hour = hourOfDay + hourDuration; in onTimeSet() 262 endTime.minute = minute + minuteDuration; in onTimeSet() 269 endTime.hour = hourOfDay; in onTimeSet() 270 endTime.minute = minute; in onTimeSet() 274 if (endTime.before(startTime)) { in onTimeSet() 275 endTime.monthDay = startTime.monthDay + 1; in onTimeSet() 280 endMillis = endTime.normalize(true); in onTimeSet() [all …]
|
D | EditEventHelper.java | 1223 Time endTime = new Time(timezone); in getContentValuesFromModel() local 1226 endTime.set(model.mEnd); in getContentValuesFromModel() 1227 offsetStartTimeIfNecessary(startTime, endTime, rrule, model); in getContentValuesFromModel() 1244 endTime.hour = 0; in getContentValuesFromModel() 1245 endTime.minute = 0; in getContentValuesFromModel() 1246 endTime.second = 0; in getContentValuesFromModel() 1247 endTime.timezone = timezone; in getContentValuesFromModel() 1248 endMillis = endTime.normalize(true); in getContentValuesFromModel() 1256 endMillis = endTime.toMillis(true); in getContentValuesFromModel() 1306 private void offsetStartTimeIfNecessary(Time startTime, Time endTime, String rrule, in offsetStartTimeIfNecessary() argument [all …]
|
D | EditEventActivity.java | 141 info.endTime = new Time(); in getEventInfoFromIntent() 143 info.endTime.timezone = Time.TIMEZONE_UTC; in getEventInfoFromIntent() 145 info.endTime.set(end); in getEventInfoFromIntent()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | Analytics.java | 157 public void setCallEndTime(long endTime) { in setCallEndTime() argument 201 public long endTime; // end time in milliseconds since the epoch. 0 if not yet set. field in Analytics.CallInfoImpl 231 endTime = 0; in CallInfoImpl() 242 this.endTime = other.endTime; in CallInfoImpl() 274 public void setCallEndTime(long endTime) { in setCallEndTime() argument 275 Log.d(TAG, "setting endTime for call " + callId + " to " + endTime); in setCallEndTime() 276 this.endTime = endTime; in setCallEndTime() 360 + " endTime: " + endTime + '\n' in toString() 422 long callDuration = (endTime == 0 || startTime == 0) ? 0 : endTime - startTime; in toProto()
|
/packages/apps/TV/tests/input/src/com/android/tv/testinput/ |
D | TestTvInputService.java | 436 final long endTime = mEndTime; in onStopRecording() local 448 storeRecordedProgram(c, startTime, endTime); in onStopRecording() 458 endTime - startTime < MAX_COMMAND_DELAY ? startTime : in onStopRecording() 459 endTime - MAX_COMMAND_DELAY), in onStopRecording() 462 storeRecordedProgram(c, startTime, endTime); in onStopRecording() 468 storeRecordedProgram(null, startTime, endTime); in onStopRecording() 472 private void storeRecordedProgram(Cursor c, long startTime, long endTime) { in onStopRecording() argument 478 endTime - startTime); in onStopRecording() 500 values.put(RecordedPrograms.COLUMN_END_TIME_UTC_MILLIS, endTime); in onStopRecording()
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
D | AgendaByDayAdapter.java | 313 long endTime = cursor.getLong(AgendaWindowAdapter.INDEX_END); in calculateDays() local 318 endTime = Utils.convertAlldayUtcToLocal(tempTime, endTime, mTimeZone); in calculateDays() 385 endTime, instanceId, allDay)); 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 457 mEventEndTimeMilli = endTime; in RowInfo() 485 MultipleDayInfo(int position, int endDay, long id, long startTime, long endTime, in MultipleDayInfo() argument 491 mEventEndTimeMilli = endTime; in MultipleDayInfo()
|
D | AgendaListView.java | 185 long endTime = item.end; in onItemClick() local 197 endTime = Utils.convertAlldayLocalToUTC(mTime, endTime, mTimeZone); in onItemClick() 202 startTime, endTime, 0, 0, CalendarController.EventInfo.buildViewExtraLong( in onItemClick()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | AnalyticsTests.java | 75 assertEquals(0, callAnalytics.endTime); in testAnalyticsSingleCall() 87 assertTrue(callAnalytics.endTime > 0); in testAnalyticsSingleCall() 124 assertTrue(Math.abs((expectedAnalytics.endTime - expectedAnalytics.startTime) - in testAnalyticsDumping() 165 assertEquals(0, callAnalytics1.endTime); 166 assertEquals(0, callAnalytics2.endTime); 190 assertTrue(callAnalytics1.endTime > 0); 191 assertTrue(callAnalytics2.endTime > 0); 294 assertTrue(Math.abs((expectedAnalytics.endTime - expectedAnalytics.startTime) - in testAnalyticsDumpToProto()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | ChartNetworkSeriesView.java | 208 final long endTime = startTime + entry.bucketDuration; in generatePath() local 211 final float endX = mHoriz.convertToPoint(endTime); in generatePath() 234 lastTime = endTime; in generatePath() 294 public void setEndTime(long endTime) { in setEndTime() argument 295 mEndTime = endTime; in setEndTime()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | VideoUtils.java | 240 double endTime = endMs / 1000; in trimUsingMp4Parser() local 260 endTime = correctTimeToSyncSample(track, endTime, true); in trimUsingMp4Parser() 281 if (currentTime <= endTime) { in trimUsingMp4Parser()
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | ChannelCardView.java | 126 long endTime = mProgram.getEndTimeUtcMillis(); in updateProgram() local 130 } else if (currTime >= endTime) { in updateProgram() 134 (int) (100 * (currTime - startTime) / (endTime - startTime))); in updateProgram()
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
D | AlertService.java | 609 final long endTime = alertCursor.getLong(ALERT_INDEX_END); in processQuery() local 681 .append(" endTime:").append(endTime) in processQuery() 755 description, beginTime, endTime, eventId, allDay, newAlert); in processQuery() 814 getGracePeriodMs(beginTime, endTime, allDay); in processQuery() 839 private static long getGracePeriodMs(long beginTime, long endTime, boolean allDay) { 845 return Math.max(MIN_DEPRIORITIZE_GRACE_PERIOD_MS, ((endTime - beginTime) / 4));
|
/packages/providers/TvProvider/src/com/android/providers/tv/ |
D | TvProvider.java | 1736 String endTime = String.valueOf(Long.parseLong(paramEndTime)); in createSqlParams() local 1738 + Programs.COLUMN_END_TIME_UTC_MILLIS + ">=? AND ?<=?", endTime, in createSqlParams() 1739 startTime, startTime, endTime); in createSqlParams() 2345 Long endTime = values.getAsLong(WatchedPrograms.COLUMN_END_TIME_UTC_MILLIS); in consolidateRow() local 2346 boolean needsToSplit = endTime != null && endTime < watchEndTime; in consolidateRow() 2352 String.valueOf(needsToSplit ? endTime : watchEndTime)); in consolidateRow() 2371 count += consolidateRow(duplicatedId, endTime, watchEndTime, channelId, dryRun); in consolidateRow() 2411 Long endTime = values.getAsLong(WatchedPrograms.COLUMN_END_TIME_UTC_MILLIS); in scheduleConsolidationIfNeeded() local 2413 if (endTime != null && endTime < minEndTime in scheduleConsolidationIfNeeded() 2414 && endTime > System.currentTimeMillis()) { in scheduleConsolidationIfNeeded() [all …]
|
/packages/apps/TV/src/com/android/tv/tuner/tvinput/ |
D | ChannelDataManager.java | 491 long endTime = unverifiedOldItems.getEndTimeUtcMillis(); in handleEvents() local 496 || (endTime > newItemStartTime && endTime <= newItemEndTime)) { in handleEvents() 684 long endTime = ConvertUtils.convertUnixEpochToGPSTime( in getAllProgramsForChannel() local 686 int lengthInSecond = (int) (endTime - startTime); in getAllProgramsForChannel()
|
/packages/apps/TV/src/com/android/tv/dvr/ |
D | DvrManager.java | 205 public void addSchedule(Channel channel, long startTime, long endTime) { in addSchedule() argument 207 Utils.toTimeString(startTime) + " and ending at " + Utils.toTimeString(endTime)); in addSchedule() 216 addScheduleInternal(input.getId(), channel.getId(), startTime, endTime); in addSchedule() local 228 private void addScheduleInternal(String inputId, long channelId, long startTime, long endTime) { in addScheduleInternal() argument 230 .builder(inputId, channelId, startTime, endTime) in addScheduleInternal()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | RequestPermissionActivity.java | 260 long endTime = System.currentTimeMillis() + (long) mTimeout * 1000; in proceedAndFinish() local 262 this, endTime); in proceedAndFinish() 264 BluetoothDiscoverableTimeoutReceiver.setDiscoverableAlarm(this, endTime); in proceedAndFinish()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/ |
D | Wait.java | 17 long endTime = SystemClock.uptimeMillis() + timeout; in atMost() local 18 while (SystemClock.uptimeMillis() < endTime) { in atMost()
|