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.cpp95 std::function<void(CodeWriter& w, const string& var_name, bool isNdk)> toJsonValueExpr;
103 [](CodeWriter& c, const string& var_name, bool) { in __anonc907a31c0102()
104 c << "Json::Value(" << var_name << "? \"true\" : \"false\")"; in __anonc907a31c0102()
110 [](CodeWriter& c, const string& var_name, bool) { in __anonc907a31c0202()
111 c << "Json::Value(" << var_name << ")"; in __anonc907a31c0202()
117 [](CodeWriter& c, const string& var_name, bool isNdk) { in __anonc907a31c0302()
119 c << "Json::Value(" << var_name << ")"; in __anonc907a31c0302()
121 c << "Json::Value(std::string(android::String8(&" << var_name << ", 1)))"; in __anonc907a31c0302()
128 [](CodeWriter& c, const string& var_name, bool) { in __anonc907a31c0402()
129 c << "Json::Value(" << var_name << ")"; in __anonc907a31c0402()
[all …]
Dgenerate_ndk.cpp270 const std::string var_name = cpp::BuildVarName(*arg); in GenerateClientMethodDefinition() local
275 WriteToParcelFor({out, types, arg->GetType(), "_aidl_in.get()", prefix + var_name}); in GenerateClientMethodDefinition()
279 out << "_aidl_ret_status = ::ndk::AParcel_writeVectorSize(_aidl_in.get(), *" << var_name in GenerateClientMethodDefinition()
355 const std::string var_name = cpp::BuildVarName(*arg); in GenerateServerCaseDefinition() local
359 ReadFromParcelFor({out, types, arg->GetType(), "_aidl_in", "&" + var_name}); in GenerateServerCaseDefinition()
363 out << "_aidl_ret_status = ::ndk::AParcel_resizeVector(_aidl_in, &" << var_name << ");\n"; in GenerateServerCaseDefinition()
Dgenerate_cpp.cpp271 string var_name = ((a->IsOut()) ? "*" : "") + a->GetName(); in DefineClientTransaction() local
272 var_name = type->WriteCast(var_name); in DefineClientTransaction()
282 ArgList(var_name)))); in DefineClientTransaction()
291 ArgList(var_name)))); in DefineClientTransaction()