Home
last modified time | relevance | path

Searched refs:Match (Results 1 – 7 of 7) sorted by relevance

/system/core/init/
Ddevices_test.cpp225 EXPECT_TRUE(permissions.Match("/dev/null")); in TEST()
226 EXPECT_FALSE(permissions.Match("/dev/nullsuffix")); in TEST()
227 EXPECT_FALSE(permissions.Match("/dev/nul")); in TEST()
237 EXPECT_TRUE(permissions.Match("/dev/dri/some_dri_device")); in TEST()
238 EXPECT_TRUE(permissions.Match("/dev/dri/some_other_dri_device")); in TEST()
239 EXPECT_TRUE(permissions.Match("/dev/dri/")); in TEST()
240 EXPECT_FALSE(permissions.Match("/dev/dr/non_match")); in TEST()
250 EXPECT_TRUE(permissions.Match("/dev/devicename")); in TEST()
251 EXPECT_TRUE(permissions.Match("/dev/device123name")); in TEST()
252 EXPECT_TRUE(permissions.Match("/dev/deviceabcname")); in TEST()
[all …]
Ddevices.cpp150 bool Permissions::Match(const std::string& path) const { in Match() function in android::init::Permissions
160 if (Match("/sys/class/" + subsystem + "/" + path_basename)) return true; in MatchWithSubsystem()
161 if (Match("/sys/bus/" + subsystem + "/devices/" + path_basename)) return true; in MatchWithSubsystem()
163 return Match(path); in MatchWithSubsystem()
236 if (it->Match(path) || std::any_of(links.cbegin(), links.cend(), in GetDevicePermissions()
237 [it](const auto& link) { return it->Match(link); })) { in GetDevicePermissions()
Ddevices.h43 bool Match(const std::string& path) const;
/system/core/cli-test/
Dcli-test.cpp107 static bool Match(std::string* s, const std::string& prefix) { in Match() function
141 } else if (Match(&line, "name:")) { in CollectTests()
143 } else if (Match(&line, "command:")) { in CollectTests()
145 } else if (Match(&line, "before:")) { in CollectTests()
147 } else if (Match(&line, "after:")) { in CollectTests()
149 } else if (Match(&line, "expected-stdout:")) { in CollectTests()
/system/core/libbacktrace/
DThreadEntry.h54 bool Match(pid_t chk_pid, pid_t chk_tid) { return (chk_pid == pid_ && chk_tid == tid_); } in Match() function
DThreadEntry.cpp53 if (entry->Match(pid, tid)) { in Get()
/system/libziparchive/
Dzip_archive.cc897 bool Match(std::string_view entry_name) const { return matcher(entry_name); } in Match() function
1016 if (handle->Match(entry_name)) { in Next()