Home
last modified time | relevance | path

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

/art/libartbase/base/unix_file/
Dfd_file_test.cc235 a.GetFile()->ResetOffset(); in TEST_F()
236 b.GetFile()->ResetOffset(); in TEST_F()
237 return a.GetFile()->Compare(b.GetFile()); in TEST_F()
241 EXPECT_TRUE(tmp.GetFile()->WriteFully(&buffer[0], length)); in TEST_F()
242 EXPECT_EQ(tmp.GetFile()->GetLength(), length); in TEST_F()
245 EXPECT_TRUE(tmp2.GetFile()->WriteFully(&buffer[0], length)); in TEST_F()
246 EXPECT_EQ(tmp2.GetFile()->GetLength(), length); in TEST_F()
249 tmp.GetFile()->ResetOffset(); in TEST_F()
250 tmp2.GetFile()->ResetOffset(); in TEST_F()
257 EXPECT_TRUE(tmp3.GetFile()->WriteFully(&buffer[0], length)); in TEST_F()
[all …]
/art/libprofile/profile/
Dprofile_compilation_info_test.cc187 ASSERT_EQ(0, profile.GetFile()->Flush()); in TestProfileLoadFromZip()
190 ASSERT_TRUE(profile.GetFile()->ResetOffset()); in TestProfileLoadFromZip()
191 std::vector<uint8_t> data(profile.GetFile()->GetLength()); in TestProfileLoadFromZip()
192 ASSERT_TRUE(profile.GetFile()->ReadFully(data.data(), data.size())); in TestProfileLoadFromZip()
196 FILE* file = fopen(zip.GetFile()->GetPath().c_str(), "wb"); in TestProfileLoadFromZip()
207 ASSERT_TRUE(zip.GetFile()->ResetOffset()); in TestProfileLoadFromZip()
208 ASSERT_EQ(should_succeed, loaded_info.Load(zip.GetFile()->GetPath(), false)); in TestProfileLoadFromZip()
264 ASSERT_TRUE(boot_file.GetFile()->ResetOffset()); in SizeStressTest()
265 ASSERT_TRUE(reg_file.GetFile()->ResetOffset()); in SizeStressTest()
309 ASSERT_EQ(0, profile.GetFile()->Flush()); in TEST_F()
[all …]
Dprofile_boot_info_test.cc54 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/profman/
Dprofile_assistant_test.cc112 ASSERT_EQ(0, profile.GetFile()->Flush()); in SetupProfile()
113 ASSERT_TRUE(profile.GetFile()->ResetOffset()); in SetupProfile()
132 ASSERT_EQ(0, profile.GetFile()->Flush()); in SetupBasicProfile()
133 ASSERT_TRUE(profile.GetFile()->ResetOffset()); in SetupBasicProfile()
179 ASSERT_TRUE(file.GetFile()->ResetOffset()); in CheckProfileInfo()
236 File* file = class_names_file.GetFile(); in CreateProfile()
266 File* file = output_file.GetFile(); in RunProfman()
294 profile_file.GetFile()->ResetOffset(); in CreateAndDump()
432 ASSERT_TRUE(reference_profile.GetFile()->ResetOffset()); in TEST_F()
463 ASSERT_TRUE(reference_profile.GetFile()->ResetOffset()); in TEST_F()
[all …]
/art/dex2oat/linker/
Doat_writer_test.cc302 int64_t actual_vdex_size = vdex_file.GetFile()->GetLength(); in CheckOatWriteResult()
445 bool success = WriteElf(tmp_vdex.GetFile(), in TEST_F()
446 tmp_oat.GetFile(), in TEST_F()
564 bool success = WriteElf(tmp_vdex.GetFile(), in TEST_F()
565 tmp_oat.GetFile(), in TEST_F()
580 static_cast<size_t>(tmp_oat.GetFile()->GetLength())); in TEST_F()
606 bool success = dex_file1.GetFile()->WriteFully(&dex_file1_data->GetHeader(), in TestDexFileInput()
609 success = dex_file1.GetFile()->Flush() == 0; in TestDexFileInput()
623 success = dex_file2.GetFile()->WriteFully(&dex_file2_data->GetHeader(), in TestDexFileInput()
626 success = dex_file2.GetFile()->Flush() == 0; in TestDexFileInput()
[all …]
Dimage_test.h234 elf_writers.emplace_back(CreateElfWriterQuick(*compiler_options_, oat_file.GetFile())); in DoCompile()
259 out_helper.vdex_files[i].GetFile(), in DoCompile()
297 oat_writer->FinishVdexFile(out_helper.vdex_files[i].GetFile(), /*verifier_deps=*/ nullptr); in DoCompile()
/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/
Doat_file_assistant.cc215 const OatFile* file = oat_.GetFile(); in GetStatusDump()
236 const OatFile* file = odex_.GetFile(); in GetStatusDump()
581 const OatFile* odex_file = odex_.GetFile(); in GetRequiredDexChecksums()
719 const OatFile* file = GetFile(); in Status()
806 const OatFile* OatFileAssistant::OatFileInfo::GetFile() { in GetFile() function in art::OatFileAssistant::OatFileInfo
853 const OatFile* file = GetFile(); in CompilerFilterIsOkay()
869 const OatFile* file = GetFile(); in ClassLoaderContextIsOkay()
910 const OatFile* file = GetFile(); in IsExecutable()
Dmodule_exclusion_test.cc153 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()
Doat_file_assistant.h298 const OatFile* GetFile();
/art/dex2oat/
Ddex2oat_image_test.cc203 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()
Ddex2oat_test.cc788 EXPECT_GT(vdex_file2.GetFile()->GetLength(), 0u); in RunTestVDex()
1776 WriteBase64ToFile(kDuplicateMethodInputDex, temp_dex.GetFile()); in TEST_F()
1827 ASSERT_EQ(apk_file.GetFile()->Flush(), 0); in TEST_F()
1962 ASSERT_EQ(dm_file.GetFile()->Flush(), 0); in TEST_F()
2003 MutateDexFile(temp_dex.GetFile(), GetTestDexFileName("ManyMethods"), [] (DexFile* dex) { in TEST_F()
2068 ASSERT_TRUE(temp.GetFile()->WriteFully(dex_files[0]->Begin(), dex_files[0]->Size())); in TEST_F()
2069 ASSERT_EQ(temp.GetFile()->Flush(), 0) << "Could not flush extracted dex"; in TEST_F()
2070 EXPECT_EQ(temp.GetFile()->Compare(temp_dex.GetFile()), 0); in TEST_F()
2095 ASSERT_EQ(invalid_dex.GetFile()->Flush(), 0); in TEST_F()
2128 ASSERT_EQ(invalid_dex_zip.GetFile()->Flush(), 0); in TEST_F()
[all …]
/art/dexlayout/
Ddexlayout_test.cc511 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/
Ddwarf_test.h66 FileOutputStream output_stream(file.GetFile()); in Objdump()
/art/runtime/gc/space/
Dimage_space_test.cc84 GenerateProfile(dex_files, profile_file.GetFile()); in TEST_F()
111 GenerateProfile(dex_files, profile_file.GetFile()); in TEST_F()
/art/libartbase/base/
Dcommon_art_test.cc112 if (GetFile() != other.GetFile()) { in operator =()
Dcommon_art_test.h83 File* GetFile() const { in GetFile() function
Dmem_map_test.cc387 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()
/art/runtime/jit/
Dprofiling_info_test.cc239 ASSERT_TRUE(profile.GetFile()->ResetOffset()); in TEST_F()
/art/tools/hiddenapi/
Dhiddenapi_test.cc61 } else if (!jar_classes_dex->ExtractToFile(*in_dex.GetFile(), &error)) { in RunHiddenapiEncode()