Lines Matching refs:result

158   string result;  in GetCppVariableType()  local
166 result = arg.predefined_type(); in GetCppVariableType()
171 result = GetCppVariableType(arg.scalar_type()); in GetCppVariableType()
176 result = "::android::hardware::hidl_string"; in GetCppVariableType()
182 result = arg.predefined_type(); in GetCppVariableType()
184 result = arg.name(); // nested enum type. in GetCppVariableType()
195 result = "::android::hardware::hidl_vec<" + element_type + ">"; in GetCppVariableType()
208 result = "::android::hardware::hidl_array<" + element_type + ", "; in GetCppVariableType()
210 result += to_string(array_sizes[i]); in GetCppVariableType()
211 if (i != array_sizes.size() - 1) result += ", "; in GetCppVariableType()
213 result += ">"; in GetCppVariableType()
219 result = arg.predefined_type(); in GetCppVariableType()
221 result = arg.struct_type(); in GetCppVariableType()
223 result = arg.name(); in GetCppVariableType()
236 result = arg.predefined_type(); in GetCppVariableType()
238 result = arg.union_type(); in GetCppVariableType()
249 result = arg.predefined_type(); in GetCppVariableType()
261 result = "sp<" + arg.predefined_type() + ">"; in GetCppVariableType()
272 result = "::android::hardware::hidl_handle"; in GetCppVariableType()
278 result = "sp<" + arg.predefined_type() + ">"; in GetCppVariableType()
289 result = GetCppVariableType(arg.scalar_type()); in GetCppVariableType()
294 result = "::android::hardware::hidl_memory"; in GetCppVariableType()
299 result = "void*"; in GetCppVariableType()
301 result = "const " + result; in GetCppVariableType()
303 return result; in GetCppVariableType()
308 result = "::android::hardware::MQDescriptorSync<" + element_type + ">"; in GetCppVariableType()
314 result = "::android::hardware::MQDescriptorUnsync<" + element_type + ">"; in GetCppVariableType()
327 result = element_type; in GetCppVariableType()
329 result += " const*"; in GetCppVariableType()
331 return result; in GetCppVariableType()
342 return "const " + result + "&"; in GetCppVariableType()
344 return result; in GetCppVariableType()
532 string result = str; in ClearStringWithNameSpaceAccess() local
533 ReplaceSubString(result, "::", "__"); in ClearStringWithNameSpaceAccess()
534 return result; in ClearStringWithNameSpaceAccess()
539 string result; in PathJoin() local
541 result = dir_path; in PathJoin()
542 if (!file_name) return result; in PathJoin()
543 } else if (!file_name) return result; in PathJoin()
546 if (result.c_str()[result.length()-1] != '/') { in PathJoin()
547 result += "/"; in PathJoin()
550 result += file_name; in PathJoin()
551 return result; in PathJoin()
560 string result; in RemoveBaseDir() local
561 result = &file_path.c_str()[base_path.length()]; in RemoveBaseDir()
562 if (result.c_str()[0] == '/') { in RemoveBaseDir()
563 result = &result.c_str()[1]; in RemoveBaseDir()
565 return result; in RemoveBaseDir()