/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 | 277 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/ |
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/core/init/ |
D | firmware_handler.cpp | 51 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()
|
D | README.ueventd.md | 87 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/ |
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/extras/perf2cfg/ |
D | perf2cfg_test.py | 22 pattern='test*.py')
|
/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'].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 …]
|
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 | 34 event1_name: <pattern that matches log message>
|
/system/libprocinfo/ |
D | process.cpp | 148 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/ |
D | policy.py | 22 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/ |
D | hals_for_release.py | 269 package_matches = lambda package: any(pattern in package for pattern in args.packages)
|
/system/core/libmodprobe/ |
D | libmodprobe.cpp | 461 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/ |
D | hal-queries.sh | 13 local pattern="$2"
|
/system/core/libmodprobe/include/modprobe/ |
D | modprobe.h | 34 std::vector<std::string> ListModules(const std::string& pattern);
|
/system/update_engine/common/ |
D | utils.h | 403 explicit ScopedTempFile(const std::string& pattern, 406 CHECK(utils::MakeTempFile(pattern, &path_, open_fd ? &fd_ : nullptr));
|
/system/extras/simpleperf/scripts/test/ |
D | do_test.py | 107 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/ |
D | brillo_update_payload | 324 local pattern="${1:-tempfile.XXXXXX}" 325 mktemp --tmpdir="${FLAGS_work_dir}" "${pattern}"
|
/system/chre/doc/ |
D | framework_debugging.md | 65 a pointer is not null is generally an anti-pattern (though the current CHRE
|
/system/tools/aidl/build/ |
D | aidl_test.go | 185 func testAidlError(t *testing.T, pattern, bp string, customizers ...android.FixturePreparer) { argument 189 ExtendWithErrorHandler(android.FixtureExpectsAtLeastOneErrorMatchingPattern(pattern)).
|