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.cc124 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()));
691 copy.push_back("--app-image-fd=" + std::to_string(app_image_file->Fd()));
768 std::string output_vdex = StringPrintf("--output-vdex-fd=%d", vdex_file1->Fd()); in RunTestVDex()
779 std::string input_vdex = StringPrintf("--input-vdex-fd=%d", vdex_file1->Fd()); in RunTestVDex()
890 std::string output_vdex = StringPrintf("--output-vdex-fd=%d", vdex_file1->Fd()); in RunUnquickenMultiDex()
904 std::string input_vdex = StringPrintf("--input-vdex-fd=%d", vdex_file1->Fd()); in RunUnquickenMultiDex()
905 std::string output_vdex = StringPrintf("--output-vdex-fd=%d", vdex_file1->Fd()); in RunUnquickenMultiDex()
941 std::string output_vdex = StringPrintf("--output-vdex-fd=%d", vdex_file1->Fd()); in RunUnquickenMultiDexCDex()
952 std::string input_vdex = StringPrintf("--input-vdex-fd=%d", vdex_file1->Fd()); in RunUnquickenMultiDexCDex()
953 std::string output_vdex = StringPrintf("--output-vdex-fd=%d", vdex_file2->Fd()); in RunUnquickenMultiDexCDex()
[all …]
Ddex2oat.cc1473 if (fchmod(oat_file->Fd(), 0644) != 0) { in OpenFile()
1503 if (fchmod(vdex_file->Fd(), 0644) != 0) { in OpenFile()
2590 if (!profile_compilation_info_->Load(profile_file->Fd())) { in LoadProfile()
/art/runtime/
Dcommon_runtime_test.cc464 argv.push_back("--image-fd=" + std::to_string(art_file->Fd())); in CompileBootImage()
465 argv.push_back("--output-vdex-fd=" + std::to_string(vdex_file->Fd())); in CompileBootImage()
466 argv.push_back("--oat-fd=" + std::to_string(oat_file->Fd())); in CompileBootImage()
600 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()
1139 file->GetPath().c_str(), file->Fd(), strerror(errno)); in Load()
1229 file->Fd(), in Load()
1513 int result = ftruncate(file->Fd(), offset); in Strip()
1707 file->Fd(), in Open()
1756 file->Fd(), in Open()
Dnative_stack_dump.cc160 int in = pipe->get()->in.Fd(); in Drain()
Dvdex_file.cc133 vdex_file->Fd(), in OpenAtAddress()
/art/dex2oat/linker/
Doat_writer_test.cc323 off_t offset = lseek(zip_file_->Fd(), 0, SEEK_CUR); in AddFile()
351 off_t offset = lseek(zip_file_->Fd(), 0, SEEK_CUR); in Finish()
669 ASSERT_NE(-1, dex_file_fd.Fd()); in TestDexFileInput()
670 ASSERT_EQ(0, lseek(dex_file_fd.Fd(), 0, SEEK_SET)); in TestDexFileInput()
813 ASSERT_NE(-1, zip_fd.Fd()); in TestZipFileInput()
814 ASSERT_EQ(0, lseek(zip_fd.Fd(), 0, SEEK_SET)); in TestZipFileInput()
Doat_writer.cc521 if (fd.Fd() == -1) { in AddDexFileSource()
537 if (!ReadMagicAndReset(dex_file_fd.Fd(), &magic, &error_msg)) { in AddDexFileSource()
3244 file->Fd(), in WriteDexFiles()
3388 int dup_fd = DupCloexec(raw_file->Fd()); in LayoutDexFile()
3390 PLOG(ERROR) << "Failed to dup dex file descriptor (" << raw_file->Fd() << ") at " << location; in LayoutDexFile()
3777 vdex_file->Fd(), in FinishVdexFile()
3796 vdex_file->Fd(), in FinishVdexFile()
/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.cc1374 if (profile.Fd() == -1) { in CompileMethodsFromBootProfile()
1380 if (!profile_info.Load(profile.Fd(), dex_files)) { in CompileMethodsFromBootProfile()
1424 if (profile.Fd() == -1) { in CompileMethodsFromProfile()
1430 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