Lines Matching refs:item
49 bool statsd_mediadrm(const std::shared_ptr<const mediametrics::Item>& item, in statsd_mediadrm() argument
52 if (item == nullptr) return false; in statsd_mediadrm()
54 const nsecs_t timestamp_nanos = MediaMetricsService::roundTime(item->getTimestamp()); in statsd_mediadrm()
55 const std::string package_name = item->getPkgName(); in statsd_mediadrm()
56 const int64_t package_version_code = item->getPkgVersionCode(); in statsd_mediadrm()
60 (void) item->getString("vendor", &vendor); in statsd_mediadrm()
62 (void) item->getString("description", &description); in statsd_mediadrm()
65 (void) item->getString("serialized_metrics", &serialized_metrics); in statsd_mediadrm()
101 bool statsd_drmmanager(const std::shared_ptr<const mediametrics::Item>& item, in statsd_drmmanager() argument
105 if (item == nullptr) return false; in statsd_drmmanager()
107 const nsecs_t timestamp_nanos = MediaMetricsService::roundTime(item->getTimestamp()); in statsd_drmmanager()
108 const std::string package_name = item->getPkgName(); in statsd_drmmanager()
109 const int64_t package_version_code = item->getPkgVersionCode(); in statsd_drmmanager()
113 (void) item->getString("plugin_id", &plugin_id); in statsd_drmmanager()
115 (void) item->getString("description", &description); in statsd_drmmanager()
117 (void) item->getInt32("method_id", &method_id); in statsd_drmmanager()
119 (void) item->getString("mime_types", &mime_types); in statsd_drmmanager()
125 item->getInt64(("method"s + std::to_string(i)).c_str(), &methodCounts[i]); in statsd_drmmanager()
187 const std::shared_ptr<const mediametrics::Item>& item, AStatsEventList* out, in statsd_mediadrm_puller() argument
190 if (item == nullptr) { in statsd_mediadrm_puller()
195 (void) item->getString("serialized_metrics", &serialized_metrics); in statsd_mediadrm_puller()
199 (void) item->getString("plugin_metrics", &plugin_metrics); in statsd_mediadrm_puller()
208 (void) item->getString("vendor", &vendor); in statsd_mediadrm_puller()
210 (void) item->getString("description", &description); in statsd_mediadrm_puller()
215 AStatsEvent_writeString(event, item->getPkgName().c_str()); in statsd_mediadrm_puller()
216 AStatsEvent_writeInt64(event, item->getPkgVersionCode()); in statsd_mediadrm_puller()
227 << " package_name:" << item->getPkgName() in statsd_mediadrm_puller()
228 << " package_version_code:" << item->getPkgVersionCode() in statsd_mediadrm_puller()
238 bool statsd_mediadrm_created(const std::shared_ptr<const mediametrics::Item>& item, in statsd_mediadrm_created() argument
242 if (!item->getInt64("uuid_lsb", &uuid_lsb)) return false; in statsd_mediadrm_created()
244 if (!item->getInt64("uuid_msb", &uuid_msb)) return false; in statsd_mediadrm_created()
248 if (!item->getInt32("frontend", &frontend)) return false; in statsd_mediadrm_created()
252 item->getString("version", &version); in statsd_mediadrm_created()
271 bool statsd_mediadrm_session_opened(const std::shared_ptr<const mediametrics::Item>& item, in statsd_mediadrm_session_opened() argument
275 if (!item->getInt64("uuid_lsb", &uuid_lsb)) return false; in statsd_mediadrm_session_opened()
277 if (!item->getInt64("uuid_msb", &uuid_msb)) return false; in statsd_mediadrm_session_opened()
280 if (!item->getString("object_nonce", &object_nonce)) return false; in statsd_mediadrm_session_opened()
283 if (!item->getInt32("frontend", &frontend)) return false; in statsd_mediadrm_session_opened()
285 if (!item->getInt32("requested_security_level", &requested_security_level)) return false; in statsd_mediadrm_session_opened()
287 if (!item->getInt32("opened_security_level", &opened_security_level)) return false; in statsd_mediadrm_session_opened()
291 item->getString("version", &version); in statsd_mediadrm_session_opened()
315 bool statsd_mediadrm_errored(const std::shared_ptr<const mediametrics::Item>& item, in statsd_mediadrm_errored() argument
319 if (!item->getInt64("uuid_lsb", &uuid_lsb)) return false; in statsd_mediadrm_errored()
321 if (!item->getInt64("uuid_msb", &uuid_msb)) return false; in statsd_mediadrm_errored()
325 if (!item->getInt32("frontend", &frontend)) return false; in statsd_mediadrm_errored()
327 if (!item->getString("object_nonce", &object_nonce)) return false; in statsd_mediadrm_errored()
329 if (!item->getString("api", &api_str)) return false; in statsd_mediadrm_errored()
332 if (!item->getInt32("error_code", &error_code)) return false; in statsd_mediadrm_errored()
336 item->getString("version", &version); in statsd_mediadrm_errored()
338 item->getString("session_nonce", &session_nonce); in statsd_mediadrm_errored()
340 item->getInt32("security_level", &security_level); in statsd_mediadrm_errored()
343 item->getInt32("cdm_err", &cdm_err); in statsd_mediadrm_errored()
345 item->getInt32("oem_err", &oem_err); in statsd_mediadrm_errored()
347 item->getInt32("error_context", &error_context); in statsd_mediadrm_errored()