Searched refs:intervalStats (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/tests/UsageStatsPerfTests/src/com/android/frameworks/perftests/usage/tests/ |
D | UsageStatsDatabasePerfTest.java | 85 private static void populateIntervalStats(IntervalStats intervalStats, int packageCount, in populateIntervalStats() argument 94 intervalStats.events.insert(event); in populateIntervalStats() 95 intervalStats.update(event.mPackage, event.mClass, event.mTimeStamp, in populateIntervalStats() 115 IntervalStats intervalStats = new IntervalStats(); in runQueryUsageStatsTest() local 116 populateIntervalStats(intervalStats, packageCount, eventsPerPackage); in runQueryUsageStatsTest() 117 sUsageStatsDatabase.putUsageStats(0, intervalStats); in runQueryUsageStatsTest() 131 IntervalStats intervalStats = new IntervalStats(); in runPutUsageStatsTest() local 132 populateIntervalStats(intervalStats, packageCount, eventsPerPackage); in runPutUsageStatsTest() 136 sUsageStatsDatabase.putUsageStats(0, intervalStats); in runPutUsageStatsTest()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsDatabase.java | 612 final TimeSparseArray<AtomicFile> intervalStats = mSortedStatFiles[intervalType]; in queryUsageStats() local 621 int startIndex = intervalStats.closestIndexOnOrBefore(beginTime); in queryUsageStats() 628 int endIndex = intervalStats.closestIndexOnOrBefore(endTime); in queryUsageStats() 637 if (intervalStats.keyAt(endIndex) == endTime) { in queryUsageStats() 652 final AtomicFile f = intervalStats.valueAt(i); in queryUsageStats()
|