Lines Matching refs:AidlBackend

41 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()
75 static void emitEnumStaticAssert(Formatter& out, const NamedType& namedType, AidlBackend backend) { in emitEnumStaticAssert()
97 AidlBackend backend) { in emitStaticAsserts()
98 CHECK(backend != AidlBackend::JAVA); in emitStaticAsserts()
108 AidlBackend backend) { in namedTypeTranslation()
128 if (backend == AidlBackend::JAVA) { in namedTypeTranslation()
136 if (backend == AidlBackend::JAVA) { in namedTypeTranslation()
153 AidlBackend backend) { in h2aScalarChecks()
168 if (backend != AidlBackend::JAVA && scalarType->getKind() == ScalarType::KIND_UINT16) { in h2aScalarChecks()
181 std::string limit = (backend == AidlBackend::JAVA) in h2aScalarChecks()
187 if (backend == AidlBackend::JAVA) { in h2aScalarChecks()
201 static std::string wrapToString16(const std::string& payload, AidlBackend backend) { in wrapToString16()
202 if (backend == AidlBackend::CPP) { in wrapToString16()
210 const FQName& fqName, AidlBackend backend) { in wrapStaticCast()
228 AidlBackend backend) { in wrapCppSource()
240 const CompoundType* parent, AidlBackend backend) { in containerTranslation()
271 if (backend == AidlBackend::JAVA) { in containerTranslation()
305 const CompoundType* parent, AidlBackend backend) { in simpleTranslation()
307 if (backend == AidlBackend::JAVA) { in simpleTranslation()
342 AidlBackend backend) { in h2aFieldTranslation()
357 static const std::string declareAidlFunctionSignature(const NamedType* type, AidlBackend backend) { in declareAidlFunctionSignature()
358 if (backend == AidlBackend::JAVA) { in declareAidlFunctionSignature()
393 static const std::string aidlIncludeFile(const NamedType* type, AidlBackend backend) { in aidlIncludeFile()
394 const std::string prefix = (backend == AidlBackend::NDK) ? "aidl/" : std::string(); in aidlIncludeFile()
403 AidlBackend backend) { in emitCppTranslateHeader()
404 CHECK(backend == AidlBackend::CPP || backend == AidlBackend::NDK); in emitCppTranslateHeader()
439 AidlBackend backend) { in emitTranslateSource()
444 if (backend == AidlBackend::JAVA) { in emitTranslateSource()
463 if (backend != AidlBackend::JAVA) { in emitTranslateSource()
474 if (backend == AidlBackend::JAVA) { in emitTranslateSource()
482 if (backend == AidlBackend::JAVA) { in emitTranslateSource()
495 if (backend == AidlBackend::JAVA) { in emitTranslateSource()
508 if (backend == AidlBackend::JAVA) { in emitTranslateSource()
518 if (backend == AidlBackend::JAVA) { in emitTranslateSource()
525 if (backend == AidlBackend::JAVA) { in emitTranslateSource()
537 for (auto backend : {AidlBackend::NDK, AidlBackend::CPP, AidlBackend::JAVA}) { in emitTranslation()
538 if (backend != AidlBackend::JAVA) { in emitTranslation()