Home
last modified time | relevance | path

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

1234

/packages/modules/Connectivity/framework-t/src/android/app/usage/
DNetworkStatsManager.java245 long startTime, long endTime) { in querySummaryForDevice() argument
249 new NetworkStats(mContext, template, mFlags, startTime, endTime, mService); in querySummaryForDevice()
294 long startTime, long endTime) throws SecurityException, RemoteException { in querySummaryForDevice() argument
303 return querySummaryForDevice(template, startTime, endTime); in querySummaryForDevice()
339 long startTime, long endTime) throws SecurityException, RemoteException { in querySummaryForUser() argument
349 stats = new NetworkStats(mContext, template, mFlags, startTime, endTime, mService); in querySummaryForUser()
388 long endTime) throws SecurityException, RemoteException { in querySummary() argument
397 return querySummary(template, startTime, endTime); in querySummary()
421 long endTime) throws SecurityException { in querySummary() argument
425 new NetworkStats(mContext, template, mFlags, startTime, endTime, mService); in querySummary()
[all …]
/packages/modules/StatsD/lib/libstatssocket/tests/
Dstats_event_test.cpp115 void checkMetadata(uint8_t** buffer, uint8_t numElements, int64_t startTime, int64_t endTime, in checkMetadata() argument
128 EXPECT_LE(timestamp, endTime); in checkMetadata()
150 int64_t endTime = android::elapsedRealtimeNano(); in TEST() local
156 checkMetadata(&buffer, /*numElements=*/4, startTime, endTime, atomId); in TEST()
188 int64_t endTime = android::elapsedRealtimeNano(); in TEST() local
194 checkMetadata(&buffer, /*numElements=*/1, startTime, endTime, atomId); in TEST()
213 int64_t endTime = android::elapsedRealtimeNano(); in TEST() local
219 checkMetadata(&buffer, /*numElements=*/1, startTime, endTime, atomId); in TEST()
238 int64_t endTime = android::elapsedRealtimeNano(); in TEST() local
244 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/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()
226 final long endTime = 100; in testQueryTaggedSummary() local
235 NetworkStats stats = mManager.queryTaggedSummary(template, startTime, endTime); in testQueryTaggedSummary()
[all …]
/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/Settings/src/com/android/settings/network/telephony/
DAbstractMobileNetworkSettings.java87 final long endTime = SystemClock.elapsedRealtime(); in onExpandButtonClick() local
90 0, "onExpandButtonClick", (int)(endTime - startTime)); in onExpandButtonClick()
111 final long endTime = SystemClock.elapsedRealtime(); in updatePreferenceStates() local
114 0, "updatePreferenceStates", (int)(endTime - startTime)); in updatePreferenceStates()
155 final long endTime = SystemClock.elapsedRealtime(); in redrawPreferenceControllers() local
158 0, "redrawPreferenceControllers", (int)(endTime - startTime)); in redrawPreferenceControllers()
/packages/apps/Calendar/src/com/android/calendar/
DEventGeometry.kt55 var endTime: Int = event.endTime in computeEventRect() variable
66 endTime = DayView.MINUTES_PER_DAY in computeEventRect()
71 var endHour = endTime / 60 in computeEventRect()
76 if (endHour * 60 == endTime) endHour -= 1 in computeEventRect()
81 event.bottom += (endTime * cellMinuteHeight).toInt() in computeEventRect()
DEvent.kt120 e.endTime = 0 in newInstance()
322 e.endTime = cEvents.getInt(PROJECTION_END_MINUTE_INDEX) in generateEventFromCursor()
487 @JvmField var endTime = 0 variable in com.android.calendar.Event
520 e.endTime = endTime in clone()
540 dest.endTime = endTime in copyTo()
560 Log.e("Cal", "+ endTime = $endTime") in dump()
577 if (endTime < startMinute) { in intersects()
583 if (endTime == startMinute && in intersects()
584 (startTime != endTime || startDay != endDay)) { in intersects()
DCalendarController.kt122 @JvmField var endTime: Time? = null variable in com.android.calendar.EventInfo
314 info.endTime = Time(Utils.getTimeZone(mContext, mUpdateTimezone)) in sendEventRelatedEventWithExtraWithTitleWithCalendarId()
315 (info.endTime as Time).set(endMillis) in sendEventRelatedEventWithExtraWithTitleWithCalendarId()
384 info.endTime = end in sendEvent()
427 Log.d(TAG, "End " + if (event.endTime == null) "null" else event.endTime.toString()) in sendEvent()
450 val temp2 = event.endTime in sendEvent()
473 Log.d(TAG, "End " + if (event.endTime == null) "null" else in sendEvent()
474 event.endTime.toString()) in sendEvent()
671 builder.append(eventInfo.endTime) in eventInfoToString()
DUtils.kt879 event.endTime = DAY_IN_MINUTES - 1 in createDNAStrands()
883 if (event.endTime < minOtherMinutes) { in createDNAStrands()
884 event.endTime = minOtherMinutes in createDNAStrands()
891 event.endTime - event.startTime < minOtherMinutes in createDNAStrands()
898 event.endTime = Math.min( in createDNAStrands()
903 } else if (event.endTime > WORK_DAY_END_MINUTES) { in createDNAStrands()
905 event.endTime = Math.min(event.endTime + minOtherMinutes, DAY_IN_MINUTES - 1) in createDNAStrands()
907 if (event.endTime - event.startTime < minOtherMinutes) { in createDNAStrands()
908 event.startTime = event.endTime - minOtherMinutes in createDNAStrands()
925 event.endTime, startMinute + minMinutes in createDNAStrands()
[all …]
/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/modules/Connectivity/tests/cts/net/src/android/net/cts/
DDnsTest.java215 long endTime = SystemClock.elapsedRealtimeNanos(); in skiptestDnsPerf() local
216 float nsPer = ((float)(endTime-startTime) / iterationLimit) / numberOfUrls/ 1000; in skiptestDnsPerf()
218 (endTime - startTime)/1000 + "(" + nsPer + ") with " + in skiptestDnsPerf()
258 long endTime = SystemClock.elapsedRealtimeNanos(); in skiptestDnsPerf() local
259 float nsPer = ((endTime-startTime) / iterationLimit) / numberOfAddrs / 1000; in skiptestDnsPerf()
261 (endTime - startTime)/1000 + "(" + nsPer + ") with " + in skiptestDnsPerf()
/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/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/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/services/Telecomm/src/com/android/server/telecom/
DAnalytics.java179 public void setCallEndTime(long endTime) { in setCallEndTime() argument
233 public long endTime; // end time in milliseconds since the epoch. 0 if not yet set. field in Analytics.CallInfoImpl
265 endTime = 0; in CallInfoImpl()
277 this.endTime = other.endTime; in CallInfoImpl()
311 public void setCallEndTime(long endTime) { in setCallEndTime() argument
312 Log.d(TAG, "setting endTime for call " + callId + " to " + endTime); in setCallEndTime()
313 this.endTime = endTime; in setCallEndTime()
418 + " endTime: " + endTime + '\n' in toString()
485 long callDuration = (endTime == 0 || startTime == 0) ? 0 : endTime - startTime; in toProto()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DAnalyticsTests.java114 assertEquals(0, callAnalytics.endTime); in testAnalyticsSingleCall()
126 assertTrue(callAnalytics.endTime > 0); in testAnalyticsSingleCall()
165 assertTrue(Math.abs((expectedAnalytics.endTime - expectedAnalytics.startTime) - in testAnalyticsDumping()
209 assertEquals(0, callAnalytics1.endTime);
210 assertEquals(0, callAnalytics2.endTime);
239 assertTrue(callAnalytics1.endTime > 0);
240 assertTrue(callAnalytics2.endTime > 0);
349 assertTrue(Math.abs((expectedAnalytics.endTime - expectedAnalytics.startTime) - in testAnalyticsDumpToProto()
/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/Car/Settings/tests/unit/src/com/android/car/settings/datausage/
DAppDataUsageFragmentTest.java79 long endTime = System.currentTimeMillis() + DateUtils.WEEK_IN_MILLIS * 4; in onActivityCreated_dataCyclePicked_showsDataCycle() local
84 .setEndTime(endTime); in onActivityCreated_dataCyclePicked_showsDataCycle()
95 assertThat(end).isEqualTo(endTime); in onActivityCreated_dataCyclePicked_showsDataCycle()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DVideoUtils.java245 double endTime = endMs / 1000; in trimUsingMp4Parser() local
265 endTime = correctTimeToSyncSample(track, endTime, true); in trimUsingMp4Parser()
286 if (currentTime <= endTime) { in trimUsingMp4Parser()
/packages/apps/ThemePicker/tests/robotests/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/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageListTest.java200 final long endTime = 1521676800000L; in startAppDataUsage_shouldAddCyclesInfoToLaunchArguments() local
204 .setEndTime(endTime); in startAppDataUsage_shouldAddCyclesInfoToLaunchArguments()
217 assertThat(arguments.getLong(AppDataUsage.ARG_SELECTED_CYCLE)).isEqualTo(endTime); in startAppDataUsage_shouldAddCyclesInfoToLaunchArguments()
221 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()

1234