Home
last modified time | relevance | path

Searched refs:intervalType (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/usage/java/com/android/server/usage/
DUserUsageStatsService.java417 private <T> List<T> queryStats(int intervalType, final long beginTime, final long endTime, in queryStats() argument
419 if (intervalType == INTERVAL_BEST) { in queryStats()
420 intervalType = mDatabase.findBestFitBucket(beginTime, endTime); in queryStats()
421 if (intervalType < 0) { in queryStats()
424 intervalType = INTERVAL_DAILY; in queryStats()
428 if (intervalType < 0 || intervalType >= mCurrentStats.length) { in queryStats()
430 Slog.d(TAG, mLogPrefix + "Bad intervalType used " + intervalType); in queryStats()
435 final IntervalStats currentStats = mCurrentStats[intervalType]; in queryStats()
438 Slog.d(TAG, mLogPrefix + "SELECT * FROM " + intervalType + " WHERE beginTime >= " in queryStats()
457 List<T> results = mDatabase.queryUsageStats(intervalType, beginTime, in queryStats()
[all …]
DUsageStatsDatabase.java732 public IntervalStats getLatestUsageStats(int intervalType) { in getLatestUsageStats() argument
734 if (intervalType < 0 || intervalType >= mIntervalDirs.length) { in getLatestUsageStats()
735 throw new IllegalArgumentException("Bad interval type " + intervalType); in getLatestUsageStats()
738 final int fileCount = mSortedStatFiles[intervalType].size(); in getLatestUsageStats()
744 final AtomicFile f = mSortedStatFiles[intervalType].valueAt(fileCount - 1); in getLatestUsageStats()
808 public <T> List<T> queryUsageStats(int intervalType, long beginTime, long endTime, in queryUsageStats() argument
811 if (intervalType < 0 || intervalType >= mIntervalDirs.length) { in queryUsageStats()
812 throw new IllegalArgumentException("Bad interval type " + intervalType); in queryUsageStats()
815 final TimeSparseArray<AtomicFile> intervalStats = mSortedStatFiles[intervalType]; in queryUsageStats()
1217 public void putUsageStats(int intervalType, IntervalStats stats) throws IOException { in putUsageStats() argument
[all …]
DUsageStatsService.java2449 int userId, int intervalType, long beginTime, long endTime, in queryUsageStatsForUser() argument
2452 userId, intervalType, beginTime, endTime, obfuscateInstantApps); in queryUsageStatsForUser()
/frameworks/base/core/java/android/app/usage/
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()