/system/libbase/include/android-base/ |
D | test_utils.h | 56 #define ASSERT_MATCH(str, pattern) \ argument 59 if (!std::regex_search(__s, std::regex((pattern)))) { \ 60 FAIL() << "regex mismatch: expected " << (pattern) << " in:\n" << __s; \ 64 #define ASSERT_NOT_MATCH(str, pattern) \ argument 67 if (std::regex_search(__s, std::regex((pattern)))) { \ 68 FAIL() << "regex mismatch: expected to not find " << (pattern) << " in:\n" << __s; \ 72 #define EXPECT_MATCH(str, pattern) \ argument 75 if (!std::regex_search(__s, std::regex((pattern)))) { \ 76 ADD_FAILURE() << "regex mismatch: expected " << (pattern) << " in:\n" << __s; \ 80 #define EXPECT_NOT_MATCH(str, pattern) \ argument [all …]
|
/system/core/libcutils/ |
D | ashmem-host.cpp | 61 char pattern[PATH_MAX]; in ashmem_create_region() local 62 snprintf(pattern, sizeof(pattern), "/tmp/android-ashmem-%d-XXXXXXXXX", getpid()); in ashmem_create_region() 63 int fd = mkstemp(pattern); in ashmem_create_region() 66 unlink(pattern); in ashmem_create_region()
|
D | fs_config.cpp | 268 std::string pattern(prefix, len); in fs_config_cmp() local 278 if (!EndsWith(pattern, "/*")) { in fs_config_cmp() 279 if (EndsWith(pattern, "/")) { in fs_config_cmp() 280 pattern.append("*"); in fs_config_cmp() 282 pattern.append("/*"); in fs_config_cmp() 290 if (fnmatch(pattern.c_str(), input.c_str(), fnm_flags) == 0) return true; in fs_config_cmp() 299 if (fnmatch(pattern.c_str(), input_in_partition.c_str(), fnm_flags) == 0) { in fs_config_cmp()
|
/system/libvintf/include/vintf/ |
D | Regex.h | 38 __attribute__((warn_unused_result)) bool compile(const std::string& pattern); 45 static const Regex* Get(const std::string& pattern);
|
/system/libvintf/ |
D | Regex.cpp | 34 bool Regex::compile(const std::string& pattern) { in compile() argument 37 int status = regcomp(mImpl.get(), pattern.c_str(), REG_EXTENDED | REG_NEWLINE); in compile()
|
/system/timezone/distro/core/src/main/com/android/timezone/distro/ |
D | DistroVersion.java | 55 FORMAT_VERSION_PATTERN.pattern() + "\\|" 56 + RULES_VERSION_PATTERN.pattern() + "\\|" 57 + REVISION_PATTERN.pattern()
|
/system/ca-certificates/google/ |
D | extract_from_pem.py | 74 pattern = r'-----BEGIN CERTIFICATE-----[^-]*-----END CERTIFICATE-----' 75 pem_certs = re.findall(pattern, pem_file.read())
|
/system/core/deprecated-adf/libadf/ |
D | adf.cpp | 53 static ssize_t adf_find_nodes(const char *pattern, adf_id_t **ids_out) in adf_find_nodes() argument 65 int matched = sscanf(dirent->d_name, pattern, &id); in adf_find_nodes() 227 char pattern[64]; in adf_interfaces() local 229 snprintf(pattern, sizeof(pattern), "adf-interface%u.%%u", dev->id); in adf_interfaces() 230 return adf_find_nodes(pattern, interfaces); in adf_interfaces() 442 char pattern[64]; in adf_overlay_engines() local 444 snprintf(pattern, sizeof(pattern), "adf-overlay-engine%u.%%u", dev->id); in adf_overlay_engines() 445 return adf_find_nodes(pattern, overlay_engines); in adf_overlay_engines()
|
/system/extras/zram-perf/ |
D | zram-perf.cpp | 28 std::vector<typeof(val)> pattern(kPatternSize, 0); in fillPageCompressible() local 31 pattern[i] = val + i; in fillPageCompressible() 35 std::copy_n(pattern.data(), kPatternSize, (page_ptr + i)); in fillPageCompressible()
|
/system/extras/boottime_tools/bootanalyze/ |
D | bootanalyze.py | 96 search_events_pattern = {key: re.compile(pattern) 97 for key, pattern in cfg['events'].iteritems()} 98 timing_events_pattern = {key: re.compile(pattern) 99 for key, pattern in cfg['timings'].iteritems()} 100 shutdown_events_pattern = {key: re.compile(pattern) 101 for key, pattern in cfg['shutdown_events'].iteritems()} 699 pattern = re.compile(BOOT_PROP) 703 match = pattern.match(line) 732 def extract_a_time(line, pattern, date_transform_function): argument 733 found = re.findall(pattern, line) [all …]
|
D | bugreport_anayze.py | 142 self.event_patterns = {key: re.compile(pattern) 143 for key, pattern in cfg['events'].iteritems()} 144 self.timing_patterns = {key: re.compile(pattern) 145 for key, pattern in cfg['timings'].iteritems()} 146 self.shutdown_event_patterns = {key: re.compile(pattern) 147 for key, pattern in cfg['shutdown_events'].iteritems()}
|
D | README.md | 10 event1_name: <pattern that matches log message>
|
/system/tools/aidl/build/ |
D | aidl_test.go | 167 func testAidlError(t *testing.T, pattern, bp string, customizers ...testCustomizer) { argument 172 android.FailIfNoMatchingErrors(t, pattern, errs) 177 android.FailIfNoMatchingErrors(t, pattern, errs) 180 t.Fatalf("missing expected error %q (0 errors are returned)", pattern)
|
/system/update_engine/common/ |
D | test_utils.h | 145 explicit ScopedTempFile(const std::string& pattern) { in ScopedTempFile() argument 146 EXPECT_TRUE(utils::MakeTempFile(pattern, &path_, nullptr)); in ScopedTempFile()
|
/system/sepolicy/tests/ |
D | policy.py | 22 pattern = re.compile('^' + pathregex[0:i] + "$") 25 if pattern.match(prefix): 235 pattern = re.compile('^' + pathregex + "$") 236 if pattern.match(prefix):
|
/system/extras/simpleperf/scripts/ |
D | test_monitor.py | 78 repeat_times=args.repeat, test_patterns=args.pattern, test_dir=args.test_dir) 95 tests = [t for t in tests if any(pattern.match(t) for pattern in patterns)]
|
D | test.py | 1813 if args.pattern: 1814 patterns = [re.compile(fnmatch.translate(x)) for x in args.pattern] 1815 tests = [t for t in tests if any(pattern.match(t) for pattern in patterns)]
|
/system/core/libmodprobe/ |
D | libmodprobe.cpp | 456 std::vector<std::string> Modprobe::ListModules(const std::string& pattern) { in ListModules() argument 460 if (!fnmatch(pattern.c_str(), module.c_str(), 0)) { in ListModules() 462 } else if (!fnmatch(pattern.c_str(), basename(deps[0].c_str()), 0)) { in ListModules()
|
/system/core/libpixelflinger/codeflinger/ |
D | disassem.c | 110 u_int pattern; member 316 if ((insn & i_ptr->mask) == i_ptr->pattern) { in disasm()
|
/system/tools/hidl/scripts/ |
D | hal-queries.sh | 13 local pattern="$2"
|
/system/core/libmodprobe/include/modprobe/ |
D | modprobe.h | 33 std::vector<std::string> ListModules(const std::string& pattern);
|
/system/update_engine/scripts/ |
D | brillo_update_payload | 309 local pattern="${1:-tempfile.XXXXXX}" 310 mktemp --tmpdir="${FLAGS_work_dir}" "${pattern}"
|
/system/update_engine/payload_generator/ |
D | delta_diff_utils_unittest.cc | 72 const string& pattern, in CreatePartition() argument 76 ASSERT_TRUE(utils::MakeTempFile(pattern.c_str(), &part->path, &fd)); in CreatePartition()
|
/system/core/trusty/storage/tests/ |
D | main.cpp | 44 uint32_t pattern = (uint32_t)(off / sizeof(uint32_t)); in fill_pattern32() local 46 *buf++ = pattern++; in fill_pattern32() 53 uint32_t pattern = (uint32_t)(off / sizeof(uint32_t)); in check_pattern32() local 55 if (*buf != pattern) in check_pattern32() 58 pattern++; in check_pattern32()
|
/system/bt/build/secondary/third_party/libchrome/ |
D | BUILD.gn | 129 "base/strings/pattern.cc",
|