/frameworks/av/services/mediametrics/tests/ |
D | mediametrics_tests.cpp | 34 using android::mediametrics::stringutils::parseVector; 56 ASSERT_EQ(true, android::mediametrics::startsWith(s, "te")); in TEST() 57 ASSERT_EQ(true, android::mediametrics::startsWith(s, std::string("tes"))); in TEST() 58 ASSERT_EQ(false, android::mediametrics::startsWith(s, "ts")); in TEST() 59 ASSERT_EQ(false, android::mediametrics::startsWith(s, std::string("est"))); in TEST() 94 android::mediametrics::Defer defer([&] { check = true; }); in TEST() 102 android::mediametrics::SharedPtrWrap<std::string> s("123"); in TEST() 108 const android::mediametrics::SharedPtrWrap<std::string> s2("345"); in TEST() 115 android::mediametrics::SharedPtrWrap<std::string> s3(""); in TEST() 133 android::mediametrics::SharedPtrWrap<Thunk> s4( in TEST() [all …]
|
/frameworks/av/services/mediametrics/include/mediametricsservice/ |
D | iface_statsd.h | 23 namespace mediametrics { 27 using statsd_pusher = bool (const std::shared_ptr<const mediametrics::Item>& item, 28 const std::shared_ptr<mediametrics::StatsdLog>& statsdLog); 45 using statsd_puller = bool (const std::shared_ptr<const mediametrics::Item>& item, 46 AStatsEventList *, const std::shared_ptr<mediametrics::StatsdLog>& statsdLog); 50 bool dump2Statsd(const std::shared_ptr<const mediametrics::Item>& item, 51 const std::shared_ptr<mediametrics::StatsdLog>& statsdLog); 52 bool dump2Statsd(const std::shared_ptr<const mediametrics::Item>& item, AStatsEventList* out, 53 const std::shared_ptr<mediametrics::StatsdLog>& statsdLog);
|
D | MediaMetricsService.h | 55 status_t submit(mediametrics::Item *item) { in submit() 60 mediametrics::Item *item = new mediametrics::Item(); in submitBuffer() 91 status_t submitInternal(mediametrics::Item *item, bool release); 96 static bool isContentValid(const mediametrics::Item *item, bool isTrusted); 97 bool isRateLimited(mediametrics::Item *) const; 98 void saveItem(const std::shared_ptr<const mediametrics::Item>& item); 100 bool expirations(const std::shared_ptr<const mediametrics::Item>& item) REQUIRES(mLock); 130 const std::shared_ptr<mediametrics::StatsdLog> mStatsdLog{ 131 std::make_shared<mediametrics::StatsdLog>(STATSD_LOG_LINES_MAX)}; 134 mediametrics::AudioAnalytics mAudioAnalytics{mStatsdLog}; [all …]
|
D | AudioAnalytics.h | 28 namespace android::mediametrics { 58 status_t submit(const std::shared_ptr<const mediametrics::Item>& item, bool isTrusted); 134 void processActions(const std::shared_ptr<const mediametrics::Item>& item); 141 void processStatus(const std::shared_ptr<const mediametrics::Item>& item); 145 const std::shared_ptr<const mediametrics::Item>& item, 151 const std::shared_ptr<const mediametrics::Item>& item, 204 const std::shared_ptr<const android::mediametrics::Item> &item, 222 const std::shared_ptr<const android::mediametrics::Item> &item); 226 const std::shared_ptr<const android::mediametrics::Item> &item); 230 const std::shared_ptr<const android::mediametrics::Item> &item); [all …]
|
D | AnalyticsActions.h | 23 namespace android::mediametrics { 40 using Elem = mediametrics::Item::Prop::Elem; 61 void(const std::shared_ptr<const mediametrics::Item>& item)>; 93 getActionsForItem(const std::shared_ptr<const mediametrics::Item>& item) { in getActionsForItem() 99 mediametrics::Item::RECURSIVE_WILDCARD_CHECK_MATCH_FOUND) { in getActionsForItem() 112 const std::shared_ptr<const mediametrics::Item>& item) { in isMatch() 121 const std::shared_ptr<const mediametrics::Item>& item) { in isWildcardMatch()
|
D | AudioPowerUsage.h | 27 namespace android::mediametrics { 37 void checkTrackRecord(const std::shared_ptr<const mediametrics::Item>& item, bool isTrack); 38 void checkMode(const std::shared_ptr<const mediametrics::Item>& item); 39 void checkVoiceVolume(const std::shared_ptr<const mediametrics::Item>& item); 40 void checkCreatePatch(const std::shared_ptr<const mediametrics::Item>& item); 95 void sendItem(const std::shared_ptr<const mediametrics::Item>& item) const; 112 std::deque<std::shared_ptr<mediametrics::Item>> mItems GUARDED_BY(mLock);
|
D | ValidateId.h | 23 namespace android::mediametrics { 35 mediametrics::LruSet<std::string> mIdSet; 68 using LockedValidateId = mediametrics::LockWrap<ValidateId>;
|
D | TransactionLog.h | 27 namespace android::mediametrics { 90 status_t put(const std::shared_ptr<const mediametrics::Item>& item) { in put() 106 std::vector<std::shared_ptr<const mediametrics::Item>> get( 115 std::vector<std::shared_ptr<const mediametrics::Item>> get( 194 std::multimap<int64_t /* time */, std::shared_ptr<const mediametrics::Item>>; 230 std::vector<std::shared_ptr<const mediametrics::Item>> stale; in gc() 276 static std::vector<std::shared_ptr<const mediametrics::Item>> getItemsInRange( 284 std::vector<std::shared_ptr<const mediametrics::Item>> ret;
|
/frameworks/av/media/libmediametrics/ |
D | MediaMetricsItem.cpp | 46 namespace android::mediametrics { namespace 83 mediametrics::Item* mediametrics::Item::convert(mediametrics_handle_t handle) { in convert() 84 mediametrics::Item *item = (android::mediametrics::Item *) handle; in convert() 88 mediametrics_handle_t mediametrics::Item::convert(mediametrics::Item *item ) { in convert() 93 mediametrics::Item::~Item() { in ~Item() 99 mediametrics::Item &mediametrics::Item::setTimestamp(nsecs_t ts) { in setTimestamp() 104 nsecs_t mediametrics::Item::getTimestamp() const { in getTimestamp() 108 mediametrics::Item &mediametrics::Item::setPid(pid_t pid) { in setPid() 113 pid_t mediametrics::Item::getPid() const { in getPid() 117 mediametrics::Item &mediametrics::Item::setUid(uid_t uid) { in setUid() [all …]
|
/frameworks/av/services/mediametrics/fuzzer/ |
D | mediametrics_service_fuzzer.cpp | 90 void setKeyValues(std::shared_ptr<mediametrics::Item>& item, std::string keyValue); 91 std::shared_ptr<mediametrics::Item> CreateItem(); 97 void MediaMetricsServiceFuzzer::setKeyValues(std::shared_ptr<mediametrics::Item>& item, in setKeyValues() 118 mediametrics::LogItem<1> itemTemp(mFdp.ConsumeRandomLengthString(kMaxBytes)); in setKeyValues() 132 std::shared_ptr<mediametrics::Item> MediaMetricsServiceFuzzer::CreateItem() { in CreateItem() 140 std::shared_ptr<mediametrics::Item> item = std::make_shared<mediametrics::Item>(key.c_str()); in CreateItem() 160 android::mediametrics::startsWith(mFdp.ConsumeRandomLengthString(kMaxBytes), in invokeStartsWith() 184 android::mediametrics::TimeMachine timeMachine; in invokeTimeMachineStorage() 208 android::mediametrics::TransactionLog transactionLog( in invokeTransactionLog() 216 mediametrics::AnalyticsActions analyticsActions; in invokeAnalyticsAction() [all …]
|
D | README.md | 23 | `TranscationLog` | `mediametrics::Item` | `mediametrics::Item` created by obtaining values from… 25 | `AudioAnalytics` | `mediametrics::Item` | `mediametrics::Item` created by obtaining values from…
|
/frameworks/av/services/mediametrics/ |
D | iface_statsd.cpp | 54 const std::shared_ptr<const mediametrics::Item>& item, Args... args) { in dump2StatsdInternal() 74 const std::shared_ptr<const mediametrics::Item>& item, in dump2Statsd() 75 const std::shared_ptr<mediametrics::StatsdLog>& statsdLog) { in dump2Statsd() 97 bool dump2Statsd(const std::shared_ptr<const mediametrics::Item>& item, AStatsEventList* out, in dump2Statsd() 98 const std::shared_ptr<mediametrics::StatsdLog>& statsdLog) { in dump2Statsd()
|
D | statsd_drm.cpp | 49 bool statsd_mediadrm(const std::shared_ptr<const mediametrics::Item>& item, in statsd_mediadrm() 50 const std::shared_ptr<mediametrics::StatsdLog>& statsdLog) in statsd_mediadrm() 101 bool statsd_drmmanager(const std::shared_ptr<const mediametrics::Item>& item, in statsd_drmmanager() 102 const std::shared_ptr<mediametrics::StatsdLog>& statsdLog) in statsd_drmmanager() 187 const std::shared_ptr<const mediametrics::Item>& item, AStatsEventList* out, in statsd_mediadrm_puller() 188 const std::shared_ptr<mediametrics::StatsdLog>& statsdLog) in statsd_mediadrm_puller() 231 << " framework_metrics:" << mediametrics::stringutils::bytesToString(framework_raw, 8) in statsd_mediadrm_puller() 232 << " vendor_metrics:" << mediametrics::stringutils::bytesToString(plugin_raw, 8) in statsd_mediadrm_puller() 238 bool statsd_mediadrm_created(const std::shared_ptr<const mediametrics::Item>& item, in statsd_mediadrm_created() 239 const std::shared_ptr<mediametrics::StatsdLog>& statsdLog) in statsd_mediadrm_created() [all …]
|
D | ValidateId.cpp | 23 namespace android::mediametrics { namespace 36 if (!mediametrics::stringutils::isLogSessionId(id.c_str())) { in registerId() 50 if (!mediametrics::stringutils::isLogSessionId(id.c_str())) { in validateId()
|
D | MediaMetricsService.cpp | 43 using mediametrics::Item; 44 using mediametrics::startsWith; 124 status_t MediaMetricsService::submitInternal(mediametrics::Item *item, bool release) in submitInternal() 208 std::shared_ptr<const mediametrics::Item> sitem(release ? item : item->dup()); in submitInternal() 214 && mediametrics::stringutils::isLogSessionId(logSessionId.c_str())) { in submitInternal() 215 mediametrics::ValidateId::get()->registerId(logSessionId); in submitInternal() 351 << mediametrics::ValidateId::get()->dump(); in dump() 381 if (mediametrics::Item::isEnabled()) { in dumpHeaders() 430 bool MediaMetricsService::expirations(const std::shared_ptr<const mediametrics::Item>& item) in expirations() 489 void MediaMetricsService::saveItem(const std::shared_ptr<const mediametrics::Item>& item) in saveItem() [all …]
|
D | mediametrics.rc | 1 service mediametrics /system/bin/mediametrics
|
D | AudioAnalytics.cpp | 37 namespace android::mediametrics { namespace 358 [this](const std::shared_ptr<const android::mediametrics::Item> &item){ in AudioAnalytics() 365 [this](const std::shared_ptr<const android::mediametrics::Item> &item){ in AudioAnalytics() 372 [this](const std::shared_ptr<const android::mediametrics::Item> &item){ in AudioAnalytics() 379 [this](const std::shared_ptr<const android::mediametrics::Item> &item){ in AudioAnalytics() 388 [this](const std::shared_ptr<const android::mediametrics::Item> &item) { in AudioAnalytics() 397 [this](const std::shared_ptr<const android::mediametrics::Item> &item) { in AudioAnalytics() 406 [this](const std::shared_ptr<const android::mediametrics::Item> &item) { in AudioAnalytics() 415 [this](const std::shared_ptr<const android::mediametrics::Item> &item){ in AudioAnalytics() 424 [this](const std::shared_ptr<const android::mediametrics::Item> &item){ in AudioAnalytics() [all …]
|
D | statsd_extractor.cpp | 41 bool statsd_extractor(const std::shared_ptr<const mediametrics::Item>& item, in statsd_extractor() 42 const std::shared_ptr<mediametrics::StatsdLog>& statsdLog) in statsd_extractor() 89 log_session_id = mediametrics::ValidateId::get()->validateId(log_session_id); in statsd_extractor()
|
D | statsd_mediaparser.cpp | 40 bool statsd_mediaparser(const std::shared_ptr<const mediametrics::Item>& item, in statsd_mediaparser() 41 const std::shared_ptr<mediametrics::StatsdLog>& statsdLog) in statsd_mediaparser() 84 logSessionId = mediametrics::ValidateId::get()->validateId(logSessionId); in statsd_mediaparser()
|
D | statsd_audiotrack.cpp | 41 bool statsd_audiotrack(const std::shared_ptr<const mediametrics::Item>& item, in statsd_audiotrack() 42 const std::shared_ptr<mediametrics::StatsdLog>& statsdLog) in statsd_audiotrack() 135 const auto log_session_id = mediametrics::ValidateId::get()->validateId(logSessionId); in statsd_audiotrack()
|
/frameworks/av/services/audioflinger/datapath/ |
D | ThreadMetrics.h | 52 mediametrics::LogItem(mMetricsId) in ~ThreadMetrics() 78 mediametrics::LogItem(mMetricsId) in logConstructor() 90 mediametrics::LogItem(mMetricsId) in logCreatePatch() 109 mediametrics::LogItem(mMetricsId) in logThrottleMs() 116 mediametrics::LogItem(mMetricsId) in logLatency() 139 mediametrics::LogItem(mMetricsId) in deliverDeviceMetrics() 148 mediametrics::LogItem item(mMetricsId); in deliverCumulativeMetrics()
|
D | TrackMetrics.h | 93 mediametrics::LogItem item(mMetricsId); 131 mediametrics::LogItem(mMetricsId) in logInvalidate() 138 mediametrics::LogItem(mMetricsId) in logLatencyAndStartup() 181 mediametrics::LogItem(mMetricsId) in deliverDeviceMetrics() 207 mediametrics::LogItem item(mMetricsId); in deliverCumulativeMetrics()
|
/frameworks/base/media/jni/ |
D | android_media_MediaMetricsJNI.cpp | 114 JNIEnv* env, mediametrics::Item *item, jobject bundle) in writeMetricsToBundle() 123 bh.put(mediametrics::BUNDLE_KEY, item->getKey().c_str()); in writeMetricsToBundle() 125 bh.put(mediametrics::BUNDLE_PID, (int32_t)item->getPid()); in writeMetricsToBundle() 128 bh.put(mediametrics::BUNDLE_TIMESTAMP, (int64_t)item->getTimestamp()); in writeMetricsToBundle() 131 bh.put(mediametrics::BUNDLE_UID, (int32_t)item->getUid()); in writeMetricsToBundle() 153 return (jint)mediametrics::BaseItem::submitBuffer((char *)buffer, length); in android_media_MediaMetrics_submit_bytebuffer()
|
/frameworks/base/core/jni/ |
D | android_media_MediaMetricsJNI.cpp | 114 JNIEnv* env, mediametrics::Item *item, jobject bundle) in writeMetricsToBundle() 123 bh.put(mediametrics::BUNDLE_KEY, item->getKey().c_str()); in writeMetricsToBundle() 125 bh.put(mediametrics::BUNDLE_PID, (int32_t)item->getPid()); in writeMetricsToBundle() 128 bh.put(mediametrics::BUNDLE_TIMESTAMP, (int64_t)item->getTimestamp()); in writeMetricsToBundle() 131 bh.put(mediametrics::BUNDLE_UID, (int32_t)item->getUid()); in writeMetricsToBundle() 153 return (jint)mediametrics::BaseItem::submitBuffer((char *)buffer, length); in android_media_MediaMetrics_submit_bytebuffer()
|
/frameworks/av/services/oboeservice/ |
D | AAudioServiceStreamBase.cpp | 65 mediametrics::LogItem(mMetricsId) in ~AAudioServiceStreamBase() 117 mediametrics::LogItem(mMetricsId) in logOpen() 263 mediametrics::Defer defer([&] { in start_l() 264 mediametrics::LogItem(mMetricsId) in start_l() 307 mediametrics::Defer defer([&] { in pause_l() 308 mediametrics::LogItem(mMetricsId) in pause_l() 346 mediametrics::Defer defer([&] { in stop_l() 347 mediametrics::LogItem(mMetricsId) in stop_l() 391 mediametrics::Defer defer([&] { in flush_l() 392 mediametrics::LogItem(mMetricsId) in flush_l() [all …]
|