Home
last modified time | relevance | path

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

/frameworks/base/services/usage/java/com/android/server/usage/
DUserUsageStatsService.java408 private static boolean validRange(long currentTime, long beginTime, long endTime) { in validRange() argument
409 return beginTime <= currentTime && beginTime < endTime; in validRange()
417 private <T> List<T> queryStats(int intervalType, final long beginTime, final long endTime, in queryStats() argument
420 intervalType = mDatabase.findBestFitBucket(beginTime, endTime); in queryStats()
439 + beginTime + " AND endTime < " + endTime); in queryStats()
442 if (beginTime >= currentStats.endTime) { in queryStats()
444 Slog.d(TAG, mLogPrefix + "Requesting stats after " + beginTime + " but latest is " in queryStats()
454 final long truncatedEndTime = Math.min(currentStats.beginTime, endTime); in queryStats()
457 List<T> results = mDatabase.queryUsageStats(intervalType, beginTime, in queryStats()
461 Slog.d(TAG, "Current stats beginTime=" + currentStats.beginTime + in queryStats()
[all …]
DUsageStatsProtoV2.java48 private static UsageStats parseUsageStats(ProtoInputStream proto, final long beginTime) in parseUsageStats() argument
59 stats.mLastTimeUsed = beginTime + proto.readLong( in parseUsageStats()
80 stats.mLastTimeForegroundServiceUsed = beginTime + proto.readLong( in parseUsageStats()
88 stats.mLastTimeVisible = beginTime + proto.readLong( in parseUsageStats()
96 stats.mLastTimeComponentUsed = beginTime + proto.readLong( in parseUsageStats()
211 configStats.mLastTimeActive = stats.beginTime + proto.readLong( in loadConfigStats()
235 private static UsageEvents.Event parseEvent(ProtoInputStream proto, long beginTime) in parseEvent() argument
247 event.mTimeStamp = beginTime + proto.readLong(EventObfuscatedProto.TIME_MS); in parseEvent()
292 long timestamp, long beginTime) { in writeOffsetTimestamp() argument
295 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 …]
DUsageStatsDatabase.java541 Long.toString(stats.beginTime))), stats, mCurrentVersion, in continueUpgradeLocked()
808 public <T> List<T> queryUsageStats(int intervalType, long beginTime, long endTime, in queryUsageStats() argument
817 if (endTime <= beginTime) { in queryUsageStats()
819 Slog.d(TAG, "endTime(" + endTime + ") <= beginTime(" + beginTime + ")"); in queryUsageStats()
824 int startIndex = intervalStats.closestIndexOnOrBefore(beginTime); in queryUsageStats()
863 if (beginTime < stats.endTime) { in queryUsageStats()
942 long beginTime; in pruneFilesOlderThan() local
944 beginTime = parseBeginTime(f); in pruneFilesOlderThan()
946 beginTime = 0; in pruneFilesOlderThan()
949 if (beginTime < expiryTime) { in pruneFilesOlderThan()
[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()
DIntervalStats.java67 public long beginTime; field in IntervalStats
110 void addToEventStats(List<EventStats> out, int event, long beginTime, long endTime) { in addToEventStats() argument
117 ev.mBeginTimeStamp = beginTime; in addToEventStats()
136 usageStats.mBeginTimeStamp = beginTime; in getOrCreateUsageStats()
151 configStats.mBeginTimeStamp = beginTime; in getOrCreateConfigurationStats()
197 event.mTimeStamp = beginTime + parser.readLong( in buildEvent()
422 beginTime, endTime); in addEventStatsTo()
424 beginTime, endTime); in addEventStatsTo()
426 beginTime, endTime); in addEventStatsTo()
428 beginTime, endTime); in addEventStatsTo()
DUsageStatsService.java1187 List<UsageStats> queryUsageStats(int userId, int bucketType, long beginTime, long endTime, in queryUsageStats() argument
1199 List<UsageStats> list = service.queryUsageStats(bucketType, beginTime, endTime); in queryUsageStats()
1221 List<ConfigurationStats> queryConfigurationStats(int userId, int bucketType, long beginTime, in queryConfigurationStats() argument
1233 return service.queryConfigurationStats(bucketType, beginTime, endTime); in queryConfigurationStats()
1240 List<EventStats> queryEventStats(int userId, int bucketType, long beginTime, in queryEventStats() argument
1252 return service.queryEventStats(bucketType, beginTime, endTime); in queryEventStats()
1259 UsageEvents queryEvents(int userId, long beginTime, long endTime, int flags) { in queryEvents() argument
1270 return service.queryEvents(beginTime, endTime, flags); in queryEvents()
1277 UsageEvents queryEventsForPackage(int userId, long beginTime, long endTime, in queryEventsForPackage() argument
1289 return service.queryEventsForPackage(beginTime, endTime, packageName, includeTaskRoot); in queryEventsForPackage()
[all …]
/frameworks/base/core/java/android/app/usage/
DIUsageStatsManager.aidl32 ParceledListSlice queryUsageStats(int bucketType, long beginTime, long endTime, in queryUsageStats() argument
35 ParceledListSlice queryConfigurationStats(int bucketType, long beginTime, long endTime, in queryConfigurationStats() argument
37 ParceledListSlice queryEventStats(int bucketType, long beginTime, long endTime, in queryEventStats() argument
39 UsageEvents queryEvents(long beginTime, long endTime, String callingPackage); in queryEvents() argument
40 UsageEvents queryEventsForPackage(long beginTime, long endTime, String callingPackage); in queryEventsForPackage() argument
41 UsageEvents queryEventsForUser(long beginTime, long endTime, int userId, String callingPackage); in queryEventsForUser() argument
42 …UsageEvents queryEventsForPackageForUser(long beginTime, long endTime, int userId, String pkg, Str… in queryEventsForPackageForUser() argument
DUsageStatsManager.java442 public List<UsageStats> queryUsageStats(int intervalType, long beginTime, long endTime) { in queryUsageStats() argument
445 ParceledListSlice<UsageStats> slice = mService.queryUsageStats(intervalType, beginTime, in queryUsageStats()
473 public List<ConfigurationStats> queryConfigurations(int intervalType, long beginTime, in queryConfigurations() argument
478 intervalType, beginTime, endTime, mContext.getOpPackageName()); in queryConfigurations()
520 public List<EventStats> queryEventStats(int intervalType, long beginTime, long endTime) { in queryEventStats() argument
523 ParceledListSlice<EventStats> slice = mService.queryEventStats(intervalType, beginTime, in queryEventStats()
549 public UsageEvents queryEvents(long beginTime, long endTime) { in queryEvents() argument
551 UsageEvents iter = mService.queryEvents(beginTime, endTime, in queryEvents()
577 public UsageEvents queryEventsForSelf(long beginTime, long endTime) { in queryEventsForSelf() argument
579 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.java214 long beginTime, long endTime, boolean obfuscateInstantApps); in queryUsageStatsForUser() argument
222 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/
DUsageStatsDatabaseTest.java129 mIntervalStats.beginTime = time - 1; in populateIntervalStats()
332 assertEquals(stats1.beginTime, stats2.beginTime); in compareIntervalStats()
DIntervalStatsTests.java53 intervalStats.beginTime = time; in populateIntervalStats()
/frameworks/base/core/api/
Dcurrent.txt33345 field public static final String EXTRA_EVENT_BEGIN_TIME = "beginTime";
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt23300 field public static final java.lang.String EXTRA_EVENT_BEGIN_TIME = "beginTime";