Lines Matching refs:vendorAtom
94 ndk::ScopedAStatus StatsHal::reportVendorAtom(const VendorAtom& vendorAtom) { in reportVendorAtom() argument
95 if (vendorAtom.atomId < 100000 || vendorAtom.atomId >= 200000) { in reportVendorAtom()
96 ALOGE("Atom ID %ld is not a valid vendor atom ID", (long)vendorAtom.atomId); in reportVendorAtom()
101 if (vendorAtom.reverseDomainName.length() > 50) { in reportVendorAtom()
103 vendorAtom.reverseDomainName.c_str()); in reportVendorAtom()
109 AStatsEvent_setAtomId(event, vendorAtom.atomId); in reportVendorAtom()
111 if (vendorAtom.atomAnnotations) { in reportVendorAtom()
112 if (!write_atom_annotations(event, *vendorAtom.atomAnnotations)) { in reportVendorAtom()
114 ALOGE("Atom ID %ld has incompatible atom level annotation", (long)vendorAtom.atomId); in reportVendorAtom()
123 if (vendorAtom.valuesAnnotations) { in reportVendorAtom()
125 *vendorAtom.valuesAnnotations; in reportVendorAtom()
133 AStatsEvent_writeString(event, vendorAtom.reverseDomainName.c_str()); in reportVendorAtom()
135 for (const auto& atomValue : vendorAtom.values) { in reportVendorAtom()
235 ALOGE("Atom ID %ld has invalid atomValue.getTag", (long)vendorAtom.atomId); in reportVendorAtom()
246 (*vendorAtom.valuesAnnotations)[valueAnnotationIndex->second]->annotations; in reportVendorAtom()
247 VLOG("Atom ID %ld has %ld annotations for field #%ld", (long)vendorAtom.atomId, in reportVendorAtom()
252 (long)vendorAtom.atomId, (long)atomValueIdx + 2); in reportVendorAtom()
264 ALOGE("Error writing Atom ID %ld. Result: %d", (long)vendorAtom.atomId, ret); in reportVendorAtom()