Home
last modified time | relevance | path

Searched refs:regex (Results 1 – 21 of 21) sorted by relevance

/system/keymaster/
Dkeymaster_configuration.cpp77 regex_t regex; in GetOsVersion() local
78 if (regcomp(&regex, kPlatformVersionRegex, REG_EXTENDED)) { in GetOsVersion()
85 regexec(&regex, version_str, kPlatformVersionMatchCount, matches, 0 /* flags */); in GetOsVersion()
86 regfree(&regex); in GetOsVersion()
106 regex_t regex; in GetOsPatchlevel() local
107 if (regcomp(&regex, kPlatformPatchlevelRegex, REG_EXTENDED) != 0) { in GetOsPatchlevel()
114 regexec(&regex, patchlevel_str, kPlatformPatchlevelMatchCount, matches, 0 /* flags */); in GetOsPatchlevel()
115 regfree(&regex); in GetOsPatchlevel()
/system/tools/hidl/utils/
DFQName.cpp33 static const std::regex kRE1("(" RE_PATH ")@(" RE_MAJOR ")[.](" RE_MINOR ")::(" RE_PATH ")");
35 static const std::regex kRE2("@(" RE_MAJOR ")[.](" RE_MINOR ")::(" RE_PATH ")");
37 static const std::regex kRE3("(" RE_PATH ")@(" RE_MAJOR ")[.](" RE_MINOR ")");
39 static const std::regex kRE4("(" RE_COMPONENT ")([.]" RE_COMPONENT ")+");
41 static const std::regex kRE5("(" RE_COMPONENT ")");
44 static const std::regex kRE6("(" RE_PATH ")@(" RE_MAJOR ")[.](" RE_MINOR ")::(" RE_PATH "):(" RE_CO…
46 static const std::regex kRE7("@(" RE_MAJOR ")[.](" RE_MINOR ")::(" RE_PATH "):(" RE_COMPONENT ")");
48 static const std::regex kRE8("(" RE_PATH "):(" RE_COMPONENT ")");
51 static const std::regex kREVer("(" RE_MAJOR ")[.](" RE_MINOR ")");
DStringHelper.cpp28 static const std::regex kStartUppercase("^" UPPERCASE);
29 static const std::regex kStartLowercase("^" LOWERCASE);
30 static const std::regex kStartCapcase("^" CAPCASE);
/system/sepolicy/tools/
Dcheck_seapp.c106 key_map_regex regex; member
326 int ret = pcre2_match(assert->regex.compiled, (PCRE2_SPTR) tomatch, in match_regex()
328 assert->regex.match_data, NULL); in match_regex()
348 km->regex.compiled = pcre2_compile((PCRE2_SPTR) anchored, in compile_regex()
353 if (!km->regex.compiled) { in compile_regex()
357 km->regex.match_data = pcre2_match_data_create_from_pattern( in compile_regex()
358 km->regex.compiled, NULL); in compile_regex()
359 if (!km->regex.match_data) { in compile_regex()
360 pcre2_code_free(km->regex.compiled); in compile_regex()
466 if (!m->regex.compiled) { in key_map_validate()
[all …]
/system/tools/hidl/c2hal/
DExpression.cpp27 static const std::regex RE_S32("[^ul]$");
28 static const std::regex RE_U32("[^ul]u$");
29 static const std::regex RE_S64("[^ul](l|ll)$");
30 static const std::regex RE_U64("[^ul](ul|ull)$");
DDeclaration.cpp24 static const std::regex RE_LEADING_SPACES("\n +");
/system/extras/tests/kernel.config/
Dscrape_mmap_addr.cpp13 …std::regex reg(std::string("^([a-f0-9]+)\\-[0-9a-f]+\\s+.+\\s+(\\d+)\\s+.+\\s+\\d+\\s+") + std::st… in main()
/system/netd/netutils_wrappers/
DNetUtilsWrapper-1.0.cpp91 const std::regex expectedRegexp(EXPECTED_REGEXPS[i], std::regex_constants::extended); in checkExpectedCommand()
/system/libhidl/base/
DHidlInternal.cpp151 std::regex e("^" + mInstrumentationLibPackage + "(.*).profiler.so$"); in isInstrumentationLib()
/system/core/liblog/
Devent.logtags9 # impacts log readability, the latter makes regex searches more annoying).
/system/bt/
DEventLogTags.logtags9 # impacts log readability, the latter makes regex searches more annoying).
/system/core/storaged/
DEventLogTags.logtags9 # impacts log readability, the latter makes regex searches more annoying).
/system/core/logd/
Devent.logtags9 # impacts log readability, the latter makes regex searches more annoying).
/system/tools/hidl/
DHash.cpp86 static const std::regex kHashLine(
/system/core/logcat/
Dlogcat.cpp113 pcrecpp::RE* regex; member
305 if (!context->regex) return true; in regexOk()
309 return context->regex->PartialMatch(messageString); in regexOk()
1017 context->regex = new pcrecpp::RE(optctx.optarg); in __logcat()
1324 if (context->printItAnyways && (!context->regex || !context->maxCount)) { in __logcat()
1824 delete context->regex; in android_logcat_destroy()
Devent.logtags9 # impacts log readability, the latter makes regex searches more annoying).
/system/core/debuggerd/
Ddebuggerd_test.cpp76 std::regex r((pattern)); \
84 std::regex r((pattern)); \
/system/update_engine/
Dpylintrc220 # This "ignore" regex is today composed of 4 independent parts:
222 # (2) URLs in comments or pydocs. Detecting URLs by regex is a hard problem and
223 # no amount of tweaking will make a perfect regex AFAICT. This one is a good
/system/libhidl/transport/
DServiceManagement.cpp45 static const std::regex gLibraryFileNamePattern("(" RE_PATH "@[0-9]+[.][0-9]+)-impl(.*?).so");
/system/core/base/
Dlogging_test.cpp220 std::regex message_regex(make_log_pattern(severity, expected)); in CheckMessage()
/system/core/logcat/tests/
Dlogcat_test.cpp1394 TEST(logcat, regex) { in TEST() argument