/system/keymaster/android_keymaster/ |
D | keymaster_configuration.cpp | 72 regex_t regex; in GetPatchlevel() local 73 if (regcomp(®ex, kPatchlevelRegex, REG_EXTENDED) != 0) { in GetPatchlevel() 79 int not_match = regexec(®ex, patchlevel_str, kPatchlevelMatchCount, matches, 0 /* flags */); in GetPatchlevel() 80 regfree(®ex); in GetPatchlevel() 124 regex_t regex; in GetOsVersion() local 125 if (regcomp(®ex, kPlatformVersionRegex, REG_EXTENDED)) { in GetOsVersion() 132 regexec(®ex, version_str, kPlatformVersionMatchCount, matches, 0 /* flags */); in GetOsVersion() 133 regfree(®ex); in GetOsVersion()
|
/system/libbase/include/android-base/ |
D | test_utils.h | 59 if (!std::regex_search(__s, std::regex((pattern)))) { \ 67 if (std::regex_search(__s, std::regex((pattern)))) { \ 75 if (!std::regex_search(__s, std::regex((pattern)))) { \ 83 if (std::regex_search(__s, std::regex((pattern)))) { \
|
/system/hardware/interfaces/net/netd/testutils/ |
D | VtsHalNetNetdTestUtils.cpp | 74 const std::regex regex(regexString, std::regex_constants::extended); in countMatchingIpRules() local 80 if (std::regex_search(rule, regex)) { in countMatchingIpRules() 91 std::string regex = in countRulesForFwmark() local 93 return countMatchingIpRules(regex); in countRulesForFwmark()
|
/system/extras/simpleperf/scripts/purgatorio/templates/ |
D | main.js | 78 let regex 89 regex = new RegExp(document.getElementById("regex").value) 99 if (regex !== undefined && !regex.test(callchains[graph_selection[i]])) { 187 let regex 190 regex = new RegExp(document.getElementById("regex").value) 198 if (regex !== undefined && !regex.test(callchains[graph_selection[i]])) {
|
/system/logging/logd/ |
D | ChattyLogBufferTest.cpp | 23 bool regex = false) -> LogMessage { in TEST_P() argument 32 return {entry, message, regex}; in TEST_P() 91 bool regex = false) -> LogMessage { in TEST_P() argument 100 return {entry, message, regex}; in TEST_P() 195 const char* msg, bool regex = false) -> LogMessage { in TEST_P() argument 203 return {entry, message, regex}; in TEST_P() 251 bool regex = false) -> LogMessage { in TEST_P() argument 260 return {entry, message, regex}; in TEST_P()
|
/system/core/fastboot/fuzzy_fastboot/ |
D | extensions.h | 56 std::regex regex; member 104 std::regex regex; member
|
D | extensions.cpp | 51 std::regex MakeRegex(const std::string& regex_str, int line_num, in MakeRegex() 52 std::regex_constants::syntax_option_type type = std::regex::ECMAScript) { in MakeRegex() 63 std::regex ret(regex_str, type); in MakeRegex() 245 std::regex regex; in ExtractOem() local 247 ctest.regex = MakeRegex(ctest.regex_str, test->GetLineNum()); in ExtractOem()
|
/system/extras/simpleperf/ |
D | RecordFilter.h | 54 std::vector<std::regex> process_name_regs; 55 std::vector<std::regex> thread_name_regs; 82 bool SearchInRegs(const std::string& s, const std::vector<std::regex>& regs);
|
D | RecordFilter.cpp | 73 cond.process_name_regs.emplace_back(process_name, std::regex::optimize); in AddProcessNameRegex() 79 cond.thread_name_regs.emplace_back(thread_name, std::regex::optimize); in AddThreadNameRegex() 135 bool RecordFilter::SearchInRegs(const std::string& s, const std::vector<std::regex>& regs) { in SearchInRegs()
|
D | ProbeEvents.cpp | 58 std::regex name_reg(R"(:([a-zA-Z_][\w_]*/)?([a-zA-Z_][\w_]*))"); in ParseKprobeEventName() 91 event->event_name = std::regex_replace(s, std::regex(R"(\.|:)"), "_"); in ParseKprobeEventName()
|
/system/libvintf/ |
D | MatrixInstance.cpp | 83 details::Regex regex; in matchInstance() local 84 if (!regex.compile(regexPattern())) { in matchInstance() 87 return regex.matches(e); in matchInstance()
|
D | KernelConfigParser.cpp | 59 static const std::regex sKeyValuePattern("^\\s*" KEY "\\s*=\\s*([^#]+)" COMMENT "?$"); in processRemaining() 60 static const std::regex sNotSetPattern("^\\s*#\\s*" KEY " is not set\\s*$"); in processRemaining() 61 static const std::regex sCommentPattern("^\\s*" COMMENT "$"); in processRemaining()
|
/system/apex/tests/src/com/android/tests/apex/ |
D | MediaSwCodecHostTest.java | 30 import java.util.regex.Matcher; 31 import java.util.regex.Pattern;
|
D | MediaHostTest.java | 29 import java.util.regex.Matcher; 30 import java.util.regex.Pattern;
|
/system/sepolicy/tools/ |
D | check_seapp.c | 108 key_map_regex regex; member 340 int ret = pcre2_match(assert->regex.compiled, (PCRE2_SPTR) tomatch, in match_regex() 342 assert->regex.match_data, NULL); in match_regex() 362 km->regex.compiled = pcre2_compile((PCRE2_SPTR) anchored, in compile_regex() 367 if (!km->regex.compiled) { in compile_regex() 371 km->regex.match_data = pcre2_match_data_create_from_pattern( in compile_regex() 372 km->regex.compiled, NULL); in compile_regex() 373 if (!km->regex.match_data) { in compile_regex() 374 pcre2_code_free(km->regex.compiled); in compile_regex() 516 if (!m->regex.compiled) { in key_map_validate() [all …]
|
/system/linkerconfig/contents/tests/configuration/include/ |
D | linkerconfigparser.h | 35 static std::regex dir_regex(kDirRegex); in ParseDirPath() 203 static std::regex section_name_regex(kSectionNameRegex); in ParseConfiguration() 204 static std::regex additional_namespaces_regex(kAdditionalNamespacesRegex); in ParseConfiguration() 205 static std::regex namespace_base_regex(kNamespaceBaseRegex); in ParseConfiguration()
|
/system/tools/hidl/c2hal/ |
D | Expression.cpp | 27 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)$");
|
D | Declaration.cpp | 24 static const std::regex RE_LEADING_SPACES("\n +");
|
/system/extras/tests/kernel.config/ |
D | scrape_mmap_addr.cpp | 13 …std::regex reg(std::string("^([a-f0-9]+)\\-[0-9a-f]+\\s+.+\\s+(\\d+)\\s+.+\\s+\\d+\\s+") + std::st… in main()
|
/system/tools/hidl/host_utils/ |
D | StringHelper.cpp | 32 static const std::regex kStartUppercase("^" UPPERCASE); 33 static const std::regex kStartLowercase("^" LOWERCASE); 34 static const std::regex kStartCapcase("^" CAPCASE); 35 static const std::regex kStartNumcase("^" CAPCASE);
|
/system/timezone/input_tools/android/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/ |
D | Utils.java | 29 import java.util.regex.Matcher; 30 import java.util.regex.Pattern;
|
/system/core/fs_mgr/tests/src/com/android/tests/vendoroverlay/ |
D | VendorOverlayHostTest.java | 25 import java.util.regex.Matcher; 26 import java.util.regex.Pattern;
|
/system/bt/gd/packet/parser/ |
D | util.h | 69 static const std::regex camel_case_regex("[A-Z][a-z0-9]*"); in CamelCaseToUnderScore() 137 static const std::regex enum_regex("[A-Z][A-Z0-9_]*"); in IsEnumCase()
|
/system/timezone/distro/core/src/main/com/android/timezone/distro/ |
D | DistroVersion.java | 21 import java.util.regex.Matcher; 22 import java.util.regex.Pattern;
|
/system/testing/gtest_extras/tests/ |
D | SystemTests.cpp | 148 std::regex_replace(raw_output_, std::regex("\\(\\d+ ms(\\)|\\s|,)"), "(XX ms$1"); in SanitizeOutput() 152 sanitized_output_, std::regex("\\(elapsed time \\d+ ms(\\)|\\s|,)"), "(elapsed time XX ms$1"); in SanitizeOutput() 156 std::regex("(stopped|timeout) at \\d+ ms"), "$1 at XX ms"); in SanitizeOutput() 160 sanitized_output_, std::regex("\\b([^/\\s]+/)*[^/\\s]+:\\(\\d+\\)\\s"), "file:(XX) "); in SanitizeOutput() 164 std::regex_replace(sanitized_output_, std::regex("( terminated by signal:) .*"), "$1 XXX"); in SanitizeOutput() 709 std::regex regex("\\n.*\\d+ FAILED TESTS\\n"); in TEST_F() local 711 ASSERT_TRUE(std::regex_search(sanitized_output_.c_str(), match, regex)) << "Test Output:\n" in TEST_F() 933 std::regex_replace(xml_output, std::regex("(time|timestamp)=\"[^\"]+\""), "$1=\"XX\""); in TEST_F() 935 xml_output = std::regex_replace(xml_output, std::regex("\"([^/\\s]+/)*[^/\\s]+:\\(\\d+\\)\\s"), in TEST_F()
|