Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 25 of 38) 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.cpp277 std::string pattern(prefix, len); in fs_config_cmp() local
287 if (!EndsWith(pattern, "/*")) { in fs_config_cmp()
288 if (EndsWith(pattern, "/")) { in fs_config_cmp()
289 pattern.append("*"); in fs_config_cmp()
291 pattern.append("/*"); in fs_config_cmp()
299 if (fnmatch(pattern.c_str(), input.c_str(), fnm_flags) == 0) return true; in fs_config_cmp()
308 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/core/init/
Dfirmware_handler.cpp51 bool PrefixMatch(const std::string& pattern, const std::string& path) { in PrefixMatch() argument
52 return android::base::StartsWith(path, pattern); in PrefixMatch()
55 bool FnMatch(const std::string& pattern, const std::string& path) { in FnMatch() argument
56 return fnmatch(pattern.c_str(), path.c_str(), 0) == 0; in FnMatch()
59 bool EqualMatch(const std::string& pattern, const std::string& path) { in EqualMatch() argument
60 return pattern == path; in EqualMatch()
DREADME.ueventd.md87 When a uevent that matches the pattern `/sys/devices/system/cpu/cpu*` is sent, the matching sysfs
134 `/dev/*/red` will match `/dev/leds/red` as well as `/dev/lights/red`. The pattern matching follows
/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/extras/perf2cfg/
Dperf2cfg_test.py22 pattern='test*.py')
/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'].items()}
98 timing_events_pattern = {key: re.compile(pattern)
99 for key, pattern in cfg['timings'].items()}
100 shutdown_events_pattern = {key: re.compile(pattern)
101 for key, pattern in cfg['shutdown_events'].items()}
693 pattern = re.compile(BOOT_PROP)
698 match = pattern.match(line)
727 def extract_a_time(line, pattern, date_transform_function): argument
728 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.md34 event1_name: <pattern that matches log message>
/system/libprocinfo/
Dprocess.cpp148 static constexpr const char* pattern = in GetProcessInfoFromProcPidFd() local
174 int rc = sscanf(end_of_comm + 2, pattern, &state, &ppid, &start_time); in GetProcessInfoFromProcPidFd()
/system/sepolicy/tests/
Dpolicy.py22 pattern = re.compile('^' + pathregex[0:i] + "$")
25 if pattern.match(prefix):
250 pattern = re.compile('^' + pathregex + "$")
251 if pattern.match(prefix):
/system/libvintf/analyze_matrix/
Dhals_for_release.py269 package_matches = lambda package: any(pattern in package for pattern in args.packages)
/system/core/libmodprobe/
Dlibmodprobe.cpp461 std::vector<std::string> Modprobe::ListModules(const std::string& pattern) { in ListModules() argument
465 if (!fnmatch(pattern.c_str(), module.c_str(), 0)) { in ListModules()
467 } else if (!fnmatch(pattern.c_str(), basename(deps[0].c_str()), 0)) { in ListModules()
/system/tools/hidl/scripts/
Dhal-queries.sh13 local pattern="$2"
/system/core/libmodprobe/include/modprobe/
Dmodprobe.h34 std::vector<std::string> ListModules(const std::string& pattern);
/system/update_engine/common/
Dutils.h403 explicit ScopedTempFile(const std::string& pattern,
406 CHECK(utils::MakeTempFile(pattern, &path_, open_fd ? &fd_ : nullptr));
/system/extras/simpleperf/scripts/test/
Ddo_test.py107 tests = [t for t in tests if any(pattern.match(t) for pattern in patterns)]
479 tests = get_filtered_tests(tests, args.test_from, args.pattern)
/system/update_engine/scripts/
Dbrillo_update_payload324 local pattern="${1:-tempfile.XXXXXX}"
325 mktemp --tmpdir="${FLAGS_work_dir}" "${pattern}"
/system/chre/doc/
Dframework_debugging.md65 a pointer is not null is generally an anti-pattern (though the current CHRE
/system/tools/aidl/build/
Daidl_test.go185 func testAidlError(t *testing.T, pattern, bp string, customizers ...android.FixturePreparer) { argument
189 ExtendWithErrorHandler(android.FixtureExpectsAtLeastOneErrorMatchingPattern(pattern)).

12