Home
last modified time | relevance | path

Searched refs:Fd (Results 1 – 25 of 28) sorted by relevance

12

/art/libartbase/base/
Dscoped_flock.cc59 int flock_result = TEMP_FAILURE_RETRY(flock(file->Fd(), operation)); in Open()
69 int fstat_result = TEMP_FAILURE_RETRY(fstat(file->Fd(), &fstat_stat)); in Open()
120 if (locked_file->Fd() == -1) { in DupOf()
125 if (0 != TEMP_FAILURE_RETRY(flock(locked_file->Fd(), LOCK_EX))) { in DupOf()
137 if (this->Fd() != -1) { in ReleaseLock()
138 int flock_result = TEMP_FAILURE_RETRY(flock(this->Fd(), LOCK_UN)); in ReleaseLock()
Dfile_magic.cc35 if (fd.Fd() == -1) { in OpenAndReadMagic()
39 if (!ReadMagicAndReset(fd.Fd(), magic, error_msg)) { in OpenAndReadMagic()
Dlogging.cc156 int64_t n = TEMP_FAILURE_RETRY(read(file.Fd(), &buf[filled_to], kBufSize - filled_to)); in PrintFileToLog()
Dzip_archive.cc62 const int32_t error = ExtractEntryToFile(handle_, zip_entry_, file.Fd()); in ExtractToFile()
Dfile_utils.cc86 int64_t n = TEMP_FAILURE_RETRY(read(file.Fd(), &buf[0], buf.size())); in ReadFileToString()
Dcommon_art_test.cc93 return file_->Fd(); in GetFd()
/art/libartbase/base/unix_file/
Dfd_file_test.cc49 EXPECT_EQ(-1, file.Fd()); in TEST_F()
58 EXPECT_GE(file.Fd(), 0); in TEST_F()
63 EXPECT_EQ(-1, file.Fd()); in TEST_F()
68 EXPECT_GE(file2.Fd(), 0); in TEST_F()
80 EXPECT_GE(file.Fd(), 0); in TEST_F()
95 EXPECT_GE(file.Fd(), 0); in TEST_F()
123 ASSERT_GE(file.Fd(), 0); in TEST_F()
150 ASSERT_GE(src.Fd(), 0); in TEST_F()
160 ASSERT_GE(dest.Fd(), 0); in TEST_F()
180 EXPECT_GE(file.Fd(), 0); in TEST_F()
[all …]
Dfd_file.cc399 int FdFile::Fd() const { in Fd() function in unix_file::FdFile
491 sendfile(Fd(), input_file->Fd(), &off, end - off)); in Copy()
498 if (lseek(input_file->Fd(), off, SEEK_SET) != off) { in Copy()
Dfd_file.h93 int Fd() const;
/art/profman/
Dprofile_assistant.cc41 if (!info.Load(reference_profile_file->Fd(), /*merge_classes=*/ true, filter_fn)) { in ProcessProfilesInternal()
59 if (!cur_info.Load(profile_files[i]->Fd(), /*merge_classes=*/ true, filter_fn)) { in ProcessProfilesInternal()
87 if (!info.Save(reference_profile_file->Fd())) { in ProcessProfilesInternal()
/art/libelffile/stream/
Dfile_output_stream.cc33 return lseek(file_->Fd(), offset, static_cast<int>(whence)); in Seek()
/art/runtime/gc/space/
Dimage_space_fs.h155 if (lseek(file->Fd(), 0, SEEK_SET) == -1) { in MarkZygoteStart()
/art/runtime/
Delf_file.cc106 file->GetPath().c_str(), file->Fd(), strerror(errno)); in Setup()
124 file->Fd(), in Setup()
144 file->Fd(), in Setup()
159 file->Fd(), in Setup()
1148 file->GetPath().c_str(), file->Fd(), strerror(errno)); in Load()
1238 file->Fd(), in Load()
1522 int result = ftruncate(file->Fd(), offset); in Strip()
1716 file->Fd(), in Open()
1765 file->Fd(), in Open()
Dnative_stack_dump.cc161 int in = pipe->get()->in.Fd(); in Drain()
Dvdex_file.cc131 vdex_file->Fd(), in OpenAtAddress()
/art/dex2oat/
Ddex2oat_test.cc87 args.push_back("--oat-fd=" + std::to_string(oat_file->Fd()));
679 copy.push_back("--app-image-fd=" + std::to_string(app_image_file->Fd()));
756 std::string output_vdex = StringPrintf("--output-vdex-fd=%d", vdex_file1->Fd()); in RunTestVDex()
767 std::string input_vdex = StringPrintf("--input-vdex-fd=%d", vdex_file1->Fd()); in RunTestVDex()
879 std::string output_vdex = StringPrintf("--output-vdex-fd=%d", vdex_file1->Fd()); in RunUnquickenMultiDex()
890 std::string input_vdex = StringPrintf("--input-vdex-fd=%d", vdex_file1->Fd()); in RunUnquickenMultiDex()
891 std::string output_vdex = StringPrintf("--output-vdex-fd=%d", vdex_file1->Fd()); in RunUnquickenMultiDex()
920 std::string output_vdex = StringPrintf("--output-vdex-fd=%d", vdex_file1->Fd()); in RunUnquickenMultiDexCDex()
932 std::string input_vdex = StringPrintf("--input-vdex-fd=%d", vdex_file1->Fd()); in RunUnquickenMultiDexCDex()
933 std::string output_vdex = StringPrintf("--output-vdex-fd=%d", vdex_file2->Fd()); in RunUnquickenMultiDexCDex()
[all …]
Ddex2oat_image_test.cc269 profile.Save(profile_file.GetFile()->Fd()); in TEST_F()
Ddex2oat.cc1266 if (fchmod(oat_file->Fd(), 0644) != 0) { in OpenFile()
1296 if (fchmod(vdex_file->Fd(), 0644) != 0) { in OpenFile()
2295 if (!profile_compilation_info_->Load(profile_file->Fd())) { in LoadProfile()
/art/compiler/jit/
Djit_logger.cc211 int fd = jit_dump_file_->Fd(); in OpenMarkerFile()
/art/libdexfile/dex/
Dart_dex_file_loader.cc103 if (fd.Fd() == -1) { in GetMultiDexChecksums()
231 if (fd.Fd() == -1) { in Open()
/art/dex2oat/linker/
Doat_writer_test.cc278 off_t offset = lseek(zip_file_->Fd(), 0, SEEK_CUR); in AddFile()
306 off_t offset = lseek(zip_file_->Fd(), 0, SEEK_CUR); in Finish()
770 ASSERT_NE(-1, zip_fd.Fd()); in TestZipFileInput()
Doat_writer.cc508 if (fd.Fd() == -1) { in AddDexFileSource()
3388 actual_offset = lseek(file->Fd(), 0, SEEK_CUR); in SeekToDexFile()
3427 int dup_fd = DupCloexec(raw_file->Fd()); in LayoutAndWriteDexFile()
3429 PLOG(ERROR) << "Failed to dup dex file descriptor (" << raw_file->Fd() << ") at " << location; in LayoutAndWriteDexFile()
3520 off_t extracted_end = lseek(file->Fd(), 0, SEEK_CUR); in WriteDexFile()
3540 off_t actual_offset = lseek(file->Fd(), start_offset, SEEK_SET); in WriteDexFile()
3556 actual_offset = lseek(file->Fd(), end_offset, SEEK_SET); in WriteDexFile()
3595 off_t input_offset = lseek(dex_file->Fd(), 0, SEEK_SET); in WriteDexFile()
3617 off_t actual_offset = lseek(file->Fd(), 0, SEEK_CUR); in WriteDexFile()
3724 file->Fd(), in OpenDexFiles()
/art/dexlayout/
Ddexlayout_test.cc382 pfi.Save(file->Fd()); in CreateProfile()
/art/tools/hiddenapi/
Dhiddenapi_test.cc114 if (fd.Fd() == -1) { in OpenDex()
/art/runtime/jit/
Djit.cc749 if (!profile_info.Load(profile->Fd())) { in CompileMethodsFromProfile()

12