/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UserUsageStatsService.java | 296 private <T> List<T> queryStats(int intervalType, final long beginTime, final long endTime, in queryStats() argument 299 intervalType = mDatabase.findBestFitBucket(beginTime, endTime); in queryStats() 318 + beginTime + " AND endTime < " + endTime); in queryStats() 321 if (beginTime >= currentStats.endTime) { in queryStats() 323 Slog.d(TAG, mLogPrefix + "Requesting stats after " + beginTime + " but latest is " in queryStats() 333 final long truncatedEndTime = Math.min(currentStats.beginTime, endTime); in queryStats() 336 List<T> results = mDatabase.queryUsageStats(intervalType, beginTime, in queryStats() 340 Slog.d(TAG, "Current stats beginTime=" + currentStats.beginTime + in queryStats() 345 if (beginTime < currentStats.endTime && endTime > currentStats.beginTime) { in queryStats() 362 List<UsageStats> queryUsageStats(int bucketType, long beginTime, long endTime) { in queryUsageStats() argument [all …]
|
D | IntervalStats.java | 59 public long beginTime; field in IntervalStats 100 void addToEventStats(List<EventStats> out, int event, long beginTime, long endTime) { in addToEventStats() argument 107 ev.mBeginTimeStamp = beginTime; in addToEventStats() 126 usageStats.mBeginTimeStamp = beginTime; in getOrCreateUsageStats() 141 configStats.mBeginTimeStamp = beginTime; in getOrCreateConfigurationStats() 187 event.mTimeStamp = beginTime + parser.readLong( in buildEvent() 249 event.mTimeStamp = beginTime; in buildEvent() 407 beginTime, endTime); in addEventStatsTo() 409 beginTime, endTime); in addEventStatsTo() 411 beginTime, endTime); in addEventStatsTo() [all …]
|
D | UsageStatsService.java | 621 List<UsageStats> queryUsageStats(int userId, int bucketType, long beginTime, long endTime, in queryUsageStats() argument 625 if (!validRange(timeNow, beginTime, endTime)) { in queryUsageStats() 631 List<UsageStats> list = service.queryUsageStats(bucketType, beginTime, endTime); in queryUsageStats() 654 List<ConfigurationStats> queryConfigurationStats(int userId, int bucketType, long beginTime, in queryConfigurationStats() argument 658 if (!validRange(timeNow, beginTime, endTime)) { in queryConfigurationStats() 664 return service.queryConfigurationStats(bucketType, beginTime, endTime); in queryConfigurationStats() 671 List<EventStats> queryEventStats(int userId, int bucketType, long beginTime, in queryEventStats() argument 675 if (!validRange(timeNow, beginTime, endTime)) { in queryEventStats() 681 return service.queryEventStats(bucketType, beginTime, endTime); in queryEventStats() 688 UsageEvents queryEvents(int userId, long beginTime, long endTime, in queryEvents() argument [all …]
|
D | UsageStatsXmlV1.java | 94 stats.mLastTimeUsed = statsOut.beginTime + XmlUtils.readLongAttribute( in loadUsageStats() 98 stats.mLastTimeVisible = statsOut.beginTime + XmlUtils.readLongAttribute( in loadUsageStats() 105 stats.mLastTimeForegroundServiceUsed = statsOut.beginTime + XmlUtils.readLongAttribute( in loadUsageStats() 192 configStats.mLastTimeActive = statsOut.beginTime + XmlUtils.readLongAttribute( in loadConfigStats() 215 event.mTimeStamp = statsOut.beginTime + XmlUtils.readLongAttribute(parser, TIME_ATTR); in loadEvent() 252 usageStats.mLastTimeUsed - stats.beginTime); in writeUsageStats() 254 usageStats.mLastTimeVisible - stats.beginTime); in writeUsageStats() 256 usageStats.mLastTimeForegroundServiceUsed - stats.beginTime); in writeUsageStats() 319 configStats.mLastTimeActive - stats.beginTime); in writeConfigStats() 338 XmlUtils.writeLongAttribute(xml, TIME_ATTR, event.mTimeStamp - stats.beginTime); in writeEvent() [all …]
|
D | UsageStatsDatabase.java | 499 Long.toString(stats.beginTime))), stats, mCurrentVersion); in continueUpgradeLocked() 605 public <T> List<T> queryUsageStats(int intervalType, long beginTime, long endTime, in queryUsageStats() argument 614 if (endTime <= beginTime) { in queryUsageStats() 616 Slog.d(TAG, "endTime(" + endTime + ") <= beginTime(" + beginTime + ")"); in queryUsageStats() 621 int startIndex = intervalStats.closestIndexOnOrBefore(beginTime); in queryUsageStats() 660 if (beginTime < stats.endTime) { in queryUsageStats() 739 long beginTime; in pruneFilesOlderThan() local 741 beginTime = parseBeginTime(f); in pruneFilesOlderThan() 743 beginTime = 0; in pruneFilesOlderThan() 746 if (beginTime < expiryTime) { in pruneFilesOlderThan() [all …]
|
D | UsageStatsProto.java | 107 stats.mLastTimeUsed = statsOut.beginTime + proto.readLong( in loadUsageStats() 130 stats.mLastTimeForegroundServiceUsed = statsOut.beginTime + proto.readLong( in loadUsageStats() 139 stats.mLastTimeVisible = statsOut.beginTime + proto.readLong( in loadUsageStats() 150 stats.mLastTimeUsed = statsOut.beginTime; in loadUsageStats() 269 configStats.mLastTimeActive = statsOut.beginTime + proto.readLong( in loadConfigStats() 286 configStats.mLastTimeActive = statsOut.beginTime; in loadConfigStats() 334 usageStats.mLastTimeUsed - stats.beginTime); in writeUsageStats() 341 usageStats.mLastTimeForegroundServiceUsed - stats.beginTime); in writeUsageStats() 346 usageStats.mLastTimeVisible - stats.beginTime); in writeUsageStats() 404 configStats.mLastTimeActive - stats.beginTime); in writeConfigStats() [all …]
|
/frameworks/base/core/java/android/app/usage/ |
D | IUsageStatsManager.aidl | 32 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
|
D | UsageStatsManager.java | 308 public List<UsageStats> queryUsageStats(int intervalType, long beginTime, long endTime) { in queryUsageStats() argument 311 ParceledListSlice<UsageStats> slice = mService.queryUsageStats(intervalType, beginTime, in queryUsageStats() 336 public List<ConfigurationStats> queryConfigurations(int intervalType, long beginTime, in queryConfigurations() argument 341 intervalType, beginTime, endTime, mContext.getOpPackageName()); in queryConfigurations() 380 public List<EventStats> queryEventStats(int intervalType, long beginTime, long endTime) { in queryEventStats() argument 383 ParceledListSlice<EventStats> slice = mService.queryEventStats(intervalType, beginTime, in queryEventStats() 406 public UsageEvents queryEvents(long beginTime, long endTime) { in queryEvents() argument 408 UsageEvents iter = mService.queryEvents(beginTime, endTime, in queryEvents() 431 public UsageEvents queryEventsForSelf(long beginTime, long endTime) { in queryEventsForSelf() argument 433 final UsageEvents events = mService.queryEventsForPackage(beginTime, endTime, in queryEventsForSelf() [all …]
|
D | UsageStatsManagerInternal.java | 221 long beginTime, long endTime, boolean obfuscateInstantApps); in queryUsageStatsForUser() argument
|
/frameworks/base/core/proto/android/server/ |
D | usagestatsservice.proto | 48 // 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.
|
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | UsageStatsDatabaseTest.java | 122 mIntervalStats.beginTime = time; in populateIntervalStats() 296 assertEquals(stats1.beginTime, stats2.beginTime); in compareIntervalStats()
|
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/ |
D | UsageStatsActivity.java | 225 long beginTime = now - USAGE_STATS_PERIOD; in updateAdapter() local 227 beginTime, now); in updateAdapter()
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 23300 field public static final java.lang.String EXTRA_EVENT_BEGIN_TIME = "beginTime";
|
/frameworks/base/non-updatable-api/ |
D | current.txt | 36849 field public static final String EXTRA_EVENT_BEGIN_TIME = "beginTime";
|
/frameworks/base/api/ |
D | current.txt | 36993 field public static final String EXTRA_EVENT_BEGIN_TIME = "beginTime";
|