Home
last modified time | relevance | path

Searched refs:vendorAtom (Results 1 – 9 of 9) sorted by relevance

/frameworks/native/services/stats/
DStatsAidl.cpp94 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()
[all …]
DStatsHal.cpp115 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()
[all …]
/frameworks/hardware/interfaces/stats/aidl/vts/java/src/com/android/vts/istats/
DVendorAtomTests.java84 final TestVendorAtom.TestVendorAtomReported vendorAtom = getVendorAtom(data); in testReportVendorAtomInt() local
85 assertThat(vendorAtom.getReverseDomainName()).isEqualTo("com.test.domain"); in testReportVendorAtomInt()
86 assertThat(vendorAtom.getIntValue()).isEqualTo(7); in testReportVendorAtomInt()
95 final TestVendorAtom.TestVendorAtomReported vendorAtom = getVendorAtom(data); in testReportVendorAtomRepeated() local
96 assertThat(vendorAtom.getReverseDomainName()).isEqualTo("com.test.domain"); in testReportVendorAtomRepeated()
97 assertThat(vendorAtom.getIntValue()).isEqualTo(7); in testReportVendorAtomRepeated()
98 assertThat(vendorAtom.getLongValue()).isEqualTo(70000L); in testReportVendorAtomRepeated()
99 assertThat(vendorAtom.getFloatValue()).isEqualTo(8.5f); in testReportVendorAtomRepeated()
100 assertThat(vendorAtom.getStringValue()).isEqualTo("testString"); in testReportVendorAtomRepeated()
101 assertThat(vendorAtom.getBoolValue()).isEqualTo(true); in testReportVendorAtomRepeated()
[all …]
/frameworks/hardware/interfaces/stats/aidl/aidl_api/android.frameworks.stats/current/android/frameworks/stats/
DIStats.aidl37 oneway void reportVendorAtom(in android.frameworks.stats.VendorAtom vendorAtom); in reportVendorAtom() argument
/frameworks/hardware/interfaces/stats/aidl/aidl_api/android.frameworks.stats/2/android/frameworks/stats/
DIStats.aidl37 oneway void reportVendorAtom(in android.frameworks.stats.VendorAtom vendorAtom); in reportVendorAtom() argument
/frameworks/hardware/interfaces/stats/aidl/aidl_api/android.frameworks.stats/1/android/frameworks/stats/
DIStats.aidl37 oneway void reportVendorAtom(in android.frameworks.stats.VendorAtom vendorAtom); in reportVendorAtom() argument
/frameworks/hardware/interfaces/stats/aidl/android/frameworks/stats/
DIStats.aidl34 oneway void reportVendorAtom(in VendorAtom vendorAtom); in reportVendorAtom() argument
/frameworks/native/services/stats/include/stats/
DStatsHal.h90 virtual Return<void> reportVendorAtom(const VendorAtom& vendorAtom) override;
/frameworks/hardware/interfaces/stats/1.0/
DIStats.hal110 oneway reportVendorAtom(VendorAtom vendorAtom);