Home
last modified time | relevance | path

Searched refs:atoms (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/tools/stats_log_api_gen/
Dtest_collation.cpp81 Atoms atoms; in TEST() local
82 int errorCount = collate_atoms(Event::descriptor(), DEFAULT_MODULE_NAME, &atoms); in TEST()
85 EXPECT_EQ(3ul, atoms.signatureInfoMap.size()); in TEST()
88 EXPECT_MAP_CONTAINS_SIGNATURE(atoms.signatureInfoMap, JAVA_TYPE_INT); in TEST()
91 EXPECT_MAP_CONTAINS_SIGNATURE(atoms.signatureInfoMap, JAVA_TYPE_INT, JAVA_TYPE_INT); in TEST()
94 EXPECT_MAP_CONTAINS_SIGNATURE(atoms.signatureInfoMap, in TEST()
112 EXPECT_EQ(4ul, atoms.decls.size()); in TEST()
114 AtomDeclSet::const_iterator atomIt = atoms.decls.begin(); in TEST()
142 EXPECT_EQ(atoms.decls.end(), atomIt); in TEST()
149 Atoms atoms; in TEST() local
[all …]
Dnative_writer.cpp85 static int write_native_stats_write_methods(FILE* out, const Atoms& atoms, in write_native_stats_write_methods() argument
88 for (auto signatureInfoMapIt = atoms.signatureInfoMap.begin(); in write_native_stats_write_methods()
89 signatureInfoMapIt != atoms.signatureInfoMap.end(); signatureInfoMapIt++) { in write_native_stats_write_methods()
201 static void write_native_stats_write_non_chained_methods(FILE* out, const Atoms& atoms, in write_native_stats_write_non_chained_methods() argument
204 for (auto signature_it = atoms.nonChainedSignatureInfoMap.begin(); in write_native_stats_write_non_chained_methods()
205 signature_it != atoms.nonChainedSignatureInfoMap.end(); signature_it++) { in write_native_stats_write_non_chained_methods()
253 int write_stats_log_cpp(FILE* out, const Atoms& atoms, const AtomDecl& attributionDecl, in write_stats_log_cpp() argument
270 write_native_stats_write_methods(out, atoms, attributionDecl, supportQ); in write_stats_log_cpp()
271 write_native_stats_write_non_chained_methods(out, atoms, attributionDecl); in write_stats_log_cpp()
280 int write_stats_log_header(FILE* out, const Atoms& atoms, const AtomDecl& attributionDecl, in write_stats_log_header() argument
[all …]
Dutils.cpp24 static void build_non_chained_decl_map(const Atoms& atoms, in build_non_chained_decl_map() argument
26 for (AtomDeclSet::const_iterator atomIt = atoms.non_chained_decls.begin(); in build_non_chained_decl_map()
27 atomIt != atoms.non_chained_decls.end(); atomIt++) { in build_non_chained_decl_map()
151 void write_native_atom_constants(FILE* out, const Atoms& atoms, const AtomDecl& attributionDecl) { in write_native_atom_constants() argument
158 build_non_chained_decl_map(atoms, &atom_code_to_non_chained_decl_map); in write_native_atom_constants()
162 for (AtomDeclSet::const_iterator atomIt = atoms.decls.begin(); atomIt != atoms.decls.end(); in write_native_atom_constants()
176 char const* const comma = (i == atoms.decls.size() - 1) ? "" : ","; in write_native_atom_constants()
245 void write_java_atom_codes(FILE* out, const Atoms& atoms) { in write_java_atom_codes() argument
249 build_non_chained_decl_map(atoms, &atom_code_to_non_chained_decl_map); in write_java_atom_codes()
252 for (AtomDeclSet::const_iterator atomIt = atoms.decls.begin(); atomIt != atoms.decls.end(); in write_java_atom_codes()
[all …]
Dmain.cpp166 Atoms atoms; in run() local
167 int errorCount = collate_atoms(Atom::descriptor(), moduleName, &atoms); in run()
196 out, atoms, attributionDecl, cppNamespace, cppHeaderImport, supportQ); in run()
211 errorCount = android::stats_log_api_gen::write_stats_log_header(out, atoms, attributionDecl, in run()
241 out, atoms, attributionDecl, javaClass, javaPackage, supportWorkSource); in run()
244 out, atoms, attributionDecl, javaClass, javaPackage, supportQ, in run()
Dutils.h60 void write_native_atom_constants(FILE* out, const Atoms& atoms, const AtomDecl& attributionDecl);
71 void write_java_atom_codes(FILE* out, const Atoms& atoms);
73 void write_java_enum_values(FILE* out, const Atoms& atoms);
Djava_writer.cpp288 int write_stats_log_java(FILE* out, const Atoms& atoms, const AtomDecl& attributionDecl, in write_stats_log_java() argument
312 write_java_atom_codes(out, atoms); in write_stats_log_java()
313 write_java_enum_values(out, atoms); in write_stats_log_java()
320 errors += write_java_methods(out, atoms.signatureInfoMap, attributionDecl, supportQ); in write_stats_log_java()
321 errors += write_java_non_chained_methods(out, atoms.nonChainedSignatureInfoMap); in write_stats_log_java()
323 errors += write_java_work_source_methods(out, atoms.signatureInfoMap); in write_stats_log_java()
327 errors += write_java_q_logger_class(out, atoms.signatureInfoMap, attributionDecl); in write_stats_log_java()
Dnative_writer.h29 int write_stats_log_cpp(FILE* out, const Atoms& atoms, const AtomDecl& attributionDecl,
33 int write_stats_log_header(FILE* out, const Atoms& atoms, const AtomDecl& attributionDecl,
DCollation.cpp476 int collate_atoms(const Descriptor* descriptor, const string& moduleName, Atoms* atoms) { in collate_atoms() argument
540 FieldNumberToAtomDeclSet& fieldNumberToAtomDeclSet = atoms->signatureInfoMap[signature]; in collate_atoms()
543 atoms->decls.insert(atomDecl); in collate_atoms()
550 atoms->nonChainedSignatureInfoMap[nonChainedSignature]; in collate_atoms()
554 atoms->non_chained_decls.insert(nonChainedAtomDecl); in collate_atoms()
560 for (SignatureInfoMap::const_iterator it = atoms->signatureInfoMap.begin(); in collate_atoms()
561 it != atoms->signatureInfoMap.end(); it++) { in collate_atoms()
Djava_writer.h33 int write_stats_log_java(FILE* out, const Atoms& atoms, const AtomDecl& attributionDecl,
Djava_writer_q.h41 int write_stats_log_java_q_for_module(FILE* out, const Atoms& atoms,
Djava_writer_q.cpp561 int write_stats_log_java_q_for_module(FILE* out, const Atoms& atoms, in write_stats_log_java_q_for_module() argument
582 write_java_atom_codes(out, atoms); in write_stats_log_java_q_for_module()
584 write_java_enum_values(out, atoms); in write_stats_log_java_q_for_module()
589 errors += write_java_methods_q_schema(out, atoms.signatureInfoMap, attributionDecl, " "); in write_stats_log_java_q_for_module()
590 errors += write_java_non_chained_methods(out, atoms.nonChainedSignatureInfoMap); in write_stats_log_java_q_for_module()
592 errors += write_java_work_source_methods(out, atoms.signatureInfoMap); in write_stats_log_java_q_for_module()
DCollation.h195 int collate_atoms(const Descriptor* descriptor, const string& moduleName, Atoms* atoms);
Dtest.proto19 import "frameworks/base/cmds/statsd/src/atoms.proto";
/frameworks/base/cmds/statsd/tools/localtools/test/com/android/statsd/shelltools/testdrive/
DTestDriveTest.java43 public Integer[] atoms; field in TestDriveTest.Expect
49 static Expect success(Integer... atoms) { in success() argument
50 return new Expect(true, atoms, in success()
53 Expect(boolean success, Integer[] atoms, String target) { in Expect() argument
55 this.atoms = atoms; in Expect()
183 assertArrayEquals(mExpect.atoms, collectAtoms(mConfiguration)); in testProcessArgs()
/frameworks/base/core/proto/android/server/
Dblobstoremanagerservice.proto23 // of the same name in frameworks/base/cmds/statsd/src/atoms.proto
28 // frameworks/base/cmds/statsd/src/atoms.proto
46 // frameworks/base/cmds/statsd/src/atoms.proto
58 // frameworks/base/cmds/statsd/src/atoms.proto
66 // frameworks/base/cmds/statsd/src/atoms.proto
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DPersistAtomsStorage.java169 PersistAtoms atoms = new PersistAtoms(); in makeNewPersistAtoms() local
171 atoms.rawVoiceCallRatUsagePullTimestampMillis = getWallTimeMillis(); in makeNewPersistAtoms()
172 atoms.voiceCallSessionPullTimestampMillis = getWallTimeMillis(); in makeNewPersistAtoms()
174 return atoms; in makeNewPersistAtoms()
/frameworks/base/cmds/statsd/src/
Dexperiment_ids.proto25 // BinaryPushStateChanged atoms. This needs to be in sync with
26 // TrainExperimentIds in atoms.proto.
/frameworks/opt/telephony/proto/src/
Dpersist_atoms.proto24 // Holds atoms to store on persist storage in case of power cycle or process crash.
43 // The canonical versions of the following atoms live in:
44 // frameworks/base/cmds/statsd/src/atoms.proto
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/logging/
DNotifications.proto20 * NotificationList proto from atoms.proto, duplicated here so that it's accessible in the build.
21 * Must be kept in sync with the version in atoms.proto.
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DPersistAtomsStorageTest.java699 PersistAtoms atoms = new PersistAtoms(); in createEmptyTestFile() local
701 stream.write(PersistAtoms.toByteArray(atoms)); in createEmptyTestFile()
706 PersistAtoms atoms = new PersistAtoms(); in createTestFile() local
707 atoms.rawVoiceCallRatUsagePullTimestampMillis = lastPullTimeMillis; in createTestFile()
708 atoms.voiceCallSessionPullTimestampMillis = lastPullTimeMillis; in createTestFile()
709 atoms.rawVoiceCallRatUsage = mVoiceCallRatUsages; in createTestFile()
710 atoms.voiceCallSession = mVoiceCallSessions; in createTestFile()
712 stream.write(PersistAtoms.toByteArray(atoms)); in createTestFile()
/frameworks/base/cmds/statsd/
DAndroid.bp23 "src/atoms.proto",
280 "src/atoms.proto",
371 "src/atoms.proto",
413 "src/atoms.proto",
/frameworks/base/cmds/statsd/src/shell/
Dshell_data.proto24 import "frameworks/base/cmds/statsd/src/atoms.proto";
/frameworks/base/core/proto/android/stats/sysui/
Dnotification_enums.proto21 // Enum used in NotificationReported and NotificationChannelModified atoms
/frameworks/base/core/proto/android/os/
Dstatsdata.proto30 // in AOSP because it would drag with it atoms.proto, which is enormous and awkward.
Dheader.proto42 // Only use bytes type here to avoid indirect dependency on atoms.proto

12