Home
last modified time | relevance | path

Searched refs:matches (Results 1 – 25 of 42) sorted by relevance

12

/system/keymaster/android_keymaster/
Dkeymaster_configuration.cpp89 regmatch_t matches[kPlatformVersionMatchCount]; in GetOsVersion() local
91 regexec(&regex, version_str, kPlatformVersionMatchCount, matches, 0 /* flags */); in GetOsVersion()
98 uint32_t major = match_to_uint32(version_str, matches[kMajorVersionMatch]); in GetOsVersion()
99 uint32_t minor = match_to_uint32(version_str, matches[kMinorVersionMatch]); in GetOsVersion()
100 uint32_t subminor = match_to_uint32(version_str, matches[kSubminorVersionMatch]); in GetOsVersion()
117 regmatch_t matches[kPlatformPatchlevelMatchCount]; in GetOsPatchlevel() local
119 regexec(&regex, patchlevel_str, kPlatformPatchlevelMatchCount, matches, 0 /* flags */); in GetOsPatchlevel()
126 uint32_t year = match_to_uint32(patchlevel_str, matches[kYearMatch]); in GetOsPatchlevel()
127 uint32_t month = match_to_uint32(patchlevel_str, matches[kMonthMatch]); in GetOsPatchlevel()
/system/tools/hidl/build/
DfqName.go37 matches := re_package.FindAllStringSubmatch(f, 3)
39 if matches == nil {
44 packageComponents: strings.Split(matches[0][1], "."),
45 major: matches[0][2],
46 minor: matches[0][3],
/system/tools/hidl/docs/src/lexer/
DHidlLexer.kt61 val matches = matchToDocEnd.find(line)?.groups in <lambda>() constant
62 if (matches != null) { in <lambda>()
63 if (!matches[2]!!.value.isNullOrBlank()) { in <lambda>()
67 sb.append(matches[1]!!.value) in <lambda>()
DToken.kt150 matchInt.matches(value) -> INTEGER in getFromValueOrDefault()
151 matchFloat.matches(value) -> DECIMAL in getFromValueOrDefault()
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dutil.c289 regmatch_t matches[MAX_LINE_MATCHES]; in procline() local
343 matches[m++] = pmatch; in procline()
373 printline(l, ':', matches, m); in procline()
375 printline(l, '-', matches, m); in procline()
444 printline(struct str *line, int sep, regmatch_t *matches, int m) in printline() argument
476 fwrite(line->dat + a, matches[i].rm_so - a, 1, in printline()
481 fwrite(line->dat + matches[i].rm_so, in printline()
482 matches[i].rm_eo - matches[i].rm_so, 1, in printline()
487 a = matches[i].rm_eo; in printline()
Dgrep.h147 void printline(struct str *line, int sep, regmatch_t *matches, int m);
/system/tools/hidl/host_utils/
DStringHelper.cpp74 std::vector<std::string> matches; in Tokenize() local
80 matches.push_back(match.str(0)); in Tokenize()
82 matches.push_back(match.str(0)); in Tokenize()
84 matches.push_back(match.str(0)); in Tokenize()
85 if (!matches.empty()) { in Tokenize()
86 std::string &maxmatch = matches[0]; in Tokenize()
87 for (std::string &match : matches) in Tokenize()
92 matches.clear(); in Tokenize()
/system/hardware/interfaces/net/netd/testutils/
DVtsHalNetNetdTestUtils.cpp75 int matches = 0; in countMatchingIpRules() local
81 matches++; in countMatchingIpRules()
86 return matches; in countMatchingIpRules()
/system/security/keystore/
Dkeystore_cli.cpp195 std::vector<String16> matches; in list() local
196 ::android::binder::Status ret = service->list(name, uid, &matches); in list()
202 std::vector<String16>::const_iterator it = matches.begin(); in list()
203 for (; it != matches.end(); ++it) { in list()
DKeyStore.cpp150 std::list<LockedKeyBlobEntry> matches; in resetUser() local
154 std::tie(rc, matches) = LockedKeyBlobEntry::list(userDirName); in resetUser()
159 for (LockedKeyBlobEntry& lockedEntry : matches) { in resetUser()
221 std::list<LockedKeyBlobEntry> matches; in isEmpty() local
225 std::tie(rc, matches) = LockedKeyBlobEntry::list(userDirName); in isEmpty()
227 return rc == ResponseCode::SYSTEM_ERROR || matches.size() == 0; in isEmpty()
Dblob.cpp730 std::list<LockedKeyBlobEntry> matches; in list() local
743 std::move(matches)}; in list()
768 matches.push_back(*iterator); in list()
772 std::move(matches)}; in list()
/system/netd/server/
DControllers.cpp140 std::smatch matches; in findExistingChildChains() local
144 if (std::regex_search(rule, matches, CHILD_CHAIN_REGEX) && matches[1] == parentChain) { in findExistingChildChains()
145 existing.insert(matches[2]); in findExistingChildChains()
DTetherController.cpp839 std::smatch matches; in addForwardChainStats() local
840 if (!std::regex_search(line, matches, IP_RE)) return -EREMOTEIO; in addForwardChainStats()
847 int64_t packets = strtoul(matches[PACKET_COUNTS].str().c_str(), nullptr, 10); in addForwardChainStats()
848 int64_t bytes = strtoul(matches[BYTE_COUNTS].str().c_str(), nullptr, 10); in addForwardChainStats()
849 std::string iface0 = matches[IFACE0_NAME].str(); in addForwardChainStats()
850 std::string iface1 = matches[IFACE1_NAME].str(); in addForwardChainStats()
851 std::string rest = matches[SOURCE].str(); in addForwardChainStats()
/system/libvintf/include/vintf/
DRegex.h40 bool matches(const std::string& s) const;
/system/libvintf/
DRegex.cpp41 bool Regex::matches(const std::string& s) const { in matches() function in android::vintf::details::Regex
DMatrixInstance.cpp77 return regex.matches(e); in matchInstance()
/system/timezone/distro/core/src/main/com/android/timezone/distro/
DDistroVersion.java69 if (!RULES_VERSION_PATTERN.matcher(rulesVersion).matches()) { in DistroVersion()
80 if (!matcher.matches()) { in fromBytes()
/system/update_engine/
Dp2p_manager.cc331 vector<pair<FilePath, Time>> matches; in PerformHousekeeping() local
353 matches.push_back(std::make_pair(name, time)); in PerformHousekeeping()
361 std::sort(matches.begin(), matches.end(), MatchCompareFunc); in PerformHousekeeping()
363 for (i = matches.begin() + num_files_to_keep_; i < matches.end(); ++i) { in PerformHousekeeping()
/system/extras/boottime_tools/bootanalyze/
DREADME.md10 event1_name: <pattern that matches log message>
/system/apex/tests/src/com/android/tests/apex/
DMediaHostTest.java77 if (m.matches()) { in checkMediaExtractor()
DMediaSwCodecHostTest.java82 if (m.matches()) { in checkCodecs()
DApexTestUtils.java66 if (m.matches()) { in getApexInfo()
/system/sepolicy/prebuilts/api/29.0/private/
Dseapp_contexts26 # isSystemServer=true only matches the system server.
34 # seinfo= matches aginst the seinfo tag for the app, determined from
37 # name= matches against the package name of the app.
38 # path= matches against the directory path when labeling app directories.
/system/sepolicy/private/
Dseapp_contexts26 # isSystemServer=true only matches the system server.
34 # seinfo= matches aginst the seinfo tag for the app, determined from
37 # name= matches against the package name of the app.
38 # path= matches against the directory path when labeling app directories.
/system/timezone/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/
DUtils.java53 if (!matcher.matches()) { in parseUtcOffsetToMillis()

12