Home
last modified time | relevance | path

Searched refs:coordinator (Results 1 – 12 of 12) sorted by relevance

/system/tools/hidl/test/host_test/
Dmain.cpp42 Coordinator coordinator; in TEST_F() local
45 EXPECT_EQ(OK, coordinator.addPackagePath("a.b", "a1/b1", &error)); in TEST_F()
47 EXPECT_NE(OK, coordinator.addPackagePath("a.b", "a2/b2/", &error)); in TEST_F()
50 coordinator.addDefaultPackagePath("a.b", "a3/b3/"); // should take path above in TEST_F()
51 coordinator.addDefaultPackagePath("a.c", "a4/b4/"); // should succeed in TEST_F()
53 EXPECT_EQ_OK("a.b", coordinator.getPackageRoot, FQName("a.b.foo", "1.0")); in TEST_F()
54 EXPECT_EQ_OK("a.c", coordinator.getPackageRoot, FQName("a.c.foo.bar", "1.0", "IFoo")); in TEST_F()
57 EXPECT_EQ_OK("a1/b1/foo/1.0/", coordinator.getPackagePath, FQName("a.b.foo", "1.0"), false, in TEST_F()
59 EXPECT_EQ_OK("a4/b4/foo/bar/1.0/", coordinator.getPackagePath, in TEST_F()
61 EXPECT_EQ_OK("a1/b1/foo/V1_0/", coordinator.getPackagePath, FQName("a.b.foo", "1.0"), false, in TEST_F()
[all …]
/system/tools/hidl/
Dmain.cpp57 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;
[all …]
DAST.cpp42 AST::AST(const Coordinator* coordinator, const Hash* fileHash) in AST() argument
43 : mCoordinator(coordinator), in AST()
46 Location::startOf(coordinator->makeRelative(fileHash->getPath())), in AST()
DAST.h54 AST(const Coordinator* coordinator, const Hash* fileHash);
/system/tools/hidl/hidl2aidl/
Dmain.cpp101 static bool packageExists(const Coordinator& coordinator, const FQName& fqName) { in packageExists() argument
103 status_t err = coordinator.packageExists(fqName, &result); in packageExists()
112 static AST* parse(const Coordinator& coordinator, const FQName& target) { in parse() argument
113 AST* ast = coordinator.parse(target); in parse()
146 Coordinator coordinator; in main() local
148 coordinator.parseOptions(argc, argv, "ho:", [&](int res, char* arg) { in main()
171 coordinator.setOutputPath(outputPath); in main()
192 if (!packageExists(coordinator, fqName)) { in main()
199 if (!packageExists(coordinator, currentFqName.downRev())) break; in main()
205 while (packageExists(coordinator, currentFqName)) { in main()
[all …]
DAidlHelper.h50 static Formatter getFileWithHeader(const NamedType& namedType, const Coordinator& coordinator);
56 static void emitAidl(const NamedType& namedType, const Coordinator& coordinator);
59 static void emitAidl(const Scope& scope, const Coordinator& coordinator);
62 static void emitAidl(const Interface& interface, const Coordinator& coordinator);
DAidlScope.cpp24 void AidlHelper::emitAidl(const Scope& scope, const Coordinator& coordinator) { in emitAidl() argument
26 AidlHelper::emitAidl(*type, coordinator); in emitAidl()
DAidlNamedType.cpp117 const Coordinator& coordinator) { in emitCompoundTypeAidlDefinition() argument
125 AidlHelper::emitAidl(*namedType, coordinator); in emitCompoundTypeAidlDefinition()
173 void AidlHelper::emitAidl(const NamedType& namedType, const Coordinator& coordinator) { in emitAidl() argument
174 Formatter out = getFileWithHeader(namedType, coordinator); in emitAidl()
180 emitCompoundTypeAidlDefinition(out, compoundType, coordinator); in emitAidl()
DAidlHelper.cpp136 const Coordinator& coordinator) { in getFileWithHeader() argument
138 Formatter out = coordinator.getFormatter(namedType.fqName(), Coordinator::Location::DIRECT, in getFileWithHeader()
DAidlInterface.cpp145 void AidlHelper::emitAidl(const Interface& interface, const Coordinator& coordinator) { in emitAidl() argument
146 Formatter out = getFileWithHeader(interface, coordinator); in emitAidl()
207 emitAidl(*typeWithVersion.node, coordinator); in emitAidl()
/system/tools/hidl/lint/
Dmain.cpp77 Coordinator coordinator; in main() local
78 coordinator.parseOptions(argc, argv, "hje", [&](int res, char* /* arg */) { in main()
121 status_t err = coordinator.appendPackageInterfacesToVector(fqName, &targets); in main()
130 AST* ast = coordinator.parse(target); in main()
/system/tools/hidl/lint/test/
Dmain.cpp35 Coordinator coordinator; member in android::HidlLintTest
40 coordinator.parseOptions(2, argv, "", [](int /* opt */, char* /* optarg */) {}); in SetUp()
54 status_t err = coordinator.appendPackageInterfacesToVector(fqName, &targets); in getLintsForHal()
61 AST* ast = coordinator.parse(fqName); in getLintsForHal()