Lines Matching refs:variable
47 inline string getter_name(const AidlVariableDeclaration& variable) { in getter_name() argument
48 return "get" + variable.GetCapitalizedName(); in getter_name()
50 inline string setter_name(const AidlVariableDeclaration& variable) { in setter_name() argument
51 return "set" + variable.GetCapitalizedName(); in setter_name()
390 for (const auto& variable : parcel->GetFields()) { in generate_parcel_class() local
392 out << GenerateComments(*variable); in generate_parcel_class()
393 out << GenerateAnnotations(*variable); in generate_parcel_class()
396 if (variable->GetType().GetName() == "ParcelableHolder" || parcel->IsJavaOnlyImmutable()) { in generate_parcel_class()
399 out << JavaSignatureOf(variable->GetType(), typenames) << " " << variable->GetName(); in generate_parcel_class()
400 if (!parcel->IsJavaOnlyImmutable() && variable->GetDefaultValue()) { in generate_parcel_class()
401 out << " = " << variable->ValueString(ConstantValueDecorator); in generate_parcel_class()
402 } else if (variable->GetType().GetName() == "ParcelableHolder") { in generate_parcel_class()
404 out << " = new " << JavaSignatureOf(variable->GetType(), typenames) << "("; in generate_parcel_class()
425 for (const auto& variable : parcel->GetFields()) { in generate_parcel_class() local
426 out << "private " << JavaSignatureOf(variable->GetType(), typenames) << " " in generate_parcel_class()
427 << variable->GetName(); in generate_parcel_class()
428 if (variable->GetDefaultValue()) { in generate_parcel_class()
429 out << " = " << variable->ValueString(ConstantValueDecorator); in generate_parcel_class()
432 out << "public Builder " << setter_name(*variable) << "(" in generate_parcel_class()
433 << JavaSignatureOf(variable->GetType(), typenames) << " " << variable->GetName() in generate_parcel_class()
436 << "this." << variable->GetName() << " = " << variable->GetName() << ";\n" in generate_parcel_class()
701 for (const auto& variable : decl->GetFields()) { in generate_union() local
702 auto signature = variable->Signature() + ";"; in generate_union()
703 out << "public final static " + tag_type + " " + variable->GetName() + " = " + in generate_union()
750 for (const auto& variable : decl->GetFields()) { in generate_union() local
751 out << "// " + variable->Signature() + ";\n\n"; in generate_union()
753 auto var_name = variable->GetName(); in generate_union()
754 auto var_type = JavaSignatureOf(variable->GetType(), typenames); in generate_union()
757 out << GenerateComments(*variable); in generate_union()
758 out << GenerateAnnotations(*variable); in generate_union()
766 if (variable->GetType().IsGeneric()) { in generate_union()
769 out << "public " + var_type + " " + getter_name(*variable) + "() {\n"; in generate_union()
778 out << "public void " + setter_name(*variable) + "(" + var_type + " _value) {\n"; in generate_union()
830 for (const auto& variable : decl->GetFields()) { in generate_union() local
831 out << "case " + variable->GetName() + ":\n"; in generate_union()
833 out << write_to_parcel(variable->GetType(), getter_name(*variable) + "()", "_aidl_parcel"); in generate_union()
872 for (const auto& variable : decl->GetFields()) { in generate_union() local
873 auto var_name = variable->GetName(); in generate_union()
874 auto var_type = JavaSignatureOf(variable->GetType(), typenames); in generate_union()
878 out << read_from_parcel(variable->GetType(), "_aidl_value", "_aidl_parcel"); in generate_union()
915 for (const auto& variable : decl->GetFields()) { in generate_union() local
916 auto var_name = variable->GetName(); in generate_union()