Lines Matching refs:AidlHelper
41 std::string AidlHelper::translateHeaderFile(const FQName& fqName, AidlBackend backend) { in translateHeaderFile()
44 return AidlHelper::getAidlPackagePath(fqName) + "/translate-ndk.h"; in translateHeaderFile()
46 return AidlHelper::getAidlPackagePath(fqName) + "/translate-cpp.h"; in translateHeaderFile()
53 std::string AidlHelper::translateSourceFile(const FQName& fqName, AidlBackend backend) { in translateSourceFile()
56 return AidlHelper::getAidlPackagePath(fqName) + "/translate-ndk.cpp"; in translateSourceFile()
58 return AidlHelper::getAidlPackagePath(fqName) + "/translate-cpp.cpp"; in translateSourceFile()
60 return AidlHelper::getAidlPackagePath(fqName) + "/Translate.java"; in translateSourceFile()
71 base::Join(base::Split(AidlHelper::getAidlPackage(type.fqName()), "."), separator) + in aidlTypePackage()
72 separator + AidlHelper::getAidlType(type, type.fqName()); in aidlTypePackage()
81 if (!AidlHelper::shouldBeExpanded(enumType.fqName(), type->fqName())) { in emitEnumStaticAssert()
112 AidlHelper::getAidlReplacedType(type->fqName()); in namedTypeTranslation()
120 AidlHelper::notes() << "An unknown named type was found in translation: " in namedTypeTranslation()
219 const auto& it = kAidlBackendScalarTypes.find(AidlHelper::getAidlType(type, fqName)); in wrapStaticCast()
311 if (AidlHelper::getAidlType(field.field->type(), parent->fqName()) == "char") { in simpleTranslation()
351 AidlHelper::notes() << "An unhandled type was found in translation: " in h2aFieldTranslation()
395 return "#include \"" + prefix + AidlHelper::getAidlPackagePath(type->fqName()) + "/" + in aidlIncludeFile()
396 AidlHelper::getAidlType(*type, type->fqName()) + ".h\"\n"; in aidlIncludeFile()
407 "include/" + AidlHelper::translateHeaderFile(fqName, backend)); in emitCppTranslateHeader()
409 AidlHelper::emitFileHeader(out); in emitCppTranslateHeader()
441 AidlHelper::translateSourceFile(fqName, backend)); in emitTranslateSource()
442 AidlHelper::emitFileHeader(out); in emitTranslateSource()
445 out << "package " << AidlHelper::getAidlPackage(fqName) + ";\n\n"; in emitTranslateSource()
449 << AidlHelper::translateHeaderFile((*namedTypes.begin())->fqName(), backend) + "\"\n\n"; in emitTranslateSource()
532 void AidlHelper::emitTranslation( in emitTranslation()