Home
last modified time | relevance | path

Searched refs:VersionRange (Results 1 – 14 of 14) sorted by relevance

/system/libvintf/include/vintf/
DVersionRange.h32 struct VersionRange { struct
33 constexpr VersionRange() : VersionRange(0u, 0u, 0u) {} in VersionRange() function
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() function
41 inline bool operator==(const VersionRange &other) const { argument
64 inline bool overlaps(const VersionRange& other) const { in overlaps() argument
DMatrixHal.h43 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);
DMatrixInstance.h38 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;
DSepolicy.h38 std::vector<VersionRange> &&sepolicyVersions) : in Sepolicy()
43 inline const std::vector<VersionRange> &sepolicyVersions() const { in sepolicyVersions()
51 std::vector<VersionRange> mSepolicyVersionRanges;
DXmlFile.h43 inline const VersionRange& versionRange() const { return mVersionRange; } in versionRange()
52 VersionRange mVersionRange;
Dparse_string.h42 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/
DMatrixHal.cpp40 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()
DMatrixInstance.cpp37 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()
Dconstants-private.h28 static constexpr VersionRange kFakeAidlVersionRange{SIZE_MAX, SIZE_MAX};
Dparse_string.cpp236 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()
DCompatibilityMatrix.cpp207 halToAdd.forEachInstance([&](const std::vector<VersionRange>& versionRanges, in addAllHalsAsOptional()
Dparse_xml.cpp452 XmlTextConverter<VersionRange> versionRangeConverter{"version"};
606 const VersionRange& v = hal.versionRanges.at(0); in checkAdditionalRestrictionsOnHal()
838 XmlTextConverter<VersionRange> sepolicyVersionConverter{"sepolicy-version"};
DHalManifest.cpp442 .versionRanges = {VersionRange{e.version().majorVer, e.version().minorVer}}, in generateCompatibleMatrix()
/system/libvintf/test/
DLibVintfTest.cpp73 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 …]