/art/libartbase/base/ |
D | scoped_flock.cc | 59 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()
|
D | file_magic.cc | 35 if (fd.Fd() == -1) { in OpenAndReadMagic() 39 if (!ReadMagicAndReset(fd.Fd(), magic, error_msg)) { in OpenAndReadMagic()
|
D | logging.cc | 181 int64_t n = TEMP_FAILURE_RETRY(read(file.Fd(), &buf[filled_to], kBufSize - filled_to)); in PrintFileToLog()
|
D | zip_archive.cc | 62 const int32_t error = ExtractEntryToFile(handle_, zip_entry_, file.Fd()); in ExtractToFile()
|
/art/libartbase/base/unix_file/ |
D | fd_file_test.cc | 67 EXPECT_EQ(FdFile::kInvalidFd, file.Fd()); in TEST_F() 76 EXPECT_GE(file->Fd(), 0); in TEST_F() 77 EXPECT_NE(file->Fd(), FdFile::kInvalidFd); in TEST_F() 78 EXPECT_TRUE(FdFile::IsOpenFd(file->Fd())); in TEST_F() 79 int old_fd = file->Fd(); in TEST_F() 90 EXPECT_GE(file.Fd(), 0); in TEST_F() 95 EXPECT_EQ(FdFile::kInvalidFd, file.Fd()); in TEST_F() 100 EXPECT_GE(file2.Fd(), 0); in TEST_F() 112 EXPECT_GE(file.Fd(), 0); in TEST_F() 127 EXPECT_GE(file.Fd(), 0); in TEST_F() [all …]
|
D | fd_file.cc | 408 int FdFile::Fd() const { in Fd() function in unix_file::FdFile 540 if (TEMP_FAILURE_RETRY(lseek(Fd(), size, SEEK_CUR)) < 0) { in SparseWrite() 561 input_file->Fd(), in UserspaceSparseCopy() 588 off_t input_offset = TEMP_FAILURE_RETRY(lseek(input_file->Fd(), off + size, SEEK_SET)); in UserspaceSparseCopy() 611 off_t current_offset = TEMP_FAILURE_RETRY(lseek(Fd(), 0, SEEK_CUR)); in Copy() 621 if (TEMP_FAILURE_RETRY(fstat(Fd(), &output_stat)) < 0) { in Copy() 644 if (lseek(input_file->Fd(), off, SEEK_SET) != off) { in Copy()
|
D | fd_file.h | 93 int Fd() const;
|
/art/artd/ |
D | file_utils_test.cc | 100 EXPECT_GE((*new_file)->Fd(), 0); in TEST_F() 161 ASSERT_TRUE(WriteStringToFd("new_file_1", new_file_1->Fd())); in TEST_F() 162 ASSERT_TRUE(WriteStringToFd("new_file_2", new_file_2->Fd())); in TEST_F() 185 ASSERT_TRUE(WriteStringToFd("new_file_1", new_file_1->Fd())); in TEST_F() 186 ASSERT_TRUE(WriteStringToFd("new_file_2", new_file_2->Fd())); in TEST_F() 208 ASSERT_TRUE(WriteStringToFd("new_file_1", new_file_1->Fd())); in TEST_F() 209 ASSERT_TRUE(WriteStringToFd("new_file_2", new_file_2->Fd())); in TEST_F() 234 ASSERT_TRUE(WriteStringToFd("new_file_1", new_file_1->Fd())); in TEST_F() 235 ASSERT_TRUE(WriteStringToFd("new_file_2", new_file_2->Fd())); in TEST_F() 264 ASSERT_TRUE(WriteStringToFd("new_file_1", new_file_1->Fd())); in TEST_F() [all …]
|
D | artd.cc | 313 if (!WriteStringToFd(content, dst_file.Fd())) { in CopyFile() 316 if (fsync(dst_file.Fd()) != 0) { in CopyFile() 319 if (lseek(dst_file.Fd(), /*offset=*/0, SEEK_SET) != 0) { in CopyFile() 366 if (!ReadMagicAndReset(src->Fd(), &magic, &error_msg)) { in AnalyzeCopyAndRewriteProfileFailure() 371 ZipArchive::OpenFromOwnedFd(src->Fd(), src->GetPath().c_str(), &error_msg)); in AnalyzeCopyAndRewriteProfileFailure() 396 if (!ReadMagicAndReset(dex_file->Fd(), &magic, &error_msg)) { in ExtractEmbeddedProfileToFd() 408 ZipArchive::OpenFromOwnedFd(dex_file->Fd(), dex_path.c_str(), &error_msg)); in ExtractEmbeddedProfileToFd() 435 if (ftruncate(memfd.Fd(), size) != 0) { in ExtractEmbeddedProfileToFd() 442 memfd.Fd(), in ExtractEmbeddedProfileToFd() 456 std::string path = ART_FORMAT("/proc/self/fd/{}", memfd.Fd()); in ExtractEmbeddedProfileToFd() [all …]
|
D | file_utils.h | 58 int Fd() const { return fd_; } in Fd() function
|
/art/libarttools/ |
D | art_exec_test.cc | 160 ART_FORMAT("--keep-fds={}:{}", file3->Fd(), file2->Fd()), in TEST_F() 169 file1->Fd(), in TEST_F() 170 file2->Fd(), in TEST_F() 171 file3->Fd(), in TEST_F()
|
/art/profman/ |
D | profile_assistant.cc | 38 if (!info.Load(reference_profile_file->Fd(), /*merge_classes=*/ true, filter_fn)) { in ProcessProfilesInternal() 55 if (!cur_info.Load(profile_files[i]->Fd(), /*merge_classes=*/ true, filter_fn)) { in ProcessProfilesInternal() 65 if (wrong_info.Load(profile_files[i]->Fd(), /*merge_classes=*/ true, filter_fn)) { in ProcessProfilesInternal() 114 if (!info.Save(reference_profile_file->Fd())) { in ProcessProfilesInternal()
|
/art/dex2oat/ |
D | dex2oat_cts_test.cc | 78 args.emplace_back("--oat-fd=" + std::to_string(oat_file->Fd())); in TEST_F() 83 args.emplace_back("--output-vdex-fd=" + std::to_string(vdex_file->Fd())); in TEST_F()
|
D | dex2oat_test.cc | 85 args.push_back("--oat-fd=" + std::to_string(oat_file->Fd())); 645 copy.push_back("--app-image-fd=" + std::to_string(app_image_file->Fd())); 752 std::string output_vdex = StringPrintf("--output-vdex-fd=%d", vdex_file1->Fd()); in RunTestVDex() 763 std::string input_vdex = StringPrintf("--input-vdex-fd=%d", vdex_file1->Fd()); in RunTestVDex() 1632 StringPrintf("--zip-fd=%d", dex_file->Fd()), in TEST_F() 1718 ASSERT_NE(-1, zip_file->Fd()); in TEST_F()
|
/art/libelffile/stream/ |
D | file_output_stream.cc | 33 return lseek(file_->Fd(), offset, static_cast<int>(whence)); in Seek()
|
/art/libdexfile/dex/ |
D | dex_file_loader.cc | 178 ZipArchive::OpenFromOwnedFd(file_->Fd(), location_.c_str(), error_msg) : in GetMultiDexChecksum() 309 if (!ReadMagicAndReset(file_->Fd(), magic, error_msg)) { in InitAndReadMagic() 325 if (fstat(file_->Fd(), &sbuf) == -1) { in MapRootContainer() 336 file_->Fd(), in MapRootContainer() 367 ZipArchive::OpenFromOwnedFd(file_->Fd(), location_.c_str(), error_msg) : in Open()
|
D | art_dex_file_loader_test.cc | 65 ASSERT_GE(file.Fd(), 0); in TEST_F() 81 ASSERT_GE(file.Fd(), 0); in TEST_F()
|
/art/dex2oat/linker/ |
D | oat_writer_test.cc | 315 off_t offset = lseek(zip_file_->Fd(), 0, SEEK_CUR); in AddFile() 343 off_t offset = lseek(zip_file_->Fd(), 0, SEEK_CUR); in Finish() 659 ASSERT_NE(-1, dex_file_fd.Fd()); in TestDexFileInput() 660 ASSERT_EQ(0, lseek(dex_file_fd.Fd(), 0, SEEK_SET)); in TestDexFileInput() 803 ASSERT_NE(-1, zip_fd.Fd()); in TestZipFileInput() 804 ASSERT_EQ(0, lseek(zip_fd.Fd(), 0, SEEK_SET)); in TestZipFileInput()
|
/art/runtime/ |
D | common_runtime_test.cc | 494 argv.push_back("--image-fd=" + std::to_string(art_file->Fd())); in CompileBootImage() 495 argv.push_back("--output-vdex-fd=" + std::to_string(vdex_file->Fd())); in CompileBootImage() 496 argv.push_back("--oat-fd=" + std::to_string(oat_file->Fd())); in CompileBootImage() 600 profile.Save(out_file->Fd()); in GenerateProfile()
|
D | native_stack_dump.cc | 162 int in = pipe->get()->in.Fd(); in Drain()
|
/art/runtime/oat/ |
D | elf_file.cc | 106 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() 1155 file->GetPath().c_str(), file->Fd(), strerror(errno)); in Load() 1245 file->Fd(), in Load() 1478 int result = ftruncate(file->Fd(), offset); in Strip() 1515 file->Fd(), in Open() 1564 file->Fd(), in Open()
|
/art/odrefresh/ |
D | odrefresh.cc | 188 if (fchmod(output_files.back()->Fd(), kFileMode) != 0) { in MoveOrEraseFiles() 478 args.Add("--profile-file-fd=%d", profile_file->Fd()); in AddDex2OatProfile() 504 bcp_fds.push_back(std::to_string(jar_file->Fd())); in AddBootClasspathFds() 520 args.Add("--cache-info-fd=%d", cache_info_file->Fd()); in AddCacheInfoFd() 561 bcp_image_fds.push_back(std::to_string(image_file->Fd())); in AddCompiledBootClasspathFdsIfAny() 573 bcp_oat_fds.push_back(std::to_string(oat_file->Fd())); in AddCompiledBootClasspathFdsIfAny() 585 bcp_vdex_fds.push_back(std::to_string(vdex_file->Fd())); in AddCompiledBootClasspathFdsIfAny() 1737 args.Add("--dex-fd=%d", file->Fd()); in RunDex2oat() 1779 args.Add(StringPrintf("--%s-fd=%d", kind, output_file->Fd())); in RunDex2oat() 1878 args.Add("--dirty-image-objects-fd=%d", file->Fd()); in RunDex2oatForBootClasspath() [all …]
|
/art/openjdkjvmti/ |
D | ti_search.cc | 282 if (file.Fd() < 0) { in AddToDexClassLoaderInMemory() 300 oss << "/proc/self/fd/" << file.Fd(); in AddToDexClassLoaderInMemory()
|
/art/compiler/jit/ |
D | jit_logger.cc | 211 int fd = jit_dump_file_->Fd(); in OpenMarkerFile()
|
/art/runtime/jit/ |
D | jit.cc | 1278 if (profile.Fd() == -1) { in CompileMethodsFromBootProfile() 1284 if (!profile_info.Load(profile.Fd(), dex_files)) { in CompileMethodsFromBootProfile() 1328 if (profile.Fd() == -1) { in CompileMethodsFromProfile() 1334 if (!profile_info.Load(profile.Fd())) { in CompileMethodsFromProfile()
|