• Home
  • Raw
  • Download

Lines Matching refs:vr

242     const std::string& s, VersionRange* vr,  in parseVersionRange()  argument
253 *vr = VersionRange(minVer.majorVer, minVer.minorVer); in parseVersionRange()
259 *vr = VersionRange(minVer.majorVer, minVer.minorVer, maxMinor); in parseVersionRange()
264 bool parse(const std::string& s, VersionRange* vr) { in parse() argument
266 return parseVersionRange(s, vr, versionParser); in parse()
269 std::ostream &operator<<(std::ostream &os, const VersionRange &vr) { in operator <<() argument
270 if (vr.isSingleVersion()) { in operator <<()
271 return os << vr.minVer(); in operator <<()
273 return os << vr.minVer() << "-" << vr.maxMinor; in operator <<()
278 bool parse(const std::string &s, VndkVersionRange *vr) { in parse() argument
287 if (!ParseUint(minVector[0], &vr->sdk) || in parse()
288 !ParseUint(minVector[1], &vr->vndk) || in parse()
289 !ParseUint(minVector[2], &vr->patchMin)) { in parse()
293 vr->patchMax = vr->patchMin; in parse()
296 return ParseUint(v[1], &vr->patchMax); in parse()
300 std::ostream &operator<<(std::ostream &os, const VndkVersionRange &vr) { in operator <<() argument
301 os << vr.sdk << "." << vr.vndk << "." << vr.patchMin; in operator <<()
302 if (!vr.isSingleVersion()) { in operator <<()
303 os << "-" << vr.patchMax; in operator <<()
387 std::string expandInstances(const MatrixHal& req, const VersionRange& vr, bool brace) { in expandInstances() argument
390 req.forEachInstance(vr, [&](const auto& matrixInstance) { in expandInstances()
397 aidlVersionRangeToString(vr) + ")"; in expandInstances()
402 s += toFQNameString(vr, matrixInstance.interface(), instance); in expandInstances()
409 s += "@" + to_string(vr); in expandInstances()
426 for (const auto& vr : req.versionRanges) { in expandInstances() local
430 ss.push_back(expandInstances(req, vr, true /* brace */)); in expandInstances()
544 std::string aidlVersionRangeToString(const VersionRange& vr) { in aidlVersionRangeToString() argument
545 if (vr.isSingleVersion()) { in aidlVersionRangeToString()
546 return to_string(vr.minMinor); in aidlVersionRangeToString()
548 return to_string(vr.minMinor) + "-" + to_string(vr.maxMinor); in aidlVersionRangeToString()
551 bool parseAidlVersionRange(const std::string& s, VersionRange* vr) { in parseAidlVersionRange() argument
552 return parseVersionRange(s, vr, parseAidlVersion); in parseAidlVersionRange()