blob: 4fac5aa7c8e771ffc2710f3d5d9f41bd4f605ddd [file] [log] [blame]
Yao Chenab273e22017-09-06 12:53:50 -07001/*
2 * Copyright (C) 2017 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Yao Chen8a8d16c2018-02-08 14:50:40 -080017#define DEBUG true // STOPSHIP if true
Joe Onorato9fc9edf2017-10-15 20:08:52 -070018#include "Log.h"
David Chen21582962017-11-01 17:32:46 -070019#include "statslog.h"
Yao Chenab273e22017-09-06 12:53:50 -070020
yro947fbce2017-11-15 22:50:23 -080021#include <android-base/file.h>
22#include <dirent.h>
Joe Onorato9fc9edf2017-10-15 20:08:52 -070023#include "StatsLogProcessor.h"
yro947fbce2017-11-15 22:50:23 -080024#include "android-base/stringprintf.h"
Yao Chenb3561512017-11-21 18:07:17 -080025#include "guardrail/StatsdStats.h"
Joe Onorato9fc9edf2017-10-15 20:08:52 -070026#include "metrics/CountMetricProducer.h"
Chenjie Yu85ed8382017-12-14 16:48:54 -080027#include "external/StatsPullerManager.h"
Joe Onorato9fc9edf2017-10-15 20:08:52 -070028#include "stats_util.h"
yro947fbce2017-11-15 22:50:23 -080029#include "storage/StorageManager.h"
Joe Onorato9fc9edf2017-10-15 20:08:52 -070030
yro00698da2017-09-15 10:06:40 -070031#include <log/log_event_list.h>
Yao Chenef99c4f2017-09-22 16:26:54 -070032#include <utils/Errors.h>
David Chen16049572018-02-01 18:27:51 -080033#include <utils/SystemClock.h>
Yao Chenab273e22017-09-06 12:53:50 -070034
35using namespace android;
yro947fbce2017-11-15 22:50:23 -080036using android::base::StringPrintf;
yrob0378b02017-11-09 20:36:25 -080037using android::util::FIELD_COUNT_REPEATED;
yro17adac92017-11-08 23:16:29 -080038using android::util::FIELD_TYPE_BOOL;
39using android::util::FIELD_TYPE_FLOAT;
40using android::util::FIELD_TYPE_INT32;
41using android::util::FIELD_TYPE_INT64;
42using android::util::FIELD_TYPE_MESSAGE;
43using android::util::FIELD_TYPE_STRING;
44using android::util::ProtoOutputStream;
Yao Chen44cf27c2017-09-14 22:32:50 -070045using std::make_unique;
46using std::unique_ptr;
47using std::vector;
Bookatz906a35c2017-09-20 15:26:44 -070048
49namespace android {
50namespace os {
51namespace statsd {
Yao Chenab273e22017-09-06 12:53:50 -070052
yro947fbce2017-11-15 22:50:23 -080053// for ConfigMetricsReportList
yro17adac92017-11-08 23:16:29 -080054const int FIELD_ID_CONFIG_KEY = 1;
yro947fbce2017-11-15 22:50:23 -080055const int FIELD_ID_REPORTS = 2;
yro17adac92017-11-08 23:16:29 -080056// for ConfigKey
57const int FIELD_ID_UID = 1;
Yangster-mac94e197c2018-01-02 16:03:03 -080058const int FIELD_ID_ID = 2;
yro947fbce2017-11-15 22:50:23 -080059// for ConfigMetricsReport
60const int FIELD_ID_METRICS = 1;
61const int FIELD_ID_UID_MAP = 2;
David Chen16049572018-02-01 18:27:51 -080062const int FIELD_ID_LAST_REPORT_NANOS = 3;
63const int FIELD_ID_CURRENT_REPORT_NANOS = 4;
yro947fbce2017-11-15 22:50:23 -080064
yro03faf092017-12-12 00:17:50 -080065#define STATS_DATA_DIR "/data/misc/stats-data"
yro17adac92017-11-08 23:16:29 -080066
yro31eb67b2017-10-24 13:33:21 -070067StatsLogProcessor::StatsLogProcessor(const sp<UidMap>& uidMap,
Yangster-mace2cd6d52017-11-09 20:38:30 -080068 const sp<AnomalyMonitor>& anomalyMonitor,
Yangster-mac20877162017-12-22 17:19:39 -080069 const long timeBaseSec,
David Chen1d7b0cd2017-11-15 14:20:04 -080070 const std::function<void(const ConfigKey&)>& sendBroadcast)
Chenjie Yu85ed8382017-12-14 16:48:54 -080071 : mUidMap(uidMap),
72 mAnomalyMonitor(anomalyMonitor),
73 mSendBroadcast(sendBroadcast),
Yangster-mac20877162017-12-22 17:19:39 -080074 mTimeBaseSec(timeBaseSec) {
yro947fbce2017-11-15 22:50:23 -080075 // On each initialization of StatsLogProcessor, check stats-data directory to see if there is
76 // any left over data to be read.
77 StorageManager::sendBroadcast(STATS_DATA_DIR, mSendBroadcast);
Chenjie Yu85ed8382017-12-14 16:48:54 -080078 StatsPullerManager statsPullerManager;
79 statsPullerManager.SetTimeBaseSec(mTimeBaseSec);
Yao Chenab273e22017-09-06 12:53:50 -070080}
81
Yao Chenef99c4f2017-09-22 16:26:54 -070082StatsLogProcessor::~StatsLogProcessor() {
Yao Chenab273e22017-09-06 12:53:50 -070083}
84
Yangster-mace2cd6d52017-11-09 20:38:30 -080085void StatsLogProcessor::onAnomalyAlarmFired(
86 const uint64_t timestampNs,
87 unordered_set<sp<const AnomalyAlarm>, SpHash<AnomalyAlarm>> anomalySet) {
Yangster-macb0d06282018-01-05 15:44:07 -080088 std::lock_guard<std::mutex> lock(mMetricsMutex);
Bookatzcc5adef22017-11-21 14:36:23 -080089 for (const auto& itr : mMetricsManagers) {
90 itr.second->onAnomalyAlarmFired(timestampNs, anomalySet);
Yangster-mace2cd6d52017-11-09 20:38:30 -080091 }
92}
93
Yao Chen8a8d16c2018-02-08 14:50:40 -080094void updateUid(Value* value, int hostUid) {
95 int uid = value->int_value;
96 if (uid != hostUid) {
97 value->setInt(hostUid);
98 }
99}
100
Yangster-macd40053e2018-01-09 16:29:22 -0800101void StatsLogProcessor::mapIsolatedUidToHostUidIfNecessaryLocked(LogEvent* event) const {
Yangster-mac68985802018-01-21 10:05:09 -0800102 if (android::util::kAtomsWithAttributionChain.find(event->GetTagId()) !=
103 android::util::kAtomsWithAttributionChain.end()) {
Yao Chen8a8d16c2018-02-08 14:50:40 -0800104 for (auto& value : *(event->getMutableValues())) {
105 if (value.mField.getPosAtDepth(0) > kAttributionField) {
106 break;
107 }
108 if (isAttributionUidField(value)) {
109 const int hostUid = mUidMap->getHostUidOrSelf(value.mValue.int_value);
110 updateUid(&value.mValue, hostUid);
111 }
Yangster-macd40053e2018-01-09 16:29:22 -0800112 }
Yao Chen8a8d16c2018-02-08 14:50:40 -0800113 } else if (android::util::kAtomsWithUidField.find(event->GetTagId()) !=
114 android::util::kAtomsWithUidField.end() &&
115 event->getValues().size() > 0 && (event->getValues())[0].mValue.getType() == INT) {
116 Value& value = (*event->getMutableValues())[0].mValue;
117 const int hostUid = mUidMap->getHostUidOrSelf(value.int_value);
118 updateUid(&value, hostUid);
Yao Chen312e8982017-12-05 15:29:03 -0800119 }
Yangster-macd40053e2018-01-09 16:29:22 -0800120}
121
122void StatsLogProcessor::onIsolatedUidChangedEventLocked(const LogEvent& event) {
123 status_t err = NO_ERROR, err2 = NO_ERROR, err3 = NO_ERROR;
124 bool is_create = event.GetBool(3, &err);
125 auto parent_uid = int(event.GetLong(1, &err2));
126 auto isolated_uid = int(event.GetLong(2, &err3));
127 if (err == NO_ERROR && err2 == NO_ERROR && err3 == NO_ERROR) {
128 if (is_create) {
129 mUidMap->assignIsolatedUid(isolated_uid, parent_uid);
130 } else {
131 mUidMap->removeIsolatedUid(isolated_uid, parent_uid);
132 }
133 } else {
134 ALOGE("Failed to parse uid in the isolated uid change event.");
135 }
136}
137
138// TODO: what if statsd service restarts? How do we know what logs are already processed before?
139void StatsLogProcessor::OnLogEvent(LogEvent* event) {
140 std::lock_guard<std::mutex> lock(mMetricsMutex);
141 StatsdStats::getInstance().noteAtomLogged(
142 event->GetTagId(), event->GetTimestampNs() / NS_PER_SEC);
143
David Chen21582962017-11-01 17:32:46 -0700144 // Hard-coded logic to update the isolated uid's in the uid-map.
Stefan Lafonae2df012017-11-14 09:17:21 -0800145 // The field numbers need to be currently updated by hand with atoms.proto
Yangster-macd40053e2018-01-09 16:29:22 -0800146 if (event->GetTagId() == android::util::ISOLATED_UID_CHANGED) {
147 onIsolatedUidChangedEventLocked(*event);
David Chencfc311d2018-01-23 17:55:54 -0800148 }
149
150 if (mMetricsManagers.empty()) {
151 return;
152 }
153
Chenjie Yufa22d652018-02-05 14:37:48 -0800154 long curTime = time(nullptr);
155 if (curTime - mLastPullerCacheClearTimeSec > StatsdStats::kPullerCacheClearIntervalSec) {
156 mStatsPullerManager.ClearPullerCacheIfNecessary(curTime);
157 mLastPullerCacheClearTimeSec = curTime;
158 }
159
David Chencfc311d2018-01-23 17:55:54 -0800160 if (event->GetTagId() != android::util::ISOLATED_UID_CHANGED) {
Yangster-macd40053e2018-01-09 16:29:22 -0800161 // Map the isolated uid to host uid if necessary.
162 mapIsolatedUidToHostUidIfNecessaryLocked(event);
163 }
164
165 // pass the event to metrics managers.
166 for (auto& pair : mMetricsManagers) {
167 pair.second->onLogEvent(*event);
168 flushIfNecessaryLocked(event->GetTimestampNs(), pair.first, *(pair.second));
David Chen21582962017-11-01 17:32:46 -0700169 }
Yao Chenab273e22017-09-06 12:53:50 -0700170}
171
Joe Onorato9fc9edf2017-10-15 20:08:52 -0700172void StatsLogProcessor::OnConfigUpdated(const ConfigKey& key, const StatsdConfig& config) {
Yangster-macb0d06282018-01-05 15:44:07 -0800173 std::lock_guard<std::mutex> lock(mMetricsMutex);
Tej Singh484524a2018-02-01 15:10:05 -0800174 VLOG("Updated configuration for key %s", key.ToString().c_str());
Yao Chend10f7b12017-12-18 12:53:50 -0800175 sp<MetricsManager> newMetricsManager = new MetricsManager(key, config, mTimeBaseSec, mUidMap);
Joe Onorato9fc9edf2017-10-15 20:08:52 -0700176 auto it = mMetricsManagers.find(key);
Yao Chen288c6002017-12-12 13:43:18 -0800177 if (it == mMetricsManagers.end() && mMetricsManagers.size() > StatsdStats::kMaxConfigCount) {
Yao Chenb3561512017-11-21 18:07:17 -0800178 ALOGE("Can't accept more configs!");
179 return;
Yao Chen44cf27c2017-09-14 22:32:50 -0700180 }
181
Yao Chencaf339d2017-10-06 16:01:10 -0700182 if (newMetricsManager->isConfigValid()) {
David Chend6896892017-10-25 11:49:03 -0700183 mUidMap->OnConfigUpdated(key);
Yangster-mace2cd6d52017-11-09 20:38:30 -0800184 newMetricsManager->setAnomalyMonitor(mAnomalyMonitor);
Yao Chen147ce602017-12-22 14:35:34 -0800185 if (newMetricsManager->shouldAddUidMapListener()) {
Yao Chend10f7b12017-12-18 12:53:50 -0800186 // We have to add listener after the MetricsManager is constructed because it's
187 // not safe to create wp or sp from this pointer inside its constructor.
188 mUidMap->addListener(newMetricsManager.get());
189 }
190 mMetricsManagers[key] = newMetricsManager;
Joe Onorato9fc9edf2017-10-15 20:08:52 -0700191 // Why doesn't this work? mMetricsManagers.insert({key, std::move(newMetricsManager)});
Yao Chenb3561512017-11-21 18:07:17 -0800192 VLOG("StatsdConfig valid");
Yao Chencaf339d2017-10-06 16:01:10 -0700193 } else {
194 // If there is any error in the config, don't use it.
Yao Chenb3561512017-11-21 18:07:17 -0800195 ALOGE("StatsdConfig NOT valid");
Yao Chencaf339d2017-10-06 16:01:10 -0700196 }
yro00698da2017-09-15 10:06:40 -0700197}
Bookatz906a35c2017-09-20 15:26:44 -0700198
Yangster7c334a12017-11-22 14:24:24 -0800199size_t StatsLogProcessor::GetMetricsSize(const ConfigKey& key) const {
Yangster-macb0d06282018-01-05 15:44:07 -0800200 std::lock_guard<std::mutex> lock(mMetricsMutex);
Yao Chen729093d2017-10-16 10:33:26 -0700201 auto it = mMetricsManagers.find(key);
202 if (it == mMetricsManagers.end()) {
203 ALOGW("Config source %s does not exist", key.ToString().c_str());
David Chen1d7b0cd2017-11-15 14:20:04 -0800204 return 0;
Yao Chen729093d2017-10-16 10:33:26 -0700205 }
David Chen1d7b0cd2017-11-15 14:20:04 -0800206 return it->second->byteSize();
207}
208
Yao Chen884c8c12018-01-26 10:36:25 -0800209void StatsLogProcessor::dumpStates(FILE* out, bool verbose) {
210 std::lock_guard<std::mutex> lock(mMetricsMutex);
211 fprintf(out, "MetricsManager count: %lu\n", (unsigned long)mMetricsManagers.size());
212 for (auto metricsManager : mMetricsManagers) {
213 metricsManager.second->dumpStates(out, verbose);
214 }
215}
216
Yao Chen8a8d16c2018-02-08 14:50:40 -0800217void StatsLogProcessor::onDumpReport(const ConfigKey& key, const uint64_t dumpTimeStampNs,
218 vector<uint8_t>* outData) {
Yangster-macb0d06282018-01-05 15:44:07 -0800219 std::lock_guard<std::mutex> lock(mMetricsMutex);
Yao Chen8a8d16c2018-02-08 14:50:40 -0800220 onDumpReportLocked(key, dumpTimeStampNs, outData);
Yangster-mac20877162017-12-22 17:19:39 -0800221}
222
Yao Chen8a8d16c2018-02-08 14:50:40 -0800223void StatsLogProcessor::onDumpReportLocked(const ConfigKey& key, const uint64_t dumpTimeStampNs,
224 vector<uint8_t>* outData) {
David Chen1d7b0cd2017-11-15 14:20:04 -0800225 auto it = mMetricsManagers.find(key);
226 if (it == mMetricsManagers.end()) {
227 ALOGW("Config source %s does not exist", key.ToString().c_str());
228 return;
229 }
230
231 // This allows another broadcast to be sent within the rate-limit period if we get close to
232 // filling the buffer again soon.
David Chen1d7b0cd2017-11-15 14:20:04 -0800233 mLastBroadcastTimes.erase(key);
Yao Chen729093d2017-10-16 10:33:26 -0700234
yro17adac92017-11-08 23:16:29 -0800235 ProtoOutputStream proto;
236
yro947fbce2017-11-15 22:50:23 -0800237 // Start of ConfigKey.
yro17adac92017-11-08 23:16:29 -0800238 long long configKeyToken = proto.start(FIELD_TYPE_MESSAGE | FIELD_ID_CONFIG_KEY);
239 proto.write(FIELD_TYPE_INT32 | FIELD_ID_UID, key.GetUid());
Yangster-mac94e197c2018-01-02 16:03:03 -0800240 proto.write(FIELD_TYPE_INT64 | FIELD_ID_ID, (long long)key.GetId());
yro17adac92017-11-08 23:16:29 -0800241 proto.end(configKeyToken);
yro947fbce2017-11-15 22:50:23 -0800242 // End of ConfigKey.
yro17adac92017-11-08 23:16:29 -0800243
yro947fbce2017-11-15 22:50:23 -0800244 // Start of ConfigMetricsReport (reports).
245 long long reportsToken =
246 proto.start(FIELD_TYPE_MESSAGE | FIELD_COUNT_REPEATED | FIELD_ID_REPORTS);
247
248 // First, fill in ConfigMetricsReport using current data on memory, which
249 // starts from filling in StatsLogReport's.
Yao Chen8a8d16c2018-02-08 14:50:40 -0800250 it->second->onDumpReport(dumpTimeStampNs, &proto);
yro17adac92017-11-08 23:16:29 -0800251
252 // Fill in UidMap.
253 auto uidMap = mUidMap->getOutput(key);
254 const int uidMapSize = uidMap.ByteSize();
255 char uidMapBuffer[uidMapSize];
256 uidMap.SerializeToArray(&uidMapBuffer[0], uidMapSize);
257 proto.write(FIELD_TYPE_MESSAGE | FIELD_ID_UID_MAP, uidMapBuffer, uidMapSize);
258
David Chen16049572018-02-01 18:27:51 -0800259 // Fill in the timestamps.
260 proto.write(FIELD_TYPE_INT64 | FIELD_ID_LAST_REPORT_NANOS,
261 (long long)it->second->getLastReportTimeNs());
262 proto.write(FIELD_TYPE_INT64 | FIELD_ID_CURRENT_REPORT_NANOS,
263 (long long)::android::elapsedRealtimeNano());
264
yro947fbce2017-11-15 22:50:23 -0800265 // End of ConfigMetricsReport (reports).
266 proto.end(reportsToken);
267
268 // Then, check stats-data directory to see there's any file containing
269 // ConfigMetricsReport from previous shutdowns to concatenate to reports.
yro98a28502018-01-18 17:00:14 -0800270 StorageManager::appendConfigMetricsReport(proto);
yro947fbce2017-11-15 22:50:23 -0800271
David Chen1d7b0cd2017-11-15 14:20:04 -0800272 if (outData != nullptr) {
273 outData->clear();
274 outData->resize(proto.size());
275 size_t pos = 0;
276 auto iter = proto.data();
277 while (iter.readBuffer() != NULL) {
278 size_t toRead = iter.currentToRead();
279 std::memcpy(&((*outData)[pos]), iter.readBuffer(), toRead);
280 pos += toRead;
281 iter.rp()->move(toRead);
282 }
yro17adac92017-11-08 23:16:29 -0800283 }
Yao Chen8a8d16c2018-02-08 14:50:40 -0800284
Yao Chen69f1baf2017-11-27 17:25:36 -0800285 StatsdStats::getInstance().noteMetricsReportSent(key);
Yao Chen729093d2017-10-16 10:33:26 -0700286}
287
Joe Onorato9fc9edf2017-10-15 20:08:52 -0700288void StatsLogProcessor::OnConfigRemoved(const ConfigKey& key) {
Yangster-macb0d06282018-01-05 15:44:07 -0800289 std::lock_guard<std::mutex> lock(mMetricsMutex);
Joe Onorato9fc9edf2017-10-15 20:08:52 -0700290 auto it = mMetricsManagers.find(key);
291 if (it != mMetricsManagers.end()) {
Joe Onorato9fc9edf2017-10-15 20:08:52 -0700292 mMetricsManagers.erase(it);
David Chend6896892017-10-25 11:49:03 -0700293 mUidMap->OnConfigRemoved(key);
Joe Onorato9fc9edf2017-10-15 20:08:52 -0700294 }
Yao Chenb3561512017-11-21 18:07:17 -0800295 StatsdStats::getInstance().noteConfigRemoved(key);
David Chen1d7b0cd2017-11-15 14:20:04 -0800296
David Chen1d7b0cd2017-11-15 14:20:04 -0800297 mLastBroadcastTimes.erase(key);
Chenjie Yufa22d652018-02-05 14:37:48 -0800298
299 if (mMetricsManagers.empty()) {
300 mStatsPullerManager.ForceClearPullerCache();
301 }
Joe Onorato9fc9edf2017-10-15 20:08:52 -0700302}
303
Yangster-macb0d06282018-01-05 15:44:07 -0800304void StatsLogProcessor::flushIfNecessaryLocked(
305 uint64_t timestampNs, const ConfigKey& key, MetricsManager& metricsManager) {
David Chend9269e22017-12-05 13:43:51 -0800306 auto lastCheckTime = mLastByteSizeTimes.find(key);
307 if (lastCheckTime != mLastByteSizeTimes.end()) {
308 if (timestampNs - lastCheckTime->second < StatsdStats::kMinByteSizeCheckPeriodNs) {
309 return;
310 }
311 }
312
313 // We suspect that the byteSize() computation is expensive, so we set a rate limit.
314 size_t totalBytes = metricsManager.byteSize();
315 mLastByteSizeTimes[key] = timestampNs;
316 if (totalBytes >
317 StatsdStats::kMaxMetricsBytesPerConfig) { // Too late. We need to start clearing data.
Yao Chen288c6002017-12-12 13:43:18 -0800318 // TODO(b/70571383): By 12/15/2017 add API to drop data directly
319 ProtoOutputStream proto;
Yao Chen8a8d16c2018-02-08 14:50:40 -0800320 metricsManager.onDumpReport(time(nullptr) * NS_PER_SEC, &proto);
David Chen12942952017-12-04 14:28:43 -0800321 StatsdStats::getInstance().noteDataDropped(key);
322 VLOG("StatsD had to toss out metrics for %s", key.ToString().c_str());
David Chend9269e22017-12-05 13:43:51 -0800323 } else if (totalBytes > .9 * StatsdStats::kMaxMetricsBytesPerConfig) {
324 // Send broadcast so that receivers can pull data.
325 auto lastBroadcastTime = mLastBroadcastTimes.find(key);
326 if (lastBroadcastTime != mLastBroadcastTimes.end()) {
327 if (timestampNs - lastBroadcastTime->second < StatsdStats::kMinBroadcastPeriodNs) {
328 VLOG("StatsD would've sent a broadcast but the rate limit stopped us.");
David Chen1d7b0cd2017-11-15 14:20:04 -0800329 return;
330 }
331 }
332 mLastBroadcastTimes[key] = timestampNs;
Yao Chenb3561512017-11-21 18:07:17 -0800333 VLOG("StatsD requesting broadcast for %s", key.ToString().c_str());
David Chen1d7b0cd2017-11-15 14:20:04 -0800334 mSendBroadcast(key);
Yao Chenb3561512017-11-21 18:07:17 -0800335 StatsdStats::getInstance().noteBroadcastSent(key);
yro31eb67b2017-10-24 13:33:21 -0700336 }
337}
338
yro947fbce2017-11-15 22:50:23 -0800339void StatsLogProcessor::WriteDataToDisk() {
Yangster-macb0d06282018-01-05 15:44:07 -0800340 std::lock_guard<std::mutex> lock(mMetricsMutex);
yro947fbce2017-11-15 22:50:23 -0800341 for (auto& pair : mMetricsManagers) {
342 const ConfigKey& key = pair.first;
343 vector<uint8_t> data;
Yao Chen8a8d16c2018-02-08 14:50:40 -0800344 onDumpReportLocked(key, time(nullptr) * NS_PER_SEC, &data);
yro947fbce2017-11-15 22:50:23 -0800345 // TODO: Add a guardrail to prevent accumulation of file on disk.
yro98a28502018-01-18 17:00:14 -0800346 string file_name = StringPrintf("%s/%ld_%d_%lld", STATS_DATA_DIR, time(nullptr),
347 key.GetUid(), (long long)key.GetId());
yro947fbce2017-11-15 22:50:23 -0800348 StorageManager::writeFile(file_name.c_str(), &data[0], data.size());
349 }
350}
351
Yao Chenef99c4f2017-09-22 16:26:54 -0700352} // namespace statsd
353} // namespace os
354} // namespace android