Searched refs:intervalType (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UserUsageStatsService.java | 238 private <T> List<T> queryStats(int intervalType, final long beginTime, final long endTime, in queryStats() argument 240 if (intervalType == UsageStatsManager.INTERVAL_BEST) { in queryStats() 241 intervalType = mDatabase.findBestFitBucket(beginTime, endTime); in queryStats() 242 if (intervalType < 0) { in queryStats() 245 intervalType = UsageStatsManager.INTERVAL_DAILY; in queryStats() 249 if (intervalType < 0 || intervalType >= mCurrentStats.length) { in queryStats() 251 Slog.d(TAG, mLogPrefix + "Bad intervalType used " + intervalType); in queryStats() 256 final IntervalStats currentStats = mCurrentStats[intervalType]; in queryStats() 259 Slog.d(TAG, mLogPrefix + "SELECT * FROM " + intervalType + " WHERE beginTime >= " in queryStats() 278 List<T> results = mDatabase.queryUsageStats(intervalType, beginTime, in queryStats() [all …]
|
D | UsageStatsDatabase.java | 346 public IntervalStats getLatestUsageStats(int intervalType) { in getLatestUsageStats() argument 348 if (intervalType < 0 || intervalType >= mIntervalDirs.length) { in getLatestUsageStats() 349 throw new IllegalArgumentException("Bad interval type " + intervalType); in getLatestUsageStats() 352 final int fileCount = mSortedStatFiles[intervalType].size(); in getLatestUsageStats() 358 final AtomicFile f = mSortedStatFiles[intervalType].valueAt(fileCount - 1); in getLatestUsageStats() 392 public <T> List<T> queryUsageStats(int intervalType, long beginTime, long endTime, in queryUsageStats() argument 395 if (intervalType < 0 || intervalType >= mIntervalDirs.length) { in queryUsageStats() 396 throw new IllegalArgumentException("Bad interval type " + intervalType); in queryUsageStats() 399 final TimeSparseArray<AtomicFile> intervalStats = mSortedStatFiles[intervalType]; in queryUsageStats() 585 public void putUsageStats(int intervalType, IntervalStats stats) throws IOException { in putUsageStats() argument [all …]
|
D | UsageStatsService.java | 1695 int userId, int intervalType, long beginTime, long endTime, in queryUsageStatsForUser() argument 1698 userId, intervalType, beginTime, endTime, obfuscateInstantApps); in queryUsageStatsForUser()
|
/frameworks/base/core/java/android/app/usage/ |
D | UsageStatsManager.java | 133 public List<UsageStats> queryUsageStats(int intervalType, long beginTime, long endTime) { in queryUsageStats() argument 136 ParceledListSlice<UsageStats> slice = mService.queryUsageStats(intervalType, beginTime, in queryUsageStats() 157 public List<ConfigurationStats> queryConfigurations(int intervalType, long beginTime, in queryConfigurations() argument 162 intervalType, beginTime, endTime, mContext.getOpPackageName()); in queryConfigurations()
|