Home
last modified time | relevance | path

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

/frameworks/base/cmds/idmap2/tests/
DFileUtilsTests.cpp28 TEST(FileUtilsTests, UidHasWriteAccessToPath) { in TEST() argument
34 ASSERT_TRUE(UidHasWriteAccessToPath(AID_ROOT, tmp_path)); in TEST()
35 ASSERT_TRUE(UidHasWriteAccessToPath(AID_ROOT, cache_path)); in TEST()
36 ASSERT_TRUE(UidHasWriteAccessToPath(AID_ROOT, sneaky_cache_path)); in TEST()
38 ASSERT_TRUE(UidHasWriteAccessToPath(AID_SYSTEM, tmp_path)); in TEST()
39 ASSERT_TRUE(UidHasWriteAccessToPath(AID_SYSTEM, cache_path)); in TEST()
40 ASSERT_TRUE(UidHasWriteAccessToPath(AID_SYSTEM, sneaky_cache_path)); in TEST()
43 ASSERT_TRUE(UidHasWriteAccessToPath(AID_SOME_APP, tmp_path)); in TEST()
44 ASSERT_FALSE(UidHasWriteAccessToPath(AID_SOME_APP, cache_path)); in TEST()
45 ASSERT_FALSE(UidHasWriteAccessToPath(AID_SOME_APP, sneaky_cache_path)); in TEST()
/frameworks/base/cmds/idmap2/libidmap2/
DFileUtils.cpp31 bool UidHasWriteAccessToPath(uid_t uid, const std::string& path) { in UidHasWriteAccessToPath() function
47 bool UidHasWriteAccessToPath(uid_t uid ATTRIBUTE_UNUSED, const std::string& path ATTRIBUTE_UNUSED) {
/frameworks/base/cmds/idmap2/idmap2/
DCreate.cpp44 using android::idmap2::utils::UidHasWriteAccessToPath;
81 if (!UidHasWriteAccessToPath(uid, idmap_path)) { in Create()
DCreateMultiple.cpp49 using android::idmap2::utils::UidHasWriteAccessToPath;
104 if (!UidHasWriteAccessToPath(uid, idmap_path)) { in CreateMultiple()
/frameworks/base/cmds/idmap2/idmap2d/
DIdmap2Service.cpp56 using android::idmap2::utils::UidHasWriteAccessToPath;
95 if (!UidHasWriteAccessToPath(uid, idmap_path)) { in removeIdmap()
163 if (!UidHasWriteAccessToPath(uid, idmap_path)) { in createIdmap()
300 if (!UidHasWriteAccessToPath(uid, path)) { in createFabricatedOverlay()
407 if (!UidHasWriteAccessToPath(uid, overlay_path)) { in deleteFabricatedOverlay()
414 if (!UidHasWriteAccessToPath(uid, idmap_path)) { in deleteFabricatedOverlay()
/frameworks/base/cmds/idmap2/include/idmap2/
DFileUtils.h30 bool UidHasWriteAccessToPath(uid_t uid, const std::string& path);