Home
last modified time | relevance | path

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

/system/tools/aidl/
Daidl_checkapi.cpp272 for (const auto& enumerator : older.GetEnumerators()) { in are_compatible_enums() local
273 old_enum_map[enumerator->GetName()] = enumerator->GetValue(); in are_compatible_enums()
276 for (const auto& enumerator : newer.GetEnumerators()) { in are_compatible_enums() local
277 new_enum_map[enumerator->GetName()] = enumerator->GetValue(); in are_compatible_enums()
Daidl_language.cpp989 for (const auto& enumerator : enumerators_) { in Autofill() local
990 if (enumerator->GetValue() == nullptr) { in Autofill()
992 enumerator->SetValue( in Autofill()
1000 enumerator->SetValue(std::make_unique<AidlBinaryConstExpression>( in Autofill()
1005 previous = enumerator.get(); in Autofill()
1024 for (const auto& enumerator : enumerators_) { in CheckValid() local
1025 success = success && enumerator->CheckValid(GetBackingType()); in CheckValid()
1034 for (const auto& enumerator : GetEnumerators()) { in Dump() local
1035 writer->Write("%s = %s,\n", enumerator->GetName().c_str(), in Dump()
1036 enumerator->ValueString(GetBackingType(), AidlConstantValueDecorator).c_str()); in Dump()
Dgenerate_java.cpp373 for (const auto& enumerator : enum_decl->GetEnumerators()) { in generate_enum() local
374 code_writer->Write("%s", enumerator->GetComments().c_str()); in generate_enum()
378 enumerator->GetName().c_str(), in generate_enum()
379 enumerator->ValueString(enum_decl->GetBackingType(), ConstantValueDecorator).c_str()); in generate_enum()
Daidl_to_cpp_common.cpp371 for (const auto& enumerator : enum_decl.GetEnumerators()) { in GenerateEnumValues() local
372 code << " " << fq_name << "::" << enumerator->GetName() << ",\n"; in GenerateEnumValues()
Daidl_language_y.yy82 AidlEnumerator* enumerator;
162 %type<enumerator> enumerator
528 enumerator
540 : enumerator {
544 | enumerators ',' enumerator {
Dgenerate_ndk.cpp1026 for (const auto& enumerator : enum_decl.GetEnumerators()) { in GenerateEnumToString() local
1027 std::string c = enumerator->ValueString(enum_decl.GetBackingType(), ConstantValueDecorator); in GenerateEnumToString()
1034 code << " case " << enum_decl.GetName() << "::" << enumerator->GetName() << ":\n"; in GenerateEnumToString()
1035 code << " return \"" << enumerator->GetName() << "\";\n"; in GenerateEnumToString()
1060 for (const auto& enumerator : enum_decl.GetEnumerators()) { in GenerateEnumHeader() local
1061 out << enumerator->GetName() << " = " in GenerateEnumHeader()
1062 << enumerator->ValueString(enum_decl.GetBackingType(), ConstantValueDecorator) << ",\n"; in GenerateEnumHeader()
Dgenerate_cpp.cpp1211 for (const auto& enumerator : enum_decl.GetEnumerators()) { in GenerateEnumToString() local
1212 std::string c = enumerator->ValueString(enum_decl.GetBackingType(), ConstantValueDecorator); in GenerateEnumToString()
1219 code << " case " << enum_decl.GetName() << "::" << enumerator->GetName() << ":\n"; in GenerateEnumToString()
1220 code << " return \"" << enumerator->GetName() << "\";\n"; in GenerateEnumToString()
1235 for (const auto& enumerator : enum_decl.GetEnumerators()) { in BuildEnumHeader() local
1237 enumerator->GetName(), in BuildEnumHeader()
1238 enumerator->ValueString(enum_decl.GetBackingType(), ConstantValueDecorator)); in BuildEnumHeader()
/system/tools/hidl/lint/test/interfaces/unhandled_comments/1.0/
Dtypes.hal21 TWO = 1 /* definitely unrecognized comment (after enumerator) */