/art/profman/ |
D | profile_assistant_test.cc | 92 ASSERT_TRUE(info->Save(GetFd(profile))); in SetupProfile() 111 ASSERT_TRUE(info->Save(GetFd(profile))); in SetupBasicProfile() 152 int GetFd(const ScratchFile& file) const { in GetFd() function in art::ProfileAssistantTest 153 return static_cast<int>(file.GetFd()); in GetFd() 158 ASSERT_TRUE(file_info.Load(GetFd(file))); in CheckProfileInfo() 243 argv_str.push_back("--dump-output-to-fd=" + std::to_string(GetFd(output_file))); in RunProfman() 423 std::vector<int> profile_fds({ GetFd(profile)}); in CheckCompilationMethodPercentChange() 424 int reference_profile_fd = GetFd(reference_profile); in CheckCompilationMethodPercentChange() 462 std::vector<int> profile_fds({ GetFd(profile)}); in CheckCompilationClassPercentChange() 463 int reference_profile_fd = GetFd(reference_profile); in CheckCompilationClassPercentChange() [all …]
|
/art/libprofile/profile/ |
D | profile_boot_info_test.cc | 42 ASSERT_TRUE(loaded_info.Load(profile.GetFd(), dex_files)); in TEST_F() 53 ASSERT_TRUE(saved_info.Save(profile.GetFd())); in TEST_F() 57 ASSERT_TRUE(loaded_info.Load(profile.GetFd(), dex_files)); in TEST_F() 78 ASSERT_TRUE(saved_info.Save(profile.GetFd())); in TEST_F() 82 ASSERT_TRUE(loaded_info.Load(profile.GetFd(), dex_files2)); in TEST_F() 101 ASSERT_TRUE(saved_info.Save(profile.GetFd())); in TEST_F() 112 ASSERT_FALSE(loaded_info.Load(profile.GetFd(), dex_files2)); in TEST_F()
|
D | profile_compilation_info_test.cc | 63 uint32_t GetFd(const ScratchFile& file) { in GetFd() function in art::ProfileCompilationInfoTest 64 return static_cast<uint32_t>(file.GetFd()); in GetFd() 142 ASSERT_TRUE(saved_info.Save(GetFd(profile))); in TestProfileLoadFromZip() 215 ASSERT_TRUE(boot_profile.Save(GetFd(boot_file))); in SizeStressTest() 216 ASSERT_TRUE(reg_profile.Save(GetFd(reg_file))); in SizeStressTest() 220 ASSERT_TRUE(loaded_boot.Load(GetFd(boot_file))); in SizeStressTest() 221 ASSERT_TRUE(loaded_reg.Load(GetFd(reg_file))); in SizeStressTest() 295 ASSERT_TRUE(saved_info.Save(GetFd(profile))); in TEST_F() 300 ASSERT_TRUE(loaded_info.Load(GetFd(profile))); in TEST_F() 310 ASSERT_TRUE(saved_info.Save(GetFd(profile))); in TEST_F() [all …]
|
/art/libartbase/base/unix_file/ |
D | fd_file_test.cc | 223 size_t src_offset = lseek(src->GetFd(), /*offset=*/0, SEEK_CUR); in TEST_F() 226 ASSERT_EQ(fstat(src->GetFd(), &src_stat), 0); in TEST_F() 237 EXPECT_EQ(lseek(src->GetFd(), /*offset=*/0, SEEK_CUR), src_offset); in TEST_F() 334 ASSERT_EQ(fstat(src1->GetFd(), &src1_stat), 0); in TEST_F() 347 ASSERT_EQ(fstat(src2->GetFd(), &src2_stat), 0); in TEST_F() 370 EXPECT_EQ(lseek(dest.GetFd(), /*offset=*/0, SEEK_CUR), dest.GetFile()->GetLength()); in TEST_F() 371 EXPECT_EQ(lseek(src->GetFd(), /*offset=*/0, SEEK_CUR), src->GetFile()->GetLength()); in TEST_F() 375 ASSERT_EQ(fstat(src->GetFd(), &src_stat), 0); in TEST_F() 376 ASSERT_EQ(fstat(dest.GetFd(), &dest_stat), 0); in TEST_F() 412 if (fstat(tmpfile.GetFd(), &tmp_stat) != 0) { in GetFilesystemBlockSize() [all …]
|
/art/libartbase/base/ |
D | zip_archive_test.cc | 44 ASSERT_NE(-1, tmp.GetFd()); in TEST_F() 45 std::unique_ptr<File> file(new File(DupCloexec(tmp.GetFd()), tmp.GetFilename(), false)); in TEST_F()
|
D | mem_map_test.cc | 404 scratch_file.GetFd(), in TEST_F() 490 scratch_file.GetFd(), in TEST_F() 508 scratch_file.GetFd(), in TEST_F() 814 scratch_file.GetFd(), in TEST_F() 856 scratch_file.GetFd(), in TEST_F()
|
D | common_art_test.h | 88 int GetFd() const;
|
D | common_art_test.cc | 121 int ScratchFile::GetFd() const { in GetFd() function in art::ScratchFile
|
/art/libarttools/ |
D | art_exec_test.cc | 104 ASSERT_GE(scratch_file.GetFd(), 0); in TEST_F() 157 ASSERT_GE(scratch_file.GetFd(), 0); in TEST_F() 186 ASSERT_GE(scratch_file.GetFd(), 0); in TEST_F() 202 ASSERT_GE(scratch_file.GetFd(), 0); in TEST_F()
|
/art/runtime/ |
D | vdex_file_test.cc | 33 std::unique_ptr<VdexFile> vdex = VdexFile::Open(tmp.GetFd(), in TEST_F()
|
D | dexopt_test.cc | 130 ASSERT_TRUE(info.Save(profile_file.GetFd())); in GenerateOatForTest()
|
/art/dex2oat/utils/ |
D | swap_space_test.cc | 37 int fd = scratch.GetFd(); in SwapTest()
|
/art/runtime/jit/ |
D | profiling_info_test.cc | 67 uint32_t GetFd(const ScratchFile& file) { in GetFd() function in art::ProfileCompilationInfoTest 68 return static_cast<uint32_t>(file.GetFd()); in GetFd()
|
/art/dex2oat/ |
D | dex2oat_test.cc | 231 copy.push_back(android::base::StringPrintf("--swap-fd=%d", sf->GetFd())); 764 std::string output_vdex = StringPrintf("--output-vdex-fd=%d", vdex_file2.GetFd()); in RunTestVDex() 1461 FILE* file = fdopen(DupCloexec(dm_file.GetFd()), "w+b"); in TEST_F() 1510 FILE* file = fdopen(DupCloexec(invalid_dex.GetFd()), "w+b"); in TEST_F() 1562 FILE* file = fdopen(DupCloexec(invalid_dex_zip.GetFd()), "w+b"); in TEST_F() 1604 {"--app-image-fd=" + std::to_string(app_image_file.GetFd())}, in TEST_F() 1734 ASSERT_EQ(0, lseek(dex_file.GetFd(), 0, SEEK_SET)); in TEST_F() 1737 StringPrintf("--zip-fd=%d", dex_file.GetFd()), in TEST_F() 1834 ASSERT_TRUE(info.Save(profile_file.GetFd())); in TEST_F()
|
/art/dex2oat/linker/ |
D | oat_writer_test.cc | 657 File dex_file_fd(DupCloexec(dex_file->GetFd()), /*check_usage=*/ false); in TestDexFileInput() 802 File zip_fd(DupCloexec(zip_file.GetFd()), /*check_usage=*/ false); in TestZipFileInput()
|