Searched refs:intervalType (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UserUsageStatsService.java | 297 private <T> List<T> queryStats(int intervalType, final long beginTime, final long endTime, in queryStats() argument 299 if (intervalType == INTERVAL_BEST) { in queryStats() 300 intervalType = mDatabase.findBestFitBucket(beginTime, endTime); in queryStats() 301 if (intervalType < 0) { in queryStats() 304 intervalType = INTERVAL_DAILY; in queryStats() 308 if (intervalType < 0 || intervalType >= mCurrentStats.length) { in queryStats() 310 Slog.d(TAG, mLogPrefix + "Bad intervalType used " + intervalType); in queryStats() 315 final IntervalStats currentStats = mCurrentStats[intervalType]; in queryStats() 318 Slog.d(TAG, mLogPrefix + "SELECT * FROM " + intervalType + " WHERE beginTime >= " in queryStats() 337 List<T> results = mDatabase.queryUsageStats(intervalType, beginTime, in queryStats() [all …]
|
D | UsageStatsDatabase.java | 559 public IntervalStats getLatestUsageStats(int intervalType) { in getLatestUsageStats() argument 561 if (intervalType < 0 || intervalType >= mIntervalDirs.length) { in getLatestUsageStats() 562 throw new IllegalArgumentException("Bad interval type " + intervalType); in getLatestUsageStats() 565 final int fileCount = mSortedStatFiles[intervalType].size(); in getLatestUsageStats() 571 final AtomicFile f = mSortedStatFiles[intervalType].valueAt(fileCount - 1); in getLatestUsageStats() 605 public <T> List<T> queryUsageStats(int intervalType, long beginTime, long endTime, in queryUsageStats() argument 608 if (intervalType < 0 || intervalType >= mIntervalDirs.length) { in queryUsageStats() 609 throw new IllegalArgumentException("Bad interval type " + intervalType); in queryUsageStats() 612 final TimeSparseArray<AtomicFile> intervalStats = mSortedStatFiles[intervalType]; in queryUsageStats() 900 public void putUsageStats(int intervalType, IntervalStats stats) throws IOException { in putUsageStats() argument [all …]
|
D | UsageStatsService.java | 1774 int userId, int intervalType, long beginTime, long endTime, in queryUsageStatsForUser() argument 1777 userId, intervalType, beginTime, endTime, obfuscateInstantApps); in queryUsageStatsForUser()
|
/frameworks/base/core/java/android/app/usage/ |
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()
|