Home
last modified time | relevance | path

Searched refs:Fd (Results 1 – 25 of 29) 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.cc181 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()
Dcommon_art_test.cc121 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/libelffile/stream/
Dfile_output_stream.cc33 return lseek(file_->Fd(), offset, static_cast<int>(whence)); in Seek()
/art/profman/
Dprofile_assistant.cc42 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()
112 if (!info.Save(reference_profile_file->Fd())) { in ProcessProfilesInternal()
/art/dex2oat/
Ddex2oat_test.cc88 args.push_back("--oat-fd=" + std::to_string(oat_file->Fd()));
639 copy.push_back("--app-image-fd=" + std::to_string(app_image_file->Fd()));
714 std::string output_vdex = StringPrintf("--output-vdex-fd=%d", vdex_file1->Fd()); in RunTestVDex()
725 std::string input_vdex = StringPrintf("--input-vdex-fd=%d", vdex_file1->Fd()); in RunTestVDex()
835 std::string output_vdex = StringPrintf("--output-vdex-fd=%d", vdex_file1->Fd()); in RunUnquickenMultiDex()
849 std::string input_vdex = StringPrintf("--input-vdex-fd=%d", vdex_file1->Fd()); in RunUnquickenMultiDex()
850 std::string output_vdex = StringPrintf("--output-vdex-fd=%d", vdex_file1->Fd()); in RunUnquickenMultiDex()
885 std::string output_vdex = StringPrintf("--output-vdex-fd=%d", vdex_file1->Fd()); in RunUnquickenMultiDexCDex()
896 std::string input_vdex = StringPrintf("--input-vdex-fd=%d", vdex_file1->Fd()); in RunUnquickenMultiDexCDex()
897 std::string output_vdex = StringPrintf("--output-vdex-fd=%d", vdex_file2->Fd()); in RunUnquickenMultiDexCDex()
[all …]
Ddex2oat.cc1457 if (fchmod(oat_file->Fd(), 0644) != 0) { in OpenFile()
1487 if (fchmod(vdex_file->Fd(), 0644) != 0) { in OpenFile()
2583 if (!profile_compilation_info_->Load(profile_file->Fd())) { in LoadProfile()
/art/runtime/
Dcommon_runtime_test.cc487 argv.push_back("--image-fd=" + std::to_string(art_file->Fd())); in CompileBootImage()
488 argv.push_back("--output-vdex-fd=" + std::to_string(vdex_file->Fd())); in CompileBootImage()
489 argv.push_back("--oat-fd=" + std::to_string(oat_file->Fd())); in CompileBootImage()
623 profile.Save(out_file->Fd()); in GenerateProfile()
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()
1140 file->GetPath().c_str(), file->Fd(), strerror(errno)); in Load()
1230 file->Fd(), in Load()
1514 int result = ftruncate(file->Fd(), offset); in Strip()
1708 file->Fd(), in Open()
1757 file->Fd(), in Open()
Dnative_stack_dump.cc162 int in = pipe->get()->in.Fd(); in Drain()
Dvdex_file.cc133 vdex_file->Fd(), in OpenAtAddress()
/art/dex2oat/linker/
Doat_writer_test.cc331 off_t offset = lseek(zip_file_->Fd(), 0, SEEK_CUR); in AddFile()
359 off_t offset = lseek(zip_file_->Fd(), 0, SEEK_CUR); in Finish()
677 ASSERT_NE(-1, dex_file_fd.Fd()); in TestDexFileInput()
678 ASSERT_EQ(0, lseek(dex_file_fd.Fd(), 0, SEEK_SET)); in TestDexFileInput()
821 ASSERT_NE(-1, zip_fd.Fd()); in TestZipFileInput()
822 ASSERT_EQ(0, lseek(zip_fd.Fd(), 0, SEEK_SET)); in TestZipFileInput()
Doat_writer.cc508 if (fd.Fd() == -1) { in AddDexFileSource()
524 if (!ReadMagicAndReset(dex_file_fd.Fd(), &magic, &error_msg)) { in AddDexFileSource()
3405 actual_offset = lseek(file->Fd(), 0, SEEK_CUR); in SeekToDexFile()
3444 int dup_fd = DupCloexec(raw_file->Fd()); in LayoutAndWriteDexFile()
3446 PLOG(ERROR) << "Failed to dup dex file descriptor (" << raw_file->Fd() << ") at " << location; in LayoutAndWriteDexFile()
3537 off_t extracted_end = lseek(file->Fd(), 0, SEEK_CUR); in WriteDexFile()
3557 off_t actual_offset = lseek(file->Fd(), start_offset, SEEK_SET); in WriteDexFile()
3573 actual_offset = lseek(file->Fd(), end_offset, SEEK_SET); in WriteDexFile()
3612 off_t input_offset = lseek(dex_file->Fd(), 0, SEEK_SET); in WriteDexFile()
3634 off_t actual_offset = lseek(file->Fd(), 0, SEEK_CUR); in WriteDexFile()
[all …]
/art/openjdkjvmti/
Dti_search.cc288 if (file.Fd() < 0) { in AddToDexClassLoaderInMemory()
306 oss << "/proc/self/fd/" << file.Fd(); in AddToDexClassLoaderInMemory()
/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/runtime/jit/
Djit.cc1368 if (profile.Fd() == -1) { in CompileMethodsFromBootProfile()
1374 if (!profile_info.Load(profile.Fd(), dex_files)) { in CompileMethodsFromBootProfile()
1418 if (profile.Fd() == -1) { in CompileMethodsFromProfile()
1424 if (!profile_info.Load(profile.Fd())) { in CompileMethodsFromProfile()
/art/dexlayout/
Ddexlayout_test.cc374 pfi.Save(file->Fd()); in CreateProfile()
/art/libprofile/profile/
Dprofile_compilation_info.cc234 int fd = profile_file->Fd(); in MergeWith()
269 int fd = profile_file->Fd(); in Load()
310 int fd = profile_file->Fd(); in Save()
/art/tools/hiddenapi/
Dhiddenapi_test.cc113 if (fd.Fd() == -1) { in OpenDex()

12