Home
last modified time | relevance | path

Searched refs:beginTime (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/services/usage/java/com/android/server/usage/
DUserUsageStatsService.java440 private static boolean validRange(long currentTime, long beginTime, long endTime) { in validRange() argument
441 return beginTime <= currentTime && beginTime < endTime; in validRange()
450 private <T> List<T> queryStats(int intervalType, final long beginTime, final long endTime, in queryStats() argument
453 intervalType = mDatabase.findBestFitBucket(beginTime, endTime); in queryStats()
472 + beginTime + " AND endTime < " + endTime); in queryStats()
475 if (beginTime >= currentStats.endTime) { in queryStats()
477 Slog.d(TAG, mLogPrefix + "Requesting stats after " + beginTime + " but latest is " in queryStats()
487 final long truncatedEndTime = Math.min(currentStats.beginTime, endTime); in queryStats()
490 List<T> results = mDatabase.queryUsageStats(intervalType, beginTime, in queryStats()
494 Slog.d(TAG, "Current stats beginTime=" + currentStats.beginTime + in queryStats()
[all …]
DUsageStatsProtoV2.java52 private static UsageStats parseUsageStats(ProtoInputStream proto, final long beginTime) in parseUsageStats() argument
63 stats.mLastTimeUsed = beginTime + proto.readLong( in parseUsageStats()
84 stats.mLastTimeForegroundServiceUsed = beginTime + proto.readLong( in parseUsageStats()
92 stats.mLastTimeVisible = beginTime + proto.readLong( in parseUsageStats()
100 stats.mLastTimeComponentUsed = beginTime + proto.readLong( in parseUsageStats()
215 configStats.mLastTimeActive = stats.beginTime + proto.readLong( in loadConfigStats()
239 private static UsageEvents.Event parseEvent(ProtoInputStream proto, long beginTime) in parseEvent() argument
251 event.mTimeStamp = beginTime + proto.readLong(EventObfuscatedProto.TIME_MS); in parseEvent()
306 long timestamp, long beginTime) { in writeOffsetTimestamp() argument
309 final long rolloverGracePeriod = beginTime - ONE_HOUR_MS; in writeOffsetTimestamp()
[all …]
DUsageStatsProto.java107 stats.mLastTimeUsed = statsOut.beginTime + proto.readLong( in loadUsageStats()
134 stats.mLastTimeForegroundServiceUsed = statsOut.beginTime + proto.readLong( in loadUsageStats()
143 stats.mLastTimeVisible = statsOut.beginTime + proto.readLong( in loadUsageStats()
151 stats.mLastTimeComponentUsed = statsOut.beginTime + proto.readLong( in loadUsageStats()
277 configStats.mLastTimeActive = statsOut.beginTime + proto.readLong( in loadConfigStats()
337 usageStats.mLastTimeUsed, stats.beginTime); in writeUsageStats()
344 usageStats.mLastTimeForegroundServiceUsed, stats.beginTime); in writeUsageStats()
349 usageStats.mLastTimeVisible, stats.beginTime); in writeUsageStats()
354 usageStats.mLastTimeComponentUsed, stats.beginTime); in writeUsageStats()
415 configStats.mLastTimeActive, stats.beginTime); in writeConfigStats()
[all …]
DUsageStatsXmlV1.java93 stats.mLastTimeUsed = statsOut.beginTime + XmlUtils.readLongAttribute( in loadUsageStats()
97 stats.mLastTimeVisible = statsOut.beginTime + XmlUtils.readLongAttribute( in loadUsageStats()
104 stats.mLastTimeForegroundServiceUsed = statsOut.beginTime + XmlUtils.readLongAttribute( in loadUsageStats()
191 configStats.mLastTimeActive = statsOut.beginTime + XmlUtils.readLongAttribute( in loadConfigStats()
214 event.mTimeStamp = statsOut.beginTime + XmlUtils.readLongAttribute(parser, TIME_ATTR); in loadEvent()
259 statsOut.endTime = statsOut.beginTime + XmlUtils.readLongAttribute(parser, END_TIME_ATTR); in read()
DUsageStatsDatabase.java554 Long.toString(stats.beginTime))), stats, mCurrentVersion, in continueUpgradeLocked()
825 public <T> List<T> queryUsageStats(int intervalType, long beginTime, long endTime, in queryUsageStats() argument
832 if (endTime <= beginTime) { in queryUsageStats()
834 Slog.d(TAG, "endTime(" + endTime + ") <= beginTime(" + beginTime + ")"); in queryUsageStats()
863 int startIndex = intervalStats.lastIndexOnOrBefore(beginTime); in queryUsageStats()
881 if (beginTime < stats.endTime in queryUsageStats()
966 long beginTime; in pruneFilesOlderThan() local
968 beginTime = parseBeginTime(f); in pruneFilesOlderThan()
970 beginTime = 0; in pruneFilesOlderThan()
973 if (beginTime < expiryTime) { in pruneFilesOlderThan()
[all …]
DUsageStatsService.java1465 List<UsageStats> queryUsageStats(int userId, int bucketType, long beginTime, long endTime, in queryUsageStats() argument
1477 List<UsageStats> list = service.queryUsageStats(bucketType, beginTime, endTime); in queryUsageStats()
1499 List<ConfigurationStats> queryConfigurationStats(int userId, int bucketType, long beginTime, in queryConfigurationStats() argument
1511 return service.queryConfigurationStats(bucketType, beginTime, endTime); in queryConfigurationStats()
1518 List<EventStats> queryEventStats(int userId, int bucketType, long beginTime, in queryEventStats() argument
1530 return service.queryEventStats(bucketType, beginTime, endTime); in queryEventStats()
1537 UsageEvents queryEvents(int userId, long beginTime, long endTime, int flags) { in queryEvents() argument
1538 return queryEventsWithQueryFilters(userId, beginTime, endTime, flags, in queryEvents()
1545 UsageEvents queryEventsWithQueryFilters(int userId, long beginTime, long endTime, int flags, in queryEventsWithQueryFilters() argument
1557 return service.queryEvents(beginTime, endTime, flags, eventTypeFilter, pkgNameFilter); in queryEventsWithQueryFilters()
[all …]
DIntervalStats.java70 public long beginTime; field in IntervalStats
113 void addToEventStats(List<EventStats> out, int event, long beginTime, long endTime) { in addToEventStats() argument
120 ev.mBeginTimeStamp = beginTime; in addToEventStats()
139 usageStats.mBeginTimeStamp = beginTime; in getOrCreateUsageStats()
154 configStats.mBeginTimeStamp = beginTime; in getOrCreateConfigurationStats()
200 event.mTimeStamp = beginTime + parser.readLong( in buildEvent()
425 beginTime, endTime); in addEventStatsTo()
427 beginTime, endTime); in addEventStatsTo()
429 beginTime, endTime); in addEventStatsTo()
431 beginTime, endTime); in addEventStatsTo()
/frameworks/base/core/java/android/app/usage/
DIUsageStatsManager.aidl34 ParceledListSlice queryUsageStats(int bucketType, long beginTime, long endTime, in queryUsageStats() argument
37 ParceledListSlice queryConfigurationStats(int bucketType, long beginTime, long endTime, in queryConfigurationStats() argument
39 ParceledListSlice queryEventStats(int bucketType, long beginTime, long endTime, in queryEventStats() argument
41 UsageEvents queryEvents(long beginTime, long endTime, String callingPackage); in queryEvents() argument
42 UsageEvents queryEventsForPackage(long beginTime, long endTime, String callingPackage); in queryEventsForPackage() argument
43 UsageEvents queryEventsForUser(long beginTime, long endTime, int userId, String callingPackage); in queryEventsForUser() argument
44 …UsageEvents queryEventsForPackageForUser(long beginTime, long endTime, int userId, String pkg, Str… in queryEventsForPackageForUser() argument
DUsageStatsManager.java483 public List<UsageStats> queryUsageStats(int intervalType, long beginTime, long endTime) { in queryUsageStats() argument
486 ParceledListSlice<UsageStats> slice = mService.queryUsageStats(intervalType, beginTime, in queryUsageStats()
514 public List<ConfigurationStats> queryConfigurations(int intervalType, long beginTime, in queryConfigurations() argument
519 intervalType, beginTime, endTime, mContext.getOpPackageName()); in queryConfigurations()
561 public List<EventStats> queryEventStats(int intervalType, long beginTime, long endTime) { in queryEventStats() argument
564 ParceledListSlice<EventStats> slice = mService.queryEventStats(intervalType, beginTime, in queryEventStats()
590 public UsageEvents queryEvents(long beginTime, long endTime) { in queryEvents() argument
592 UsageEvents iter = mService.queryEvents(beginTime, endTime, in queryEvents()
642 public UsageEvents queryEventsForSelf(long beginTime, long endTime) { in queryEventsForSelf() argument
644 final UsageEvents events = mService.queryEventsForPackage(beginTime, endTime, in queryEventsForSelf()
[all …]
/frameworks/base/services/people/java/com/android/server/people/data/
DEventIndex.java393 LocalDateTime beginTime = toLocalDateTime(time).truncatedTo(ChronoUnit.DAYS); in createOneDayLongTimeSlot() local
394 return Range.create(toEpochMilli(beginTime), toEpochMilli(beginTime.plusDays(1))); in createOneDayLongTimeSlot()
403 LocalDateTime beginTime = in createFourHoursLongTimeSlot() local
405 return Range.create(toEpochMilli(beginTime), toEpochMilli(beginTime.plusHours(4))); in createFourHoursLongTimeSlot()
413 LocalDateTime beginTime = toLocalDateTime(time).truncatedTo(ChronoUnit.HOURS); in createOneHourLongTimeSlot() local
414 return Range.create(toEpochMilli(beginTime), toEpochMilli(beginTime.plusHours(1))); in createOneHourLongTimeSlot()
423 LocalDateTime beginTime = toLocalDateTime(time).truncatedTo( in createTwoMinutesLongTimeSlot() local
425 return Range.create(toEpochMilli(beginTime), toEpochMilli(beginTime.plusMinutes(2))); in createTwoMinutesLongTimeSlot()
/frameworks/base/core/proto/android/server/
Dusagestatsservice.proto48 // Time attributes stored as an offset of the IntervalStats's beginTime.
54 // Time attributes stored as an offset of the IntervalStats's beginTime.
57 // Time attributes stored as an offset of the IntervalStats's beginTime.
60 // Time attributes stored as an offset of the IntervalStats's beginTime.
/frameworks/base/services/core/java/android/app/usage/
DUsageStatsManagerInternal.java241 long beginTime, long endTime, boolean obfuscateInstantApps); in queryUsageStatsForUser() argument
249 public abstract UsageEvents queryEventsForUser(@UserIdInt int userId, long beginTime, in queryEventsForUser() argument
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageStatsActivity.java225 long beginTime = now - USAGE_STATS_PERIOD; in updateAdapter() local
227 beginTime, now); in updateAdapter()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DIntervalStatsTests.java56 intervalStats.beginTime = time; in populateIntervalStats()
DUsageStatsDatabaseTest.java133 mIntervalStats.beginTime = time - 1; in populateIntervalStats()
359 assertEquals(stats1.beginTime, stats2.beginTime); in compareIntervalStats()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt23300 field public static final java.lang.String EXTRA_EVENT_BEGIN_TIME = "beginTime";
/frameworks/base/core/api/
Dcurrent.txt35446 field public static final String EXTRA_EVENT_BEGIN_TIME = "beginTime";