Home
last modified time | relevance | path

Searched refs:atomDecl (Results 1 – 8 of 8) sorted by relevance

/frameworks/proto_logging/stats/stats_log_api_gen/
Drust_writer.cpp109 static void write_rust_method_signature(FILE* out, const char* namePrefix, const AtomDecl& atomDecl, in write_rust_method_signature() argument
117 fprintf(out, " %s::%s(", atomDecl.name.c_str(), namePrefix); in write_rust_method_signature()
122 if (atomDecl.atomType == ATOM_TYPE_PULLED) { in write_rust_method_signature()
128 for (int i = 0; i < atomDecl.fields.size(); i++) { in write_rust_method_signature()
129 const AtomField& atomField = atomDecl.fields[i]; in write_rust_method_signature()
183 for (const shared_ptr<AtomDecl>& atomDecl : atoms.decls) { in write_rust_atom_constants() local
184 const string constant = make_camel_case_name(atomDecl->name); in write_rust_atom_constants()
186 fprintf(out, " // %s %s\n", atomDecl->message.c_str(), atomDecl->name.c_str()); in write_rust_atom_constants()
187 const bool isSupported = write_rust_usage(out, "// stats_write", atomDecl, attributionDecl, in write_rust_atom_constants()
193 auto non_chained_decl = atom_code_to_non_chained_decl_map.find(atomDecl->code); in write_rust_atom_constants()
[all …]
DCollation.cpp151 static void addAnnotationToAtomDecl(AtomDecl& atomDecl, const int fieldNumber, in addAnnotationToAtomDecl() argument
156 printf(" Adding annotation to %s: [%d] = {id: %d, type: %d}\n", atomDecl.name.c_str(), in addAnnotationToAtomDecl()
159 atomDecl.fieldNumberToAnnotations[fieldNumber].insert( in addAnnotationToAtomDecl()
160 make_shared<Annotation>(annotationId, atomDecl.code, annotationType, annotationValue)); in addAnnotationToAtomDecl()
163 static int collate_field_restricted_annotations(AtomDecl& atomDecl, const FieldDescriptor& field, in collate_field_restricted_annotations() argument
168 if (!atomDecl.restricted) { in collate_field_restricted_annotations()
172 atomDecl.message.c_str()); in collate_field_restricted_annotations()
180 addAnnotationToAtomDecl(atomDecl, fieldNumber, in collate_field_restricted_annotations()
186 addAnnotationToAtomDecl(atomDecl, fieldNumber, in collate_field_restricted_annotations()
192 addAnnotationToAtomDecl(atomDecl, fieldNumber, in collate_field_restricted_annotations()
[all …]
Dtest_collation.cpp376 AtomDecl* atomDecl; in TEST_P() local
394 atomDecl = atomDeclSetIt->get(); in TEST_P()
395 EXPECT_EQ(1, atomDecl->code); in TEST_P()
396 fieldNumberToAnnotations = &atomDecl->fieldNumberToAnnotations; in TEST_P()
409 atomDecl = atomDeclSetIt->get(); in TEST_P()
410 EXPECT_EQ(3, atomDecl->code); in TEST_P()
411 fieldNumberToAnnotations = &atomDecl->fieldNumberToAnnotations; in TEST_P()
446 AtomDecl* atomDecl; in TEST_P() local
464 atomDecl = atomDeclSetIt->get(); in TEST_P()
465 EXPECT_EQ(1, atomDecl->code); in TEST_P()
[all …]
Djava_writer_vendor.cpp73 for (const shared_ptr<AtomDecl>& atomDecl : atomDeclSet) { in write_value_annotations_array_init() local
74 const string atomConstant = make_constant_name(atomDecl->name); in write_value_annotations_array_init()
95 for (const shared_ptr<AtomDecl>& atomDecl : atomDeclSet) { in write_annotations_vendor_for_field() local
96 const string atomConstant = make_constant_name(atomDecl->name); in write_annotations_vendor_for_field()
99 const AnnotationSet& annotations = atomDecl->fieldNumberToAnnotations.at(argIndex); in write_annotations_vendor_for_field()
Dnative_writer_vendor.cpp84 for (const shared_ptr<AtomDecl>& atomDecl : atomDeclSet) { in write_native_annotations_vendor_for_field() local
85 const string atomConstant = make_constant_name(atomDecl->name); in write_native_annotations_vendor_for_field()
94 const AnnotationSet& annotations = atomDecl->fieldNumberToAnnotations.at(argIndex); in write_native_annotations_vendor_for_field()
Djava_writer.cpp85 for (const shared_ptr<AtomDecl>& atomDecl : atomDeclSet) { in write_annotations() local
86 const string atomConstant = make_constant_name(atomDecl->name); in write_annotations()
88 const AnnotationSet& annotations = atomDecl->fieldNumberToAnnotations.at(argIndex); in write_annotations()
Dnative_writer.cpp51 for (const shared_ptr<AtomDecl>& atomDecl : atomDeclSet) { in write_annotations() local
52 const string atomConstant = make_constant_name(atomDecl->name); in write_annotations()
54 const AnnotationSet& annotations = atomDecl->fieldNumberToAnnotations.at(argIndex); in write_annotations()
DCollation.h254 int collate_atom(const Descriptor& atom, AtomDecl& atomDecl, vector<java_type_t>& signature);