Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 25 of 34) sorted by relevance

12

/system/libbase/include/android-base/
Dtest_utils.h56 #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/
Dashmem-host.cpp61 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()
Dfs_config.cpp268 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/
DRegex.h38 __attribute__((warn_unused_result)) bool compile(const std::string& pattern);
45 static const Regex* Get(const std::string& pattern);
/system/libvintf/
DRegex.cpp34 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/
DDistroVersion.java55 FORMAT_VERSION_PATTERN.pattern() + "\\|"
56 + RULES_VERSION_PATTERN.pattern() + "\\|"
57 + REVISION_PATTERN.pattern()
/system/ca-certificates/google/
Dextract_from_pem.py74 pattern = r'-----BEGIN CERTIFICATE-----[^-]*-----END CERTIFICATE-----'
75 pem_certs = re.findall(pattern, pem_file.read())
/system/core/deprecated-adf/libadf/
Dadf.cpp53 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/
Dzram-perf.cpp28 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/
Dbootanalyze.py96 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 …]
Dbugreport_anayze.py142 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()}
DREADME.md10 event1_name: <pattern that matches log message>
/system/tools/aidl/build/
Daidl_test.go167 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/
Dtest_utils.h145 explicit ScopedTempFile(const std::string& pattern) { in ScopedTempFile() argument
146 EXPECT_TRUE(utils::MakeTempFile(pattern, &path_, nullptr)); in ScopedTempFile()
/system/sepolicy/tests/
Dpolicy.py22 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/
Dtest_monitor.py78 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)]
Dtest.py1813 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/
Dlibmodprobe.cpp456 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/
Ddisassem.c110 u_int pattern; member
316 if ((insn & i_ptr->mask) == i_ptr->pattern) { in disasm()
/system/tools/hidl/scripts/
Dhal-queries.sh13 local pattern="$2"
/system/core/libmodprobe/include/modprobe/
Dmodprobe.h33 std::vector<std::string> ListModules(const std::string& pattern);
/system/update_engine/scripts/
Dbrillo_update_payload309 local pattern="${1:-tempfile.XXXXXX}"
310 mktemp --tmpdir="${FLAGS_work_dir}" "${pattern}"
/system/update_engine/payload_generator/
Ddelta_diff_utils_unittest.cc72 const string& pattern, in CreatePartition() argument
76 ASSERT_TRUE(utils::MakeTempFile(pattern.c_str(), &part->path, &fd)); in CreatePartition()
/system/core/trusty/storage/tests/
Dmain.cpp44 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/
DBUILD.gn129 "base/strings/pattern.cc",

12