/system/tools/hidl/utils/ |
D | FQName.cpp | 27 FQName::FQName() : mIsIdentifier(false) {} in FQName() function in android::FQName 29 bool FQName::parse(const std::string& s, FQName* into) { in parse() 33 FQName::FQName(const std::string& package, const std::string& version, const std::string& name, in FQName() function in android::FQName 40 bool FQName::setTo(const std::string& package, size_t majorVer, size_t minorVer, in setTo() 48 FQName other; in setTo() 55 FQName::FQName(const FQName& other) in FQName() function in android::FQName 63 bool FQName::isIdentifier() const { in isIdentifier() 67 bool FQName::isFullyQualified() const { in isFullyQualified() 71 bool FQName::isValidValueName() const { in isValidValueName() 76 bool FQName::isInterfaceName() const { in isInterfaceName() [all …]
|
/system/tools/hidl/ |
D | Coordinator.h | 65 status_t getFilepath(const FQName& fqName, Location location, const std::string& fileName, 68 Formatter getFormatter(const FQName& fqName, Location location, 88 AST* parse(const FQName& fqName, std::set<AST*>* parsedASTs = nullptr, 97 status_t parseOptional(const FQName& fqName, AST** ast, std::set<AST*>* parsedASTs = nullptr, 106 status_t getPackagePath(const FQName& fqName, bool relative, bool sanitized, 113 status_t getPackageRoot(const FQName& fqName, std::string* root) const; 116 const FQName &package, 120 status_t packageExists(const FQName& package, bool* result) const; 123 const FQName &package, 124 std::vector<FQName> *packageInterfaces) const; [all …]
|
D | AST.h | 49 FQName fqName; 58 bool addImplicitImport(const FQName& fqName); 61 FQName package() const; 66 FQName makeFullName(const char* localName, Scope* scope) const; 81 EnumValue* lookupEnumValue(const FQName& fqName, std::string* errorMsg, const Scope* scope); 86 Type* lookupType(const FQName& fqName, const Scope* scope); 168 void getImportedPackages(std::set<FQName> *importSet) const; 172 void getImportedPackagesHierarchy(std::set<FQName> *importSet) const; 187 void getAllImportedNames(std::set<FQName> *allImportSet) const; 191 void getAllImportedNamesGranular(std::set<FQName> *allImportSet) const; [all …]
|
D | main.cpp | 53 using ShouldGenerateFunction = std::function<bool(const FQName& fqName)>; 54 using FileNameForFQName = std::function<std::string(const FQName& fqName)>; 57 std::function<status_t(const FQName& fqName, const Coordinator* coordinator, 64 std::string getFileName(const FQName& fqName) const { in getFileName() 68 status_t getOutputFile(const FQName& fqName, const Coordinator* coordinator, in getOutputFile() 77 status_t appendOutputFiles(const FQName& fqName, const Coordinator* coordinator, in appendOutputFiles() 96 status_t generate(const FQName& fqName, const Coordinator* coordinator, in generate() 111 static bool generateForTypes(const FQName& fqName) { in generateForTypes() 115 static bool generateForInterfaces(const FQName& fqName) { return !generateForTypes(fqName); } in generateForInterfaces() 116 static bool alwaysGenerate(const FQName&) { return true; } in alwaysGenerate() [all …]
|
D | AST.cpp | 45 mRootScope("(root scope)", FQName(), in AST() 91 FQName AST::package() const { in package() 378 bool AST::importFQName(const FQName& fqName) { in importFQName() 388 std::vector<FQName> packageInterfaces; in importFQName() 415 const FQName interfaceName = fqName.getTopLevelType(); in importFQName() 438 FQName matchingName; in importFQName() 450 FQName typesFQName = fqName.getTypesForPackage(); in importFQName() 457 FQName matchingName; in importFQName() 472 bool AST::addImplicitImport(const FQName& fqName) { in addImplicitImport() 484 FQName fqName; in addImport() [all …]
|
D | Coordinator.cpp | 86 FQName package = FQName(root, "0.0", ""); in addPackagePath() 107 Formatter Coordinator::getFormatter(const FQName& fqName, Location location, in getFormatter() 136 status_t Coordinator::getFilepath(const FQName& fqName, Location location, in getFilepath() 214 AST* Coordinator::parse(const FQName& fqName, std::set<AST*>* parsedASTs, in parse() 226 status_t Coordinator::parseOptional(const FQName& fqName, AST** ast, std::set<AST*>* parsedASTs, in parseOptional() 352 const Coordinator::PackageRoot* Coordinator::findPackageRoot(const FQName& fqName) const { in findPackageRoot() 397 status_t Coordinator::getPackageRoot(const FQName& fqName, std::string* root) const { in getPackageRoot() 406 status_t Coordinator::getPackageRootPath(const FQName& fqName, std::string* path) const { in getPackageRootPath() 415 status_t Coordinator::getPackagePath(const FQName& fqName, bool relative, bool sanitized, in getPackagePath() 440 const FQName &package, in getPackageInterfaceFiles() [all …]
|
D | NamedType.h | 31 NamedType(const std::string& localName, const FQName& fullName, const Location& loc, 36 const FQName &fqName() const; 51 const FQName mFullName;
|
D | Interface.h | 35 extern const FQName gIBaseFqName; 36 extern const FQName gIManagerFqName; 41 Interface(const std::string& localName, const FQName& fullName, const Location& location, 89 FQName getProxyFqName() const; 90 FQName getStubFqName() const; 91 FQName getPassthroughFqName() const;
|
D | Reference.h | 39 Reference(const std::string& localName, const FQName& fqName, const Location& location, 111 const FQName& getLookupFqName() const { in getLookupFqName() 131 FQName mFqName; 145 return mFqName != FQName(); in hasLookupFqName()
|
D | NamedType.cpp | 23 NamedType::NamedType(const std::string& localName, const FQName& fullName, const Location& loc, in NamedType() 31 const FQName &NamedType::fqName() const { in fqName()
|
D | Scope.h | 37 Scope(const std::string& localName, const FQName& fullName, const Location& location, 47 NamedType *lookupType(const FQName &fqName) const; 99 RootScope(const char* localName, const FQName& fullName, const Location& location,
|
D | Scope.cpp | 33 Scope::Scope(const std::string& localName, const FQName& fullName, const Location& location, in Scope() 55 NamedType *Scope::lookupType(const FQName &fqName) const { in lookupType() 80 FQName innerName; in lookupType() 81 CHECK(FQName::parse(StringHelper::JoinStrings(names, "."), &innerName)); in lookupType() 250 RootScope::RootScope(const char* localName, const FQName& fullName, const Location& location, in RootScope()
|
/system/tools/hidl/utils/include/hidl-util/ |
D | FQName.h | 26 struct FQName { struct 27 __attribute__((warn_unused_result)) static bool parse(const std::string& s, FQName* into); 29 explicit FQName(); 31 FQName(const std::string& package, const std::string& version, const std::string& name = "", 34 FQName(const FQName& other); 60 FQName withVersion(size_t major, size_t minor) const; 91 FQName typeName() const; 107 bool operator<(const FQName &other) const; 108 bool operator==(const FQName &other) const; 109 bool operator!=(const FQName &other) const; [all …]
|
D | FqInstance.h | 45 const FQName& getFqName() const; 76 __attribute__((warn_unused_result)) bool setTo(const FQName& fqName, 108 FQName mFqName;
|
/system/tools/hidl/hidl2aidl/ |
D | main.cpp | 54 static const FQName& getNewerFQName(const FQName& lhs, const FQName& rhs) { in getNewerFQName() 66 static FQName getLatestMinorVersionFQNameFromList(const FQName& fqName, in getLatestMinorVersionFQNameFromList() 67 const std::vector<FQName>& list) { in getLatestMinorVersionFQNameFromList() 68 FQName currentCandidate = fqName; in getLatestMinorVersionFQNameFromList() 70 for (const FQName& current : list) { in getLatestMinorVersionFQNameFromList() 83 static FQName getLatestMinorVersionNamedTypeFromList(const FQName& fqName, in getLatestMinorVersionNamedTypeFromList() 85 FQName currentCandidate = fqName; in getLatestMinorVersionNamedTypeFromList() 88 const FQName& current = currentNamedType->fqName(); in getLatestMinorVersionNamedTypeFromList() 101 static bool packageExists(const Coordinator& coordinator, const FQName& fqName) { in packageExists() 112 static AST* parse(const Coordinator& coordinator, const FQName& target) { in parse() [all …]
|
D | AidlHelper.h | 27 struct FQName; 38 static std::string getAidlName(const FQName& fqName); 43 static std::string getAidlPackage(const FQName& fqName); 46 static std::string getAidlFQName(const FQName& fqName); 53 static std::string getAidlType(const Type& type, const FQName& relativeTo);
|
D | AidlHelper.cpp | 49 std::string AidlHelper::getAidlName(const FQName& fqName) { in getAidlName() 57 std::string AidlHelper::getAidlPackage(const FQName& fqName) { in getAidlPackage() 66 std::string AidlHelper::getAidlFQName(const FQName& fqName) { in getAidlFQName()
|
/system/core/init/ |
D | interface_utils.cpp | 26 using android::FQName; 34 std::string FQNamesToString(const std::set<FQName>& fqnames) { in FQNamesToString() 36 for (const FQName& fqname : fqnames) { in FQNamesToString() 46 std::set<FQName> interface_fqnames; in CheckInterfaceInheritanceHierarchy() 63 Result<void> CheckInterfaceInheritanceHierarchy(const std::set<FQName>& interfaces, in CheckInterfaceInheritanceHierarchy() 66 for (const FQName& intf : interfaces) { in CheckInterfaceInheritanceHierarchy() 74 const std::set<FQName>& required_interfaces = hierarchy.at(intf); in CheckInterfaceInheritanceHierarchy() 75 std::set<FQName> diff; in CheckInterfaceInheritanceHierarchy() 93 std::optional<std::set<FQName>> known_interfaces; 96 known_interfaces = std::set<FQName>(); in SetKnownInterfaces() [all …]
|
D | interface_utils.h | 30 using InterfaceInheritanceHierarchyMap = std::map<android::FQName, std::set<android::FQName>>; 37 Result<void> CheckInterfaceInheritanceHierarchy(const std::set<android::FQName>& interfaces, 47 Result<void> IsKnownInterface(const FQName& intf);
|
/system/tools/hidl/test/host_test/ |
D | main.cpp | 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() 60 FQName("a.c.foo.bar", "1.0", "IFoo"), false, false); in TEST_F() 61 EXPECT_EQ_OK("a1/b1/foo/V1_0/", coordinator.getPackagePath, FQName("a.b.foo", "1.0"), false, in TEST_F() 64 FQName("a.c.foo.bar", "1.0", "IFoo"), false, true); in TEST_F() 65 EXPECT_EQ_OK("foo/1.0/", coordinator.getPackagePath, FQName("a.b.foo", "1.0"), true, false); in TEST_F() 66 EXPECT_EQ_OK("foo/bar/1.0/", coordinator.getPackagePath, FQName("a.c.foo.bar", "1.0", "IFoo"), in TEST_F() 68 EXPECT_EQ_OK("foo/V1_0/", coordinator.getPackagePath, FQName("a.b.foo", "1.0"), true, true); in TEST_F() 69 EXPECT_EQ_OK("foo/bar/V1_0/", coordinator.getPackagePath, FQName("a.c.foo.bar", "1.0", "IFoo"), in TEST_F() [all …]
|
/system/hwservicemanager/ |
D | Vintf.cpp | 30 const FQName &fqName, const std::string &instanceName, in getTransportFromManifest() 40 FQName fqName; in getTransport() 42 if (!FQName::parse(interfaceName, &fqName)) { in getTransport() 74 static void insertManifestInstances(const FQName& fqName, in insertManifestInstances() 90 FQName fqName; in getInstances() 91 if (!FQName::parse(interfaceName, &fqName) || !fqName.isFullyQualified() || in getInstances()
|
D | AccessControl.cpp | 37 using android::FQName; 57 FQName fqIface; in canAdd() 59 if (!FQName::parse(fqName, &fqIface)) { in canAdd() 68 FQName fqIface; in canGet() 70 if (!FQName::parse(fqName, &fqIface)) { in canGet()
|
/system/tools/hidl/test/utils_test/ |
D | main.cpp | 25 using ::android::FQName; 75 FQName e; in TEST() 83 FQName e; in TEST() 94 FQName e; in TEST() 181 FQName n; in TEST() 184 ASSERT_TRUE(FQName::parse("IFoo.test", &n)); in TEST() 188 ASSERT_TRUE(FQName::parse("package@1.2::IFoo", &n)); in TEST()
|
/system/tools/hidl/lint/ |
D | main.cpp | 110 FQName fqName; in main() 111 if (!FQName::parse(arg, &fqName)) { in main() 117 std::vector<FQName> targets; in main() 129 for (const FQName& target : targets) { in main()
|
/system/tools/hidl/lint/test/ |
D | main.cpp | 44 std::vector<FQName> targets; in getLintsForHal() 46 FQName fqName; in getLintsForHal() 47 if (!FQName::parse(name, &fqName)) { in getLintsForHal() 60 for (const FQName& fqName : targets) { in getLintsForHal()
|