Home
last modified time | relevance | path

Searched refs:mediametrics (Results 1 – 25 of 73) sorted by relevance

123

/frameworks/av/services/mediametrics/
Diface_statsd.h22 extern bool statsd_audiopolicy(const mediametrics::Item *);
23 extern bool statsd_audiorecord(const mediametrics::Item *);
24 extern bool statsd_audiothread(const mediametrics::Item *);
25 extern bool statsd_audiotrack(const mediametrics::Item *);
26 extern bool statsd_codec(const mediametrics::Item *);
27 extern bool statsd_extractor(const mediametrics::Item *);
28 extern bool statsd_nuplayer(const mediametrics::Item *);
29 extern bool statsd_recorder(const mediametrics::Item *);
31 extern bool statsd_mediadrm(const mediametrics::Item *);
32 extern bool statsd_widevineCDM(const mediametrics::Item *);
[all …]
DMediaMetricsService.h48 status_t submit(mediametrics::Item *item) override { in submit()
53 mediametrics::Item *item = new mediametrics::Item(); in submitBuffer()
84 status_t submitInternal(mediametrics::Item *item, bool release) override;
89 static bool isContentValid(const mediametrics::Item *item, bool isTrusted);
90 bool isRateLimited(mediametrics::Item *) const;
91 void saveItem(const std::shared_ptr<const mediametrics::Item>& item);
93 bool expirations(const std::shared_ptr<const mediametrics::Item>& item) REQUIRES(mLock);
111 mediametrics::AudioAnalytics mAudioAnalytics; // mAudioAnalytics is locked internally.
126 std::deque<std::shared_ptr<const mediametrics::Item>> mItems GUARDED_BY(mLock);
DAnalyticsActions.h23 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()
DAudioPowerUsage.h25 namespace android::mediametrics {
34 void checkTrackRecord(const std::shared_ptr<const mediametrics::Item>& item, bool isTrack);
35 void checkMode(const std::shared_ptr<const mediametrics::Item>& item);
36 void checkVoiceVolume(const std::shared_ptr<const mediametrics::Item>& item);
37 void checkCreatePatch(const std::shared_ptr<const mediametrics::Item>& item);
86 static void sendItem(const std::shared_ptr<const mediametrics::Item>& item);
94 std::deque<std::shared_ptr<mediametrics::Item>> mItems GUARDED_BY(mLock);
DAudioAnalytics.h27 namespace android::mediametrics {
57 status_t submit(const std::shared_ptr<const mediametrics::Item>& item, bool isTrusted);
103 void checkActions(const std::shared_ptr<const mediametrics::Item>& item);
144 const std::shared_ptr<const android::mediametrics::Item> &item,
162 const std::shared_ptr<const android::mediametrics::Item> &item);
166 const std::shared_ptr<const android::mediametrics::Item> &item);
170 const std::shared_ptr<const android::mediametrics::Item> &item);
DTransactionLog.h27 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;
DMediaMetricsService.cpp35 using mediametrics::Item;
36 using mediametrics::startsWith;
114 status_t MediaMetricsService::submitInternal(mediametrics::Item *item, bool release) in submitInternal()
198 std::shared_ptr<const mediametrics::Item> sitem(release ? item : item->dup()); in submitInternal()
202 extern bool dump2Statsd(const std::shared_ptr<const mediametrics::Item>& item); in submitInternal()
328 if (mediametrics::Item::isEnabled()) { in dumpHeaders()
378 bool MediaMetricsService::expirations(const std::shared_ptr<const mediametrics::Item>& item) in expirations()
437 void MediaMetricsService::saveItem(const std::shared_ptr<const mediametrics::Item>& item) in saveItem()
451 bool MediaMetricsService::isContentValid(const mediametrics::Item *item, bool isTrusted) in isContentValid()
482 bool MediaMetricsService::isRateLimited(mediametrics::Item *) const in isRateLimited()
DAudioAnalytics.cpp34 namespace android::mediametrics { namespace
172 [this](const std::shared_ptr<const android::mediametrics::Item> &item){ in AudioAnalytics()
200 [this](const std::shared_ptr<const android::mediametrics::Item> &item){ in AudioAnalytics()
209 [this](const std::shared_ptr<const android::mediametrics::Item> &item){ in AudioAnalytics()
218 [this](const std::shared_ptr<const android::mediametrics::Item> &item){ in AudioAnalytics()
234 [this](const std::shared_ptr<const android::mediametrics::Item> &item){ in AudioAnalytics()
242 [this](const std::shared_ptr<const android::mediametrics::Item> &item){ in AudioAnalytics()
253 [this](const std::shared_ptr<const android::mediametrics::Item> &item){ in AudioAnalytics()
262 [this](const std::shared_ptr<const android::mediametrics::Item> &item){ in AudioAnalytics()
270 [this](const std::shared_ptr<const android::mediametrics::Item> &item){ in AudioAnalytics()
[all …]
Dmediametrics.rc1 service mediametrics /system/bin/mediametrics
DAudioPowerUsage.cpp49 namespace android::mediametrics { namespace
131 void AudioPowerUsage::sendItem(const std::shared_ptr<const mediametrics::Item>& item) in sendItem()
193 auto sitem = std::make_shared<mediametrics::Item>(AUDIO_POWER_USAGE_KEY_AUDIO_USAGE); in saveAsItem_l()
204 const std::shared_ptr<const mediametrics::Item>& item, bool isTrack) in checkTrackRecord()
251 void AudioPowerUsage::checkMode(const std::shared_ptr<const mediametrics::Item>& item) in checkMode()
278 void AudioPowerUsage::checkVoiceVolume(const std::shared_ptr<const mediametrics::Item>& item) in checkVoiceVolume()
300 void AudioPowerUsage::checkCreatePatch(const std::shared_ptr<const mediametrics::Item>& item) in checkCreatePatch()
Diface_statsd.cpp52 bool (*handler)(const mediametrics::Item *);
73 bool dump2Statsd(const std::shared_ptr<const mediametrics::Item>& item) { in dump2Statsd()
Dstatsd_drm.cpp44 bool statsd_mediadrm(const mediametrics::Item *item) in statsd_mediadrm()
77 bool statsd_widevineCDM(const mediametrics::Item *item) in statsd_widevineCDM()
104 bool statsd_drmmanager(const mediametrics::Item *item) in statsd_drmmanager()
Dstatsd_extractor.cpp40 bool statsd_extractor(const mediametrics::Item *item) in statsd_extractor()
53 ::android::stats::mediametrics::ExtractorData metrics_proto; in statsd_extractor()
DAnalyticsState.h22 namespace android::mediametrics {
54 status_t submit(const std::shared_ptr<const mediametrics::Item>& item, bool isTrusted) { in submit()
Dstatsd_codec.cpp41 bool statsd_codec(const mediametrics::Item *item) in statsd_codec()
54 ::android::stats::mediametrics::CodecData metrics_proto; in statsd_codec()
185 lifetimeMs = mediametrics::bucket_time_minutes(lifetimeMs); in statsd_codec()
Dstatsd_audiotrack.cpp40 bool statsd_audiotrack(const mediametrics::Item *item) in statsd_audiotrack()
53 ::android::stats::mediametrics::AudioTrackData metrics_proto; in statsd_audiotrack()
/frameworks/av/media/libmediametrics/
DMediaMetricsItem.cpp43 namespace android::mediametrics { namespace
53 mediametrics::Item* mediametrics::Item::convert(mediametrics_handle_t handle) { in convert()
54 mediametrics::Item *item = (android::mediametrics::Item *) handle; in convert()
58 mediametrics_handle_t mediametrics::Item::convert(mediametrics::Item *item ) { in convert()
63 mediametrics::Item::~Item() { in ~Item()
69 mediametrics::Item &mediametrics::Item::setTimestamp(nsecs_t ts) { in setTimestamp()
74 nsecs_t mediametrics::Item::getTimestamp() const { in getTimestamp()
78 mediametrics::Item &mediametrics::Item::setPid(pid_t pid) { in setPid()
83 pid_t mediametrics::Item::getPid() const { in getPid()
87 mediametrics::Item &mediametrics::Item::setUid(uid_t uid) { in setUid()
[all …]
DIMediaMetricsService.cpp52 status_t submit(mediametrics::Item *item) override in submit()
109 mediametrics::Item * const item = mediametrics::Item::create(); in onTransact()
/frameworks/av/services/mediametrics/tests/
Dmediametrics_tests.cpp54 ASSERT_EQ(true, android::mediametrics::startsWith(s, "te")); in TEST()
55 ASSERT_EQ(true, android::mediametrics::startsWith(s, std::string("tes"))); in TEST()
56 ASSERT_EQ(false, android::mediametrics::startsWith(s, "ts")); in TEST()
57 ASSERT_EQ(false, android::mediametrics::startsWith(s, std::string("est"))); in TEST()
63 android::mediametrics::Defer defer([&] { check = true; }); in TEST()
71 android::mediametrics::SharedPtrWrap<std::string> s("123"); in TEST()
77 const android::mediametrics::SharedPtrWrap<std::string> s2("345"); in TEST()
84 android::mediametrics::SharedPtrWrap<std::string> s3(""); in TEST()
102 android::mediametrics::SharedPtrWrap<Thunk> s4( in TEST()
115 android::mediametrics::LockWrap<std::string> s("123"); in TEST()
[all …]
/frameworks/av/services/audioflinger/
DThreadMetrics.h51 mediametrics::LogItem(mMetricsId) in ~ThreadMetrics()
77 mediametrics::LogItem(mMetricsId) in logConstructor()
89 mediametrics::LogItem(mMetricsId) in logCreatePatch()
108 mediametrics::LogItem(mMetricsId) in logThrottleMs()
115 mediametrics::LogItem(mMetricsId) in logLatency()
138 mediametrics::LogItem(mMetricsId) in deliverDeviceMetrics()
147 mediametrics::LogItem item(mMetricsId); in deliverCumulativeMetrics()
DTrackMetrics.h75 mediametrics::LogItem item(mMetricsId);
102 mediametrics::LogItem(mMetricsId) in logInvalidate()
109 mediametrics::LogItem(mMetricsId) in logLatencyAndStartup()
144 mediametrics::LogItem(mMetricsId) in deliverDeviceMetrics()
153 mediametrics::LogItem item(mMetricsId); in deliverCumulativeMetrics()
/frameworks/base/media/jni/
Dandroid_media_MediaMetricsJNI.cpp115 JNIEnv* env, mediametrics::Item *item, jobject bundle) in writeMetricsToBundle()
124 bh.put(mediametrics::BUNDLE_KEY, item->getKey().c_str()); in writeMetricsToBundle()
126 bh.put(mediametrics::BUNDLE_PID, (int32_t)item->getPid()); in writeMetricsToBundle()
129 bh.put(mediametrics::BUNDLE_TIMESTAMP, (int64_t)item->getTimestamp()); in writeMetricsToBundle()
132 bh.put(mediametrics::BUNDLE_UID, (int32_t)item->getUid()); in writeMetricsToBundle()
154 sp<IMediaMetricsService> service = mediametrics::BaseItem::getService(); in android_media_MediaMetrics_submit_bytebuffer()
/frameworks/base/core/jni/
Dandroid_media_MediaMetricsJNI.cpp115 JNIEnv* env, mediametrics::Item *item, jobject bundle) in writeMetricsToBundle()
124 bh.put(mediametrics::BUNDLE_KEY, item->getKey().c_str()); in writeMetricsToBundle()
126 bh.put(mediametrics::BUNDLE_PID, (int32_t)item->getPid()); in writeMetricsToBundle()
129 bh.put(mediametrics::BUNDLE_TIMESTAMP, (int64_t)item->getTimestamp()); in writeMetricsToBundle()
132 bh.put(mediametrics::BUNDLE_UID, (int32_t)item->getUid()); in writeMetricsToBundle()
154 sp<IMediaMetricsService> service = mediametrics::BaseItem::getService(); in android_media_MediaMetrics_submit_bytebuffer()
/frameworks/av/services/oboeservice/
DAAudioServiceStreamBase.cpp61 mediametrics::LogItem(mMetricsId) in ~AAudioServiceStreamBase()
106 mediametrics::LogItem(mMetricsId) in logOpen()
206 mediametrics::LogItem(mMetricsId) in close_l()
240 mediametrics::Defer defer([&] { in start()
241 mediametrics::LogItem(mMetricsId) in start()
288 mediametrics::Defer defer([&] { in pause_l()
289 mediametrics::LogItem(mMetricsId) in pause_l()
335 mediametrics::Defer defer([&] { in stop_l()
336 mediametrics::LogItem(mMetricsId) in stop_l()
390 mediametrics::Defer defer([&] { in flush()
[all …]
/frameworks/av/media/libmediametrics/include/media/
DIMediaMetricsService.h50 virtual status_t submit(mediametrics::Item *item) = 0;
68 mediametrics::Item *item, bool release) = 0;

123