Home
last modified time | relevance | path

Searched refs:MediaAnalyticsItem (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/av/media/libmediametrics/
DMediaAnalyticsItem.cpp50 const MediaAnalyticsItem::Key MediaAnalyticsItem::kKeyAny = "any";
51 const MediaAnalyticsItem::Key MediaAnalyticsItem::kKeyNone = "none";
53 const char * const MediaAnalyticsItem::EnabledProperty = "media.metrics.enabled";
54 const char * const MediaAnalyticsItem::EnabledPropertyPersist = "persist.media.metrics.enabled";
55 const int MediaAnalyticsItem::EnabledProperty_default = 1;
59 MediaAnalyticsItem::MediaAnalyticsItem() in MediaAnalyticsItem() function in android::MediaAnalyticsItem
62 mSessionID(MediaAnalyticsItem::SessionIDNone), in MediaAnalyticsItem()
67 mKey = MediaAnalyticsItem::kKeyNone; in MediaAnalyticsItem()
70 MediaAnalyticsItem::MediaAnalyticsItem(MediaAnalyticsItem::Key key) in MediaAnalyticsItem() function in android::MediaAnalyticsItem
73 mSessionID(MediaAnalyticsItem::SessionIDNone), in MediaAnalyticsItem()
[all …]
DIMediaAnalyticsService.cpp54 virtual MediaAnalyticsItem::SessionID_t generateUniqueSessionID() { in generateUniqueSessionID()
57 MediaAnalyticsItem::SessionID_t sessionid = in generateUniqueSessionID()
58 MediaAnalyticsItem::SessionIDInvalid; in generateUniqueSessionID()
64 return MediaAnalyticsItem::SessionIDInvalid; in generateUniqueSessionID()
73 virtual MediaAnalyticsItem::SessionID_t submit(MediaAnalyticsItem *item, bool forcenew) in submit()
85 return MediaAnalyticsItem::SessionIDInvalid; in submit()
97 return MediaAnalyticsItem::SessionIDInvalid; in submit()
134 MediaAnalyticsItem::SessionID_t sessionid = generateUniqueSessionID(); in onTransact()
144 MediaAnalyticsItem *item = new MediaAnalyticsItem; in onTransact()
152 MediaAnalyticsItem::SessionID_t sessionid = submit(item, forcenew); in onTransact()
DAndroid.mk7 MediaAnalyticsItem.cpp \
/frameworks/av/services/mediaanalytics/
DMediaAnalyticsService.h42 virtual int64_t submit(MediaAnalyticsItem *item, bool forcenew);
51 MediaAnalyticsItem::SessionID_t generateUniqueSessionID();
58 MediaAnalyticsItem::SessionID_t mLastSessionID;
73 bool contentValid(MediaAnalyticsItem *item, bool isTrusted);
74 bool rateLimited(MediaAnalyticsItem *);
78 List<MediaAnalyticsItem *> *mOpen;
81 List<MediaAnalyticsItem *> *mFinalized;
83 MediaAnalyticsItem *findItem(List<MediaAnalyticsItem *> *,
84 MediaAnalyticsItem *, bool removeit);
87 void summarize(MediaAnalyticsItem *item);
[all …]
DMetricsSummarizer.cpp52 mSummaries = new List<MediaAnalyticsItem *>(); in MetricsSummarizer()
65 MediaAnalyticsItem * oitem = *(mSummaries->begin()); in ~MetricsSummarizer()
86 bool MetricsSummarizer::isMine(MediaAnalyticsItem &item) in isMine()
106 List<MediaAnalyticsItem *>::iterator it = mSummaries->begin(); in dumpSummary()
132 void MetricsSummarizer::handleRecord(MediaAnalyticsItem *item) { in handleRecord()
141 List<MediaAnalyticsItem *>::iterator it = mSummaries->begin(); in handleRecord()
165 void MetricsSummarizer::mergeRecord(MediaAnalyticsItem &/*have*/, MediaAnalyticsItem &/*item*/) { in mergeRecord() argument
181 bool MetricsSummarizer::sameAttributes(MediaAnalyticsItem *summ, MediaAnalyticsItem *single, const … in sameAttributes()
191 MediaAnalyticsItem::Prop *prop1 = &(single->mProps[i]); in sameAttributes()
210 MediaAnalyticsItem::Prop *prop2 = summ->findProp(attrName); in sameAttributes()
[all …]
DMetricsSummarizer.h44 bool isMine(MediaAnalyticsItem &item);
47 void handleRecord(MediaAnalyticsItem *item);
49 virtual void mergeRecord(MediaAnalyticsItem &have, MediaAnalyticsItem &incoming);
63 …bool sameAttributes(MediaAnalyticsItem *summ, MediaAnalyticsItem *single, const char **ignoreables…
65 …bool sameAttributesId(MediaAnalyticsItem *summ, MediaAnalyticsItem *single, const char **ignoreabl…
68 void sortProps(MediaAnalyticsItem *item);
73 List<MediaAnalyticsItem *> *mSummaries;
DMediaAnalyticsService.cpp161 mOpen = new List<MediaAnalyticsItem *>(); in MediaAnalyticsService()
162 mFinalized = new List<MediaAnalyticsItem *>(); in MediaAnalyticsService()
189 MediaAnalyticsItem::SessionID_t MediaAnalyticsService::generateUniqueSessionID() { in generateUniqueSessionID()
197 MediaAnalyticsItem::SessionID_t MediaAnalyticsService::submit(MediaAnalyticsItem *item, bool forcen… in submit()
199 MediaAnalyticsItem::SessionID_t id = MediaAnalyticsItem::SessionIDInvalid; in submit()
242 return MediaAnalyticsItem::SessionIDInvalid; in submit()
261 MediaAnalyticsItem *oitem = findItem(mOpen, item, finalizing | forcenew); in submit()
412 MediaAnalyticsItem * oitem = *(mFinalized->begin()); in dump()
431 int enabled = MediaAnalyticsItem::isEnabled(); in dumpHeaders()
505 String8 MediaAnalyticsService::dumpQueue(List<MediaAnalyticsItem *> *theList) { in dumpQueue()
[all …]
DMetricsSummarizerPlayer.h41 virtual void mergeRecord(MediaAnalyticsItem &have, MediaAnalyticsItem &incoming);
DMetricsSummarizerPlayer.cpp54 void MetricsSummarizerPlayer::mergeRecord(MediaAnalyticsItem &summation, MediaAnalyticsItem &item) { in mergeRecord()
/frameworks/av/include/media/
DMediaAnalyticsItem.h39 class MediaAnalyticsItem {
81 MediaAnalyticsItem();
82 MediaAnalyticsItem(Key);
83 ~MediaAnalyticsItem();
86 MediaAnalyticsItem &setFinalized(bool);
93 MediaAnalyticsItem &setSessionID(SessionID_t);
94 MediaAnalyticsItem &clearSessionID();
101 MediaAnalyticsItem *dup();
105 MediaAnalyticsItem &setKey(MediaAnalyticsItem::Key);
106 MediaAnalyticsItem::Key getKey();
[all …]
DIMediaAnalyticsService.h44 virtual MediaAnalyticsItem::SessionID_t generateUniqueSessionID() = 0;
53 virtual MediaAnalyticsItem::SessionID_t submit(MediaAnalyticsItem *item, bool forcenew) = 0;
/frameworks/av/media/libmediametrics/include/
DMediaAnalyticsItem.h39 class MediaAnalyticsItem {
81 MediaAnalyticsItem();
82 MediaAnalyticsItem(Key);
83 ~MediaAnalyticsItem();
86 MediaAnalyticsItem &setFinalized(bool);
93 MediaAnalyticsItem &setSessionID(SessionID_t);
94 MediaAnalyticsItem &clearSessionID();
101 MediaAnalyticsItem *dup();
105 MediaAnalyticsItem &setKey(MediaAnalyticsItem::Key);
106 MediaAnalyticsItem::Key getKey();
[all …]
DIMediaAnalyticsService.h44 virtual MediaAnalyticsItem::SessionID_t generateUniqueSessionID() = 0;
53 virtual MediaAnalyticsItem::SessionID_t submit(MediaAnalyticsItem *item, bool forcenew) = 0;
/frameworks/base/media/jni/
Dandroid_media_MediaMetricsJNI.cpp28 jobject MediaMetricsJNI::writeMetricsToBundle(JNIEnv* env, MediaAnalyticsItem *item, jobject mybund… in writeMetricsToBundle()
58 MediaAnalyticsItem::Prop *prop = &item->mProps[i]; in writeMetricsToBundle()
63 case MediaAnalyticsItem::kTypeInt32: in writeMetricsToBundle()
67 case MediaAnalyticsItem::kTypeInt64: in writeMetricsToBundle()
71 case MediaAnalyticsItem::kTypeDouble: in writeMetricsToBundle()
75 case MediaAnalyticsItem::kTypeCString: in writeMetricsToBundle()
Dandroid_media_MediaMetricsJNI.h29 static jobject writeMetricsToBundle(JNIEnv* env, MediaAnalyticsItem *item, jobject mybundle);
Dandroid_media_MediaCodec.h120 status_t getMetrics(JNIEnv *env, MediaAnalyticsItem * &reply) const;
Dandroid_media_MediaRecorder.cpp650 MediaAnalyticsItem *item = new MediaAnalyticsItem; in android_media_MediaRecorder_native_getMetrics()
Dandroid_media_MediaExtractor.cpp833 MediaAnalyticsItem *item = new MediaAnalyticsItem; in android_media_MediaExtractor_native_getMetrics()
Dandroid_media_MediaPlayer.cpp727 MediaAnalyticsItem *item = new MediaAnalyticsItem; in android_media_MediaPlayer_native_getMetrics()
/frameworks/av/media/libstagefright/include/
DMediaExtractor.h83 MediaAnalyticsItem *mAnalyticsItem;
DMediaCodec.h189 status_t getMetrics(MediaAnalyticsItem * &reply);
318 MediaAnalyticsItem *mAnalyticsItem;
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDriver.h134 MediaAnalyticsItem *mAnalyticsItem;
DNuPlayerDriver.cpp79 mAnalyticsItem = new MediaAnalyticsItem(kKeyPlayer); in NuPlayerDriver()
601 mAnalyticsItem = new MediaAnalyticsItem("nuplayer"); in logMetrics()
/frameworks/av/media/libstagefright/
DMediaExtractor.cpp73 mAnalyticsItem = new MediaAnalyticsItem(kKeyExtractor); in MediaExtractor()
/frameworks/av/media/libmediaplayerservice/
DStagefrightRecorder.h90 MediaAnalyticsItem *mAnalyticsItem;

12