Lines Matching refs:filesystem

150   EXPECT_EQ((std::filesystem::status(path).permissions() & std::filesystem::perms::others_read) !=  in CheckOtherReadable()
151 std::filesystem::perms::none, in CheckOtherReadable()
350 std::filesystem::create_directories(art_root_); in SetUp()
355 std::filesystem::create_directories(android_data_); in SetUp()
360 std::filesystem::create_directories(android_expand_); in SetUp()
403 std::filesystem::create_directories( in SetUp()
404 std::filesystem::path(OR_FATAL(BuildFinalProfilePath(tmp_profile_path_))).parent_path()); in SetUp()
495 std::filesystem::path path(filename); in CreateFile()
496 std::filesystem::create_directories(path.parent_path()); in CreateFile()
503 std::filesystem::path path(filename); in CreateZipWithSingleEntry()
504 std::filesystem::create_directories(path.parent_path()); in CreateZipWithSingleEntry()
552 std::filesystem::permissions(dex_file_, in InitFilesBeforeDexopt()
553 std::filesystem::perms::others_read, in InitFilesBeforeDexopt()
554 dex_file_other_readable_ ? std::filesystem::perm_options::add : in InitFilesBeforeDexopt()
555 std::filesystem::perm_options::remove); in InitFilesBeforeDexopt()
567 std::filesystem::permissions(path, in InitFilesBeforeDexopt()
568 std::filesystem::perms::others_read, in InitFilesBeforeDexopt()
569 profile_other_readable_ ? std::filesystem::perm_options::add : in InitFilesBeforeDexopt()
570 std::filesystem::perm_options::remove); in InitFilesBeforeDexopt()
591 std::filesystem::create_directories(oat_dir); in TEST_F()
600 EXPECT_FALSE(std::filesystem::exists(oat_dir + "/b.odex")); in TEST_F()
601 EXPECT_FALSE(std::filesystem::exists(oat_dir + "/b.vdex")); in TEST_F()
602 EXPECT_FALSE(std::filesystem::exists(oat_dir + "/b.art")); in TEST_F()
608 std::filesystem::create_directories(oat_dir); in TEST_F()
627 EXPECT_FALSE(std::filesystem::exists(oat_dir + "/a@b.apk@classes.dex")); in TEST_F()
628 EXPECT_FALSE(std::filesystem::exists(oat_dir + "/a@b.apk@classes.art")); in TEST_F()
642 std::filesystem::create_directories(oat_dir); in TEST_F()
661 std::filesystem::create_directories(oat_dir); in TEST_F()
662 std::filesystem::create_directories(oat_dir + "/b.vdex"); in TEST_F()
676 EXPECT_FALSE(std::filesystem::exists(oat_dir + "/b.odex")); in TEST_F()
677 EXPECT_TRUE(std::filesystem::exists(oat_dir + "/b.vdex")); in TEST_F()
678 EXPECT_FALSE(std::filesystem::exists(oat_dir + "/b.art")); in TEST_F()
1241 EXPECT_FALSE(std::filesystem::exists(scratch_path_ + "/a/oat/arm64/b.art")); in TEST_F()
1668 EXPECT_FALSE(std::filesystem::exists(tmp_profile_file)); in TEST_F()
1669 EXPECT_TRUE(std::filesystem::exists(OR_FATAL(BuildFinalProfilePath(tmp_profile_path_)))); in TEST_F()
1681 EXPECT_FALSE(std::filesystem::exists(OR_FATAL(BuildFinalProfilePath(tmp_profile_path_)))); in TEST_F()
1690 EXPECT_FALSE(std::filesystem::exists(profile_file)); in TEST_F()
1707 auto scoped_inaccessible = ScopedInaccessible(std::filesystem::path(profile_file).parent_path()); in TEST_F()
1723 std::filesystem::permissions( in TestGetVisibilityOtherReadable()
1724 path, std::filesystem::perms::others_read, std::filesystem::perm_options::add); in TestGetVisibilityOtherReadable()
1736 std::filesystem::permissions( in TestGetVisibilityNotOtherReadable()
1737 path, std::filesystem::perms::others_read, std::filesystem::perm_options::remove); in TestGetVisibilityNotOtherReadable()
1757 auto scoped_inaccessible = ScopedInaccessible(std::filesystem::path(path).parent_path()); in TestGetVisibilityPermissionDenied()
2224 EXPECT_FALSE(std::filesystem::exists(path)) << ART_FORMAT("'{}' should be removed", path); in Verify()
2228 EXPECT_TRUE(std::filesystem::exists(path)) << ART_FORMAT("'{}' should be kept", path); in Verify()
2345 EXPECT_FALSE(std::filesystem::exists(path)) << ART_FORMAT("'{}' should be removed", path); in TEST_F()
2349 EXPECT_TRUE(std::filesystem::exists(path)) << ART_FORMAT("'{}' should be kept", path); in TEST_F()
2410 EXPECT_FALSE(std::filesystem::exists(path)) << ART_FORMAT("'{}' should be removed", path); in TEST_F()
2414 EXPECT_TRUE(std::filesystem::exists(path)) << ART_FORMAT("'{}' should be kept", path); in TEST_F()
2569 EXPECT_FALSE(std::filesystem::exists(android_data_ + "/app/com.android.foo/oat/arm64/base.art")); in TEST_F()
2580 EXPECT_FALSE(std::filesystem::exists( in TEST_F()
2582 EXPECT_FALSE(std::filesystem::exists( in TEST_F()
2584 EXPECT_FALSE(std::filesystem::exists( in TEST_F()
2587 std::filesystem::exists(android_data_ + "/app/com.android.foo/oat/arm64/base.odex.staged")); in TEST_F()
2589 std::filesystem::exists(android_data_ + "/app/com.android.foo/oat/arm64/base.vdex.staged")); in TEST_F()
2590 EXPECT_FALSE(std::filesystem::exists(android_data_ + in TEST_F()
2656 std::filesystem::create_directories(pre_reboot_tmp_dir_); in SetUp()
2767 EXPECT_TRUE(std::filesystem::exists(pre_reboot_tmp_dir_ + "/preparation_done")); in TEST_F()