Searched refs:intervalStats (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | IntervalStatsTests.java | 50 private void populateIntervalStats(IntervalStats intervalStats) { in populateIntervalStats() argument 54 intervalStats.majorVersion = 7; in populateIntervalStats() 55 intervalStats.minorVersion = 8; in populateIntervalStats() 56 intervalStats.beginTime = time; in populateIntervalStats() 57 intervalStats.interactiveTracker.count = 2; in populateIntervalStats() 58 intervalStats.interactiveTracker.duration = 111111; in populateIntervalStats() 59 intervalStats.nonInteractiveTracker.count = 3; in populateIntervalStats() 60 intervalStats.nonInteractiveTracker.duration = 222222; in populateIntervalStats() 61 intervalStats.keyguardShownTracker.count = 4; in populateIntervalStats() 62 intervalStats.keyguardShownTracker.duration = 333333; in populateIntervalStats() [all …]
|
/frameworks/base/tests/UsageStatsPerfTests/src/com/android/frameworks/perftests/usage/tests/ |
D | UsageStatsDatabasePerfTest.java | 88 private static void populateIntervalStats(IntervalStats intervalStats, int packageCount, in populateIntervalStats() argument 97 intervalStats.events.insert(event); in populateIntervalStats() 98 intervalStats.update(event.mPackage, event.mClass, event.mTimeStamp, in populateIntervalStats() 118 IntervalStats intervalStats = new IntervalStats(); in runQueryUsageStatsTest() local 119 populateIntervalStats(intervalStats, packageCount, eventsPerPackage); in runQueryUsageStatsTest() 120 sUsageStatsDatabase.putUsageStats(0, intervalStats); in runQueryUsageStatsTest() 134 IntervalStats intervalStats = new IntervalStats(); in runPutUsageStatsTest() local 135 populateIntervalStats(intervalStats, packageCount, eventsPerPackage); in runPutUsageStatsTest() 139 sUsageStatsDatabase.putUsageStats(0, intervalStats); in runPutUsageStatsTest() 148 IntervalStats intervalStats = new IntervalStats(); in runObfuscateStatsTest() local [all …]
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsDatabase.java | 840 final LongSparseArray<AtomicFile> intervalStats = mSortedStatFiles[intervalType]; in queryUsageStats() local 842 int endIndex = intervalStats.lastIndexOnOrBefore(endTime); in queryUsageStats() 851 if (intervalStats.keyAt(endIndex) == endTime) { in queryUsageStats() 863 int startIndex = intervalStats.lastIndexOnOrBefore(beginTime); in queryUsageStats() 872 final AtomicFile f = intervalStats.valueAt(i); in queryUsageStats()
|