/system/libvintf/include/vintf/ |
D | VersionRange.h | 32 struct VersionRange { struct 33 constexpr VersionRange() : VersionRange(0u, 0u, 0u) {} in VersionRange() argument 34 constexpr VersionRange(size_t mjV, size_t miV) : VersionRange(mjV, miV, miV) {} in VersionRange() argument 35 constexpr VersionRange(size_t mjV, size_t miM, size_t mxM) in VersionRange() argument 41 inline bool operator==(const VersionRange &other) const { argument 64 inline bool overlaps(const VersionRange& other) const { in overlaps() argument
|
D | MatrixHal.h | 43 std::vector<VersionRange> versionRanges; 54 friend std::string expandInstances(const MatrixHal& req, const VersionRange& vr, bool brace); 58 bool forEachInstance(const VersionRange& vr, 62 const std::function<bool(const std::vector<VersionRange>&, const std::string&, 67 bool isCompatible(const VersionRange& vr, const std::set<FqInstance>& providedInstances, 71 void insertVersionRanges(const std::vector<VersionRange>& other);
|
D | MatrixInstance.h | 38 using VersionType = VersionRange; 40 MatrixInstance(HalFormat format, FqInstance&& fqInstance, VersionRange&& range, bool optional, 42 MatrixInstance(HalFormat format, const FqInstance fqInstance, const VersionRange& range, 45 const VersionRange& versionRange() const; 80 VersionRange mRange;
|
D | Sepolicy.h | 38 std::vector<VersionRange> &&sepolicyVersions) : in Sepolicy() 43 inline const std::vector<VersionRange> &sepolicyVersions() const { in sepolicyVersions() 51 std::vector<VersionRange> mSepolicyVersionRanges;
|
D | XmlFile.h | 43 inline const VersionRange& versionRange() const { return mVersionRange; } in versionRange() 52 VersionRange mVersionRange;
|
D | parse_string.h | 42 std::ostream &operator<<(std::ostream &os, const VersionRange &vr); 74 bool parse(const std::string &s, VersionRange *vr); 118 std::string toFQNameString(const std::string& package, const VersionRange& range, 121 std::string toFQNameString(const VersionRange& range, const std::string& interface,
|
/system/libvintf/ |
D | MatrixHal.cpp | 40 for (VersionRange vRange : versionRanges) { in containsVersion() 55 bool MatrixHal::forEachInstance(const VersionRange& vr, in forEachInstance() 63 if (!func(MatrixInstance(format, std::move(fqInstance), VersionRange(vr), in forEachInstance() 78 const std::function<bool(const std::vector<VersionRange>&, const std::string&, in forEachInstance() argument 95 return std::any_of(versionRanges.begin(), versionRanges.end(), [&](const VersionRange& vr) { in isCompatible() 100 bool MatrixHal::isCompatible(const VersionRange& vr, const std::set<FqInstance>& providedInstances, in isCompatible() 133 void MatrixHal::insertVersionRanges(const std::vector<VersionRange>& other) { in insertVersionRanges() 134 for (const VersionRange& otherVr : other) { in insertVersionRanges()
|
D | MatrixInstance.cpp | 37 MatrixInstance::MatrixInstance(HalFormat format, FqInstance&& fqInstance, VersionRange&& range, in MatrixInstance() 46 const VersionRange& range, bool optional, bool isRegex) in MatrixInstance() 57 const VersionRange& MatrixInstance::versionRange() const { in versionRange()
|
D | constants-private.h | 28 static constexpr VersionRange kFakeAidlVersionRange{SIZE_MAX, SIZE_MAX};
|
D | parse_string.cpp | 236 bool parse(const std::string &s, VersionRange *vr) { in parse() 246 *vr = VersionRange(minVer.majorVer, minVer.minorVer); in parse() 252 *vr = VersionRange(minVer.majorVer, minVer.minorVer, maxMinor); in parse() 257 std::ostream &operator<<(std::ostream &os, const VersionRange &vr) { in operator <<() 401 std::string expandInstances(const MatrixHal& req, const VersionRange& vr, bool brace) { in expandInstances() 518 std::string toFQNameString(const std::string& package, const VersionRange& range, in toFQNameString() 523 std::string toFQNameString(const VersionRange& range, const std::string& interface, in toFQNameString()
|
D | CompatibilityMatrix.cpp | 207 halToAdd.forEachInstance([&](const std::vector<VersionRange>& versionRanges, in addAllHalsAsOptional()
|
D | parse_xml.cpp | 452 XmlTextConverter<VersionRange> versionRangeConverter{"version"}; 606 const VersionRange& v = hal.versionRanges.at(0); in checkAdditionalRestrictionsOnHal() 838 XmlTextConverter<VersionRange> sepolicyVersionConverter{"sepolicy-version"};
|
D | HalManifest.cpp | 442 .versionRanges = {VersionRange{e.version().majorVer, e.version().minorVer}}, in generateCompatibleMatrix()
|
/system/libvintf/test/ |
D | LibVintfTest.cpp | 73 void addXmlFile(CompatibilityMatrix& cm, std::string name, VersionRange range) { in addXmlFile() 231 VersionRange v(1, 2, 3); in TEST_F() 233 VersionRange v2; in TEST_F() 483 {{VersionRange(1,2,3), VersionRange(4,5,6)}}, in TEST_F() 595 {{VersionRange(1,2,3), VersionRange(4,5,6)}}, in TEST_F() 598 {{VersionRange(4,5,6), VersionRange(10,11,12)}}, in TEST_F() 664 {{VersionRange(1,0)}}, in TEST_F() 773 {{VersionRange(1, 2, 3), VersionRange(4, 5, 6)}}, in TEST_F() 778 {{VersionRange(4, 5, 6), VersionRange(10, 11, 12)}}, in TEST_F() 785 {{VersionRange(1, 2, 3), VersionRange(4, 5, 6)}}, in TEST_F() [all …]
|