Searched refs:UidHasWriteAccessToPath (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/cmds/idmap2/tests/ |
D | FileUtilsTests.cpp | 85 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/ |
D | Create.cpp | 42 using android::idmap2::utils::UidHasWriteAccessToPath; 76 if (!UidHasWriteAccessToPath(uid, idmap_path)) { in Create()
|
D | CreateMultiple.cpp | 47 using android::idmap2::utils::UidHasWriteAccessToPath; 102 if (!UidHasWriteAccessToPath(uid, idmap_path)) { in CreateMultiple()
|
/frameworks/base/cmds/idmap2/idmap2d/ |
D | Idmap2Service.cpp | 51 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/ |
D | FileUtils.cpp | 89 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/ |
D | FileUtils.h | 41 bool UidHasWriteAccessToPath(uid_t uid, const std::string& path);
|