Home
last modified time | relevance | path

Searched refs:file_ (Results 1 – 13 of 13) sorted by relevance

/art/libelffile/stream/
Dfile_output_stream.cc26 FileOutputStream::FileOutputStream(File* file) : OutputStream(file->GetPath()), file_(file) {} in FileOutputStream()
29 return file_->WriteFully(buffer, byte_count); in WriteFully()
33 return lseek(file_->Fd(), offset, static_cast<int>(whence)); in Seek()
37 return file_->Flush() == 0; in Flush()
Dfile_output_stream.h39 File* const file_;
/art/libelffile/elf/
Delf_debug_reader.h63 explicit ElfDebugReader(ArrayRef<const uint8_t> file) : file_(file) { in ElfDebugReader()
180 DCHECK_LE(offset + sizeof(T), file_.size()); in Read()
181 return reinterpret_cast<const T*>(file_.data() + offset); in Read()
186 DCHECK_LE(offset + count * sizeof(T), file_.size()); in Read()
190 ArrayRef<const uint8_t> const file_; variable
/art/libdexfile/dex/
Ddex_file_loader.cc177 file_->IsValid() ? in GetMultiDexChecksum()
178 ZipArchive::OpenFromOwnedFd(file_->Fd(), location_.c_str(), error_msg) : in GetMultiDexChecksum()
299 if (!file_->IsValid()) { in InitAndReadMagic()
306 file_ = &owned_file_.value(); in InitAndReadMagic()
309 if (!ReadMagicAndReset(file_->Fd(), magic, error_msg)) { in InitAndReadMagic()
322 CHECK(file_->IsValid()); in MapRootContainer()
325 if (fstat(file_->Fd(), &sbuf) == -1) { in MapRootContainer()
336 file_->Fd(), in MapRootContainer()
366 file_->IsValid() ? in Open()
367 ZipArchive::OpenFromOwnedFd(file_->Fd(), location_.c_str(), error_msg) : in Open()
[all …]
Ddex_file_loader.h164 : filename_(filename), file_(file), location_(location) { in DexFileLoader()
327 const File* file_ = &kInvalidFile; variable
/art/tools/jvmti-agents/breakpoint-logger/
Dbreakpoint_logger.cc111 file_(nullptr), in ScopedClassInfo()
118 jvmti_env_->Deallocate(reinterpret_cast<unsigned char*>(file_)); in ~ScopedClassInfo()
129 jvmtiError ret1 = jvmti_env_->GetSourceFileName(class_, &file_); in Init()
157 if (file_ == nullptr) { in GetSourceFileName()
160 return file_; in GetSourceFileName()
169 char* file_; member in breakpoint_logger::ScopedClassInfo
/art/libartbase/base/
Dcommon_art_test.cc87 file_.reset(new File(fd, GetFilename(), true)); in ScratchFile()
96 file_.reset(new File(fd, GetFilename(), true)); in ScratchFile()
102 file_.reset(file); in ScratchFile()
112 std::swap(file_, other.file_); in operator =()
122 return file_->Fd(); in GetFd()
126 if (file_ != nullptr) { in Close()
127 if (file_->FlushCloseOrErase() != 0) { in Close()
130 file_.reset(); in Close()
Dcommon_art_test.h85 return file_.get(); in GetFile()
95 std::unique_ptr<File> file_; variable
/art/tools/jvmti-agents/ti-alloc-sample/
Dti_alloc_sample.cc92 jvmtienv_->Deallocate(reinterpret_cast<unsigned char*>(file_)); in ~ScopedClassInfo()
103 jvmtiError ret1 = jvmtienv_->GetSourceFileName(class_, &file_); in Init()
138 if (file_ == nullptr) { in GetSourceFileName()
141 return file_; in GetSourceFileName()
150 char* file_ = nullptr; member in tifast::__anon9d4dc8ac0111::ScopedClassInfo
/art/runtime/oat/
Doat_file_assistant.cc1043 return file_.get(); in GetFile()
1087 file_.reset(OatFile::OpenFromVdex(zip_fd_, in GetFile()
1100 file_.reset(OatFile::OpenFromVdex(zip_fd_, in GetFile()
1116 file_.reset(OatFile::Open(zip_fd_, in GetFile()
1128 file_.reset(OatFile::Open(/*zip_fd=*/-1, in GetFile()
1137 if (file_.get() == nullptr) { in GetFile()
1142 return file_.get(); in GetFile()
1243 file_.reset(); in Reset()
1260 return std::move(file_); in ReleaseFile()
Doat_file_assistant.h468 std::unique_ptr<OatFile> file_; variable
/art/test/ti-stress/
Dstress.cc159 file_(nullptr), in ScopedClassInfo()
165 jvmtienv_->Deallocate(reinterpret_cast<unsigned char*>(file_)); in ~ScopedClassInfo()
175 jvmtiError ret1 = jvmtienv_->GetSourceFileName(class_, &file_); in Init()
199 if (file_ == nullptr) { in GetSourceFileName()
202 return file_; in GetSourceFileName()
210 char* file_; member in art::ScopedClassInfo
/art/tools/jvmti-agents/ti-fast/
Dtifast.cc170 jvmtienv_->Deallocate(reinterpret_cast<unsigned char*>(file_)); in ~ScopedClassInfo()
181 jvmtiError ret1 = jvmtienv_->GetSourceFileName(class_, &file_); in Init()
216 if (file_ == nullptr) { in GetSourceFileName()
219 return file_; in GetSourceFileName()
228 char* file_ = nullptr; member in tifast::__anon4fd488430111::ScopedClassInfo