Home
last modified time | relevance | path

Searched refs:intervalStats (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DIntervalStatsTests.java47 private void populateIntervalStats(IntervalStats intervalStats) { in populateIntervalStats() argument
51 intervalStats.majorVersion = 7; in populateIntervalStats()
52 intervalStats.minorVersion = 8; in populateIntervalStats()
53 intervalStats.beginTime = time; in populateIntervalStats()
54 intervalStats.interactiveTracker.count = 2; in populateIntervalStats()
55 intervalStats.interactiveTracker.duration = 111111; in populateIntervalStats()
56 intervalStats.nonInteractiveTracker.count = 3; in populateIntervalStats()
57 intervalStats.nonInteractiveTracker.duration = 222222; in populateIntervalStats()
58 intervalStats.keyguardShownTracker.count = 4; in populateIntervalStats()
59 intervalStats.keyguardShownTracker.duration = 333333; in populateIntervalStats()
[all …]
/frameworks/base/tests/UsageStatsPerfTests/src/com/android/frameworks/perftests/usage/tests/
DUsageStatsDatabasePerfTest.java87 private static void populateIntervalStats(IntervalStats intervalStats, int packageCount, in populateIntervalStats() argument
96 intervalStats.events.insert(event); in populateIntervalStats()
97 intervalStats.update(event.mPackage, event.mClass, event.mTimeStamp, in populateIntervalStats()
117 IntervalStats intervalStats = new IntervalStats(); in runQueryUsageStatsTest() local
118 populateIntervalStats(intervalStats, packageCount, eventsPerPackage); in runQueryUsageStatsTest()
119 sUsageStatsDatabase.putUsageStats(0, intervalStats); in runQueryUsageStatsTest()
133 IntervalStats intervalStats = new IntervalStats(); in runPutUsageStatsTest() local
134 populateIntervalStats(intervalStats, packageCount, eventsPerPackage); in runPutUsageStatsTest()
138 sUsageStatsDatabase.putUsageStats(0, intervalStats); in runPutUsageStatsTest()
147 IntervalStats intervalStats = new IntervalStats(); in runObfuscateStatsTest() local
[all …]
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsDatabase.java814 final TimeSparseArray<AtomicFile> intervalStats = mSortedStatFiles[intervalType]; in queryUsageStats() local
823 int startIndex = intervalStats.closestIndexOnOrBefore(beginTime); in queryUsageStats()
830 int endIndex = intervalStats.closestIndexOnOrBefore(endTime); in queryUsageStats()
839 if (intervalStats.keyAt(endIndex) == endTime) { in queryUsageStats()
853 final AtomicFile f = intervalStats.valueAt(i); in queryUsageStats()