blob: b5cb3cbb5768210d568b4cba45de5c411ce6eb86 [file] [log] [blame]
Prabir Pradhanaddf8e92023-04-06 00:28:48 +00001/*
2 * Copyright 2023 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
17#define LOG_TAG "InputDeviceMetricsCollector"
18#include "InputDeviceMetricsCollector.h"
19
Asmita Poddar631a14e2023-10-03 10:22:07 +000020#include "InputDeviceMetricsSource.h"
Prabir Pradhanae10ee62023-05-12 19:44:18 +000021
Prabir Pradhan852db892023-04-06 22:16:44 +000022#include <android-base/stringprintf.h>
23#include <input/PrintTools.h>
Prabir Pradhan852db892023-04-06 22:16:44 +000024
Prabir Pradhanaddf8e92023-04-06 00:28:48 +000025namespace android {
26
Prabir Pradhan852db892023-04-06 22:16:44 +000027using android::base::StringPrintf;
28using std::chrono::nanoseconds;
Prabir Pradhan44293792023-05-08 19:37:44 +000029using std::chrono_literals::operator""ns;
Prabir Pradhan852db892023-04-06 22:16:44 +000030
31namespace {
32
Prabir Pradhan7adabad2023-06-28 16:16:27 +000033constexpr nanoseconds DEFAULT_USAGE_SESSION_TIMEOUT = std::chrono::minutes(2);
Prabir Pradhan852db892023-04-06 22:16:44 +000034
35/**
36 * Log debug messages about metrics events logged to statsd.
37 * Enable this via "adb shell setprop log.tag.InputDeviceMetricsCollector DEBUG" (requires restart)
38 */
39const bool DEBUG = __android_log_is_loggable(ANDROID_LOG_DEBUG, LOG_TAG, ANDROID_LOG_INFO);
40
Prabir Pradhan047695b2023-06-30 01:48:45 +000041constexpr size_t INTERACTIONS_QUEUE_CAPACITY = 500;
42
Prabir Pradhan67d09ca2023-09-08 20:28:55 +000043int32_t linuxBusToInputDeviceBusEnum(int32_t linuxBus, bool isUsiStylus) {
44 if (isUsiStylus) {
45 // This is a stylus connected over the Universal Stylus Initiative (USI) protocol.
46 // For metrics purposes, we treat this protocol as a separate bus.
47 return util::INPUT_DEVICE_USAGE_REPORTED__DEVICE_BUS__USI;
48 }
49
Harry Cuttsa34de522023-06-06 15:52:54 +000050 // When adding cases to this switch, also add them to the copy of this method in
51 // TouchpadInputMapper.cpp.
52 // TODO(b/286394420): deduplicate this method with the one in TouchpadInputMapper.cpp.
Prabir Pradhan852db892023-04-06 22:16:44 +000053 switch (linuxBus) {
54 case BUS_USB:
55 return util::INPUT_DEVICE_USAGE_REPORTED__DEVICE_BUS__USB;
56 case BUS_BLUETOOTH:
57 return util::INPUT_DEVICE_USAGE_REPORTED__DEVICE_BUS__BLUETOOTH;
58 default:
59 return util::INPUT_DEVICE_USAGE_REPORTED__DEVICE_BUS__OTHER;
60 }
61}
62
63class : public InputDeviceMetricsLogger {
64 nanoseconds getCurrentTime() override { return nanoseconds(systemTime(SYSTEM_TIME_MONOTONIC)); }
65
Prabir Pradhan0dd48ae2023-09-08 21:33:51 +000066 void logInputDeviceUsageReported(const MetricsDeviceInfo& info,
Prabir Pradhanaff13032023-04-07 22:25:03 +000067 const DeviceUsageReport& report) override {
Prabir Pradhan852db892023-04-06 22:16:44 +000068 const int32_t durationMillis =
Prabir Pradhanaff13032023-04-07 22:25:03 +000069 std::chrono::duration_cast<std::chrono::milliseconds>(report.usageDuration).count();
Prabir Pradhan852db892023-04-06 22:16:44 +000070 const static std::vector<int32_t> empty;
71
Prabir Pradhan0dd48ae2023-09-08 21:33:51 +000072 ALOGD_IF(DEBUG, "Usage session reported for device id: %d", info.deviceId);
Prabir Pradhan852db892023-04-06 22:16:44 +000073 ALOGD_IF(DEBUG, " Total duration: %dms", durationMillis);
Prabir Pradhanaff13032023-04-07 22:25:03 +000074 ALOGD_IF(DEBUG, " Source breakdown:");
75
76 std::vector<int32_t> sources;
77 std::vector<int32_t> durationsPerSource;
78 for (auto& [src, dur] : report.sourceBreakdown) {
79 sources.push_back(ftl::to_underlying(src));
80 int32_t durMillis = std::chrono::duration_cast<std::chrono::milliseconds>(dur).count();
81 durationsPerSource.emplace_back(durMillis);
82 ALOGD_IF(DEBUG, " - usageSource: %s\t duration: %dms",
83 ftl::enum_string(src).c_str(), durMillis);
84 }
Prabir Pradhan852db892023-04-06 22:16:44 +000085
Prabir Pradhan44293792023-05-08 19:37:44 +000086 ALOGD_IF(DEBUG, " Uid breakdown:");
87
88 std::vector<int32_t> uids;
89 std::vector<int32_t> durationsPerUid;
90 for (auto& [uid, dur] : report.uidBreakdown) {
Prabir Pradhan8a5c41d2023-06-08 19:13:46 +000091 uids.push_back(uid.val());
Prabir Pradhan44293792023-05-08 19:37:44 +000092 int32_t durMillis = std::chrono::duration_cast<std::chrono::milliseconds>(dur).count();
93 durationsPerUid.push_back(durMillis);
Prabir Pradhan8a5c41d2023-06-08 19:13:46 +000094 ALOGD_IF(DEBUG, " - uid: %s\t duration: %dms", uid.toString().c_str(),
95 durMillis);
Prabir Pradhan44293792023-05-08 19:37:44 +000096 }
Prabir Pradhan0dd48ae2023-09-08 21:33:51 +000097 util::stats_write(util::INPUTDEVICE_USAGE_REPORTED, info.vendor, info.product, info.version,
98 linuxBusToInputDeviceBusEnum(info.bus, info.isUsiStylus), durationMillis,
99 sources, durationsPerSource, uids, durationsPerUid);
Prabir Pradhan852db892023-04-06 22:16:44 +0000100 }
101} sStatsdLogger;
102
103bool isIgnoredInputDeviceId(int32_t deviceId) {
104 switch (deviceId) {
105 case INVALID_INPUT_DEVICE_ID:
106 case VIRTUAL_KEYBOARD_ID:
107 return true;
108 default:
109 return false;
110 }
111}
112
113} // namespace
114
Prabir Pradhanaddf8e92023-04-06 00:28:48 +0000115InputDeviceMetricsCollector::InputDeviceMetricsCollector(InputListenerInterface& listener)
Prabir Pradhan852db892023-04-06 22:16:44 +0000116 : InputDeviceMetricsCollector(listener, sStatsdLogger, DEFAULT_USAGE_SESSION_TIMEOUT) {}
117
118InputDeviceMetricsCollector::InputDeviceMetricsCollector(InputListenerInterface& listener,
119 InputDeviceMetricsLogger& logger,
120 nanoseconds usageSessionTimeout)
Prabir Pradhan047695b2023-06-30 01:48:45 +0000121 : mNextListener(listener),
122 mLogger(logger),
123 mUsageSessionTimeout(usageSessionTimeout),
124 mInteractionsQueue(INTERACTIONS_QUEUE_CAPACITY) {}
Prabir Pradhanaddf8e92023-04-06 00:28:48 +0000125
126void InputDeviceMetricsCollector::notifyInputDevicesChanged(
127 const NotifyInputDevicesChangedArgs& args) {
Prabir Pradhan95019ac2023-12-06 22:38:21 +0000128 {
129 std::scoped_lock lock(mLock);
130 reportCompletedSessions();
131 onInputDevicesChanged(args.inputDeviceInfos);
132 }
Prabir Pradhanaddf8e92023-04-06 00:28:48 +0000133 mNextListener.notify(args);
134}
135
136void InputDeviceMetricsCollector::notifyConfigurationChanged(
137 const NotifyConfigurationChangedArgs& args) {
Prabir Pradhan95019ac2023-12-06 22:38:21 +0000138 {
139 std::scoped_lock lock(mLock);
140 reportCompletedSessions();
141 }
Prabir Pradhanaddf8e92023-04-06 00:28:48 +0000142 mNextListener.notify(args);
143}
144
145void InputDeviceMetricsCollector::notifyKey(const NotifyKeyArgs& args) {
Prabir Pradhan95019ac2023-12-06 22:38:21 +0000146 {
147 std::scoped_lock lock(mLock);
148 reportCompletedSessions();
149 const SourceProvider getSources = [&args](const MetricsDeviceInfo& info) {
150 return std::set{getUsageSourceForKeyArgs(info.keyboardType, args)};
151 };
152 onInputDeviceUsage(DeviceId{args.deviceId}, nanoseconds(args.eventTime), getSources);
153 }
Prabir Pradhanaddf8e92023-04-06 00:28:48 +0000154 mNextListener.notify(args);
155}
156
157void InputDeviceMetricsCollector::notifyMotion(const NotifyMotionArgs& args) {
Prabir Pradhan95019ac2023-12-06 22:38:21 +0000158 {
159 std::scoped_lock lock(mLock);
160 reportCompletedSessions();
161 onInputDeviceUsage(DeviceId{args.deviceId}, nanoseconds(args.eventTime),
162 [&args](const auto&) { return getUsageSourcesForMotionArgs(args); });
163 }
Prabir Pradhan852db892023-04-06 22:16:44 +0000164
Prabir Pradhanaddf8e92023-04-06 00:28:48 +0000165 mNextListener.notify(args);
166}
167
168void InputDeviceMetricsCollector::notifySwitch(const NotifySwitchArgs& args) {
Prabir Pradhan95019ac2023-12-06 22:38:21 +0000169 {
170 std::scoped_lock lock(mLock);
171 reportCompletedSessions();
172 }
Prabir Pradhanaddf8e92023-04-06 00:28:48 +0000173 mNextListener.notify(args);
174}
175
176void InputDeviceMetricsCollector::notifySensor(const NotifySensorArgs& args) {
Prabir Pradhan95019ac2023-12-06 22:38:21 +0000177 {
178 std::scoped_lock lock(mLock);
179 reportCompletedSessions();
180 }
Prabir Pradhanaddf8e92023-04-06 00:28:48 +0000181 mNextListener.notify(args);
182}
183
184void InputDeviceMetricsCollector::notifyVibratorState(const NotifyVibratorStateArgs& args) {
Prabir Pradhan95019ac2023-12-06 22:38:21 +0000185 {
186 std::scoped_lock lock(mLock);
187 reportCompletedSessions();
188 }
Prabir Pradhanaddf8e92023-04-06 00:28:48 +0000189 mNextListener.notify(args);
190}
191
192void InputDeviceMetricsCollector::notifyDeviceReset(const NotifyDeviceResetArgs& args) {
Prabir Pradhan95019ac2023-12-06 22:38:21 +0000193 {
194 std::scoped_lock lock(mLock);
195 reportCompletedSessions();
196 }
Prabir Pradhanaddf8e92023-04-06 00:28:48 +0000197 mNextListener.notify(args);
198}
199
200void InputDeviceMetricsCollector::notifyPointerCaptureChanged(
201 const NotifyPointerCaptureChangedArgs& args) {
Prabir Pradhan95019ac2023-12-06 22:38:21 +0000202 {
203 std::scoped_lock lock(mLock);
204 reportCompletedSessions();
205 }
Prabir Pradhanaddf8e92023-04-06 00:28:48 +0000206 mNextListener.notify(args);
207}
208
Prabir Pradhan8ede1d12023-05-08 19:37:44 +0000209void InputDeviceMetricsCollector::notifyDeviceInteraction(int32_t deviceId, nsecs_t timestamp,
Prabir Pradhan8a5c41d2023-06-08 19:13:46 +0000210 const std::set<Uid>& uids) {
Prabir Pradhan047695b2023-06-30 01:48:45 +0000211 if (isIgnoredInputDeviceId(deviceId)) {
212 return;
213 }
Prabir Pradhan95019ac2023-12-06 22:38:21 +0000214 std::scoped_lock lock(mLock);
Prabir Pradhan8a5c41d2023-06-08 19:13:46 +0000215 mInteractionsQueue.push(DeviceId{deviceId}, timestamp, uids);
Prabir Pradhan8ede1d12023-05-08 19:37:44 +0000216}
217
Prabir Pradhanaddf8e92023-04-06 00:28:48 +0000218void InputDeviceMetricsCollector::dump(std::string& dump) {
Prabir Pradhan95019ac2023-12-06 22:38:21 +0000219 std::scoped_lock lock(mLock);
Prabir Pradhanaddf8e92023-04-06 00:28:48 +0000220 dump += "InputDeviceMetricsCollector:\n";
Prabir Pradhan852db892023-04-06 22:16:44 +0000221
222 dump += " Logged device IDs: " + dumpMapKeys(mLoggedDeviceInfos, &toString) + "\n";
223 dump += " Devices with active usage sessions: " +
224 dumpMapKeys(mActiveUsageSessions, &toString) + "\n";
225}
226
Prabir Pradhan95019ac2023-12-06 22:38:21 +0000227void InputDeviceMetricsCollector::monitor() {
228 std::scoped_lock lock(mLock);
229}
230
Prabir Pradhan852db892023-04-06 22:16:44 +0000231void InputDeviceMetricsCollector::onInputDevicesChanged(const std::vector<InputDeviceInfo>& infos) {
Prabir Pradhan0dd48ae2023-09-08 21:33:51 +0000232 std::map<DeviceId, MetricsDeviceInfo> newDeviceInfos;
Prabir Pradhan852db892023-04-06 22:16:44 +0000233
234 for (const InputDeviceInfo& info : infos) {
235 if (isIgnoredInputDeviceId(info.getId())) {
236 continue;
237 }
Prabir Pradhan0dd48ae2023-09-08 21:33:51 +0000238 const auto& i = info.getIdentifier();
239 newDeviceInfos.emplace(info.getId(),
240 MetricsDeviceInfo{
241 .deviceId = info.getId(),
242 .vendor = i.vendor,
243 .product = i.product,
244 .version = i.version,
245 .bus = i.bus,
246 .isUsiStylus = info.getUsiVersion().has_value(),
247 .keyboardType = info.getKeyboardType(),
248 });
Prabir Pradhan852db892023-04-06 22:16:44 +0000249 }
250
Prabir Pradhanaff13032023-04-07 22:25:03 +0000251 for (auto [deviceId, info] : mLoggedDeviceInfos) {
252 if (newDeviceInfos.count(deviceId) != 0) {
Prabir Pradhan852db892023-04-06 22:16:44 +0000253 continue;
254 }
Prabir Pradhan67d09ca2023-09-08 20:28:55 +0000255 onInputDeviceRemoved(deviceId, info);
Prabir Pradhan852db892023-04-06 22:16:44 +0000256 }
257
Prabir Pradhanaff13032023-04-07 22:25:03 +0000258 std::swap(newDeviceInfos, mLoggedDeviceInfos);
Prabir Pradhan852db892023-04-06 22:16:44 +0000259}
260
261void InputDeviceMetricsCollector::onInputDeviceRemoved(DeviceId deviceId,
Prabir Pradhan0dd48ae2023-09-08 21:33:51 +0000262 const MetricsDeviceInfo& info) {
Prabir Pradhan852db892023-04-06 22:16:44 +0000263 auto it = mActiveUsageSessions.find(deviceId);
Prabir Pradhanaff13032023-04-07 22:25:03 +0000264 if (it == mActiveUsageSessions.end()) {
265 return;
Prabir Pradhan852db892023-04-06 22:16:44 +0000266 }
Prabir Pradhanaff13032023-04-07 22:25:03 +0000267 // Report usage for that device if there is an active session.
268 auto& [_, activeSession] = *it;
Prabir Pradhan67d09ca2023-09-08 20:28:55 +0000269 mLogger.logInputDeviceUsageReported(info, activeSession.finishSession());
Prabir Pradhanaff13032023-04-07 22:25:03 +0000270 mActiveUsageSessions.erase(it);
271
Prabir Pradhan852db892023-04-06 22:16:44 +0000272 // We don't remove this from mLoggedDeviceInfos because it will be updated in
273 // onInputDevicesChanged().
274}
275
Prabir Pradhanaff13032023-04-07 22:25:03 +0000276void InputDeviceMetricsCollector::onInputDeviceUsage(DeviceId deviceId, nanoseconds eventTime,
277 const SourceProvider& getSources) {
278 auto infoIt = mLoggedDeviceInfos.find(deviceId);
279 if (infoIt == mLoggedDeviceInfos.end()) {
Prabir Pradhan852db892023-04-06 22:16:44 +0000280 // Do not track usage for devices that are not logged.
281 return;
282 }
283
Prabir Pradhanaff13032023-04-07 22:25:03 +0000284 auto [sessionIt, _] =
285 mActiveUsageSessions.try_emplace(deviceId, mUsageSessionTimeout, eventTime);
286 for (InputDeviceUsageSource source : getSources(infoIt->second)) {
287 sessionIt->second.recordUsage(eventTime, source);
Prabir Pradhan852db892023-04-06 22:16:44 +0000288 }
289}
290
Prabir Pradhan44293792023-05-08 19:37:44 +0000291void InputDeviceMetricsCollector::onInputDeviceInteraction(const Interaction& interaction) {
292 auto activeSessionIt = mActiveUsageSessions.find(std::get<DeviceId>(interaction));
293 if (activeSessionIt == mActiveUsageSessions.end()) {
294 return;
295 }
Prabir Pradhan852db892023-04-06 22:16:44 +0000296
Prabir Pradhan44293792023-05-08 19:37:44 +0000297 activeSessionIt->second.recordInteraction(interaction);
298}
299
300void InputDeviceMetricsCollector::reportCompletedSessions() {
301 // Process all pending interactions.
302 for (auto interaction = mInteractionsQueue.pop(); interaction;
303 interaction = mInteractionsQueue.pop()) {
304 onInputDeviceInteraction(*interaction);
305 }
306
307 const auto currentTime = mLogger.getCurrentTime();
Prabir Pradhan852db892023-04-06 22:16:44 +0000308 std::vector<DeviceId> completedUsageSessions;
309
Prabir Pradhan44293792023-05-08 19:37:44 +0000310 // Process usages for all active session to determine if any sessions have expired.
Prabir Pradhanaff13032023-04-07 22:25:03 +0000311 for (auto& [deviceId, activeSession] : mActiveUsageSessions) {
312 if (activeSession.checkIfCompletedAt(currentTime)) {
Prabir Pradhan852db892023-04-06 22:16:44 +0000313 completedUsageSessions.emplace_back(deviceId);
314 }
315 }
316
Prabir Pradhan44293792023-05-08 19:37:44 +0000317 // Close out and log all expired usage sessions.
Prabir Pradhan852db892023-04-06 22:16:44 +0000318 for (DeviceId deviceId : completedUsageSessions) {
Prabir Pradhanaff13032023-04-07 22:25:03 +0000319 const auto infoIt = mLoggedDeviceInfos.find(deviceId);
320 LOG_ALWAYS_FATAL_IF(infoIt == mLoggedDeviceInfos.end());
Prabir Pradhan852db892023-04-06 22:16:44 +0000321
Prabir Pradhanaff13032023-04-07 22:25:03 +0000322 auto activeSessionIt = mActiveUsageSessions.find(deviceId);
323 LOG_ALWAYS_FATAL_IF(activeSessionIt == mActiveUsageSessions.end());
324 auto& [_, activeSession] = *activeSessionIt;
Prabir Pradhan67d09ca2023-09-08 20:28:55 +0000325 mLogger.logInputDeviceUsageReported(infoIt->second, activeSession.finishSession());
Prabir Pradhanaff13032023-04-07 22:25:03 +0000326 mActiveUsageSessions.erase(activeSessionIt);
Prabir Pradhan852db892023-04-06 22:16:44 +0000327 }
Prabir Pradhanaddf8e92023-04-06 00:28:48 +0000328}
329
Prabir Pradhanaff13032023-04-07 22:25:03 +0000330// --- InputDeviceMetricsCollector::ActiveSession ---
331
332InputDeviceMetricsCollector::ActiveSession::ActiveSession(nanoseconds usageSessionTimeout,
333 nanoseconds startTime)
334 : mUsageSessionTimeout(usageSessionTimeout), mDeviceSession({startTime, startTime}) {}
335
336void InputDeviceMetricsCollector::ActiveSession::recordUsage(nanoseconds eventTime,
337 InputDeviceUsageSource source) {
338 // We assume that event times for subsequent events are always monotonically increasing for each
339 // input device.
340 auto [activeSourceIt, inserted] =
341 mActiveSessionsBySource.try_emplace(source, eventTime, eventTime);
342 if (!inserted) {
343 activeSourceIt->second.end = eventTime;
344 }
345 mDeviceSession.end = eventTime;
346}
347
Prabir Pradhan44293792023-05-08 19:37:44 +0000348void InputDeviceMetricsCollector::ActiveSession::recordInteraction(const Interaction& interaction) {
349 const auto sessionExpiryTime = mDeviceSession.end + mUsageSessionTimeout;
350 const auto timestamp = std::get<nanoseconds>(interaction);
351 if (timestamp >= sessionExpiryTime) {
352 // This interaction occurred after the device's current active session is set to expire.
353 // Ignore it.
354 return;
355 }
356
357 for (Uid uid : std::get<std::set<Uid>>(interaction)) {
358 auto [activeUidIt, inserted] = mActiveSessionsByUid.try_emplace(uid, timestamp, timestamp);
359 if (!inserted) {
360 activeUidIt->second.end = timestamp;
361 }
362 }
363}
364
Prabir Pradhanaff13032023-04-07 22:25:03 +0000365bool InputDeviceMetricsCollector::ActiveSession::checkIfCompletedAt(nanoseconds timestamp) {
366 const auto sessionExpiryTime = timestamp - mUsageSessionTimeout;
367 std::vector<InputDeviceUsageSource> completedSourceSessionsForDevice;
368 for (auto& [source, session] : mActiveSessionsBySource) {
369 if (session.end <= sessionExpiryTime) {
370 completedSourceSessionsForDevice.emplace_back(source);
371 }
372 }
373 for (InputDeviceUsageSource source : completedSourceSessionsForDevice) {
374 auto it = mActiveSessionsBySource.find(source);
375 const auto& [_, session] = *it;
376 mSourceUsageBreakdown.emplace_back(source, session.end - session.start);
377 mActiveSessionsBySource.erase(it);
378 }
Prabir Pradhan44293792023-05-08 19:37:44 +0000379
380 std::vector<Uid> completedUidSessionsForDevice;
381 for (auto& [uid, session] : mActiveSessionsByUid) {
382 if (session.end <= sessionExpiryTime) {
383 completedUidSessionsForDevice.emplace_back(uid);
384 }
385 }
386 for (Uid uid : completedUidSessionsForDevice) {
387 auto it = mActiveSessionsByUid.find(uid);
388 const auto& [_, session] = *it;
389 mUidUsageBreakdown.emplace_back(uid, session.end - session.start);
390 mActiveSessionsByUid.erase(it);
391 }
392
393 // This active session has expired if there are no more active source sessions tracked.
Prabir Pradhanaff13032023-04-07 22:25:03 +0000394 return mActiveSessionsBySource.empty();
395}
396
397InputDeviceMetricsLogger::DeviceUsageReport
398InputDeviceMetricsCollector::ActiveSession::finishSession() {
399 const auto deviceUsageDuration = mDeviceSession.end - mDeviceSession.start;
400
401 for (const auto& [source, sourceSession] : mActiveSessionsBySource) {
402 mSourceUsageBreakdown.emplace_back(source, sourceSession.end - sourceSession.start);
403 }
404 mActiveSessionsBySource.clear();
405
Prabir Pradhan44293792023-05-08 19:37:44 +0000406 for (const auto& [uid, uidSession] : mActiveSessionsByUid) {
407 mUidUsageBreakdown.emplace_back(uid, uidSession.end - uidSession.start);
408 }
409 mActiveSessionsByUid.clear();
410
411 return {deviceUsageDuration, mSourceUsageBreakdown, mUidUsageBreakdown};
Prabir Pradhanaff13032023-04-07 22:25:03 +0000412}
413
Prabir Pradhanaddf8e92023-04-06 00:28:48 +0000414} // namespace android