Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/app/usage/
DIUsageStatsManager.aidl31 ParceledListSlice queryUsageStats(int bucketType, long beginTime, long endTime, in queryUsageStats() argument
33 ParceledListSlice queryConfigurationStats(int bucketType, long beginTime, long endTime, in queryConfigurationStats() argument
35 ParceledListSlice queryEventStats(int bucketType, long beginTime, long endTime, in queryEventStats() argument
37 UsageEvents queryEvents(long beginTime, long endTime, String callingPackage); in queryEvents() argument
38 UsageEvents queryEventsForPackage(long beginTime, long endTime, String callingPackage); in queryEventsForPackage() argument
39 UsageEvents queryEventsForUser(long beginTime, long endTime, int userId, String callingPackage); in queryEventsForUser() argument
40 …UsageEvents queryEventsForPackageForUser(long beginTime, long endTime, int userId, String pkg, Str… in queryEventsForPackageForUser() argument
DUsageStatsManager.java277 public List<UsageStats> queryUsageStats(int intervalType, long beginTime, long endTime) { in queryUsageStats() argument
280 ParceledListSlice<UsageStats> slice = mService.queryUsageStats(intervalType, beginTime, in queryUsageStats()
302 public List<ConfigurationStats> queryConfigurations(int intervalType, long beginTime, in queryConfigurations() argument
307 intervalType, beginTime, endTime, mContext.getOpPackageName()); in queryConfigurations()
343 public List<EventStats> queryEventStats(int intervalType, long beginTime, long endTime) { in queryEventStats() argument
346 ParceledListSlice<EventStats> slice = mService.queryEventStats(intervalType, beginTime, in queryEventStats()
366 public UsageEvents queryEvents(long beginTime, long endTime) { in queryEvents() argument
368 UsageEvents iter = mService.queryEvents(beginTime, endTime, in queryEvents()
388 public UsageEvents queryEventsForSelf(long beginTime, long endTime) { in queryEventsForSelf() argument
390 final UsageEvents events = mService.queryEventsForPackage(beginTime, endTime, in queryEventsForSelf()
[all …]
DUsageStatsManagerInternal.java209 long beginTime, long endTime, boolean obfuscateInstantApps); in queryUsageStatsForUser() argument
/frameworks/base/services/usage/java/com/android/server/usage/
DUserUsageStatsService.java279 private <T> List<T> queryStats(int intervalType, final long beginTime, final long endTime, in queryStats() argument
282 intervalType = mDatabase.findBestFitBucket(beginTime, endTime); in queryStats()
301 + beginTime + " AND endTime < " + endTime); in queryStats()
304 if (beginTime >= currentStats.endTime) { in queryStats()
306 Slog.d(TAG, mLogPrefix + "Requesting stats after " + beginTime + " but latest is " in queryStats()
316 final long truncatedEndTime = Math.min(currentStats.beginTime, endTime); in queryStats()
319 List<T> results = mDatabase.queryUsageStats(intervalType, beginTime, in queryStats()
323 Slog.d(TAG, "Current stats beginTime=" + currentStats.beginTime + in queryStats()
328 if (beginTime < currentStats.endTime && endTime > currentStats.beginTime) { in queryStats()
345 List<UsageStats> queryUsageStats(int bucketType, long beginTime, long endTime) { in queryUsageStats() argument
[all …]
DIntervalStats.java31 public long beginTime; field in IntervalStats
72 void addToEventStats(List<EventStats> out, int event, long beginTime, long endTime) { in addToEventStats() argument
79 ev.mBeginTimeStamp = beginTime; in addToEventStats()
95 usageStats.mBeginTimeStamp = beginTime; in getOrCreateUsageStats()
110 configStats.mBeginTimeStamp = beginTime; in getOrCreateConfigurationStats()
249 beginTime, endTime); in addEventStatsTo()
251 beginTime, endTime); in addEventStatsTo()
253 beginTime, endTime); in addEventStatsTo()
255 beginTime, endTime); in addEventStatsTo()
DUsageStatsService.java451 List<UsageStats> queryUsageStats(int userId, int bucketType, long beginTime, long endTime, in queryUsageStats() argument
455 if (!validRange(timeNow, beginTime, endTime)) { in queryUsageStats()
461 List<UsageStats> list = service.queryUsageStats(bucketType, beginTime, endTime); in queryUsageStats()
484 List<ConfigurationStats> queryConfigurationStats(int userId, int bucketType, long beginTime, in queryConfigurationStats() argument
488 if (!validRange(timeNow, beginTime, endTime)) { in queryConfigurationStats()
494 return service.queryConfigurationStats(bucketType, beginTime, endTime); in queryConfigurationStats()
501 List<EventStats> queryEventStats(int userId, int bucketType, long beginTime, in queryEventStats() argument
505 if (!validRange(timeNow, beginTime, endTime)) { in queryEventStats()
511 return service.queryEventStats(bucketType, beginTime, endTime); in queryEventStats()
518 UsageEvents queryEvents(int userId, long beginTime, long endTime, in queryEvents() argument
[all …]
DUsageStatsDatabase.java392 public <T> List<T> queryUsageStats(int intervalType, long beginTime, long endTime, in queryUsageStats() argument
401 if (endTime <= beginTime) { in queryUsageStats()
403 Slog.d(TAG, "endTime(" + endTime + ") <= beginTime(" + beginTime + ")"); in queryUsageStats()
408 int startIndex = intervalStats.closestIndexOnOrBefore(beginTime); in queryUsageStats()
447 if (beginTime < stats.endTime) { in queryUsageStats()
531 long beginTime; in pruneFilesOlderThan() local
533 beginTime = UsageStatsXml.parseBeginTime(f); in pruneFilesOlderThan()
535 beginTime = 0; in pruneFilesOlderThan()
538 if (beginTime < expiryTime) { in pruneFilesOlderThan()
554 long beginTime; in pruneChooserCountsOlderThan() local
[all …]
DUsageStatsXmlV1.java86 stats.mLastTimeUsed = statsOut.beginTime + XmlUtils.readLongAttribute( in loadUsageStats()
154 configStats.mLastTimeActive = statsOut.beginTime + XmlUtils.readLongAttribute( in loadConfigStats()
177 event.mTimeStamp = statsOut.beginTime + XmlUtils.readLongAttribute(parser, TIME_ATTR); in loadEvent()
206 usageStats.mLastTimeUsed - stats.beginTime); in writeUsageStats()
267 configStats.mLastTimeActive - stats.beginTime); in writeConfigStats()
286 XmlUtils.writeLongAttribute(xml, TIME_ATTR, event.mTimeStamp - stats.beginTime); in writeEvent()
332 statsOut.endTime = statsOut.beginTime + XmlUtils.readLongAttribute(parser, END_TIME_ATTR); in read()
384 XmlUtils.writeLongAttribute(xml, END_TIME_ATTR, stats.endTime - stats.beginTime); in write()
DUsageStatsXml.java62 statsOut.beginTime = parseBeginTime(file); in read()
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageStatsActivity.java183 long beginTime = now - USAGE_STATS_PERIOD; in updateAdapter() local
185 beginTime, now); in updateAdapter()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt23300 field public static final java.lang.String EXTRA_EVENT_BEGIN_TIME = "beginTime";
/frameworks/base/api/
Dcurrent.txt34504 field public static final java.lang.String EXTRA_EVENT_BEGIN_TIME = "beginTime";