Home
last modified time | relevance | path

Searched refs:AidlHelper (Results 1 – 8 of 8) sorted by relevance

/system/tools/hidl/hidl2aidl/
DAidlHelper.cpp40 Formatter* AidlHelper::notesFormatter = nullptr;
41 std::string AidlHelper::fileHeader = "";
42 bool AidlHelper::expandExtended = false;
44 Formatter& AidlHelper::notes() { in notes()
49 void AidlHelper::setNotes(Formatter* formatter) { in setNotes()
54 std::string AidlHelper::getAidlName(const FQName& fqName) { in getAidlName()
62 std::string AidlHelper::getAidlPackage(const FQName& fqName) { in getAidlPackage()
71 std::string AidlHelper::getAidlPackagePath(const FQName& fqName) { in getAidlPackagePath()
72 return base::Join(base::Split(AidlHelper::getAidlPackage(fqName), "."), "/"); in getAidlPackagePath()
75 std::optional<std::string> AidlHelper::getAidlFQName(const FQName& fqName) { in getAidlFQName()
[all …]
Dmain.cpp149 AidlHelper::notes() in parse()
154 docComment->emit(AidlHelper::notes()); in parse()
156 AidlHelper::notes() << "\n"; in parse()
176 out << " \"" << AidlHelper::getAidlPackage(fqName) << "-V1-ndk_platform\",\n"; in emitAidlSharedLibs()
180 out << " \"" << AidlHelper::getAidlPackage(fqName) << "-V1-cpp\",\n"; in emitAidlSharedLibs()
183 out << " \"" << AidlHelper::getAidlPackage(fqName) << "-V1-java\",\n"; in emitAidlSharedLibs()
213 return AidlHelper::getAidlPackage(fqName) + "-translate" + postfix; in aidlTranslateLibraryName()
221 out << " name: \"" << AidlHelper::getAidlPackage(fqName) << "\",\n"; in emitBuildFile()
223 out << " srcs: [\"" << AidlHelper::getAidlPackagePath(fqName) << "/*.aidl\"],\n"; in emitBuildFile()
250 out << " srcs: [\"" << AidlHelper::translateSourceFile(fqName, backend) + "\"],\n"; in emitBuildFile()
[all …]
DAidlNamedType.cpp47 out << "@Backing(type=\"" << AidlHelper::getAidlType(*scalar, enumType.fqName()) << "\")\n"; in emitEnumAidlDefinition()
48 out << "enum " << AidlHelper::getAidlType(enumType, enumType.fqName()) << " "; in emitEnumAidlDefinition()
53 if (!AidlHelper::shouldBeExpanded(enumType.fqName(), type->fqName())) { in emitEnumAidlDefinition()
87 out << "parcelable " << AidlHelper::getAidlName(compoundType.fqName()) << " "; in emitCompoundTypeAidlDefinition()
93 out << "union " << AidlHelper::getAidlName(compoundType.fqName()) << " "; in emitCompoundTypeAidlDefinition()
100 AidlHelper::getAidlType(*fieldWithVersion.field->get(), compoundType.fqName()); in emitCompoundTypeAidlDefinition()
108 void AidlHelper::emitAidl( in emitAidl()
DAidlTranslate.cpp41 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()
[all …]
DAidlType.cpp41 std::optional<const ReplacedTypeInfo> AidlHelper::getAidlReplacedType(const FQName& fqName) { in getAidlReplacedType()
49 std::string AidlHelper::getAidlType(const Type& type, const FQName& relativeTo) { in getAidlType()
DAidlInterface.cpp51 prefix + AidlHelper::getAidlType(*arg->get(), iface.fqName()) + " " + arg->name(); in emitAidlMethodParams()
64 std::vector<const Method*> AidlHelper::getUserDefinedMethods(Formatter& out, in getUserDefinedMethods()
68 if (!AidlHelper::shouldBeExpanded(interface.fqName(), iface->fqName()) && in getUserDefinedMethods()
173 void AidlHelper::emitAidl( in emitAidl()
192 if (!AidlHelper::shouldBeExpanded(interface.fqName(), iface->fqName())) { in emitAidl()
DAndroid.bp30 "AidlHelper.cpp",
DAidlHelper.h63 struct AidlHelper { struct