Lines Matching refs:coordinator

57             std::function<status_t(const FQName& fqName, const Coordinator* coordinator,
68 status_t getOutputFile(const FQName& fqName, const Coordinator* coordinator, in getOutputFile()
74 return coordinator->getFilepath(fqName, location, getFileName(fqName), file); in getOutputFile()
77 status_t appendOutputFiles(const FQName& fqName, const Coordinator* coordinator, in appendOutputFiles()
86 status_t err = getOutputFile(fqName, coordinator, location, &fileName); in appendOutputFiles()
96 status_t generate(const FQName& fqName, const Coordinator* coordinator, in generate()
105 return mGenerationFunction(fqName, coordinator, [&] { in generate()
106 return coordinator->getFormatter(fqName, location, getFileName(fqName)); in generate()
122 const FQName& fqName, const Coordinator* coordinator, const std::string& language)>;
135 status_t generate(const FQName& fqName, const Coordinator* coordinator) const;
136 status_t validate(const FQName& fqName, const Coordinator* coordinator, in validate()
138 return mValidate(fqName, coordinator, language); in validate()
141 status_t writeDepFile(const FQName& fqName, const Coordinator* coordinator) const;
144 status_t appendTargets(const FQName& fqName, const Coordinator* coordinator,
146 status_t appendOutputFiles(const FQName& fqName, const Coordinator* coordinator,
152 static status_t appendPerTypeTargets(const FQName& fqName, const Coordinator* coordinator, in appendPerTypeTargets() argument
160 AST* typesAST = coordinator->parse(fqName); in appendPerTypeTargets()
176 status_t OutputHandler::appendTargets(const FQName& fqName, const Coordinator* coordinator, in appendTargets() argument
187 status_t err = coordinator->appendPackageInterfacesToVector(fqName, targets); in appendTargets()
192 status_t err = appendPerTypeTargets(fqName, coordinator, targets); in appendTargets()
198 status_t err = coordinator->appendPackageInterfacesToVector(fqName, &packageInterfaces); in appendTargets()
201 err = appendPerTypeTargets(packageInterface, coordinator, targets); in appendTargets()
212 status_t OutputHandler::generate(const FQName& fqName, const Coordinator* coordinator) const { in generate()
214 status_t err = appendTargets(fqName, coordinator, &targets); in generate()
219 status_t err = file.generate(fqName, coordinator, mLocation); in generate()
227 status_t OutputHandler::appendOutputFiles(const FQName& fqName, const Coordinator* coordinator, in appendOutputFiles() argument
230 status_t err = appendTargets(fqName, coordinator, &targets); in appendOutputFiles()
235 err = file.appendOutputFiles(fqName, coordinator, mLocation, outputFiles); in appendOutputFiles()
243 status_t OutputHandler::writeDepFile(const FQName& fqName, const Coordinator* coordinator) const { in writeDepFile()
245 status_t err = appendOutputFiles(fqName, coordinator, &outputFiles); in writeDepFile()
257 return coordinator->writeDepFile(forFile); in writeDepFile()
263 return [generate](const FQName& fqName, const Coordinator* coordinator, in astGenerationFunction()
265 AST* ast = coordinator->parse(fqName); in astGenerationFunction()
293 static status_t generateJavaForPackage(const FQName& fqName, const Coordinator* coordinator, in generateJavaForPackage() argument
308 ast = coordinator->parse(fqName.getTypesForPackage()); in generateJavaForPackage()
314 ast = coordinator->parse(fqName); in generateJavaForPackage()
338 const Coordinator* coordinator) { in dumpDefinedButUnreferencedTypeNames() argument
340 status_t err = coordinator->appendPackageInterfacesToVector(packageFQName, &packageInterfaces); in dumpDefinedButUnreferencedTypeNames()
345 err = coordinator->addUnreferencedTypes(packageInterfaces, &unreferencedDefinitions, in dumpDefinedButUnreferencedTypeNames()
370 static status_t isPackageJavaCompatible(const FQName& packageFQName, const Coordinator* coordinator, in isPackageJavaCompatible() argument
374 coordinator->appendPackageInterfacesToVector(packageFQName, &todo); in isPackageJavaCompatible()
391 AST *ast = coordinator->parse(fqName); in isPackageJavaCompatible()
407 status_t err = coordinator->appendPackageInterfacesToVector( in isPackageJavaCompatible()
525 status_t isSystemExtPackage(const FQName& fqName, const Coordinator* coordinator, in isSystemExtPackage() argument
533 status_t err = coordinator->getFilepath(fqName, Coordinator::Location::PACKAGE_ROOT, in isSystemExtPackage()
540 coordinator->onFileAccess(path, "r"); in isSystemExtPackage()
548 const Coordinator* coordinator, in generateAdapterMainSource() argument
552 coordinator->appendPackageInterfacesToVector(packageFQName, in generateAdapterMainSource()
562 AST* ast = coordinator->parse(fqName); in generateAdapterMainSource()
604 const Coordinator* coordinator, in generateAndroidBpForPackage() argument
610 status_t err = coordinator->appendPackageInterfacesToVector(packageFQName, &packageInterfaces); in generateAndroidBpForPackage()
621 AST* ast = coordinator->parse(fqName); in generateAndroidBpForPackage()
642 err = isPackageJavaCompatible(packageFQName, coordinator, &isJavaCompatible); in generateAndroidBpForPackage()
652 err = isSystemExtPackage(packageFQName, coordinator, &isSystemExtHidl); in generateAndroidBpForPackage()
657 err = coordinator->getPackageRoot(packageFQName, &packageRoot); in generateAndroidBpForPackage()
670 if (!coordinator->getOwner().empty()) { in generateAndroidBpForPackage()
671 out << "owner: \"" << coordinator->getOwner() << "\",\n"; in generateAndroidBpForPackage()
709 const Coordinator* coordinator, in generateAndroidBpImplForPackage() argument
716 coordinator->appendPackageInterfacesToVector(packageFQName, in generateAndroidBpImplForPackage()
726 AST *ast = coordinator->parse(fqName); in generateAndroidBpImplForPackage()
757 if (!coordinator->getOwner().empty()) { in generateAndroidBpImplForPackage()
758 out << "owner: \"" << coordinator->getOwner() << "\",\n"; in generateAndroidBpImplForPackage()
761 if (coordinator->getOwner().empty()) { in generateAndroidBpImplForPackage()
797 bool validateForSource(const FQName& fqName, const Coordinator* coordinator, in validateForSource() argument
830 status_t err = isPackageJavaCompatible(fqName, coordinator, &isJavaCompatible); in validateForSource()
847 return [forJava](const FQName& packageFQName, const Coordinator* coordinator, in generateExportHeaderForPackage()
854 status_t err = coordinator->appendPackageInterfacesToVector( in generateExportHeaderForPackage()
864 AST *ast = coordinator->parse(fqName); in generateExportHeaderForPackage()
887 err = coordinator->getPackagePath(packageFQName, false /* relative */, in generateExportHeaderForPackage()
930 static status_t generateHashOutput(const FQName& fqName, const Coordinator* coordinator, in generateHashOutput() argument
934 AST* ast = coordinator->parse(fqName, {} /* parsed */, in generateHashOutput()
953 static status_t generateFunctionCount(const FQName& fqName, const Coordinator* coordinator, in generateFunctionCount() argument
957 AST* ast = coordinator->parse(fqName, {} /* parsed */, in generateFunctionCount()
1395 Coordinator coordinator; in main() local
1398 coordinator.parseOptions(argc, argv, "ho:O:L:", [&](int res, char* arg) { in main()
1410 if (!coordinator.getOwner().empty()) { in main()
1414 coordinator.setOwner(arg); in main()
1482 outputPath = coordinator.getRootPath(); in main()
1496 coordinator.setOutputPath(outputPath); in main()
1507 if (coordinator.getPackageInterfaceFiles(fqName, nullptr /*fileNames*/) != OK) { in main()
1513 if (coordinator.isVerbose()) { in main()
1515 dumpDefinedButUnreferencedTypeNames(fqName.getPackageAndVersion(), &coordinator); in main()
1519 if (!outputFormat->validate(fqName, &coordinator, outputFormat->name())) { in main()
1525 status_t err = outputFormat->generate(fqName, &coordinator); in main()
1528 err = outputFormat->writeDepFile(fqName, &coordinator); in main()