Home
last modified time | relevance | path

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

/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsXmlV1.java84 private static void loadUsageStats(XmlPullParser parser, IntervalStats statsOut) in loadUsageStats() argument
90 final UsageStats stats = statsOut.getOrCreateUsageStats(pkg); in loadUsageStats()
93 stats.mLastTimeUsed = statsOut.beginTime + XmlUtils.readLongAttribute( in loadUsageStats()
97 stats.mLastTimeVisible = statsOut.beginTime + XmlUtils.readLongAttribute( in loadUsageStats()
104 stats.mLastTimeForegroundServiceUsed = statsOut.beginTime + XmlUtils.readLongAttribute( in loadUsageStats()
183 private static void loadConfigStats(XmlPullParser parser, IntervalStats statsOut) in loadConfigStats() argument
188 final ConfigurationStats configStats = statsOut.getOrCreateConfigurationStats(config); in loadConfigStats()
191 configStats.mLastTimeActive = statsOut.beginTime + XmlUtils.readLongAttribute( in loadConfigStats()
197 statsOut.activeConfiguration = configStats.mConfiguration; in loadConfigStats()
201 private static void loadEvent(XmlPullParser parser, IntervalStats statsOut) in loadEvent() argument
[all …]
DUsageStatsProto.java64 IntervalStats statsOut, List<String> stringPool) in loadUsageStats() argument
72 stats = statsOut.getOrCreateUsageStats( in loadUsageStats()
76 stats = statsOut.getOrCreateUsageStats( in loadUsageStats()
87 UsageStats tempPackage = statsOut.getOrCreateUsageStats( in loadUsageStats()
97 UsageStats tempPackageIndex = statsOut.getOrCreateUsageStats(stringPool.get( in loadUsageStats()
107 stats.mLastTimeUsed = statsOut.beginTime + proto.readLong( in loadUsageStats()
134 stats.mLastTimeForegroundServiceUsed = statsOut.beginTime + proto.readLong( in loadUsageStats()
143 stats.mLastTimeVisible = statsOut.beginTime + proto.readLong( in loadUsageStats()
151 stats.mLastTimeComponentUsed = statsOut.beginTime + proto.readLong( in loadUsageStats()
250 IntervalStats statsOut) throws IOException { in loadConfigStats() argument
[all …]
DUsageStatsXml.java35 public static void read(InputStream in, IntervalStats statsOut) throws IOException { in read() argument
44 UsageStatsXmlV1.read(parser, statsOut); in read()
DUsageStatsDatabase.java1097 private void readLocked(AtomicFile file, IntervalStats statsOut, boolean skipEvents) in readLocked() argument
1103 readLocked(file, statsOut, mCurrentVersion, mPackagesTokenData, skipEvents); in readLocked()
1113 private static boolean readLocked(AtomicFile file, IntervalStats statsOut, int version, in readLocked() argument
1120 statsOut.beginTime = parseBeginTime(file); in readLocked()
1121 dataOmitted = readLocked(in, statsOut, version, packagesTokenData, skipEvents); in readLocked()
1122 statsOut.lastTimeSaved = file.getLastModifiedTime(); in readLocked()
1144 private static boolean readLocked(InputStream in, IntervalStats statsOut, int version, in readLocked() argument
1153 UsageStatsXml.read(in, statsOut); in readLocked()
1160 UsageStatsProto.read(in, statsOut); in readLocked()
1167 UsageStatsProtoV2.read(in, statsOut, skipEvents); in readLocked()
[all …]