Home
last modified time | relevance | path

Searched refs:endTime (Results 1 – 25 of 54) sorted by relevance

123

/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DEpgDataCleanupServiceTests.java92 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/
DCalendarController.java164 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 …]
DEvent.java131 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()
DEventGeometry.java62 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()
DSearchActivity.java193 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()
DUtils.java992 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 …]
DAllInOneActivity.java666 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/
DRecordingTestUtils.java31 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/
DEditEventView.java244 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 …]
DEditEventHelper.java1223 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 …]
DEditEventActivity.java141 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/
DAnalytics.java157 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/
DTestTvInputService.java436 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/
DAgendaByDayAdapter.java313 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()
DAgendaListView.java185 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/
DAnalyticsTests.java75 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/
DChartNetworkSeriesView.java208 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/
DVideoUtils.java240 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/
DChannelCardView.java126 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/
DAlertService.java609 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/
DTvProvider.java1736 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/
DChannelDataManager.java491 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/
DDvrManager.java205 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/
DRequestPermissionActivity.java260 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/
DWait.java17 long endTime = SystemClock.uptimeMillis() + timeout; in atMost() local
18 while (SystemClock.uptimeMillis() < endTime) { in atMost()

123