Home
last modified time | relevance | path

Searched refs:configStats (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsProto.java254 ConfigurationStats configStats; in loadConfigStats() local
259 configStats = statsOut.getOrCreateConfigurationStats(config); in loadConfigStats()
263 configStats = new ConfigurationStats(); in loadConfigStats()
271 temp.mLastTimeActive = configStats.mLastTimeActive; in loadConfigStats()
272 temp.mTotalTimeActive = configStats.mTotalTimeActive; in loadConfigStats()
273 temp.mActivationCount = configStats.mActivationCount; in loadConfigStats()
274 configStats = temp; in loadConfigStats()
277 configStats.mLastTimeActive = statsOut.beginTime + proto.readLong( in loadConfigStats()
281 configStats.mTotalTimeActive = proto.readLong( in loadConfigStats()
285 configStats.mActivationCount = proto.readInt( in loadConfigStats()
[all …]
DIntervalStats.java151 ConfigurationStats configStats = configurations.get(config); in getOrCreateConfigurationStats() local
152 if (configStats == null) { in getOrCreateConfigurationStats()
153 configStats = new ConfigurationStats(); in getOrCreateConfigurationStats()
154 configStats.mBeginTimeStamp = beginTime; in getOrCreateConfigurationStats()
155 configStats.mEndTimeStamp = endTime; in getOrCreateConfigurationStats()
156 configStats.mConfiguration = config; in getOrCreateConfigurationStats()
157 configurations.put(config, configStats); in getOrCreateConfigurationStats()
159 return configStats; in getOrCreateConfigurationStats()
381 ConfigurationStats configStats = getOrCreateConfigurationStats(config); in updateConfigurationStats() local
382 configStats.mLastTimeActive = timeStamp; in updateConfigurationStats()
[all …]
DUsageStatsProtoV2.java196 ConfigurationStats configStats = new ConfigurationStats(); in loadConfigStats() local
200 configStats = stats.getOrCreateConfigurationStats(config); in loadConfigStats()
209 temp.mLastTimeActive = configStats.mLastTimeActive; in loadConfigStats()
210 temp.mTotalTimeActive = configStats.mTotalTimeActive; in loadConfigStats()
211 temp.mActivationCount = configStats.mActivationCount; in loadConfigStats()
212 configStats = temp; in loadConfigStats()
215 configStats.mLastTimeActive = stats.beginTime + proto.readLong( in loadConfigStats()
219 configStats.mTotalTimeActive = proto.readLong( in loadConfigStats()
223 configStats.mActivationCount = proto.readInt( in loadConfigStats()
232 stats.activeConfiguration = configStats.mConfiguration; in loadConfigStats()
[all …]
DUsageStatsXmlV1.java188 final ConfigurationStats configStats = statsOut.getOrCreateConfigurationStats(config); in loadConfigStats() local
191 configStats.mLastTimeActive = statsOut.beginTime + XmlUtils.readLongAttribute( in loadConfigStats()
194 configStats.mTotalTimeActive = XmlUtils.readLongAttribute(parser, TOTAL_TIME_ACTIVE_ATTR); in loadConfigStats()
195 configStats.mActivationCount = XmlUtils.readIntAttribute(parser, COUNT_ATTR); in loadConfigStats()
197 statsOut.activeConfiguration = configStats.mConfiguration; in loadConfigStats()
DUserUsageStatsService.java1263 final ArrayMap<Configuration, ConfigurationStats> configStats = stats.configurations; in printIntervalStats() local
1264 final int configCount = configStats.size(); in printIntervalStats()
1266 final ConfigurationStats config = configStats.valueAt(i); in printIntervalStats()