Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/src/guardrail/
DStatsdStats.cpp149 shared_ptr<ConfigStats> configStats = std::make_shared<ConfigStats>(); in noteConfigReceived() local
150 configStats->uid = key.GetUid(); in noteConfigReceived()
151 configStats->id = key.GetId(); in noteConfigReceived()
152 configStats->creation_time_sec = nowTimeSec; in noteConfigReceived()
153 configStats->metric_count = metricsCount; in noteConfigReceived()
154 configStats->condition_count = conditionsCount; in noteConfigReceived()
155 configStats->matcher_count = matchersCount; in noteConfigReceived()
156 configStats->alert_count = alertsCount; in noteConfigReceived()
157 configStats->is_valid = isValid; in noteConfigReceived()
159 configStats->annotations.emplace_back(v); in noteConfigReceived()
[all …]
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/
DStatsdStatsRecorder.java52 StatsdStatsReport.ConfigStats configStats = metadata.getConfigStats(numConfigs - 1); in stopRecording() local
54 .append(configStats.getMetricCount() + "\n") in stopRecording()
56 .append(configStats.getConditionCount() + "\n") in stopRecording()
58 .append(configStats.getMatcherCount() + "\n"); in stopRecording()
/frameworks/base/cmds/statsd/tests/guardrail/
DStatsdStats_test.cpp401 const auto& configStats = stats.mConfigStats[key]; in TEST() local
404 EXPECT_EQ(maxCount, configStats->broadcast_sent_time_sec.size()); in TEST()
405 EXPECT_EQ(maxCount, configStats->data_drop_time_sec.size()); in TEST()
406 EXPECT_EQ(maxCount, configStats->dump_report_stats.size()); in TEST()
407 EXPECT_EQ(maxCount, configStats->activation_time_sec.size()); in TEST()
408 EXPECT_EQ(maxCount, configStats->deactivation_time_sec.size()); in TEST()
411 EXPECT_EQ(1, configStats->broadcast_sent_time_sec.front()); in TEST()
412 EXPECT_EQ(1, configStats->data_drop_bytes.front()); in TEST()
413 EXPECT_EQ(1, configStats->dump_report_stats.front().first); in TEST()
414 EXPECT_EQ(1, configStats->activation_time_sec.front()); in TEST()
[all …]
/frameworks/base/services/usage/java/com/android/server/usage/
DIntervalStats.java138 ConfigurationStats configStats = configurations.get(config); in getOrCreateConfigurationStats() local
139 if (configStats == null) { in getOrCreateConfigurationStats()
140 configStats = new ConfigurationStats(); in getOrCreateConfigurationStats()
141 configStats.mBeginTimeStamp = beginTime; in getOrCreateConfigurationStats()
142 configStats.mEndTimeStamp = endTime; in getOrCreateConfigurationStats()
143 configStats.mConfiguration = config; in getOrCreateConfigurationStats()
144 configurations.put(config, configStats); in getOrCreateConfigurationStats()
146 return configStats; in getOrCreateConfigurationStats()
363 ConfigurationStats configStats = getOrCreateConfigurationStats(config); in updateConfigurationStats() local
364 configStats.mLastTimeActive = timeStamp; in updateConfigurationStats()
[all …]
DUsageStatsProto.java246 ConfigurationStats configStats; in loadConfigStats() local
251 configStats = statsOut.getOrCreateConfigurationStats(config); in loadConfigStats()
255 configStats = new ConfigurationStats(); in loadConfigStats()
263 temp.mLastTimeActive = configStats.mLastTimeActive; in loadConfigStats()
264 temp.mTotalTimeActive = configStats.mTotalTimeActive; in loadConfigStats()
265 temp.mActivationCount = configStats.mActivationCount; in loadConfigStats()
266 configStats = temp; in loadConfigStats()
269 configStats.mLastTimeActive = statsOut.beginTime + proto.readLong( in loadConfigStats()
273 configStats.mTotalTimeActive = proto.readLong( in loadConfigStats()
277 configStats.mActivationCount = proto.readInt( in loadConfigStats()
[all …]
DUsageStatsXmlV1.java189 final ConfigurationStats configStats = statsOut.getOrCreateConfigurationStats(config); in loadConfigStats() local
192 configStats.mLastTimeActive = statsOut.beginTime + XmlUtils.readLongAttribute( in loadConfigStats()
195 configStats.mTotalTimeActive = XmlUtils.readLongAttribute(parser, TOTAL_TIME_ACTIVE_ATTR); in loadConfigStats()
196 configStats.mActivationCount = XmlUtils.readIntAttribute(parser, COUNT_ATTR); in loadConfigStats()
198 statsOut.activeConfiguration = configStats.mConfiguration; in loadConfigStats()
314 final ConfigurationStats configStats, boolean isActive) throws IOException { in writeConfigStats() argument
319 configStats.mLastTimeActive - stats.beginTime); in writeConfigStats()
321 XmlUtils.writeLongAttribute(xml, TOTAL_TIME_ACTIVE_ATTR, configStats.mTotalTimeActive); in writeConfigStats()
322 XmlUtils.writeIntAttribute(xml, COUNT_ATTR, configStats.mActivationCount); in writeConfigStats()
328 Configuration.writeXmlAttrs(xml, configStats.mConfiguration); in writeConfigStats()
DUserUsageStatsService.java889 final ArrayMap<Configuration, ConfigurationStats> configStats = stats.configurations; in printIntervalStats() local
890 final int configCount = configStats.size(); in printIntervalStats()
892 final ConfigurationStats config = configStats.valueAt(i); in printIntervalStats()