Home
last modified time | relevance | path

Searched refs:minorVer (Results 1 – 22 of 22) sorted by relevance

/system/libvintf/include/vintf/
DVersion.h32 constexpr Version(size_t mj, size_t mi) : majorVer(mj), minorVer(mi) {} in Version()
34 : majorVer(pair.first), minorVer(pair.second) {} in Version()
37 size_t minorVer; member
40 return majorVer == other.majorVer && minorVer == other.minorVer;
50 return minorVer < other.minorVer;
66 return majorVer == other.majorVer && minorVer >= other.minorVer; in minorAtLeast()
74 constexpr SepolicyVersion(size_t mj, std::optional<size_t> mi) : majorVer(mj), minorVer(mi) {} in SepolicyVersion()
77 std::optional<size_t> minorVer; member
82 return std::pair(majorVer, minorVer) < std::pair(other.majorVer, other.minorVer);
DFQName.h34 size_t minorVer, const std::string& name = "");
113 size_t* minorVer);
116 size_t* minorVer);
117 static void clearVersion(size_t* majorVer, size_t* minorVer);
DFqInstance.h67 size_t minorVer, const std::string& interface,
71 __attribute__((warn_unused_result)) bool setTo(size_t majorVer, size_t minorVer,
DVersionRange.h60 return majorVer == ver.majorVer && minMinor <= ver.minorVer; in supportedBy()
100 return majorVer == ver.majorVer && minMinor <= ver.minorVer; in supportedBy()
/system/libvintf/
DFQName.cpp34 size_t majorVer, minorVer; in FQName() local
35 CHECK(parseVersion(version, &majorVer, &minorVer)); in FQName()
36 CHECK(setTo(package, majorVer, minorVer, name)) << string(); in FQName()
39 bool FQName::setTo(const std::string& package, size_t majorVer, size_t minorVer, in setTo() argument
43 mMinor = minorVer; in setTo()
204 void FQName::clearVersion(size_t* majorVer, size_t* minorVer) { in clearVersion() argument
205 *majorVer = *minorVer = 0; in clearVersion()
209 size_t* majorVer, size_t* minorVer) { in parseVersion() argument
211 ::android::base::ParseUint(minorStr, minorVer); in parseVersion()
218 bool FQName::parseVersion(const std::string& v, size_t* majorVer, size_t* minorVer) { in parseVersion() argument
[all …]
DManifestHal.cpp149 size_t minorVer = e.getMinorVersion(); in insertInstance() local
155 *error = "Duplicated HAL version: " + to_string(it->version().minorVer) + in insertInstance()
163 minorVer = std::max(minorVer, it->version().minorVer); in insertInstance()
171 if (!toAdd.setTo(this->getName(), e.getMajorVersion(), minorVer, e.getInterface(), in insertInstance()
175 to_string(Version(e.getMajorVersion(), minorVer)) + "', interface='" + in insertInstance()
DFqInstance.cpp105 bool FqInstance::setTo(const std::string& package, size_t majorVer, size_t minorVer, in setTo() argument
107 if (!mFqName.setTo(package, majorVer, minorVer, interface)) return false; in setTo()
112 bool FqInstance::setTo(size_t majorVer, size_t minorVer, const std::string& interface, in setTo() argument
114 return setTo("", majorVer, minorVer, interface, instance); in setTo()
DRuntimeInfo.cpp112 mBootAvbVersion.minorVer < matAvb.minorVer) { in checkCompatibility()
122 mBootVbmetaAvbVersion.minorVer < matAvb.minorVer) { in checkCompatibility()
Dparse_string.cpp249 *sepolicyVer = SepolicyVersion(ver.majorVer, ver.minorVer); in parse()
254 return os << ver.majorVer << "." << ver.minorVer; in operator <<()
259 if (ver.minorVer.has_value()) os << "." << ver.minorVer.value(); in operator <<()
277 *vr = VersionRange(minVer.majorVer, minVer.minorVer); in parseVersionRange()
283 *vr = VersionRange(minVer.majorVer, minVer.minorVer, maxMinor); in parseVersionRange()
297 *svr = SepolicyVersionRange(sepolicyVersion.majorVer, sepolicyVersion.minorVer); in parse()
541 return to_string(v.minorVer); in aidlVersionToString()
545 return android::base::ParseUint(s, &version->minorVer); in parseAidlVersion()
Dutils.cpp31 ss << toAidlFqnameString(package, interface, instance) << " (@" << version.minorVer << ")"; in convertLegacyInstanceIntoFqInstance()
74 parsed = FqInstance::from(version.majorVer, version.minorVer, interface, instance); in convertLegacyInstanceIntoFqInstance()
Dmain.cpp248 for (auto minorVer = matrixInstance.versionRange().minMinor; in insert() local
249 minorVer >= matrixInstance.versionRange().minMinor && in insert()
250 minorVer <= matrixInstance.versionRange().maxMinor; in insert()
251 ++minorVer) { in insert()
252 Version version{matrixInstance.versionRange().majorVer, minorVer}; in insert()
259 if (minorVer == matrixInstance.versionRange().minMinor) { in insert()
DManifestInstance.cpp127 success = e.setTo(version().majorVer, version().minorVer, interface(), instance()); in getSimpleFqInstance()
166 CHECK(fqInstance.setTo(getFqInstance().getPackage(), v.majorVer, v.minorVer, in withVersion()
DVintfObject.cpp882 if (!fqInstance.setTo(package, version.majorVer, version.minorVer, interface, instance)) { in GetListedInstanceInheritance()
1281 v <= matrixInstance.versionRange().maxVer(); ++v.minorVer) { in checkMissingHalsInMatrices()
1283 GetAidlPackageAndVersion(matrixInstance.package(), v.minorVer)); in checkMissingHalsInMatrices()
1289 v <= matrixInstance.versionRange().maxVer(); ++v.minorVer) { in checkMissingHalsInMatrices()
1297 v <= matrixInstance.versionRange().maxVer(); ++v.minorVer) { in checkMissingHalsInMatrices()
1363 v <= matrixInstance.versionRange().maxVer(); ++v.minorVer) { in checkMatrixHalsHasDefinition()
DHalManifest.cpp550 .versionRanges = {VersionRange{e.version().majorVer, e.version().minorVer}}, in generateCompatibleMatrix()
561 {{device.mSepolicyVersion.majorVer, device.mSepolicyVersion.minorVer}}); in generateCompatibleMatrix()
606 std::to_string(version.minorVer) + ".xml"; in getXmlFilePath()
DAssembleVintf.cpp482 size_t halVersion = hal.versions.front().minorVer; in setManifestAidlHalVersion()
780 v.minorVer); in assembleCompatibilityMatrix()
Dparse_xml.cpp1033 details::kDefaultAidlVersion.minorVer, e.getInterface(), in buildObject()
1071 if (v.minorVer != 0) { in checkAdditionalRestrictionsOnHal()
/system/libvintf/analyze_matrix/
Danalyze_matrix.cpp53 for (auto minorVer = matrixInstance.versionRange().minMinor; in getDescription() local
54 minorVer >= matrixInstance.versionRange().minMinor && in getDescription()
55 minorVer <= matrixInstance.versionRange().maxMinor; in getDescription()
56 ++minorVer) { in getDescription()
57 Version version{matrixInstance.versionRange().majorVer, minorVer}; in getDescription()
/system/tools/hidl/utils/
DFqInstance.cpp108 bool FqInstance::setTo(const std::string& package, size_t majorVer, size_t minorVer, in setTo() argument
110 if (!mFqName.setTo(package, majorVer, minorVer, interface)) return false; in setTo()
115 bool FqInstance::setTo(size_t majorVer, size_t minorVer, const std::string& interface, in setTo() argument
117 return setTo("", majorVer, minorVer, interface, instance); in setTo()
DFQName.cpp35 size_t majorVer, minorVer; in FQName() local
36 CHECK(parseVersion(version, &majorVer, &minorVer)); in FQName()
37 CHECK(setTo(package, majorVer, minorVer, name, valueName)) << string(); in FQName()
40 bool FQName::setTo(const std::string& package, size_t majorVer, size_t minorVer, in setTo() argument
44 mMinor = minorVer; in setTo()
256 void FQName::clearVersion(size_t* majorVer, size_t* minorVer) { in clearVersion() argument
257 *majorVer = *minorVer = 0; in clearVersion()
261 size_t* majorVer, size_t* minorVer) { in parseVersion() argument
263 ::android::base::ParseUint(minorStr, minorVer); in parseVersion()
270 bool FQName::parseVersion(const std::string& v, size_t* majorVer, size_t* minorVer) { in parseVersion() argument
[all …]
/system/tools/hidl/utils/include/hidl-util/
DFQName.h39 size_t minorVer, const std::string& name = "",
240 size_t* minorVer);
243 size_t* minorVer);
244 static void clearVersion(size_t* majorVer, size_t* minorVer);
DFqInstance.h84 size_t minorVer,
90 __attribute__((warn_unused_result)) bool setTo(size_t majorVer, size_t minorVer,
/system/libvintf/test/
Dvintf_object_tests.cpp2733 os << "v" << v.majorVer << "_" << v.minorVer; in operator <<()
2887 os << "v" << v.majorVer << "_" << v.minorVer; in operator <<()