Home
last modified time | relevance | path

Searched refs:enum_def (Results 1 – 10 of 10) sorted by relevance

/system/bt/gd/packet/parser/
Dgen_rust.cc129 auto* enum_def = static_cast<EnumDef*>(e.second); in generate_rust_source_one_file() local
130 if (enum_def->name_ == "OpCode") { in generate_rust_source_one_file()
131 opcode = enum_def; in generate_rust_source_one_file()
132 } else if (enum_def->name_ == "OpCodeIndex") { in generate_rust_source_one_file()
133 opcode_index = enum_def; in generate_rust_source_one_file()
146 const auto* enum_def = static_cast<const EnumDef*>(e.second); in generate_rust_source_one_file() local
147 EnumGen gen(*enum_def); in generate_rust_source_one_file()
Dgen_cpp.cc150 const auto* enum_def = static_cast<const EnumDef*>(e.second); in generate_cpp_headers_one_file() local
151 EnumGen gen(*enum_def); in generate_cpp_headers_one_file()
158 const auto* enum_def = static_cast<const EnumDef*>(e.second); in generate_cpp_headers_one_file() local
159 EnumGen gen(*enum_def); in generate_cpp_headers_one_file()
347 const auto* enum_def = static_cast<const EnumDef*>(e.second); in generate_pybind11_sources_one_file() local
348 EnumGen gen(*enum_def); in generate_pybind11_sources_one_file()
Dlanguage_y.yy544 …EnumDef* enum_def = (type_def->GetDefinitionType() == TypeDef::Type::ENUM ? (EnumDef*)type_def : n…
545 if (enum_def == nullptr) {
548 if (!enum_def->HasEntry(std::get<std::string>(constraint->second))) {
552 …expanded_fields->push_back(new FixedEnumField(enum_def, std::get<std::string>(constraint->second),…
694 …EnumDef* enum_def = (type_def->GetDefinitionType() == TypeDef::Type::ENUM ? (EnumDef*)type_def : n…
695 if (!enum_def->HasEntry(*$3)) {
696 …ERRORLOC(LOC) << "Previously defined enum " << enum_def->GetTypeName() << " has no entry for " << …
699 $$ = new FixedEnumField(enum_def, *$3, LOC);
DAndroid.bp36 "enum_def.cc",
DBUILD.gn38 "enum_def.cc",
Dparent_def.cc43 const auto& enum_def = static_cast<EnumField*>(constrained_field)->GetEnumDef(); in AddParentConstraint() local
44 if (!enum_def.HasEntry(std::get<std::string>(value))) { in AddParentConstraint()
50 value = enum_def.GetTypeName() + "::" + std::get<std::string>(value); in AddParentConstraint()
/system/bt/gd/packet/parser/fields/
Dfixed_enum_field.cc22 FixedEnumField::FixedEnumField(EnumDef* enum_def, std::string value, ParseLocation loc) in FixedEnumField() argument
23 : FixedField("fixed_enum", enum_def->size_, loc), enum_(enum_def), value_(value) {} in FixedEnumField()
Denum_field.cc23 EnumField::EnumField(std::string name, EnumDef enum_def, std::string value, ParseLocation loc) in EnumField() argument
24 : ScalarField(name, enum_def.size_, loc), enum_def_(enum_def), value_(value) {} in EnumField()
Dfixed_enum_field.h28 FixedEnumField(EnumDef* enum_def, std::string value, ParseLocation loc);
Denum_field.h26 EnumField(std::string name, EnumDef enum_def, std::string value, ParseLocation loc);