Lines Matching refs:vendorAtom
115 hardware::Return<void> StatsHal::reportVendorAtom(const VendorAtom& vendorAtom) { in reportVendorAtom() argument
116 if (vendorAtom.atomId < 100000 || vendorAtom.atomId >= 200000) { in reportVendorAtom()
117 ALOGE("Atom ID %ld is not a valid vendor atom ID", (long)vendorAtom.atomId); in reportVendorAtom()
120 if (vendorAtom.reverseDomainName.size() > 50) { in reportVendorAtom()
122 vendorAtom.reverseDomainName.c_str()); in reportVendorAtom()
126 AStatsEvent_setAtomId(event, vendorAtom.atomId); in reportVendorAtom()
127 AStatsEvent_writeString(event, vendorAtom.reverseDomainName.c_str()); in reportVendorAtom()
128 for (int i = 0; i < (int)vendorAtom.values.size(); i++) { in reportVendorAtom()
129 switch (vendorAtom.values[i].getDiscriminator()) { in reportVendorAtom()
131 AStatsEvent_writeInt32(event, vendorAtom.values[i].intValue()); in reportVendorAtom()
134 AStatsEvent_writeInt64(event, vendorAtom.values[i].longValue()); in reportVendorAtom()
137 AStatsEvent_writeFloat(event, vendorAtom.values[i].floatValue()); in reportVendorAtom()
140 AStatsEvent_writeString(event, vendorAtom.values[i].stringValue().c_str()); in reportVendorAtom()