Home
last modified time | relevance | path

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

123

/packages/modules/StatsD/lib/libstatssocket/tests/
Dstats_event_test.cpp97 void checkMetadata(uint8_t** buffer, uint8_t numElements, int64_t startTime, int64_t endTime, in checkMetadata() argument
110 EXPECT_LE(timestamp, endTime); in checkMetadata()
132 int64_t endTime = android::elapsedRealtimeNano(); in TEST() local
138 checkMetadata(&buffer, /*numElements=*/4, startTime, endTime, atomId); in TEST()
170 int64_t endTime = android::elapsedRealtimeNano(); in TEST() local
176 checkMetadata(&buffer, /*numElements=*/1, startTime, endTime, atomId); in TEST()
195 int64_t endTime = android::elapsedRealtimeNano(); in TEST() local
201 checkMetadata(&buffer, /*numElements=*/1, startTime, endTime, atomId); in TEST()
220 int64_t endTime = android::elapsedRealtimeNano(); in TEST() local
226 checkMetadata(&buffer, /*numElements=*/1, startTime, endTime, atomId); in TEST()
[all …]
/packages/apps/TV/tests/common/src/com/android/tv/testing/dvr/
DRecordingTestUtils.java28 long id, String inputId, long channelId, long startTime, long endTime) { in createTestRecordingWithIdAndPeriod() argument
29 return ScheduledRecording.builder(inputId, channelId, startTime, endTime) in createTestRecordingWithIdAndPeriod()
36 String inputId, long channelId, long startTime, long endTime) { in createTestRecordingWithPeriod() argument
38 ScheduledRecording.ID_NOT_SET, inputId, channelId, startTime, endTime); in createTestRecordingWithPeriod()
42 long channelId, long priority, long startTime, long endTime) { in createTestRecordingWithPriorityAndPeriod() argument
43 return ScheduledRecording.builder(INPUT_ID, CHANNEL_ID, startTime, endTime) in createTestRecordingWithPriorityAndPeriod()
50 long id, long channelId, long priority, long startTime, long endTime) { in createTestRecordingWithIdAndPriorityAndPeriod() argument
51 return ScheduledRecording.builder(INPUT_ID, CHANNEL_ID, startTime, endTime) in createTestRecordingWithIdAndPriorityAndPeriod()
/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/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/
DSuggestionService.java42 final long endTime = System.currentTimeMillis(); in onGetSuggestions() local
45 .logGetSuggestion(ids, endTime - startTime); in onGetSuggestions()
54 final long endTime = System.currentTimeMillis(); in onSuggestionDismissed() local
60 .logDismissSuggestion(id, endTime - startTime); in onSuggestionDismissed()
68 final long endTime = System.currentTimeMillis(); in onSuggestionLaunched() local
74 .logLaunchSuggestion(id, endTime - startTime); in onSuggestionLaunched()
/packages/apps/Calendar/src/com/android/calendar/
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()
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()
DCalendarController.java147 public Time endTime; field in CalendarController.EventInfo
357 info.endTime = new Time(Utils.getTimeZone(mContext, mUpdateTimezone)); in sendEventRelatedEventWithExtraWithTitleWithCalendarId()
358 info.endTime.set(endMillis); in sendEventRelatedEventWithExtraWithTitleWithCalendarId()
397 info.endTime = end; in sendEvent()
442 Log.d(TAG, "End " + (event.endTime == null ? "null" : event.endTime.toString())); in sendEvent()
461 || (event.endTime != null && mtimeMillis > event.endTime.toMillis(false))) { in sendEvent()
478 Log.d(TAG, "End " + (event.endTime == null ? "null" : event.endTime.toString())); in sendEvent()
704 builder.append(eventInfo.endTime); in eventInfoToString()
DUtils.java915 event.endTime = DAY_IN_MINUTES - 1; in createDNAStrands()
919 if (event.endTime < minOtherMinutes) { in createDNAStrands()
920 event.endTime = minOtherMinutes; in createDNAStrands()
927 event.endTime - event.startTime < minOtherMinutes) { in createDNAStrands()
933 event.endTime = Math.min(event.startTime + minOtherMinutes, in createDNAStrands()
936 } else if (event.endTime > WORK_DAY_END_MINUTES) { in createDNAStrands()
938 event.endTime = Math.min(event.endTime + minOtherMinutes, DAY_IN_MINUTES - 1); in createDNAStrands()
940 if (event.endTime - event.startTime < minOtherMinutes) { in createDNAStrands()
941 event.startTime = event.endTime - minOtherMinutes; in createDNAStrands()
956 + event.endTime, startMinute + minMinutes); in createDNAStrands()
[all …]
/packages/modules/Connectivity/tests/unit/java/android/app/usage/
DNetworkStatsManagerTest.java78 final long endTime = 100; in testQueryDetails() local
116 eq(NetworkStatsHistory.FIELD_ALL), eq(startTime), eq(endTime))) in testQueryDetails()
127 eq(NetworkStatsHistory.FIELD_ALL), eq(startTime), eq(endTime))) in testQueryDetails()
137 ConnectivityManager.TYPE_MOBILE, TEST_SUBSCRIBER_ID, startTime, endTime); in testQueryDetails()
176 final long endTime = 100; in runQueryDetailsAndCheckTemplate() local
187 networkType, subscriberId, startTime, endTime); in runQueryDetailsAndCheckTemplate()
193 eq(NetworkStatsHistory.FIELD_ALL), eq(startTime), eq(endTime)); in runQueryDetailsAndCheckTemplate()
199 eq(NetworkStatsHistory.FIELD_ALL), eq(startTime), eq(endTime)); in runQueryDetailsAndCheckTemplate()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DDnsTest.java216 long endTime = SystemClock.elapsedRealtimeNanos(); in skiptestDnsPerf() local
217 float nsPer = ((float)(endTime-startTime) / iterationLimit) / numberOfUrls/ 1000; in skiptestDnsPerf()
219 (endTime - startTime)/1000 + "(" + nsPer + ") with " + in skiptestDnsPerf()
259 long endTime = SystemClock.elapsedRealtimeNanos(); in skiptestDnsPerf() local
260 float nsPer = ((endTime-startTime) / iterationLimit) / numberOfAddrs / 1000; in skiptestDnsPerf()
262 (endTime - startTime)/1000 + "(" + nsPer + ") with " + in skiptestDnsPerf()
DTunUtils.java115 long endTime = System.currentTimeMillis() + TIMEOUT; in awaitPacket() local
119 while (System.currentTimeMillis() < endTime) { in awaitPacket()
128 long waitTimeout = endTime - System.currentTimeMillis(); in awaitPacket()
/packages/apps/TV/tests/input/src/com/android/tv/testinput/
DTestTvInputService.java441 final long endTime = mEndTime; in onStopRecording() local
459 storeRecordedProgram(c, startTime, endTime); in onStopRecording()
473 endTime - startTime < MAX_COMMAND_DELAY in onStopRecording()
475 : endTime - MAX_COMMAND_DELAY), in onStopRecording()
481 storeRecordedProgram(c, startTime, endTime); in onStopRecording()
487 storeRecordedProgram(null, startTime, endTime); in onStopRecording()
491 private void storeRecordedProgram(Cursor c, long startTime, long endTime) { in onStopRecording() argument
496 RecordedPrograms.COLUMN_RECORDING_DURATION_MILLIS, endTime - startTime); in onStopRecording()
517 values.put(RecordedPrograms.COLUMN_END_TIME_UTC_MILLIS, endTime); in onStopRecording()
/packages/apps/TV/common/src/com/android/tv/common/support/tvprovider/
DTvContractCompatX.java84 long endTime) { in buildProgramsUriForChannel() argument
88 .appendQueryParameter(TvContractCompat.PARAM_END_TIME, String.valueOf(endTime)) in buildProgramsUriForChannel()
101 public static Uri buildProgramsUri(long startTime, long endTime) { in buildProgramsUri() argument
105 .appendQueryParameter(TvContractCompat.PARAM_END_TIME, String.valueOf(endTime)) in buildProgramsUri()
/packages/services/Telecomm/src/com/android/server/telecom/
DAnalytics.java169 public void setCallEndTime(long endTime) { in setCallEndTime() argument
223 public long endTime; // end time in milliseconds since the epoch. 0 if not yet set. field in Analytics.CallInfoImpl
255 endTime = 0; in CallInfoImpl()
267 this.endTime = other.endTime; in CallInfoImpl()
301 public void setCallEndTime(long endTime) { in setCallEndTime() argument
302 Log.d(TAG, "setting endTime for call " + callId + " to " + endTime); in setCallEndTime()
303 this.endTime = endTime; in setCallEndTime()
408 + " endTime: " + endTime + '\n' in toString()
475 long callDuration = (endTime == 0 || startTime == 0) ? 0 : endTime - startTime; in toProto()
/packages/apps/Settings/src/com/android/settings/datausage/
DChartDataUsagePreference.java114 final long endTime = data.getEndTime(); in calcPoints() local
123 points.put(toInt(endTime - mStart), (int) (totalData / RESOLUTION)); in calcPoints()
202 final long endTime = nodes.stream().mapToLong(DataUsageSummaryNode::getEndTime) in getDensedStatsData() local
206 startTime, endTime, percentage); in getDensedStatsData()
226 public DataUsageSummaryNode(long startTime, long endTime, int dataUsagePercentage) { in DataUsageSummaryNode() argument
228 mEndTime = endTime; in DataUsageSummaryNode()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DAnalyticsTests.java113 assertEquals(0, callAnalytics.endTime); in testAnalyticsSingleCall()
125 assertTrue(callAnalytics.endTime > 0); in testAnalyticsSingleCall()
164 assertTrue(Math.abs((expectedAnalytics.endTime - expectedAnalytics.startTime) - in testAnalyticsDumping()
208 assertEquals(0, callAnalytics1.endTime);
209 assertEquals(0, callAnalytics2.endTime);
237 assertTrue(callAnalytics1.endTime > 0);
238 assertTrue(callAnalytics2.endTime > 0);
347 assertTrue(Math.abs((expectedAnalytics.endTime - expectedAnalytics.startTime) - in testAnalyticsDumpToProto()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DWait.java33 long endTime = startTime + timeout; in atMost() local
34 Log.d("Wait", "atMost: " + startTime + " - " + endTime); in atMost()
35 while (SystemClock.uptimeMillis() < endTime) { in atMost()
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/ui/list/
DDvrHistoryRowAdapterTest.java230 long id, long startTime, long endTime, int state) { in buildScheduledRecordingForTest() argument
232 ScheduledRecording.builder("fakeInput", 1, startTime, endTime) in buildScheduledRecordingForTest()
239 long id, long startTime, long endTime) { in buildRecordedProgramForTest() argument
245 .setEndTimeUtcMillis(endTime); in buildRecordedProgramForTest()
/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/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageListTest.java169 final long endTime = 1521676800000L; in startAppDataUsage_shouldAddCyclesInfoToLaunchArguments() local
173 .setEndTime(endTime); in startAppDataUsage_shouldAddCyclesInfoToLaunchArguments()
186 assertThat(arguments.getLong(AppDataUsage.ARG_SELECTED_CYCLE)).isEqualTo(endTime); in startAppDataUsage_shouldAddCyclesInfoToLaunchArguments()
190 assertThat(cycles.get(0)).isEqualTo(endTime); in startAppDataUsage_shouldAddCyclesInfoToLaunchArguments()
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DTunUtils.java149 long endTime = System.currentTimeMillis() + TIMEOUT; in awaitEspPacketNoPlaintext() local
153 while (System.currentTimeMillis() < endTime) { in awaitEspPacketNoPlaintext()
167 long waitTimeout = endTime - System.currentTimeMillis(); in awaitEspPacketNoPlaintext()
/packages/apps/TV/src/com/android/tv/menu/
DChannelCardView.java129 long endTime = mProgram.getEndTimeUtcMillis(); in updateProgram() local
133 } else if (currTime >= endTime) { in updateProgram()
137 (int) (100 * (currTime - startTime) / (endTime - startTime))); in updateProgram()
/packages/apps/ThemePicker/robolectric_tests/src/com/android/customization/testutils/
DWait.java35 long endTime = SystemClock.uptimeMillis() + timeout; in atMost() local
36 while (SystemClock.uptimeMillis() < endTime) { in atMost()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DHighUsageDataParser.java48 public void onParsingStarted(long startTime, long endTime) { in onParsingStarted() argument
49 mEndTimeMs = endTime; in onParsingStarted()
/packages/apps/Calendar/tests/src/com/android/calendar/
DUtilsTests.java214 Event buildTestEvent(int startTime, int endTime, boolean allDay, int startDay, int endDay) { in buildTestEvent() argument
217 e.endTime = endTime; in buildTestEvent()
222 e.endMillis = e.endDay * 1000L * 3600L * 24L + e.endTime * 60L * 1000L; in buildTestEvent()

123