/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 bool FQName::isIdentifier() const { in isIdentifier() 59 bool FQName::isFullyQualified() const { in isFullyQualified() 63 bool FQName::isValidValueName() const { in isValidValueName() 68 bool FQName::isInterfaceName() const { in isInterfaceName() 112 bool FQName::setTo(const std::string &s) { in setTo() [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); 165 void getImportedPackages(std::set<FQName> *importSet) const; 169 void getImportedPackagesHierarchy(std::set<FQName> *importSet) const; 184 void getAllImportedNames(std::set<FQName> *allImportSet) const; 188 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; 42 Interface(const std::string& localName, const FQName& fullName, const Location& location, 91 FQName getProxyFqName() const; 92 FQName getStubFqName() const; 93 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()
|
/system/libvintf/ |
D | FQName.cpp | 27 FQName::FQName() : mIsIdentifier(false) {} in FQName() function in android::vintf::details::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::vintf::details::FQName 39 bool FQName::setTo(const std::string& package, size_t majorVer, size_t minorVer, in setTo() 46 FQName other; in setTo() 53 bool FQName::isIdentifier() const { in isIdentifier() 57 bool FQName::isInterfaceName() const { in isInterfaceName() 101 bool FQName::setTo(const std::string& s) { in setTo() 181 const std::string& FQName::package() const { in package() 185 std::string FQName::version() const { in version() [all …]
|
/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 = "", 58 FQName withVersion(size_t major, size_t minor) const; 89 FQName typeName() const; 105 bool operator<(const FQName &other) const; 106 bool operator==(const FQName &other) const; 107 bool operator!=(const FQName &other) const; 114 std::string getRelativeFQName(const FQName& relativeTo) const; [all …]
|
D | FqInstance.h | 46 const FQName& getFqName() const; 76 __attribute__((warn_unused_result)) bool setTo(const FQName& fqName, 117 FQName mFqName;
|
/system/tools/hidl/hidl2aidl/ |
D | main.cpp | 59 static const FQName& getNewerFQName(const FQName& lhs, const FQName& rhs) { in getNewerFQName() 71 static FQName getLatestMinorVersionFQNameFromList(const FQName& fqName, in getLatestMinorVersionFQNameFromList() 72 const std::vector<FQName>& list) { in getLatestMinorVersionFQNameFromList() 73 FQName currentCandidate = fqName; in getLatestMinorVersionFQNameFromList() 75 for (const FQName& current : list) { in getLatestMinorVersionFQNameFromList() 88 static FQName getLatestMinorVersionNamedTypeFromList(const FQName& fqName, in getLatestMinorVersionNamedTypeFromList() 90 FQName currentCandidate = fqName; in getLatestMinorVersionNamedTypeFromList() 93 const FQName& current = currentNamedType->fqName(); in getLatestMinorVersionNamedTypeFromList() 106 static bool packageExists(const Coordinator& coordinator, const FQName& fqName) { in packageExists() 120 static FQName getLowestExistingFqName(const Coordinator& coordinator, const FQName& fqName) { in getLowestExistingFqName() [all …]
|
D | AidlHelper.h | 30 struct FQName; 72 static std::string getAidlName(const FQName& fqName, 78 static std::string getAidlPackage(const FQName& fqName); 81 static std::string getAidlPackagePath(const FQName& fqName); 84 static std::optional<std::string> getAidlFQName(const FQName& fqName); 87 static std::optional<const ReplacedTypeInfo> getAidlReplacedType(const FQName& fqName); 97 static std::string getAidlType(const Type& type, const FQName& relativeTo, 123 static std::string translateHeaderFile(const FQName& fqName, AidlBackend backend); 124 static std::string translateSourceFile(const FQName& fqName, AidlBackend backend); 127 const Coordinator& coordinator, const FQName& fqName, [all …]
|
D | AidlHelper.cpp | 54 std::string AidlHelper::getAidlName(const FQName& fqName, AidlBackend backend) { in getAidlName() 73 std::string AidlHelper::getAidlPackage(const FQName& fqName) { in getAidlPackage() 82 std::string AidlHelper::getAidlPackagePath(const FQName& fqName) { in getAidlPackagePath() 86 std::optional<std::string> AidlHelper::getAidlFQName(const FQName& fqName) { in getAidlFQName() 107 std::set<FQName>* imports) { in importLocallyReferencedType() 143 std::set<FQName> imports; in emitFileHeader() 176 const FQName& relativeTo = type.fqName(); in emitFileHeader() 280 bool AidlHelper::shouldBeExpanded(const FQName& a, const FQName& b) { in shouldBeExpanded()
|
/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/libvintf/include/vintf/ |
D | FQName.h | 24 struct FQName { struct 25 __attribute__((warn_unused_result)) static bool parse(const std::string& s, FQName* into); 27 explicit FQName(); 29 FQName(const std::string& package, const std::string& version, const std::string& name = ""); 73 bool operator<(const FQName& other) const; 74 bool operator==(const FQName& other) const; 75 bool operator!=(const FQName& other) const; 84 FQName getPackageAndVersion() const;
|
/system/hwservicemanager/ |
D | Vintf.cpp | 31 const FQName &fqName, const std::string &instanceName, in getTransportFromManifest() 41 FQName fqName; in getTransport() 43 if (!FQName::parse(interfaceName, &fqName)) { in getTransport() 75 static void insertManifestInstances(const FQName& fqName, in insertManifestInstances() 91 FQName fqName; in getInstances() 92 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 | 26 using ::android::FQName; 78 FQName e; in TEST() 86 FQName e; in TEST() 97 FQName e; in TEST() 184 FQName n; in TEST() 187 ASSERT_TRUE(FQName::parse("IFoo.test", &n)); in TEST() 191 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()
|