Home
last modified time | relevance | path

Searched refs:var_name (Results 1 – 5 of 5) sorted by relevance

/system/tools/aidl/
Dgenerate_java.cpp751 auto var_name = variable->GetName(); in GenerateUnionClass() local
757 out << "public static " + clazz + " " + var_name + "(" + var_type + " _value) {\n"; in GenerateUnionClass()
759 out << "return new " + clazz + "(" + var_name + ", _value);\n"; in GenerateUnionClass()
769 out << "_assertTag(" + var_name + ");\n"; in GenerateUnionClass()
778 out << "_set(" + var_name + ", _value);\n"; in GenerateUnionClass()
877 auto var_name = variable->GetName(); in GenerateUnionClass() local
879 out << "case " + var_name + ": {\n"; in GenerateUnionClass()
923 auto var_name = variable->GetName(); in GenerateUnionClass() local
924 out << " case " + var_name + ": return \"" + var_name + "\";\n"; in GenerateUnionClass()
Dgenerate_cpp.cpp131 std::string var_name = BuildVarName(*a); in GenerateArgList() local
133 literal = "&" + var_name; in GenerateArgList()
135 literal = "std::move(" + var_name + ")"; in GenerateArgList()
137 literal = var_name; in GenerateArgList()
217 const string var_name = ((a->IsOut()) ? "*" : "") + a->GetName(); in GenerateClientTransaction() local
225 ParcelWriteCastOf(a->GetType(), typenames, var_name).c_str()); in GenerateClientTransaction()
232 var_name.c_str()); in GenerateClientTransaction()
506 const string& var_name = "&" + BuildVarName(*a); in GenerateServerTransaction() local
510 ParcelReadCastOf(a->GetType(), typenames, var_name).c_str()); in GenerateServerTransaction()
517 var_name.c_str()); in GenerateServerTransaction()
Dgenerate_ndk.cpp534 const std::string var_name = cpp::BuildVarName(*arg); in GenerateClientMethodDefinition() local
539 WriteToParcelFor({out, types, arg->GetType(), "_aidl_in.get()", prefix + var_name}); in GenerateClientMethodDefinition()
543 out << "_aidl_ret_status = ::ndk::AParcel_writeVectorSize(_aidl_in.get(), *" << var_name in GenerateClientMethodDefinition()
649 const std::string var_name = cpp::BuildVarName(*arg); in GenerateServerCaseDefinition() local
653 ReadFromParcelFor({out, types, arg->GetType(), "_aidl_in", "&" + var_name}); in GenerateServerCaseDefinition()
657 out << "_aidl_ret_status = ::ndk::AParcel_resizeVector(_aidl_in, &" << var_name << ");\n"; in GenerateServerCaseDefinition()
Daidl_to_cpp_common.cpp154 const string var_name = is_server || is_ndk ? BuildVarName(a) : a.GetName(); in WriteLogForArgument() local
156 const string value_expr = (is_pointer ? "*" : "") + var_name; in WriteLogForArgument()
158 << ".emplace_back(\"" + var_name + "\", ::android::internal::ToString(" + value_expr + "));\n"; in WriteLogForArgument()
/system/core/fastboot/
Dfastboot.cpp1003 static uint64_t get_uint_var(const char* var_name, fastboot::IFastBootDriver* fb) { in get_uint_var() argument
1005 if (fb->GetVar(var_name, &value_str) != fastboot::SUCCESS || value_str.empty()) { in get_uint_var()
1006 verbose("target didn't report %s", var_name); in get_uint_var()
1015 fprintf(stderr, "couldn't parse %s '%s'\n", var_name, value_str.c_str()); in get_uint_var()
1018 if (value > 0) verbose("target reported %s of %" PRId64 " bytes", var_name, value); in get_uint_var()