/art/libartbase/base/unix_file/ |
D | fd_file_test.cc | 74 FdFile* file = scratch_file.GetFile(); in TEST_F() 197 FdFile* src = out_file->GetFile(); in CreateSparseSourceFile() 224 size_t source_length = src->GetFile()->GetLength(); in TEST_F() 232 ASSERT_TRUE(src->GetFile()->Rename(new_filename)); in TEST_F() 235 EXPECT_EQ(src->GetFile()->GetPath(), new_filename); in TEST_F() 257 ASSERT_NO_FATAL_FAILURE(TestDataMatches(src->GetFile(), in TEST_F() 360 ASSERT_TRUE(dest.GetFile()->IsOpened()); in TEST_F() 362 off_t copy_size = src->GetFile()->GetLength(); in TEST_F() 363 EXPECT_TRUE(dest.GetFile()->Copy(src->GetFile(), /*offset=*/0, copy_size)); in TEST_F() 364 EXPECT_EQ(dest.GetFile()->Flush(), 0); in TEST_F() [all …]
|
/art/dex2oat/linker/ |
D | oat_writer_test.cc | 294 int64_t actual_vdex_size = vdex_file.GetFile()->GetLength(); in CheckOatWriteResult() 437 bool success = WriteElf(tmp_vdex.GetFile(), in TEST_F() 438 tmp_oat.GetFile(), in TEST_F() 554 bool success = WriteElf(tmp_vdex.GetFile(), in TEST_F() 555 tmp_oat.GetFile(), in TEST_F() 570 static_cast<size_t>(tmp_oat.GetFile()->GetLength())); in TEST_F() 596 bool success = dex_file1.GetFile()->WriteFully(&dex_file1_data->GetHeader(), in TestDexFileInput() 599 success = dex_file1.GetFile()->Flush() == 0; in TestDexFileInput() 613 success = dex_file2.GetFile()->WriteFully(&dex_file2_data->GetHeader(), in TestDexFileInput() 616 success = dex_file2.GetFile()->Flush() == 0; in TestDexFileInput() [all …]
|
D | image_test.h | 245 elf_writers.emplace_back(CreateElfWriterQuick(*compiler_options_, oat_file.GetFile())); in DoCompile() 268 out_helper.vdex_files[i].GetFile(), in DoCompile() 305 oat_writer->FinishVdexFile(out_helper.vdex_files[i].GetFile(), /*verifier_deps=*/ nullptr); in DoCompile()
|
/art/libprofile/profile/ |
D | profile_compilation_info_test.cc | 143 ASSERT_EQ(0, profile.GetFile()->Flush()); in TestProfileLoadFromZip() 146 std::vector<uint8_t> data(profile.GetFile()->GetLength()); in TestProfileLoadFromZip() 147 ASSERT_TRUE(profile.GetFile()->PreadFully(data.data(), data.size(), /*offset=*/ 0)); in TestProfileLoadFromZip() 151 FILE* file = fopen(zip.GetFile()->GetPath().c_str(), "wbe"); in TestProfileLoadFromZip() 162 ASSERT_EQ(should_succeed, loaded_info.Load(zip.GetFile()->GetPath(), false)); in TestProfileLoadFromZip() 296 ASSERT_EQ(0, profile.GetFile()->Flush()); in TEST_F() 309 ASSERT_TRUE(profile.GetFile()->ResetOffset()); in TEST_F() 311 ASSERT_EQ(0, profile.GetFile()->Flush()); in TEST_F() 351 ASSERT_EQ(0, profile.GetFile()->Flush()); in TEST_F() 384 ASSERT_EQ(0, profile.GetFile()->Flush()); in TEST_F() [all …]
|
D | profile_boot_info_test.cc | 54 ASSERT_TRUE(profile.GetFile()->ResetOffset()); in TEST_F() 79 ASSERT_TRUE(profile.GetFile()->ResetOffset()); in TEST_F() 104 ASSERT_TRUE(profile.GetFile()->ResetOffset()); in TEST_F()
|
/art/compiler/linker/ |
D | output_stream_test.cc | 69 FileOutputStream output_stream(tmp.GetFile()); in TEST_F() 83 BufferedOutputStream buffered_output_stream(std::make_unique<FileOutputStream>(tmp.GetFile())); in TEST_F()
|
/art/runtime/gc/space/ |
D | image_space_test.cc | 75 GenerateBootProfile(dex_files, profile_file.GetFile()); in TEST_F() 103 GenerateProfile(dex_files, profile_file.GetFile()); in TEST_F() 413 profile1_->GetFile(), in PrepareImageLocation() 418 profile2_->GetFile(), in PrepareImageLocation() 453 profile1_->GetFile(), in PrepareImageLocation() 460 profile2_->GetFile(), in PrepareImageLocation()
|
/art/dex2oat/ |
D | dex2oat_image_test.cc | 202 profile_file.GetFile(), in TEST_F() 222 profile_file.GetFile(), in TEST_F() 241 WriteLine(classes.GetFile(), ref.dex_file->PrettyType(ref.TypeIndex())); in TEST_F() 313 head_profile_file.GetFile(), in TEST_F() 319 mid_profile_file.GetFile(), in TEST_F() 325 tail_profile_file.GetFile(), in TEST_F() 379 single_profile_file.GetFile(), in TEST_F()
|
D | dex2oat_test.cc | 772 EXPECT_GT(vdex_file2.GetFile()->GetLength(), 0u); in RunTestVDex() 1473 ASSERT_EQ(dm_file.GetFile()->Flush(), 0); in TEST_F() 1525 ASSERT_EQ(invalid_dex.GetFile()->Flush(), 0); in TEST_F() 1568 ASSERT_EQ(invalid_dex_zip.GetFile()->Flush(), 0); in TEST_F() 1573 ASSERT_GE(invalid_dex.GetFile()->WriteFully(&header, sizeof(header)), 0); in TEST_F() 1574 ASSERT_EQ(invalid_dex.GetFile()->Flush(), 0); in TEST_F() 1619 ASSERT_TRUE(app_image_file.GetFile()->PreadFully(reinterpret_cast<void*>(&header), in TEST_F() 1622 << app_image_file.GetFile()->GetLength(); in TEST_F() 1657 MutateDexFile(temp_dex.GetFile(), GetTestDexFileName("StringLiterals"), [&](DexFile* dex) { in TEST_F() 1732 bool success = entry->ExtractToFile(*(dex_file.GetFile()), &error_msg); in TEST_F() [all …]
|
/art/runtime/oat/ |
D | oat_file_assistant.cc | 362 const OatFile* file = oat_.GetFile(); in GetStatusDump() 383 const OatFile* file = odex_.GetFile(); in GetStatusDump() 995 const OatFile* file = GetFile(); in Status() 1040 const OatFile* OatFileAssistant::OatFileInfo::GetFile() { in GetFile() function in art::OatFileAssistant::OatFileInfo 1147 const OatFile* file = GetFile(); in ShouldRecompileForFilter() 1237 const OatFile* file = GetFile(); in IsExecutable() 1276 const OatFile* oat_file = GetFile(); in CheckDisableCompactDex() 1317 const OatFile* oat_file = oat_file_info.GetFile(); in GetOptimizationStatus()
|
D | oat_file_assistant.h | 410 const OatFile* GetFile();
|
/art/compiler/debug/dwarf/ |
D | dwarf_test.h | 67 FileOutputStream output_stream(file.GetFile()); in Objdump()
|
/art/profman/ |
D | profile_assistant_test.cc | 93 ASSERT_EQ(0, profile.GetFile()->Flush()); in SetupProfile() 112 ASSERT_EQ(0, profile.GetFile()->Flush()); in SetupBasicProfile() 215 File* file = class_names_file.GetFile(); in CreateProfile() 246 File* file = output_file.GetFile(); in RunProfman() 622 ASSERT_EQ(0, reference_profile.GetFile()->GetLength()); in TEST_F() 659 ASSERT_EQ(0, reference_profile.GetFile()->GetLength()); in TEST_F() 736 ASSERT_EQ(0, reference_profile.GetFile()->GetLength()); in TEST_F() 927 EXPECT_TRUE(preloaded_class_denylist.GetFile()->WriteFully( in TEST_F() 930 EXPECT_EQ(0, preloaded_class_denylist.GetFile()->Flush()); in TEST_F() 2313 ASSERT_TRUE(profile1.GetFile()->WriteFully(content.c_str(), content.length())); in TEST_F()
|
/art/runtime/ |
D | dexopt_test.cc | 131 ASSERT_EQ(0, profile_file.GetFile()->Flush()); in GenerateOatForTest()
|
/art/libartbase/base/ |
D | common_art_test.h | 84 File* GetFile() const { in GetFile() function
|
D | common_art_test.cc | 110 if (GetFile() != other.GetFile()) { in operator =()
|
D | mem_map_test.cc | 400 ASSERT_TRUE(scratch_file.GetFile()->WriteFully(&data[0], map_size)); in TEST_F() 485 ASSERT_TRUE(scratch_file.GetFile()->WriteFully(&data[0], map_size)); in TEST_F() 796 ASSERT_TRUE(scratch_file.GetFile()->WriteFully(&data[0], map_size)); in TEST_F()
|
/art/tools/hiddenapi/ |
D | hiddenapi_test.cc | 61 } else if (!jar_classes_dex->ExtractToFile(*in_dex.GetFile(), &error)) { in RunHiddenapiEncode()
|