Home
last modified time | relevance | path

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

/system/tools/aidl/
Daidl_to_cpp_common.cpp99 std::function<void(CodeWriter& w, const string& var_name, bool isNdk)> toJsonValueExpr;
107 [](CodeWriter& c, const string& var_name, bool) { in __anon158e6ed30102()
108 c << "Json::Value(" << var_name << "? \"true\" : \"false\")"; in __anon158e6ed30102()
114 [](CodeWriter& c, const string& var_name, bool) { in __anon158e6ed30202()
115 c << "Json::Value(" << var_name << ")"; in __anon158e6ed30202()
121 [](CodeWriter& c, const string& var_name, bool isNdk) { in __anon158e6ed30302()
123 c << "Json::Value(" << var_name << ")"; in __anon158e6ed30302()
125 c << "Json::Value(std::string(android::String8(&" << var_name << ", 1)))"; in __anon158e6ed30302()
132 [](CodeWriter& c, const string& var_name, bool) { in __anon158e6ed30402()
133 c << "Json::Value(" << var_name << ")"; in __anon158e6ed30402()
[all …]
Dgenerate_ndk.cpp371 const std::string var_name = cpp::BuildVarName(*arg); in GenerateClientMethodDefinition() local
376 WriteToParcelFor({out, types, arg->GetType(), "_aidl_in.get()", prefix + var_name}); in GenerateClientMethodDefinition()
380 out << "_aidl_ret_status = ::ndk::AParcel_writeVectorSize(_aidl_in.get(), *" << var_name in GenerateClientMethodDefinition()
470 const std::string var_name = cpp::BuildVarName(*arg); in GenerateServerCaseDefinition() local
474 ReadFromParcelFor({out, types, arg->GetType(), "_aidl_in", "&" + var_name}); in GenerateServerCaseDefinition()
478 out << "_aidl_ret_status = ::ndk::AParcel_resizeVector(_aidl_in, &" << var_name << ");\n"; in GenerateServerCaseDefinition()
Dgenerate_cpp.cpp293 const string var_name = ((a->IsOut()) ? "*" : "") + a->GetName(); in DefineClientTransaction() local
303 ParcelWriteCastOf(a->GetType(), typenames, var_name)))); in DefineClientTransaction()
311 new MethodCall(StringPrintf("%s.writeVectorSize", kDataVarName), var_name))); in DefineClientTransaction()
566 const string& var_name = "&" + BuildVarName(*a); in HandleServerTransaction() local
572 ParcelReadCastOf(a->GetType(), typenames, var_name)}}); in HandleServerTransaction()
580 new MethodCall{string(kDataVarName) + ".resizeOutVector", var_name}}); in HandleServerTransaction()