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.cpp85 Atoms atoms; in TEST() local
86 int errorCount = collate_atoms(Event::descriptor(), &atoms); in TEST()
89 EXPECT_EQ(3ul, atoms.signatures_to_modules.size()); in TEST()
92 EXPECT_SET_CONTAINS_SIGNATURE(atoms.signatures_to_modules, JAVA_TYPE_INT); in TEST()
95 EXPECT_SET_CONTAINS_SIGNATURE(atoms.signatures_to_modules, JAVA_TYPE_INT, JAVA_TYPE_INT); in TEST()
99 atoms.signatures_to_modules, in TEST()
118 set<AtomDecl>::const_iterator atom = atoms.decls.begin(); in TEST()
146 EXPECT_TRUE(atom == atoms.decls.end()); in TEST()
153 Atoms atoms; in TEST() local
154 int errorCount = collate_atoms(IntAtom::descriptor(), &atoms); in TEST()
[all …]
Datoms_info_writer.cpp27 static void write_atoms_info_header_body(FILE* out, const Atoms& atoms) { in write_atoms_info_header_body() argument
50 fprintf(out, "const static int kMaxPushedAtomId = %d;\n\n", atoms.maxPushedAtomId); in write_atoms_info_header_body()
54 static void write_atoms_info_cpp_body(FILE* out, const Atoms& atoms) { in write_atoms_info_cpp_body() argument
73 for (set<AtomDecl>::const_iterator atom = atoms.decls.begin(); in write_atoms_info_cpp_body()
74 atom != atoms.decls.end(); atom++) { in write_atoms_info_cpp_body()
90 for (set<AtomDecl>::const_iterator atom = atoms.decls.begin(); in write_atoms_info_cpp_body()
91 atom != atoms.decls.end(); atom++) { in write_atoms_info_cpp_body()
103 for (set<AtomDecl>::const_iterator atom = atoms.decls.begin(); in write_atoms_info_cpp_body()
104 atom != atoms.decls.end(); atom++) { in write_atoms_info_cpp_body()
128 for (set<AtomDecl>::const_iterator atom = atoms.decls.begin(); in write_atoms_info_cpp_body()
[all …]
Dnative_writer.cpp35 static int write_native_stats_write_methods(FILE* out, const Atoms& atoms, in write_native_stats_write_methods() argument
38 for (auto signature_to_modules_it = atoms.signatures_to_modules.begin(); in write_native_stats_write_methods()
39 signature_to_modules_it != atoms.signatures_to_modules.end(); signature_to_modules_it++) { in write_native_stats_write_methods()
163 static void write_native_stats_write_non_chained_methods(FILE* out, const Atoms& atoms, in write_native_stats_write_non_chained_methods() argument
166 for (auto signature_it = atoms.non_chained_signatures_to_modules.begin(); in write_native_stats_write_non_chained_methods()
167 signature_it != atoms.non_chained_signatures_to_modules.end(); signature_it++) { in write_native_stats_write_non_chained_methods()
219 int write_stats_log_cpp(FILE *out, const Atoms &atoms, const AtomDecl &attributionDecl, in write_stats_log_cpp() argument
244 write_native_try_stats_write_methods_q(out, atoms, attributionDecl, moduleName); in write_stats_log_cpp()
245 write_native_stats_write_methods_q(out, "int stats_write", atoms, attributionDecl, moduleName, in write_stats_log_cpp()
247 write_native_try_stats_write_non_chained_methods_q(out, atoms, attributionDecl, moduleName); in write_stats_log_cpp()
[all …]
Dnative_writer_q.cpp85 void write_native_try_stats_write_methods_q(FILE* out, const Atoms& atoms, in write_native_try_stats_write_methods_q() argument
88 for (auto signature_to_modules_it = atoms.signatures_to_modules.begin(); in write_native_try_stats_write_methods_q()
89 signature_to_modules_it != atoms.signatures_to_modules.end(); signature_to_modules_it++) { in write_native_try_stats_write_methods_q()
189 void write_native_stats_write_methods_q(FILE* out, const string& methodName, const Atoms& atoms, in write_native_stats_write_methods_q() argument
191 for (auto signature_to_modules_it = atoms.signatures_to_modules.begin(); in write_native_stats_write_methods_q()
192 signature_to_modules_it != atoms.signatures_to_modules.end(); in write_native_stats_write_methods_q()
207 const Atoms& atoms, const AtomDecl& attributionDecl, const string& moduleName, in write_native_stats_write_non_chained_methods_q() argument
209 for (auto signature_it = atoms.non_chained_signatures_to_modules.begin(); in write_native_stats_write_non_chained_methods_q()
210 signature_it != atoms.non_chained_signatures_to_modules.end(); signature_it++) { in write_native_stats_write_non_chained_methods_q()
223 void write_native_try_stats_write_non_chained_methods_q(FILE* out, const Atoms& atoms, in write_native_try_stats_write_non_chained_methods_q() argument
[all …]
Dnative_writer_q.h33 void write_native_try_stats_write_methods_q(FILE* out, const Atoms& atoms,
36 void write_native_stats_write_methods_q(FILE* out, const string& methodName, const Atoms& atoms,
39 void write_native_try_stats_write_non_chained_methods_q(FILE* out, const Atoms& atoms,
43 const Atoms& atoms, const AtomDecl& attributionDecl, const string& moduleName,
Dutils.cpp24 static void build_non_chained_decl_map(const Atoms& atoms, in build_non_chained_decl_map() argument
26 for (set<AtomDecl>::const_iterator atom = atoms.non_chained_decls.begin(); in build_non_chained_decl_map()
27 atom != atoms.non_chained_decls.end(); atom++) { in build_non_chained_decl_map()
168 void write_native_atom_constants(FILE* out, const Atoms& atoms, const AtomDecl& attributionDecl, in write_native_atom_constants() argument
176 build_non_chained_decl_map(atoms, &atom_code_to_non_chained_decl_map); in write_native_atom_constants()
180 for (set<AtomDecl>::const_iterator atom = atoms.decls.begin(); in write_native_atom_constants()
181 atom != atoms.decls.end(); atom++) { in write_native_atom_constants()
198 char const* const comma = (i == atoms.decls.size() - 1) ? "" : ","; in write_native_atom_constants()
267 void write_java_atom_codes(FILE* out, const Atoms& atoms, const string& moduleName) { in write_java_atom_codes() argument
271 build_non_chained_decl_map(atoms, &atom_code_to_non_chained_decl_map); in write_java_atom_codes()
[all …]
DCollation.cpp378 int collate_atoms(const Descriptor *descriptor, Atoms *atoms) { in collate_atoms() argument
420 auto signature_to_modules_it = atoms->signatures_to_modules.find(signature); in collate_atoms()
421 if (signature_to_modules_it == atoms->signatures_to_modules.end()) { in collate_atoms()
426 atoms->signatures_to_modules[signature] = modules; in collate_atoms()
432 atoms->decls.insert(atomDecl); in collate_atoms()
437 auto it = atoms->non_chained_signatures_to_modules.find(nonChainedSignature); in collate_atoms()
438 if (it == atoms->non_chained_signatures_to_modules.end()) { in collate_atoms()
443 atoms->non_chained_signatures_to_modules[nonChainedSignature] = modules_non_chained; in collate_atoms()
449 atoms->non_chained_decls.insert(nonChainedAtomDecl); in collate_atoms()
457 atoms->maxPushedAtomId = maxPushedAtomId; in collate_atoms()
[all …]
Dmain.cpp426 write_stats_log_jni(FILE* out, const Atoms& atoms, const AtomDecl &attributionDecl) in write_stats_log_jni() argument
457 …write_stats_log_jni_method(out, "write", "stats_write", atoms.signatures_to_modules, attributionDe… in write_stats_log_jni()
459 atoms.non_chained_signatures_to_modules, attributionDecl); in write_stats_log_jni()
468 write_jni_registration(out, "write", atoms.signatures_to_modules, attributionDecl); in write_stats_log_jni()
469 write_jni_registration(out, "write_non_chained", atoms.non_chained_signatures_to_modules, in write_stats_log_jni()
666 Atoms atoms; in run() local
667 int errorCount = collate_atoms(Atom::descriptor(), &atoms); in run()
685 out, atoms, cppNamespace, atomsInfoCppHeaderImport, cppHeaderImport); in run()
696 errorCount = android::stats_log_api_gen::write_atoms_info_header(out, atoms, cppNamespace); in run()
719 out, atoms, attributionDecl, moduleName, cppNamespace, cppHeaderImport, supportQ); in run()
[all …]
Djava_writer_q.cpp366 int write_stats_log_java_q_for_module(FILE* out, const Atoms& atoms, in write_stats_log_java_q_for_module() argument
388 write_java_atom_codes(out, atoms, moduleName); in write_stats_log_java_q_for_module()
390 write_java_enum_values(out, atoms, moduleName); in write_stats_log_java_q_for_module()
395 errors += write_java_methods_q_schema(out, atoms.signatures_to_modules, attributionDecl, in write_stats_log_java_q_for_module()
397 errors += write_java_non_chained_methods(out, atoms.non_chained_signatures_to_modules, in write_stats_log_java_q_for_module()
400 errors += write_java_work_source_methods(out, atoms.signatures_to_modules, moduleName); in write_stats_log_java_q_for_module()
440 int write_stats_log_java_q(FILE* out, const Atoms& atoms, const AtomDecl &attributionDecl, in write_stats_log_java_q() argument
453 write_java_atom_codes(out, atoms, DEFAULT_MODULE_NAME); in write_stats_log_java_q()
455 write_java_enum_values(out, atoms, DEFAULT_MODULE_NAME); in write_stats_log_java_q()
459 write_java_method(out, "write", atoms.signatures_to_modules, attributionDecl); in write_stats_log_java_q()
[all …]
Djava_writer.cpp254 int write_stats_log_java(FILE* out, const Atoms& atoms, const AtomDecl &attributionDecl, in write_stats_log_java() argument
282 write_java_atom_codes(out, atoms, moduleName); in write_stats_log_java()
283 write_java_enum_values(out, atoms, moduleName); in write_stats_log_java()
290 out, atoms.signatures_to_modules, attributionDecl, moduleName, supportQ); in write_stats_log_java()
292 out, atoms.non_chained_signatures_to_modules, moduleName); in write_stats_log_java()
294 errors += write_java_work_source_methods(out, atoms.signatures_to_modules, moduleName); in write_stats_log_java()
299 out, atoms.signatures_to_modules, attributionDecl, moduleName); in write_stats_log_java()
Dutils.h58 void write_native_atom_constants(FILE* out, const Atoms& atoms, const AtomDecl& attributionDecl,
69 void write_java_atom_codes(FILE* out, const Atoms& atoms, const string& moduleName);
71 void write_java_enum_values(FILE* out, const Atoms& atoms, const string& moduleName);
Datoms_info_writer.h29 int write_atoms_info_cpp(FILE* out, const Atoms& atoms, const string& namespaceStr,
32 int write_atoms_info_header(FILE* out, const Atoms& atoms, const string& namespaceStr);
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,
Djava_writer_q.h48 int write_stats_log_java_q_for_module(FILE* out, const Atoms& atoms,
53 int write_stats_log_java_q(FILE* out, const Atoms& atoms, const AtomDecl &attributionDecl,
Djava_writer.h33 int write_stats_log_java(FILE* out, const Atoms& atoms, const AtomDecl &attributionDecl,
DCollation.h120 int collate_atoms(const Descriptor* descriptor, Atoms* atoms);
/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/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/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",
260 "src/atoms.proto",
342 "src/atoms.proto",
393 "src/atoms.proto",
/frameworks/base/cmds/statsd/src/shell/
Dshell_data.proto24 import "frameworks/base/cmds/statsd/src/atoms.proto";
/frameworks/base/cmds/statsd/tools/localtools/src/com/android/statsd/shelltools/testdrive/
DTestDrive.java230 private static boolean hasPulledAtom(Set<Integer> atoms) { in hasPulledAtom() argument
231 for (Integer i : atoms) { in hasPulledAtom()
/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
/frameworks/av/media/extractors/fuzzers/
DREADME.md33 atoms are present in every input file that goes to the fuzzer.
34 This ensures that larger code gets covered as a range of MP4 atoms will be

12