/system/tools/hidl/c2hal/ |
D | AST.cpp | 36 AST::AST(const std::string &path, in AST() function in android::AST 47 AST::~AST() { in ~AST() 72 void *AST::scanner() { in scanner() 76 void AST::setScanner(void *scanner) { in setScanner() 80 bool AST::isOpenGl() const { in isOpenGl() 84 const std::string& AST::getFilename() const { in getFilename() 88 void AST::setDeclarations(std::vector<Declaration *> *declarations) { in setDeclarations() 99 void AST::setIncludes(std::vector<Include *> *includes) { in setIncludes() 103 Expression *AST::getExpression() const { in getExpression() 106 void AST::setExpression(Expression *expression) { in setExpression() [all …]
|
D | AST.h | 37 struct AST { struct 38 AST(const std::string &path, 42 ~AST(); 93 DISALLOW_COPY_AND_ASSIGN(AST); argument
|
D | Declaration.h | 28 struct AST; 56 virtual void processContents(AST &ast) = 0;
|
D | Expression.cpp | 89 Type getType(const AST &ast) override { in getType() 107 Type getType(const AST &ast) override { in getType() 141 Type getType(const AST &ast) override { in getType() 164 Type getType(const AST &ast) override { in getType() 189 Type getType(const AST &ast) override { in getType() 212 Type getType(const AST &) override { in getType() 239 Type getType(const AST &) override { in getType()
|
D | Define.cpp | 21 extern android::status_t parseExpression(android::AST *ast, std::string str); 47 void Define::processContents(AST &ast) { in processContents()
|
D | Expression.h | 27 struct AST; 77 virtual Type getType(const AST &scope) = 0;
|
D | Include.cpp | 44 void Include::processContents(AST &) { in processContents() argument
|
D | TypeDef.cpp | 37 void TypeDef::processContents(AST &ast) { in processContents()
|
D | Include.h | 37 void processContents(AST &ast) override;
|
D | TypeDef.h | 36 void processContents(AST &ast) override;
|
D | Note.h | 41 void processContents(AST &ast) override;
|
D | EnumVarDeclaration.h | 41 void processContents(AST &ast) override;
|
D | VarDeclaration.h | 38 void processContents(AST &ast) override;
|
D | Note.cpp | 52 void Note::processContents(AST &ast) { in processContents()
|
/system/tools/hidl/ |
D | AST.cpp | 38 AST::AST(const Coordinator* coordinator, const Hash* fileHash) in AST() function in android::AST 44 Scope* AST::getRootScope() { in getRootScope() 49 void AST::addSyntaxError() { in addSyntaxError() 53 size_t AST::syntaxErrors() const { in syntaxErrors() 57 const std::string& AST::getFilename() const { in getFilename() 60 const Hash* AST::getFileHash() const { in getFileHash() 64 bool AST::setPackage(const char *package) { in setPackage() 78 FQName AST::package() const { in package() 82 bool AST::isInterface() const { in isInterface() 86 bool AST::definesInterfaces() const { in definesInterfaces() [all …]
|
D | generateVts.cpp | 32 void AST::emitVtsTypeDeclarations(Formatter& out) const { in emitVtsTypeDeclarations() 33 if (AST::isInterface()) { in emitVtsTypeDeclarations() 51 void AST::generateVts(Formatter& out) const { in generateVts() 52 std::string baseName = AST::getBaseName(); in generateVts() 53 const Interface *iface = AST::getInterface(); in generateVts()
|
D | generateCppImpl.cpp | 36 void AST::generateFetchSymbol(Formatter &out, const std::string& ifaceName) const { in generateFetchSymbol() 40 void AST::generateStubImplMethod(Formatter& out, const std::string& className, in generateStubImplMethod() 71 void AST::generateCppImplHeader(Formatter& out) const { in generateCppImplHeader() 72 if (!AST::isInterface()) { in generateCppImplHeader() 134 void AST::generateCppImplSource(Formatter& out) const { in generateCppImplSource() 135 if (!AST::isInterface()) { in generateCppImplSource()
|
D | generateCppAdapter.cpp | 37 void AST::generateCppAdapterHeader(Formatter& out) const { in generateCppAdapterHeader() 38 const std::string klassName = AST::isInterface() ? getInterface()->getAdapterName() : "Atypes"; in generateCppAdapterHeader() 44 if (AST::isInterface()) { in generateCppAdapterHeader() 81 void AST::generateCppAdapterSource(Formatter& out) const { in generateCppAdapterSource() 82 const std::string klassName = AST::isInterface() ? getInterface()->getAdapterName() : "Atypes"; in generateCppAdapterSource() 86 if (AST::isInterface()) { in generateCppAdapterSource() 120 void AST::generateAdapterMethod(Formatter& out, const Method* method) const { in generateAdapterMethod()
|
D | Coordinator.h | 32 struct AST; 86 AST* parse(const FQName& fqName, std::set<AST*>* parsedASTs = nullptr, 95 status_t parseOptional(const FQName& fqName, AST** ast, std::set<AST*>* parsedASTs = nullptr, 177 mutable std::map<FQName, AST *> mCache;
|
D | generateCpp.cpp | 37 void AST::getPackageComponents( in getPackageComponents() 42 void AST::getPackageAndVersionComponents( in getPackageAndVersionComponents() 47 std::string AST::makeHeaderGuard(const std::string &baseName, in makeHeaderGuard() 63 void AST::generateCppPackageInclude( in generateCppPackageInclude() 81 void AST::enterLeaveNamespace(Formatter &out, bool enter) const { in enterLeaveNamespace() 224 void AST::generateInterfaceHeader(Formatter& out) const { in generateInterfaceHeader() 396 void AST::generateHwBinderHeader(Formatter& out) const { in generateHwBinderHeader() 462 void AST::generatePassthroughMethod(Formatter& out, const Method* method, const Interface* superInt… in generatePassthroughMethod() 607 void AST::generateMethods(Formatter& out, const MethodGenerator& gen, bool includeParent) const { in generateMethods() 634 void AST::generateTemplatizationLink(Formatter& out) const { in generateTemplatizationLink() [all …]
|
D | main.cpp | 160 AST* typesAST = coordinator->parse(fqName); in appendPerTypeTargets() 260 static FileGenerator::GenerationFunction astGenerationFunction(void (AST::*generate)(Formatter&) in astGenerationFunction() 264 AST* ast = coordinator->parse(fqName); in astGenerationFunction() 288 AST* ast; in generateJavaForPackage() 362 AST *ast = coordinator->parse(fqName); in isPackageJavaCompatible() 401 const std::vector<FQName> &packageInterfaces, AST *typesAST) { in packageNeedsJavaCode() 512 AST::generateCppPackageInclude(out, interface, interface.getInterfaceAdapterName()); in generateAdapterMainSource() 549 AST* typesAST = nullptr; in generateAndroidBpForPackage() 552 AST* ast = coordinator->parse(fqName); in generateAndroidBpForPackage() 654 AST *ast = coordinator->parse(fqName); in generateAndroidBpImplForPackage() [all …]
|
D | AST.h | 47 struct AST { struct 48 AST(const Coordinator* coordinator, const Hash* fileHash); 78 void addImportedAST(AST *ast); 224 std::set<AST *> mImportedASTs; argument 230 std::map<AST *, std::set<Type *>> mImportedTypes; argument 338 DISALLOW_COPY_AND_ASSIGN(AST);
|
D | hidl-gen_l.h | 30 status_t parseFile(AST* ast, std::unique_ptr<FILE, std::function<void(FILE*)>> file);
|
D | Coordinator.cpp | 209 AST* Coordinator::parse(const FQName& fqName, std::set<AST*>* parsedASTs, in parse() 211 AST* ret; in parse() 221 status_t Coordinator::parseOptional(const FQName& fqName, AST** ast, std::set<AST*>* parsedASTs, in parseOptional() 244 AST *typesAST = nullptr; in parseOptional() 263 *ast = new AST(this, &Hash::getHash(path)); in parseOptional() 569 AST* ast = parse(fqName); in addUnreferencedTypes() 725 AST* currentAST = parse(currentFQName, nullptr /* parsedASTs */, enforcement); in enforceMinorVersionUprevs() 751 AST *lastAST = parse(lastFQName); in enforceMinorVersionUprevs() 802 AST* ast = parse(fqName); in checkHash() 845 AST* ast = parse(fqName); in getUnfrozenDependencies()
|
D | generateDependencies.cpp | 29 void AST::generateDependencies(Formatter& out) const { in generateDependencies()
|