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.cpp106 static bool packageExists(const Coordinator& coordinator, const FQName& fqName) { in packageExists() argument
108 status_t err = coordinator.packageExists(fqName, &result); in packageExists()
120 static FQName getLowestExistingFqName(const Coordinator& coordinator, const FQName& fqName) { in getLowestExistingFqName() argument
123 if (!packageExists(coordinator, lowest.downRev())) break; in getLowestExistingFqName()
133 static FQName getHighestExistingFqName(const Coordinator& coordinator, const FQName& fqName) { in getHighestExistingFqName() argument
135 while (packageExists(coordinator, highest.upRev())) { in getHighestExistingFqName()
141 static AST* parse(const Coordinator& coordinator, const FQName& target) { in parse() argument
142 AST* ast = coordinator.parse(target); in parse()
283 Coordinator coordinator; in main() local
287 coordinator.parseOptions(argc, argv, "fho:l:e", [&](int res, char* arg) { in main()
[all …]
DAidlHelper.h88 const NamedType& namedType, const Coordinator& coordinator,
96 const NamedType& namedType, const Coordinator& coordinator,
100 static void emitAidl(const Interface& interface, const Coordinator& coordinator,
118 const Coordinator& coordinator, const FQName& fqName,
DAidlNamedType.cpp109 const NamedType& namedType, const Coordinator& coordinator, in emitAidl() argument
111 Formatter out = getFileWithHeader(namedType, coordinator, processedTypes); in emitAidl()
123 emitAidl(iface, coordinator, processedTypes); in emitAidl()
DAidlTranslate.cpp400 const Coordinator& coordinator, const FQName& fqName, in emitCppTranslateHeader() argument
406 coordinator.getFormatter(fqName, Coordinator::Location::DIRECT, in emitCppTranslateHeader()
436 const Coordinator& coordinator, const FQName& fqName, in emitTranslateSource() argument
440 Formatter out = coordinator.getFormatter(fqName, Coordinator::Location::DIRECT, in emitTranslateSource()
533 const Coordinator& coordinator, const FQName& fqName, in emitTranslation() argument
539 emitCppTranslateHeader(coordinator, fqName, namedTypes, processedTypes, backend); in emitTranslation()
541 emitTranslateSource(coordinator, fqName, namedTypes, processedTypes, backend); in emitTranslation()
DAidlHelper.cpp166 const NamedType& namedType, const Coordinator& coordinator, in getFileWithHeader() argument
169 coordinator.getFormatter(namedType.fqName(), Coordinator::Location::DIRECT, in getFileWithHeader()
DAidlInterface.cpp174 const Interface& interface, const Coordinator& coordinator, in emitAidl() argument
176 Formatter out = getFileWithHeader(interface, coordinator, processedTypes); 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()