Home
last modified time | relevance | path

Searched refs:GetFile (Results 1 – 18 of 18) sorted by relevance

/art/libartbase/base/unix_file/
Dfd_file_test.cc74 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/
Doat_writer_test.cc294 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 …]
Dimage_test.h245 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/
Dprofile_compilation_info_test.cc143 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 …]
Dprofile_boot_info_test.cc54 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/
Doutput_stream_test.cc69 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/
Dimage_space_test.cc75 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/
Ddex2oat_image_test.cc202 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()
Ddex2oat_test.cc772 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/
Doat_file_assistant.cc362 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()
Doat_file_assistant.h410 const OatFile* GetFile();
/art/compiler/debug/dwarf/
Ddwarf_test.h67 FileOutputStream output_stream(file.GetFile()); in Objdump()
/art/profman/
Dprofile_assistant_test.cc93 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/
Ddexopt_test.cc131 ASSERT_EQ(0, profile_file.GetFile()->Flush()); in GenerateOatForTest()
/art/libartbase/base/
Dcommon_art_test.h84 File* GetFile() const { in GetFile() function
Dcommon_art_test.cc110 if (GetFile() != other.GetFile()) { in operator =()
Dmem_map_test.cc400 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/
Dhiddenapi_test.cc61 } else if (!jar_classes_dex->ExtractToFile(*in_dex.GetFile(), &error)) { in RunHiddenapiEncode()