Lines Matching refs:MediaAnalyticsItem
50 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()
84 MediaAnalyticsItem::~MediaAnalyticsItem() { in ~MediaAnalyticsItem()
91 void MediaAnalyticsItem::clear() { in clear()
97 mSessionID = MediaAnalyticsItem::SessionIDNone; in clear()
116 MediaAnalyticsItem *MediaAnalyticsItem::dup() { in dup()
117 MediaAnalyticsItem *dst = new MediaAnalyticsItem(this->mKey); in dup()
139 MediaAnalyticsItem &MediaAnalyticsItem::setFinalized(bool value) { in setFinalized()
144 bool MediaAnalyticsItem::getFinalized() const { in getFinalized()
148 MediaAnalyticsItem &MediaAnalyticsItem::setSessionID(MediaAnalyticsItem::SessionID_t id) { in setSessionID()
153 MediaAnalyticsItem::SessionID_t MediaAnalyticsItem::getSessionID() const { in getSessionID()
157 MediaAnalyticsItem::SessionID_t MediaAnalyticsItem::generateSessionID() { in generateSessionID()
161 MediaAnalyticsItem::SessionID_t newid = SessionIDNone; in generateSessionID()
172 MediaAnalyticsItem &MediaAnalyticsItem::clearSessionID() { in clearSessionID()
173 mSessionID = MediaAnalyticsItem::SessionIDNone; in clearSessionID()
177 MediaAnalyticsItem &MediaAnalyticsItem::setTimestamp(nsecs_t ts) { in setTimestamp()
182 nsecs_t MediaAnalyticsItem::getTimestamp() const { in getTimestamp()
186 MediaAnalyticsItem &MediaAnalyticsItem::setPid(pid_t pid) { in setPid()
191 pid_t MediaAnalyticsItem::getPid() const { in getPid()
195 MediaAnalyticsItem &MediaAnalyticsItem::setUid(uid_t uid) { in setUid()
200 uid_t MediaAnalyticsItem::getUid() const { in getUid()
205 MediaAnalyticsItem &MediaAnalyticsItem::setKey(MediaAnalyticsItem::Key key) { in setKey()
210 MediaAnalyticsItem::Key MediaAnalyticsItem::getKey() { in getKey()
215 int32_t MediaAnalyticsItem::count() const { in count()
220 size_t MediaAnalyticsItem::findPropIndex(const char *name, size_t len) in findPropIndex()
235 MediaAnalyticsItem::Prop *MediaAnalyticsItem::findProp(const char *name) { in findProp()
244 void MediaAnalyticsItem::Prop::setName(const char *name, size_t len) { in setName()
251 MediaAnalyticsItem::Prop *MediaAnalyticsItem::allocateProp(const char *name) { in allocateProp()
272 void MediaAnalyticsItem::setInt32(MediaAnalyticsItem::Attr name, int32_t value) { in setInt32()
278 void MediaAnalyticsItem::setInt64(MediaAnalyticsItem::Attr name, int64_t value) { in setInt64()
284 void MediaAnalyticsItem::setDouble(MediaAnalyticsItem::Attr name, double value) { in setDouble()
290 void MediaAnalyticsItem::setCString(MediaAnalyticsItem::Attr name, const char *value) { in setCString()
298 void MediaAnalyticsItem::setRate(MediaAnalyticsItem::Attr name, int64_t count, int64_t duration) { in setRate()
307 void MediaAnalyticsItem::addInt32(MediaAnalyticsItem::Attr name, int32_t value) { in addInt32()
321 void MediaAnalyticsItem::addInt64(MediaAnalyticsItem::Attr name, int64_t value) { in addInt64()
335 void MediaAnalyticsItem::addRate(MediaAnalyticsItem::Attr name, int64_t count, int64_t duration) { in addRate()
351 void MediaAnalyticsItem::addDouble(MediaAnalyticsItem::Attr name, double value) { in addDouble()
366 bool MediaAnalyticsItem::getInt32(MediaAnalyticsItem::Attr name, int32_t *value) { in getInt32()
377 bool MediaAnalyticsItem::getInt64(MediaAnalyticsItem::Attr name, int64_t *value) { in getInt64()
388 bool MediaAnalyticsItem::getRate(MediaAnalyticsItem::Attr name, int64_t *count, int64_t *duration, … in getRate()
409 bool MediaAnalyticsItem::getDouble(MediaAnalyticsItem::Attr name, double *value) { in getDouble()
421 bool MediaAnalyticsItem::getCString(MediaAnalyticsItem::Attr name, char **value) { in getCString()
434 int32_t MediaAnalyticsItem::filter(int n, MediaAnalyticsItem::Attr attrs[]) { in filter()
464 int32_t MediaAnalyticsItem::filterNot(int n, MediaAnalyticsItem::Attr attrs[]) { in filterNot()
489 int32_t MediaAnalyticsItem::filter(MediaAnalyticsItem::Attr name) { in filter()
496 void MediaAnalyticsItem::initProp(Prop *prop) { in initProp()
505 void MediaAnalyticsItem::clearProp(Prop *prop) in clearProp()
518 void MediaAnalyticsItem::clearPropValue(Prop *prop) in clearPropValue()
529 void MediaAnalyticsItem::copyProp(Prop *dst, const Prop *src) in copyProp()
547 void MediaAnalyticsItem::growProps(int increment) in growProps()
567 int32_t MediaAnalyticsItem::readFromParcel(const Parcel& data) { in readFromParcel()
577 MediaAnalyticsItem::Attr attr = data.readCString(); in readFromParcel()
580 case MediaAnalyticsItem::kTypeInt32: in readFromParcel()
583 case MediaAnalyticsItem::kTypeInt64: in readFromParcel()
586 case MediaAnalyticsItem::kTypeDouble: in readFromParcel()
589 case MediaAnalyticsItem::kTypeCString: in readFromParcel()
592 case MediaAnalyticsItem::kTypeRate: in readFromParcel()
609 int32_t MediaAnalyticsItem::writeToParcel(Parcel *data) { in writeToParcel()
626 case MediaAnalyticsItem::kTypeInt32: in writeToParcel()
629 case MediaAnalyticsItem::kTypeInt64: in writeToParcel()
632 case MediaAnalyticsItem::kTypeDouble: in writeToParcel()
635 case MediaAnalyticsItem::kTypeRate: in writeToParcel()
639 case MediaAnalyticsItem::kTypeCString: in writeToParcel()
653 AString MediaAnalyticsItem::toString() { in toString()
683 case MediaAnalyticsItem::kTypeInt32: in toString()
687 case MediaAnalyticsItem::kTypeInt64: in toString()
691 case MediaAnalyticsItem::kTypeDouble: in toString()
695 case MediaAnalyticsItem::kTypeRate: in toString()
700 case MediaAnalyticsItem::kTypeCString: in toString()
723 bool MediaAnalyticsItem::selfrecord() { in selfrecord()
727 bool MediaAnalyticsItem::selfrecord(bool forcenew) { in selfrecord()
748 sp<IMediaAnalyticsService> MediaAnalyticsItem::sAnalyticsService;
752 bool MediaAnalyticsItem::isEnabled() { in isEnabled()
753 int enabled = property_get_int32(MediaAnalyticsItem::EnabledProperty, -1); in isEnabled()
756 enabled = property_get_int32(MediaAnalyticsItem::EnabledPropertyPersist, -1); in isEnabled()
759 enabled = MediaAnalyticsItem::EnabledProperty_default; in isEnabled()
768 sp<IMediaAnalyticsService> MediaAnalyticsItem::getInstance() { in getInstance()
835 bool MediaAnalyticsItem::merge(MediaAnalyticsItem *incoming) { in merge()