Home
last modified time | relevance | path

Searched refs:ValueString (Results 1 – 13 of 13) sorted by relevance

/system/tools/aidl/
Daidl_checkapi.cpp157 const string old_value = old_c->ValueString(AidlConstantValueDecorator); in are_compatible_constants()
158 const string new_value = new_c->ValueString(AidlConstantValueDecorator); in are_compatible_constants()
230 return enumerator->GetValue()->ValueString( in HasZeroEnumerator()
237 return value->ValueString(enum_decl.GetBackingType(), AidlConstantValueDecorator) == "0"; in EvaluatesToZero()
273 const string old_value = old_field->ValueString(AidlConstantValueDecorator); in are_compatible_parcelables()
274 const string new_value = new_field->ValueString(AidlConstantValueDecorator); in are_compatible_parcelables()
384 old_enum_map[name]->ValueString(older.GetBackingType(), AidlConstantValueDecorator); in are_compatible_enums()
386 new_enum_map[name]->ValueString(newer.GetBackingType(), AidlConstantValueDecorator); in are_compatible_enums()
Daidl_dumpapi.cpp118 out << c.ValueString(type, AidlConstantValueDecorator); in DumpConstantValue()
136 out << " /* " << c.ValueString(type, AidlConstantValueDecorator) << " */"; in DumpConstantValue()
Daidl_language.cpp307 param->ValueString(param_type->type, AidlConstantValueDecorator); in CheckValid()
389 raw_params.emplace(param_name, param->ValueString(param_type->type, decorator)); in AnnotationParams()
929 return !ValueString(AidlConstantValueDecorator).empty(); in CheckValid()
942 ret += " = " + ValueString(AidlConstantValueDecorator); in ToString()
951 std::string AidlVariableDeclaration::ValueString(const ConstantValueDecorator& decorator) const { in ValueString() function in AidlVariableDeclaration
953 return default_value_->ValueString(GetType(), decorator); in ValueString()
1072 valid = valid && !ValueString(AidlConstantValueDecorator).empty(); in CheckValid()
1087 ValueString(AidlConstantValueDecorator); in ToString()
1572 if (GetValue()->ValueString(enum_backing_type, AidlConstantValueDecorator).empty()) { in CheckValid()
1579 string AidlEnumerator::ValueString(const AidlTypeSpecifier& backing_type, in ValueString() function in AidlEnumerator
[all …]
Dpreprocess.cpp83 out << c.ValueString(type, AidlConstantValueDecorator); in DumpConstantValue()
Daidl_to_cpp_common.cpp257 out << " = " << enumerator->ValueString(enum_decl.GetBackingType(), decorator) << ",\n"; in GenerateEnumClassDecl()
315 std::string c = enumerator->ValueString(enum_decl.GetBackingType(), AidlConstantValueDecorator); in GenerateEnumToString()
659 first_field->ValueString(decorator) + ")"; in PrivateFields()
741 first_field->ValueString(decorator) + ")"; in PublicFields()
Dgenerate_java.cpp340 out << " = " << variable->ValueString(ConstantValueDecorator); in GenerateParcelableClass()
367 out << " = " << variable->ValueString(ConstantValueDecorator); in GenerateParcelableClass()
638 enumerator->ValueString(backing_type, ConstantValueDecorator)); in GenerateEnumClass()
713 const auto& first_value = first_field->ValueString(ConstantValueDecorator); in GenerateUnionClass()
Daidl_language.h564 std::string ValueString(const ConstantValueDecorator& decorator) const;
704 string ValueString(const AidlTypeSpecifier& type, const ConstantValueDecorator& decorator) const;
862 string ValueString(const ConstantValueDecorator& decorator) const {
863 return value_->ValueString(GetType(), decorator);
1144 string ValueString(const AidlTypeSpecifier& backing_type,
Dgenerate_rust.cpp603 << constant->ValueString(ConstantValueDecoratorRef) << ";\n"; in GenerateConstantDeclarations()
1082 out << variable->ValueString(ConstantValueDecorator); in GenerateParcelDefault()
1229 const auto& first_value = first_field->ValueString(ConstantValueDecorator); in GenerateParcelDefault()
1413 auto value = enumerator->GetValue()->ValueString(aidl_backing_type, ConstantValueDecorator); in GenerateRustEnumDeclaration()
Dgenerate_cpp.cpp436 << constant->ValueString(ConstantValueDecorator) << ");\n"; in GenerateConstantDefinitions()
454 out << " = " << constant->ValueString(ConstantValueDecorator) << ";\n"; in GenerateConstantDeclarations()
458 out << " = " << constant->ValueString(ConstantValueDecorator) << " };\n"; in GenerateConstantDeclarations()
1223 out << " = " << variable->ValueString(ConstantValueDecorator); in GenerateParcelFields()
Daidl_unittest.cpp1552 EXPECT_EQ("'\\0'", default_value->ValueString(*char_type, cpp::ConstantValueDecorator)); in TEST_F()
1553 EXPECT_EQ("'\\0'", default_value->ValueString(*char_type, ndk::ConstantValueDecorator)); in TEST_F()
1554 EXPECT_EQ("'\\0'", default_value->ValueString(*char_type, java::ConstantValueDecorator)); in TEST_F()
1732 EXPECT_EQ("245", cpp_constants[0]->ValueString(cpp::ConstantValueDecorator)); in TEST_P()
1751 EXPECT_EQ("-1", cpp_constants[0]->ValueString(cpp::ConstantValueDecorator)); in TEST_P()
1768 EXPECT_EQ("-1", fields[0]->ValueString(cpp::ConstantValueDecorator)); in TEST_F()
1769 EXPECT_EQ("{uint8_t(-1), 1}", fields[1]->ValueString(cpp::ConstantValueDecorator)); in TEST_F()
1770 EXPECT_EQ("{{uint8_t(-1), 1}}", fields[2]->ValueString(cpp::ConstantValueDecorator)); in TEST_F()
1787 EXPECT_EQ("-1", fields[0]->ValueString(ndk::ConstantValueDecorator)); in TEST_F()
1788 EXPECT_EQ("{uint8_t(-1), 1}", fields[1]->ValueString(ndk::ConstantValueDecorator)); in TEST_F()
[all …]
Dgenerate_ndk.cpp436 out << " = " << constant->ValueString(ConstantValueDecorator) << ";\n"; in GenerateConstantDeclarations()
441 out << " = " << constant->ValueString(ConstantValueDecorator) << " };\n"; in GenerateConstantDeclarations()
457 << constant->ValueString(ConstantValueDecorator) << ";\n"; in GenerateConstantDefinitions()
1275 out << " = " << variable->ValueString(ConstantValueDecorator); in GenerateParcelClassDecl()
Daidl_const_expressions.cpp614 string AidlConstantValue::ValueString(const AidlTypeSpecifier& type, in ValueString() function in AidlConstantValue
710 value_string = value->ValueString(base_type, decorator); in ValueString()
Dgenerate_java_binder.cpp459 << constant->ValueString(ConstantValueDecorator) << ";\n"; in GenerateConstantDeclarations()