Home
last modified time | relevance | path

Searched refs:UidHasWriteAccessToPath (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/cmds/idmap2/tests/
DFileUtilsTests.cpp85 TEST(FileUtilsTests, UidHasWriteAccessToPath) { in TEST() argument
90 ASSERT_TRUE(UidHasWriteAccessToPath(AID_ROOT, tmp_path)); in TEST()
91 ASSERT_TRUE(UidHasWriteAccessToPath(AID_ROOT, cache_path)); in TEST()
92 ASSERT_TRUE(UidHasWriteAccessToPath(AID_ROOT, sneaky_cache_path)); in TEST()
94 ASSERT_TRUE(UidHasWriteAccessToPath(AID_SYSTEM, tmp_path)); in TEST()
95 ASSERT_TRUE(UidHasWriteAccessToPath(AID_SYSTEM, cache_path)); in TEST()
96 ASSERT_TRUE(UidHasWriteAccessToPath(AID_SYSTEM, sneaky_cache_path)); in TEST()
99 ASSERT_TRUE(UidHasWriteAccessToPath(AID_SOME_APP, tmp_path)); in TEST()
100 ASSERT_FALSE(UidHasWriteAccessToPath(AID_SOME_APP, cache_path)); in TEST()
101 ASSERT_FALSE(UidHasWriteAccessToPath(AID_SOME_APP, sneaky_cache_path)); in TEST()
/frameworks/base/cmds/idmap2/idmap2/
DCreate.cpp42 using android::idmap2::utils::UidHasWriteAccessToPath;
76 if (!UidHasWriteAccessToPath(uid, idmap_path)) { in Create()
DCreateMultiple.cpp47 using android::idmap2::utils::UidHasWriteAccessToPath;
102 if (!UidHasWriteAccessToPath(uid, idmap_path)) { in CreateMultiple()
/frameworks/base/cmds/idmap2/idmap2d/
DIdmap2Service.cpp51 using android::idmap2::utils::UidHasWriteAccessToPath;
105 if (!UidHasWriteAccessToPath(uid, idmap_path)) { in removeIdmap()
178 if (!UidHasWriteAccessToPath(uid, idmap_path)) { in createIdmap()
/frameworks/base/cmds/idmap2/libidmap2/
DFileUtils.cpp89 bool UidHasWriteAccessToPath(uid_t uid, const std::string& path) { in UidHasWriteAccessToPath() function
105 bool UidHasWriteAccessToPath(uid_t uid ATTRIBUTE_UNUSED, const std::string& path ATTRIBUTE_UNUSED) { in UidHasWriteAccessToPath() function
/frameworks/base/cmds/idmap2/include/idmap2/
DFileUtils.h41 bool UidHasWriteAccessToPath(uid_t uid, const std::string& path);