Home
last modified time | relevance | path

Searched refs:GetFd (Results 1 – 15 of 15) sorted by relevance

/art/profman/
Dprofile_assistant_test.cc92 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/
Dprofile_boot_info_test.cc42 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()
Dprofile_compilation_info_test.cc63 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/
Dfd_file_test.cc223 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/
Dzip_archive_test.cc44 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()
Dmem_map_test.cc404 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()
Dcommon_art_test.h88 int GetFd() const;
Dcommon_art_test.cc121 int ScratchFile::GetFd() const { in GetFd() function in art::ScratchFile
/art/libarttools/
Dart_exec_test.cc104 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/
Dvdex_file_test.cc33 std::unique_ptr<VdexFile> vdex = VdexFile::Open(tmp.GetFd(), in TEST_F()
Ddexopt_test.cc130 ASSERT_TRUE(info.Save(profile_file.GetFd())); in GenerateOatForTest()
/art/dex2oat/utils/
Dswap_space_test.cc37 int fd = scratch.GetFd(); in SwapTest()
/art/runtime/jit/
Dprofiling_info_test.cc67 uint32_t GetFd(const ScratchFile& file) { in GetFd() function in art::ProfileCompilationInfoTest
68 return static_cast<uint32_t>(file.GetFd()); in GetFd()
/art/dex2oat/
Ddex2oat_test.cc231 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/
Doat_writer_test.cc657 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()