Home
last modified time | relevance | path

Searched refs:MatchWithSubsystem (Results 1 – 3 of 3) sorted by relevance

/system/core/init/
Ddevices_test.cpp279 EXPECT_TRUE(permissions.MatchWithSubsystem("/sys/devices/virtual/input/input0", "input")); in TEST()
280 EXPECT_FALSE(permissions.MatchWithSubsystem("/sys/devices/virtual/input/not_input0", "input")); in TEST()
289 EXPECT_TRUE(permissions.MatchWithSubsystem( in TEST()
291 EXPECT_FALSE(permissions.MatchWithSubsystem( in TEST()
293 EXPECT_FALSE(permissions.MatchWithSubsystem( in TEST()
303 EXPECT_TRUE(permissions.MatchWithSubsystem("/sys/devices/soc.0/f9967000.i2c/i2c-5", "i2c")); in TEST()
304 EXPECT_FALSE(permissions.MatchWithSubsystem("/sys/devices/soc.0/f9967000.i2c/not-i2c", "i2c")); in TEST()
306 permissions.MatchWithSubsystem("/sys/devices/soc.0/f9967000.i2c/i2c-5", "not_i2c")); in TEST()
Ddevices.h69 bool MatchWithSubsystem(const std::string& path, const std::string& subsystem) const;
Ddevices.cpp156 bool SysfsPermissions::MatchWithSubsystem(const std::string& path, in MatchWithSubsystem() function in android::init::SysfsPermissions
221 if (s.MatchWithSubsystem(path, subsystem)) s.SetPermissions(path); in FixupSysPermissions()