Lines Matching refs:MediaAnalyticsItem

48 const MediaAnalyticsItem::Key MediaAnalyticsItem::kKeyAny  = "any";
49 const MediaAnalyticsItem::Key MediaAnalyticsItem::kKeyNone = "none";
51 const char * const MediaAnalyticsItem::EnabledProperty = "media.metrics.enabled";
52 const char * const MediaAnalyticsItem::EnabledPropertyPersist = "persist.media.metrics.enabled";
53 const int MediaAnalyticsItem::EnabledProperty_default = 1;
56 MediaAnalyticsItem *MediaAnalyticsItem::create() in create()
58 return MediaAnalyticsItem::create(kKeyNone); in create()
61 MediaAnalyticsItem *MediaAnalyticsItem::create(MediaAnalyticsItem::Key key) in create()
63 MediaAnalyticsItem *item = new MediaAnalyticsItem(key); in create()
67 MediaAnalyticsItem* MediaAnalyticsItem::convert(mediametrics_handle_t handle) { in convert()
68 MediaAnalyticsItem *item = (android::MediaAnalyticsItem *) handle; in convert()
72 mediametrics_handle_t MediaAnalyticsItem::convert(MediaAnalyticsItem *item ) { in convert()
78 MediaAnalyticsItem::MediaAnalyticsItem() in MediaAnalyticsItem() function in android::MediaAnalyticsItem
82 mSessionID(MediaAnalyticsItem::SessionIDNone), in MediaAnalyticsItem()
87 mKey = MediaAnalyticsItem::kKeyNone; in MediaAnalyticsItem()
90 MediaAnalyticsItem::MediaAnalyticsItem(MediaAnalyticsItem::Key key) in MediaAnalyticsItem() function in android::MediaAnalyticsItem
94 mSessionID(MediaAnalyticsItem::SessionIDNone), in MediaAnalyticsItem()
105 MediaAnalyticsItem::~MediaAnalyticsItem() { in ~MediaAnalyticsItem()
112 void MediaAnalyticsItem::clear() { in clear()
118 mSessionID = MediaAnalyticsItem::SessionIDNone; in clear()
137 MediaAnalyticsItem *MediaAnalyticsItem::dup() { in dup()
138 MediaAnalyticsItem *dst = new MediaAnalyticsItem(this->mKey); in dup()
161 MediaAnalyticsItem &MediaAnalyticsItem::setSessionID(MediaAnalyticsItem::SessionID_t id) { in setSessionID()
166 MediaAnalyticsItem::SessionID_t MediaAnalyticsItem::getSessionID() const { in getSessionID()
170 MediaAnalyticsItem::SessionID_t MediaAnalyticsItem::generateSessionID() { in generateSessionID()
174 MediaAnalyticsItem::SessionID_t newid = SessionIDNone; in generateSessionID()
185 MediaAnalyticsItem &MediaAnalyticsItem::clearSessionID() { in clearSessionID()
186 mSessionID = MediaAnalyticsItem::SessionIDNone; in clearSessionID()
190 MediaAnalyticsItem &MediaAnalyticsItem::setTimestamp(nsecs_t ts) { in setTimestamp()
195 nsecs_t MediaAnalyticsItem::getTimestamp() const { in getTimestamp()
199 MediaAnalyticsItem &MediaAnalyticsItem::setPid(pid_t pid) { in setPid()
204 pid_t MediaAnalyticsItem::getPid() const { in getPid()
208 MediaAnalyticsItem &MediaAnalyticsItem::setUid(uid_t uid) { in setUid()
213 uid_t MediaAnalyticsItem::getUid() const { in getUid()
217 MediaAnalyticsItem &MediaAnalyticsItem::setPkgName(const std::string &pkgName) { in setPkgName()
222 MediaAnalyticsItem &MediaAnalyticsItem::setPkgVersionCode(int64_t pkgVersionCode) { in setPkgVersionCode()
227 int64_t MediaAnalyticsItem::getPkgVersionCode() const { in getPkgVersionCode()
232 MediaAnalyticsItem &MediaAnalyticsItem::setKey(MediaAnalyticsItem::Key key) { in setKey()
237 MediaAnalyticsItem::Key MediaAnalyticsItem::getKey() { in getKey()
242 int32_t MediaAnalyticsItem::count() const { in count()
247 size_t MediaAnalyticsItem::findPropIndex(const char *name, size_t len) in findPropIndex()
262 MediaAnalyticsItem::Prop *MediaAnalyticsItem::findProp(const char *name) { in findProp()
271 void MediaAnalyticsItem::Prop::setName(const char *name, size_t len) { in setName()
283 MediaAnalyticsItem::Prop *MediaAnalyticsItem::allocateProp(const char *name) { in allocateProp()
306 bool MediaAnalyticsItem::removeProp(const char *name) { in removeProp()
324 void MediaAnalyticsItem::setInt32(MediaAnalyticsItem::Attr name, int32_t value) { in setInt32()
333 void MediaAnalyticsItem::setInt64(MediaAnalyticsItem::Attr name, int64_t value) { in setInt64()
342 void MediaAnalyticsItem::setDouble(MediaAnalyticsItem::Attr name, double value) { in setDouble()
351 void MediaAnalyticsItem::setCString(MediaAnalyticsItem::Attr name, const char *value) { in setCString()
362 void MediaAnalyticsItem::setRate(MediaAnalyticsItem::Attr name, int64_t count, int64_t duration) { in setRate()
374 void MediaAnalyticsItem::addInt32(MediaAnalyticsItem::Attr name, int32_t value) { in addInt32()
391 void MediaAnalyticsItem::addInt64(MediaAnalyticsItem::Attr name, int64_t value) { in addInt64()
408 void MediaAnalyticsItem::addRate(MediaAnalyticsItem::Attr name, int64_t count, int64_t duration) { in addRate()
427 void MediaAnalyticsItem::addDouble(MediaAnalyticsItem::Attr name, double value) { in addDouble()
445 bool MediaAnalyticsItem::getInt32(MediaAnalyticsItem::Attr name, int32_t *value) { in getInt32()
456 bool MediaAnalyticsItem::getInt64(MediaAnalyticsItem::Attr name, int64_t *value) { in getInt64()
467 bool MediaAnalyticsItem::getRate(MediaAnalyticsItem::Attr name, int64_t *count, int64_t *duration, … in getRate()
488 bool MediaAnalyticsItem::getDouble(MediaAnalyticsItem::Attr name, double *value) { in getDouble()
500 bool MediaAnalyticsItem::getCString(MediaAnalyticsItem::Attr name, char **value) { in getCString()
511 bool MediaAnalyticsItem::getString(MediaAnalyticsItem::Attr name, std::string *value) { in getString()
525 int32_t MediaAnalyticsItem::filter(int n, MediaAnalyticsItem::Attr attrs[]) { in filter()
555 int32_t MediaAnalyticsItem::filterNot(int n, MediaAnalyticsItem::Attr attrs[]) { in filterNot()
580 int32_t MediaAnalyticsItem::filter(MediaAnalyticsItem::Attr name) { in filter()
587 void MediaAnalyticsItem::initProp(Prop *prop) { in initProp()
596 void MediaAnalyticsItem::clearProp(Prop *prop) in clearProp()
609 void MediaAnalyticsItem::clearPropValue(Prop *prop) in clearPropValue()
620 void MediaAnalyticsItem::copyProp(Prop *dst, const Prop *src) in copyProp()
641 bool MediaAnalyticsItem::growProps(int increment) in growProps()
665 int32_t MediaAnalyticsItem::readFromParcel(const Parcel& data) { in readFromParcel()
678 int32_t MediaAnalyticsItem::readFromParcel0(const Parcel& data) { in readFromParcel0()
695 MediaAnalyticsItem::Attr attr = data.readCString(); in readFromParcel0()
698 case MediaAnalyticsItem::kTypeInt32: in readFromParcel0()
701 case MediaAnalyticsItem::kTypeInt64: in readFromParcel0()
704 case MediaAnalyticsItem::kTypeDouble: in readFromParcel0()
707 case MediaAnalyticsItem::kTypeCString: in readFromParcel0()
710 case MediaAnalyticsItem::kTypeRate: in readFromParcel0()
727 int32_t MediaAnalyticsItem::writeToParcel(Parcel *data) { in writeToParcel()
744 int32_t MediaAnalyticsItem::writeToParcel0(Parcel *data) { in writeToParcel0()
763 case MediaAnalyticsItem::kTypeInt32: in writeToParcel0()
766 case MediaAnalyticsItem::kTypeInt64: in writeToParcel0()
769 case MediaAnalyticsItem::kTypeDouble: in writeToParcel0()
772 case MediaAnalyticsItem::kTypeRate: in writeToParcel0()
776 case MediaAnalyticsItem::kTypeCString: in writeToParcel0()
789 const char *MediaAnalyticsItem::toCString() { in toCString()
793 const char * MediaAnalyticsItem::toCString(int version) { in toCString()
798 std::string MediaAnalyticsItem::toString() { in toString()
802 std::string MediaAnalyticsItem::toString(int version) { in toString()
861 case MediaAnalyticsItem::kTypeInt32: in toString()
865 case MediaAnalyticsItem::kTypeInt64: in toString()
869 case MediaAnalyticsItem::kTypeDouble: in toString()
873 case MediaAnalyticsItem::kTypeRate: in toString()
878 case MediaAnalyticsItem::kTypeCString: in toString()
905 bool MediaAnalyticsItem::selfrecord() { in selfrecord()
909 bool MediaAnalyticsItem::selfrecord(bool forcenew) { in selfrecord()
919 MediaAnalyticsItem::SessionID_t newid = svc->submit(this, forcenew); in selfrecord()
933 sp<IMediaAnalyticsService> MediaAnalyticsItem::sAnalyticsService;
938 bool MediaAnalyticsItem::isEnabled() { in isEnabled()
939 int enabled = property_get_int32(MediaAnalyticsItem::EnabledProperty, -1); in isEnabled()
942 enabled = property_get_int32(MediaAnalyticsItem::EnabledPropertyPersist, -1); in isEnabled()
945 enabled = MediaAnalyticsItem::EnabledProperty_default; in isEnabled()
958 MediaAnalyticsItem::dropInstance(); in binderDied()
965 void MediaAnalyticsItem::dropInstance() { in dropInstance()
972 sp<IMediaAnalyticsService> MediaAnalyticsItem::getInstance() { in getInstance()
1043 bool MediaAnalyticsItem::merge(MediaAnalyticsItem *incoming) { in merge()
1099 bool MediaAnalyticsItem::dumpAttributes(char **pbuffer, size_t *plength) { in dumpAttributes()
1125 case MediaAnalyticsItem::kTypeInt32: in dumpAttributes()
1128 case MediaAnalyticsItem::kTypeInt64: in dumpAttributes()
1131 case MediaAnalyticsItem::kTypeDouble: in dumpAttributes()
1134 case MediaAnalyticsItem::kTypeRate: in dumpAttributes()
1137 case MediaAnalyticsItem::kTypeCString: in dumpAttributes()
1174 case MediaAnalyticsItem::kTypeInt32: in dumpAttributes()
1184 case MediaAnalyticsItem::kTypeInt64: in dumpAttributes()
1194 case MediaAnalyticsItem::kTypeDouble: in dumpAttributes()
1204 case MediaAnalyticsItem::kTypeRate: in dumpAttributes()
1215 case MediaAnalyticsItem::kTypeCString: in dumpAttributes()