/art/libartbase/base/unix_file/ |
D | fd_file_test.cc | 56 FdFile* file = scratch_file.GetFile(); in TEST_F() 249 a.GetFile()->ResetOffset(); in TEST_F() 250 b.GetFile()->ResetOffset(); in TEST_F() 251 return a.GetFile()->Compare(b.GetFile()); in TEST_F() 255 EXPECT_TRUE(tmp.GetFile()->WriteFully(&buffer[0], length)); in TEST_F() 256 EXPECT_EQ(tmp.GetFile()->GetLength(), length); in TEST_F() 259 EXPECT_TRUE(tmp2.GetFile()->WriteFully(&buffer[0], length)); in TEST_F() 260 EXPECT_EQ(tmp2.GetFile()->GetLength(), length); in TEST_F() 263 tmp.GetFile()->ResetOffset(); in TEST_F() 264 tmp2.GetFile()->ResetOffset(); in TEST_F() [all …]
|
/art/dex2oat/linker/ |
D | oat_writer_test.cc | 295 int64_t actual_vdex_size = vdex_file.GetFile()->GetLength(); in CheckOatWriteResult() 438 bool success = WriteElf(tmp_vdex.GetFile(), in TEST_F() 439 tmp_oat.GetFile(), in TEST_F() 557 bool success = WriteElf(tmp_vdex.GetFile(), in TEST_F() 558 tmp_oat.GetFile(), in TEST_F() 573 static_cast<size_t>(tmp_oat.GetFile()->GetLength())); in TEST_F() 599 bool success = dex_file1.GetFile()->WriteFully(&dex_file1_data->GetHeader(), in TestDexFileInput() 602 success = dex_file1.GetFile()->Flush() == 0; in TestDexFileInput() 616 success = dex_file2.GetFile()->WriteFully(&dex_file2_data->GetHeader(), in TestDexFileInput() 619 success = dex_file2.GetFile()->Flush() == 0; in TestDexFileInput() [all …]
|
D | image_test.h | 234 elf_writers.emplace_back(CreateElfWriterQuick(*compiler_options_, oat_file.GetFile())); in DoCompile() 259 out_helper.vdex_files[i].GetFile(), in DoCompile() 296 oat_writer->FinishVdexFile(out_helper.vdex_files[i].GetFile(), /*verifier_deps=*/ nullptr); in DoCompile()
|
/art/libprofile/profile/ |
D | profile_compilation_info_test.cc | 137 ASSERT_EQ(0, profile.GetFile()->Flush()); in TestProfileLoadFromZip() 140 std::vector<uint8_t> data(profile.GetFile()->GetLength()); in TestProfileLoadFromZip() 141 ASSERT_TRUE(profile.GetFile()->PreadFully(data.data(), data.size(), /*offset=*/ 0)); in TestProfileLoadFromZip() 145 FILE* file = fopen(zip.GetFile()->GetPath().c_str(), "wb"); in TestProfileLoadFromZip() 156 ASSERT_EQ(should_succeed, loaded_info.Load(zip.GetFile()->GetPath(), false)); in TestProfileLoadFromZip() 290 ASSERT_EQ(0, profile.GetFile()->Flush()); in TEST_F() 303 ASSERT_TRUE(profile.GetFile()->ResetOffset()); in TEST_F() 305 ASSERT_EQ(0, profile.GetFile()->Flush()); in TEST_F() 345 ASSERT_EQ(0, profile.GetFile()->Flush()); in TEST_F() 372 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() 78 ASSERT_TRUE(profile.GetFile()->ResetOffset()); in TEST_F() 103 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/dex2oat/ |
D | dex2oat_image_test.cc | 203 profile_file.GetFile(), in TEST_F() 223 profile_file.GetFile(), in TEST_F() 242 WriteLine(classes.GetFile(), ref.dex_file->PrettyType(ref.TypeIndex())); in TEST_F() 314 head_profile_file.GetFile(), in TEST_F() 320 mid_profile_file.GetFile(), in TEST_F() 326 tail_profile_file.GetFile(), in TEST_F() 380 single_profile_file.GetFile(), in TEST_F()
|
D | dex2oat_test.cc | 769 EXPECT_GT(vdex_file2.GetFile()->GetLength(), 0u); in RunTestVDex() 1584 WriteBase64ToFile(kDuplicateMethodInputDex, temp_dex.GetFile()); in TEST_F() 1635 ASSERT_EQ(apk_file.GetFile()->Flush(), 0); in TEST_F() 1770 ASSERT_EQ(dm_file.GetFile()->Flush(), 0); in TEST_F() 1824 ASSERT_EQ(invalid_dex.GetFile()->Flush(), 0); in TEST_F() 1857 ASSERT_EQ(invalid_dex_zip.GetFile()->Flush(), 0); in TEST_F() 1862 ASSERT_GE(invalid_dex.GetFile()->WriteFully(&header, sizeof(header)), 0); in TEST_F() 1863 ASSERT_EQ(invalid_dex.GetFile()->Flush(), 0); in TEST_F() 1910 ASSERT_TRUE(app_image_file.GetFile()->PreadFully( in TEST_F() 1913 /*offset*/ 0u)) << app_image_file.GetFile()->GetLength(); in TEST_F() [all …]
|
/art/runtime/ |
D | oat_file_assistant.cc | 232 const OatFile* file = oat_.GetFile(); in GetStatusDump() 253 const OatFile* file = odex_.GetFile(); in GetStatusDump() 775 const OatFile* file = GetFile(); in Status() 810 const OatFile* OatFileAssistant::OatFileInfo::GetFile() { in GetFile() function in art::OatFileAssistant::OatFileInfo 904 const OatFile* file = GetFile(); in CompilerFilterIsOkay() 951 const OatFile* file = GetFile(); in IsExecutable() 1018 const OatFile* oat_file = GetBestInfo().GetFile(); in GetOptimizationStatus()
|
D | module_exclusion_test.cc | 153 ASSERT_TRUE(package_list_file.GetFile()->WriteFully(data.data(), data.size())); in TEST_F() 155 ASSERT_EQ(0, package_list_file.GetFile()->Flush()); in TEST_F()
|
D | oat_file_assistant.h | 314 const OatFile* GetFile();
|
D | dexopt_test.cc | 131 ASSERT_EQ(0, profile_file.GetFile()->Flush()); in GenerateOatForTest()
|
/art/dexlayout/ |
D | dexlayout_test.cc | 511 WriteBase64ToFile(dex_filename, dex_file->GetFile()); in DexLayoutExec() 512 EXPECT_EQ(dex_file->GetFile()->Flush(), 0); in DexLayoutExec() 676 MutateDexFile(temp_dex.GetFile(), GetTestDexFileName("ManyMethods"), [] (DexFile* dex) { in TEST_F() 739 MutateDexFile(temp_dex.GetFile(), GetTestDexFileName("ManyMethods"), [&] (DexFile* dex) { in TEST_F() 746 TEMP_FAILURE_RETRY(temp_dex.GetFile()->SetLength(file_size)); in TEST_F()
|
/art/compiler/debug/dwarf/ |
D | dwarf_test.h | 66 FileOutputStream output_stream(file.GetFile()); in Objdump()
|
/art/profman/ |
D | profile_assistant_test.cc | 91 ASSERT_EQ(0, profile.GetFile()->Flush()); in SetupProfile() 110 ASSERT_EQ(0, profile.GetFile()->Flush()); in SetupBasicProfile() 213 File* file = class_names_file.GetFile(); in CreateProfile() 244 File* file = output_file.GetFile(); in RunProfman() 616 ASSERT_EQ(0, reference_profile.GetFile()->GetLength()); in TEST_F() 653 ASSERT_EQ(0, reference_profile.GetFile()->GetLength()); in TEST_F() 755 ASSERT_EQ(0, reference_profile.GetFile()->GetLength()); in TEST_F() 947 EXPECT_TRUE(preloaded_class_denylist.GetFile()->WriteFully( in TEST_F() 950 EXPECT_EQ(0, preloaded_class_denylist.GetFile()->Flush()); in TEST_F() 2034 ASSERT_TRUE(profile1.GetFile()->WriteFully(content.c_str(), content.length())); in TEST_F()
|
/art/runtime/gc/space/ |
D | image_space_test.cc | 82 GenerateBootProfile(dex_files, profile_file.GetFile()); in TEST_F() 109 GenerateProfile(dex_files, profile_file.GetFile()); in TEST_F()
|
/art/libartbase/base/ |
D | common_art_test.h | 83 File* GetFile() const { in GetFile() function
|
D | mem_map_test.cc | 387 ASSERT_TRUE(scratch_file.GetFile()->WriteFully(&data[0], kMapSize)); in TEST_F() 470 ASSERT_TRUE(scratch_file.GetFile()->WriteFully(&data[0], kMapSize)); in TEST_F() 778 ASSERT_TRUE(scratch_file.GetFile()->WriteFully(&data[0], kMapSize)); in TEST_F()
|
D | common_art_test.cc | 113 if (GetFile() != other.GetFile()) { in operator =()
|
/art/tools/hiddenapi/ |
D | hiddenapi_test.cc | 61 } else if (!jar_classes_dex->ExtractToFile(*in_dex.GetFile(), &error)) { in RunHiddenapiEncode()
|