Home
last modified time | relevance | path

Searched refs:flat (Results 1 – 25 of 38) sorted by relevance

12

/system/host/fidl/include/fidl/
A Djson_generator.h63 void Generate(const flat::Decl* decl);
84 void Generate(const flat::Name& value);
85 void Generate(const flat::Type& value);
86 void Generate(const flat::Constant& value);
87 void Generate(const flat::Const& value);
88 void Generate(const flat::Enum& value);
90 void Generate(const flat::Interface& value);
93 void Generate(const flat::Struct& value);
95 void Generate(const flat::Table& value);
97 void Generate(const flat::Union& value);
[all …]
A Dtables_generator.h33 explicit TablesGenerator(const flat::Library* library) in TablesGenerator()
72 const coded::Type* CompileType(const flat::Type* type);
73 void CompileFields(const flat::Decl* decl);
74 void Compile(const flat::Decl* decl);
76 const flat::Library* library_;
82 TypeMap<flat::PrimitiveType, coded::PrimitiveType> primitive_type_map_;
83 TypeMap<flat::HandleType, coded::HandleType> handle_type_map_;
86 TypeMap<flat::ArrayType, coded::ArrayType> array_type_map_;
87 TypeMap<flat::VectorType, coded::VectorType> vector_type_map_;
88 TypeMap<flat::StringType, coded::StringType> string_type_map_;
[all …]
A Dc_generator.h44 flat::Type::Kind kind;
45 flat::Decl::Kind decl_kind;
79 const flat::Const& const_info;
84 const flat::Enum& enum_info;
97 const flat::Struct& struct_info;
103 const flat::Table& table_info;
108 const flat::Union& union_info;
128 std::map<const flat::Decl*, NamedConst>
130 std::map<const flat::Decl*, NamedEnum>
136 std::map<const flat::Decl*, NamedTable>
[all …]
A Dnames.h34 std::string NameFlatConstantKind(flat::Constant::Kind kind);
35 std::string NameFlatTypeKind(flat::Type::Kind kind);
36 std::string NameUnionTag(StringView union_name, const flat::Union::Member& member);
37 std::string NameFlatConstant(const flat::Constant* constant);
38 std::string NameFlatType(const flat::Type* type);
39 std::string NameFlatCType(const flat::Type* type, flat::Decl::Kind decl_kind);
40 std::string NameInterface(const flat::Interface& interface);
41 std::string NameDiscoverable(const flat::Interface& interface);
51 std::string NameCodedStruct(const flat::Struct* struct_decl);
52 std::string NameCodedTable(const flat::Table* table_decl);
[all …]
/system/host/banjo/include/banjo/
A Djson_generator.h63 void Generate(const flat::Decl* decl);
83 void Generate(const flat::Name& value);
84 void Generate(const flat::Type& value);
85 void Generate(const flat::Constant& value);
86 void Generate(const flat::Const& value);
87 void Generate(const flat::Enum& value);
89 void Generate(const flat::Interface& value);
92 void Generate(const flat::Struct& value);
94 void Generate(const flat::Union& value);
96 void Generate(const flat::Library* library);
[all …]
A Dddk_generator.h29 explicit DdkGenerator(const flat::Library* library) in DdkGenerator()
37 flat::Type::Kind kind;
38 flat::Decl::Kind decl_kind;
63 const flat::Const& const_info;
70 const flat::Enum& enum_info;
97 const flat::Struct& struct_info;
104 const flat::Union& union_info;
122 virtual std::map<const flat::Decl*, NamedConst>
124 virtual std::map<const flat::Decl*, NamedEnum>
144 const flat::Library* library_;
[all …]
A Dtables_generator.h33 explicit TablesGenerator(const flat::Library* library) in TablesGenerator()
68 const coded::Type* CompileType(const flat::Type* type);
69 void CompileFields(const flat::Decl* decl);
70 void Compile(const flat::Decl* decl);
72 const flat::Library* library_;
78 TypeMap<flat::PrimitiveType, coded::PrimitiveType> primitive_type_map_;
79 TypeMap<flat::HandleType, coded::HandleType> handle_type_map_;
82 TypeMap<flat::ArrayType, coded::ArrayType> array_type_map_;
83 TypeMap<flat::VectorType, coded::VectorType> vector_type_map_;
84 TypeMap<flat::StringType, coded::StringType> string_type_map_;
[all …]
A Dnames.h21 std::string NameName(const flat::Name& name, StringView library_separator, StringView separator);
34 std::string NameFlatConstantKind(flat::Constant::Kind kind);
35 std::string NameFlatTypeKind(flat::Type::Kind kind);
36 std::string NameUnionTag(StringView union_name, const flat::Union::Member& member);
37 std::string NameFlatCType(const flat::Type* type, flat::Decl::Kind decl_kind);
38 std::string NameInterface(const flat::Interface& interface);
39 std::string NameDiscoverable(const flat::Interface& interface);
40 std::string NameMethod(StringView interface_name, const flat::Interface::Method& method);
44 const flat::Interface::Method::Parameter& parameter);
51 std::string NameCodedStruct(const flat::Struct* struct_decl);
[all …]
A Dattributes.h12 bool HasSimpleLayout(const flat::Decl* decl);
13 bool IsDefault(const flat::Decl* decl);
/system/host/fidl/lib/
A Dnames.cpp183 case flat::Type::Kind::kArray: in NameFlatTypeKind()
185 case flat::Type::Kind::kVector: in NameFlatTypeKind()
187 case flat::Type::Kind::kString: in NameFlatTypeKind()
189 case flat::Type::Kind::kHandle: in NameFlatTypeKind()
193 case flat::Type::Kind::kPrimitive: in NameFlatTypeKind()
195 case flat::Type::Kind::kIdentifier: in NameFlatTypeKind()
276 case flat::Type::Kind::kArray: { in NameFlatTypeHelper()
288 case flat::Type::Kind::kVector: { in NameFlatTypeHelper()
300 case flat::Type::Kind::kString: { in NameFlatTypeHelper()
310 case flat::Type::Kind::kHandle: { in NameFlatTypeHelper()
[all …]
A Dc_generator.cpp37 flat::Type::Kind::kIdentifier, in MessageHeader()
38 flat::Decl::Kind::kStruct, in MessageHeader()
109 case flat::Type::Kind::kArray: in EmitMethodInParamDecl()
115 case flat::Type::Kind::kVector: in EmitMethodInParamDecl()
119 case flat::Type::Kind::kString: in EmitMethodInParamDecl()
123 case flat::Type::Kind::kHandle: in EmitMethodInParamDecl()
156 case flat::Type::Kind::kArray: in EmitMethodOutParamDecl()
162 case flat::Type::Kind::kVector: in EmitMethodOutParamDecl()
167 case flat::Type::Kind::kString: in EmitMethodOutParamDecl()
463 flat::Decl::Kind GetDeclKind(const flat::Library* library, const flat::Type* type) { in GetDeclKind()
[all …]
A Djson_generator.cpp269 case flat::Constant::Kind::kIdentifier: { in Generate()
275 case flat::Constant::Kind::kLiteral: { in Generate()
281 case flat::Constant::Kind::kSynthesized: { in Generate()
298 case flat::Type::Kind::kArray: { in Generate()
305 case flat::Type::Kind::kVector: { in Generate()
314 case flat::Type::Kind::kString: { in Generate()
317 if (max_size < flat::Size::Max()) in Generate()
322 case flat::Type::Kind::kHandle: { in Generate()
328 case flat::Type::Kind::kRequestHandle: { in Generate()
334 case flat::Type::Kind::kPrimitive: { in Generate()
[all …]
A Dtables_generator.cpp330 case flat::Type::Kind::kArray: { in CompileType()
345 case flat::Type::Kind::kVector: { in CompileType()
362 case flat::Type::Kind::kString: { in CompileType()
376 case flat::Type::Kind::kHandle: { in CompileType()
523 case flat::Decl::Kind::kStruct: { in CompileFields()
539 case flat::Decl::Kind::kUnion: { in CompileFields()
558 case flat::Decl::Kind::kTable: { in CompileFields()
587 case flat::Decl::Kind::kConst: in Compile()
590 case flat::Decl::Kind::kEnum: { in Compile()
630 case flat::Decl::Kind::kTable: { in Compile()
[all …]
/system/uapp/namespace/
A Dnamespace.c19 for (size_t n = 0; n < flat->count; n++) { in print_namespace()
21 flat->handle[n], flat->type[n], flat->path[n]); in print_namespace()
79 fdio_flat_namespace_t* flat; in run_in_namespace() local
81 status = fdio_ns_export(ns, &flat); in run_in_namespace()
89 print_namespace(flat); in run_in_namespace()
97 .prefix = flat->path[i], in run_in_namespace()
98 .handle = flat->handle[i], in run_in_namespace()
106 actions[flat->count] = set_name; in run_in_namespace()
118 free(flat); in run_in_namespace()
134 fdio_flat_namespace_t* flat; in dump_current_namespace() local
[all …]
/system/host/banjo/lib/
A Dddk_generator.cpp140 case flat::Type::Kind::kArray: in EmitMemberDecl()
146 case flat::Type::Kind::kVector: in EmitMemberDecl()
157 case flat::Type::Kind::kString: in EmitMemberDecl()
167 case flat::Type::Kind::kHandle: in EmitMemberDecl()
196 case flat::Type::Kind::kArray: in EmitMethodInParamDecl()
202 case flat::Type::Kind::kVector: in EmitMethodInParamDecl()
210 case flat::Type::Kind::kString: in EmitMethodInParamDecl()
248 case flat::Type::Kind::kArray: in EmitMethodOutParamDecl()
712 std::vector<uint32_t> ArrayCounts(const flat::Library* library, const flat::Type* type) { in ArrayCounts()
735 flat::Decl::Kind GetDeclKind(const flat::Library* library, const flat::Type* type) { in GetDeclKind()
[all …]
A Dnames.cpp204 case flat::Type::Kind::kArray: in NameFlatTypeKind()
206 case flat::Type::Kind::kVector: in NameFlatTypeKind()
208 case flat::Type::Kind::kString: in NameFlatTypeKind()
210 case flat::Type::Kind::kHandle: in NameFlatTypeKind()
214 case flat::Type::Kind::kPrimitive: in NameFlatTypeKind()
216 case flat::Type::Kind::kIdentifier: in NameFlatTypeKind()
225 case flat::Constant::Kind::kLiteral: in NameFlatConstantKind()
277 std::string NameFlatCType(const flat::Type* type, flat::Decl::Kind decl_kind) { in NameFlatCType()
280 case flat::Type::Kind::kHandle: in NameFlatCType()
284 case flat::Type::Kind::kVector: in NameFlatCType()
[all …]
A Djson_generator.cpp160 void JSONGenerator::Generate(const flat::Decl* decl) { in Generate()
245 case flat::Constant::Kind::kIdentifier: { in Generate()
250 case flat::Constant::Kind::kLiteral: { in Generate()
264 case flat::Type::Kind::kArray: { in Generate()
270 case flat::Type::Kind::kVector: { in Generate()
278 case flat::Type::Kind::kString: { in Generate()
285 case flat::Type::Kind::kHandle: { in Generate()
291 case flat::Type::Kind::kRequestHandle: { in Generate()
297 case flat::Type::Kind::kPrimitive: { in Generate()
302 case flat::Type::Kind::kIdentifier: { in Generate()
[all …]
A Dtables_generator.cpp288 case flat::Type::Kind::kArray: { in CompileType()
303 case flat::Type::Kind::kVector: { in CompileType()
319 case flat::Type::Kind::kString: { in CompileType()
332 case flat::Type::Kind::kHandle: { in CompileType()
356 case flat::Type::Kind::kPrimitive: { in CompileType()
467 case flat::Decl::Kind::kStruct: { in CompileFields()
481 case flat::Decl::Kind::kUnion: { in CompileFields()
506 case flat::Decl::Kind::kConst: in Compile()
509 case flat::Decl::Kind::kEnum: { in Compile()
549 case flat::Decl::Kind::kStruct: { in Compile()
[all …]
A Dattributes.cpp9 bool HasSimpleLayout(const flat::Decl* decl) { in HasSimpleLayout()
13 bool IsDefaultProtocol(const flat::Decl* decl) { in IsDefaultProtocol()
/system/ulib/launchpad/
A Dfdio.c40 fdio_flat_namespace_t* flat; in launchpad_clone() local
41 status = fdio_ns_export_root(&flat); in launchpad_clone()
43 launchpad_set_nametable(lp, flat->count, flat->path); in launchpad_clone()
44 launchpad_add_handles(lp, flat->count, flat->handle, flat->type); in launchpad_clone()
45 free(flat); in launchpad_clone()
/system/utest/fidl-compiler/
A Dtest_library.h30 library_(std::make_unique<fidl::flat::Library>( in TestLibrary()
38 …if (!all_libraries_.Insert(std::unique_ptr<fidl::flat::Library>(dependent_library.library_.get()))… in AddDependentLibrary()
45 void AddAttributeSchema(const std::string& name, fidl::flat::AttributeSchema schema) { in AddAttributeSchema()
77 const fidl::flat::Struct* LookupStruct(const std::string& name) { in LookupStruct()
86 const fidl::flat::Table* LookupTable(const std::string& name) { in LookupTable()
95 const fidl::flat::Union* LookupUnion(const std::string& name) { in LookupUnion()
104 const fidl::flat::Interface* LookupInterface(const std::string& name) { in LookupInterface()
113 const fidl::flat::Library* library() const { in library()
132 fidl::flat::Typespace typespace_ = fidl::flat::Typespace::RootTypes();
135 fidl::flat::Libraries all_libraries_;
[all …]
A Dattributes_tests.cpp232 const fidl::flat::Decl* decl) { in MustHaveThreeMembers()
234 case fidl::flat::Decl::Kind::kStruct: { in MustHaveThreeMembers()
235 auto struct_decl = static_cast<const fidl::flat::Struct*>(decl); in MustHaveThreeMembers()
258 library.AddAttributeSchema("MustHaveThreeMembers", fidl::flat::AttributeSchema({ in constraint_only_three_members_on_struct()
259 fidl::flat::AttributeSchema::Placement::kStructDecl, in constraint_only_three_members_on_struct()
284 library.AddAttributeSchema("MustHaveThreeMembers", fidl::flat::AttributeSchema({ in constraint_only_three_members_on_method()
285 fidl::flat::AttributeSchema::Placement::kMethod, in constraint_only_three_members_on_method()
312 library.AddAttributeSchema("MustHaveThreeMembers", fidl::flat::AttributeSchema({ in constraint_only_three_members_on_interface()
313 fidl::flat::AttributeSchema::Placement::kInterfaceDecl, in constraint_only_three_members_on_interface()
/system/utest/banjo-compiler/
A Dtest_library.h30 library_(std::make_unique<banjo::flat::Library>(&all_libraries_, &error_reporter_)) { in TestLibrary()
38 …if (!all_libraries_.Insert(std::unique_ptr<banjo::flat::Library>(dependent_library.library_.get())… in AddDependentLibrary()
74 const banjo::flat::Struct* LookupStruct(const std::string& name) { in LookupStruct()
83 const banjo::flat::Union* LookupUnion(const std::string& name) { in LookupUnion()
92 const banjo::flat::Interface* LookupInterface(const std::string& name) { in LookupInterface()
115 banjo::flat::Libraries all_libraries_;
116 std::unique_ptr<banjo::flat::Library> library_;
/system/host/fidl/compiler/
A Dmain.cpp230 fidl::ErrorReporter* error_reporter, fidl::flat::Library* library) { in Parse()
253 fidl::flat::Typespace* typespace,
338 auto typespace = fidl::flat::Typespace::RootTypes(); in main()
349 fidl::flat::Typespace* typespace, in compile()
353 fidl::flat::Libraries all_libraries; in compile()
354 const fidl::flat::Library* final_library = nullptr; in compile()
359 … auto library = std::make_unique<fidl::flat::Library>(&all_libraries, error_reporter, typespace); in compile()
/system/ulib/fdio/
A Dspawn.c351 if (flat) { in send_namespace()
352 while (n < flat->count) { in send_namespace()
353 size_t size = strlen(flat->path[n]); in send_namespace()
357 memcpy(payload + offset, flat->path[n], size); in send_namespace()
359 handles[h++] = flat->handle[n]; in send_namespace()
440 fdio_flat_namespace_t* flat = NULL; in fdio_spawn_vmo() local
512 status = fdio_ns_export_root(&flat); in fdio_spawn_vmo()
513 name_count += flat->count; in fdio_spawn_vmo()
514 for (size_t i = 0; i < flat->count; ++i) { in fdio_spawn_vmo()
515 name_len += FIDL_ALIGN(strlen(flat->path[i])); in fdio_spawn_vmo()
[all …]

Completed in 60 milliseconds

12