Home
last modified time | relevance | path

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

/system/tools/hidl/hidl2aidl/
DAidlTranslate.cpp41 std::string AidlHelper::translateHeaderFile(const FQName& fqName, AidlBackend backend) { in translateHeaderFile()
43 case AidlBackend::NDK: in translateHeaderFile()
45 case AidlBackend::CPP: in translateHeaderFile()
53 std::string AidlHelper::translateSourceFile(const FQName& fqName, AidlBackend backend) { in translateSourceFile()
55 case AidlBackend::NDK: in translateSourceFile()
57 case AidlBackend::CPP: in translateSourceFile()
59 case AidlBackend::JAVA: in translateSourceFile()
67 static const std::string aidlTypePackage(const NamedType& type, AidlBackend backend) { in aidlTypePackage()
68 const std::string prefix = (backend == AidlBackend::NDK) ? "aidl::" : std::string(); in aidlTypePackage()
69 const std::string separator = (backend == AidlBackend::JAVA) ? "." : "::"; in aidlTypePackage()
[all …]
Dmain.cpp172 static void emitAidlSharedLibs(Formatter& out, FQName fqName, AidlBackend backend) { in emitAidlSharedLibs()
173 if (backend == AidlBackend::NDK) { in emitAidlSharedLibs()
177 } else if (backend == AidlBackend::CPP) { in emitAidlSharedLibs()
187 static void emitHidlSharedLibs(Formatter& out, std::vector<FQName>& targets, AidlBackend backend) { in emitHidlSharedLibs()
190 if (backend == AidlBackend::JAVA) { in emitHidlSharedLibs()
204 static std::string aidlTranslateLibraryName(FQName fqName, AidlBackend backend) { in aidlTranslateLibraryName()
206 if (backend == AidlBackend::NDK) { in aidlTranslateLibraryName()
208 } else if (backend == AidlBackend::CPP) { in aidlTranslateLibraryName()
244 for (auto backend : {AidlBackend::CPP, AidlBackend::NDK}) { in emitBuildFile()
247 if (backend == AidlBackend::NDK) { in emitBuildFile()
[all …]
DAidlHelper.h61 enum class AidlBackend { UNKNOWN, NDK, CPP, JAVA }; enum
114 static std::string translateHeaderFile(const FQName& fqName, AidlBackend backend);
115 static std::string translateSourceFile(const FQName& fqName, AidlBackend backend);