Searched refs:Open (Results 1 - 25 of 38) sorted by relevance

12

/art/runtime/base/unix_file/
H A Dfd_file_test.cc2 * Copyright (C) 2009 The Android Open Source Project
53 ASSERT_TRUE(file.Open(good_path, O_CREAT | O_WRONLY));
60 EXPECT_TRUE(file.Open(good_path, O_RDONLY));
72 ASSERT_TRUE(file.Open(tmp.GetFilename(), O_RDONLY));
88 ASSERT_TRUE(file.Open(tmp.GetFilename(), O_RDWR));
H A Dfd_file.h2 * Copyright (C) 2009 The Android Open Source Project
49 bool Open(const std::string& file_path, int flags);
50 bool Open(const std::string& file_path, int flags, mode_t mode);
H A Dfd_file.cc2 * Copyright (C) 2009 The Android Open Source Project
86 bool FdFile::Open(const std::string& path, int flags) { function in class:unix_file::FdFile
87 return Open(path, flags, 0640);
90 bool FdFile::Open(const std::string& path, int flags, mode_t mode) { function in class:unix_file::FdFile
/art/compiler/
H A Delf_writer.cc2 * Copyright (C) 2012 The Android Open Source Project
45 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(file, false, false, &error_msg));
57 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(file, true, false, &error_msg));
H A Delf_writer_test.cc2 * Copyright (C) 2011 The Android Open Source Project
66 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), false, false, &error_msg));
74 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), false, false, &error_msg));
82 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), false, true, &error_msg));
H A Doat_test.cc2 * Copyright (C) 2011 The Android Open Source Project
125 std::unique_ptr<OatFile> oat_file(OatFile::Open(tmp.GetFilename(), tmp.GetFilename(), nullptr,
/art/runtime/
H A Delf_file.h2 * Copyright (C) 2012 The Android Open Source Project
41 static ElfFile* Open(File* file, bool writable, bool program_header_only, std::string* error_msg,
43 // Open with specific mmap flags, Always maps in the whole file, not just the
45 static ElfFile* Open(File* file, int mmap_prot, int mmap_flags, std::string* error_msg);
H A Dos_linux.cc2 * Copyright (C) 2010 The Android Open Source Project
45 if (!file->Open(name, flags, 0666)) {
H A Dzip_archive.h2 * Copyright (C) 2008 The Android Open Source Project
61 static ZipArchive* Open(const char* filename, std::string* error_msg);
H A Dzip_archive_test.cc2 * Copyright (C) 2011 The Android Open Source Project
35 std::unique_ptr<ZipArchive> zip_archive(ZipArchive::Open(GetLibCoreDexFileName().c_str(), &error_msg));
H A Dzip_archive.cc2 * Copyright (C) 2008 The Android Open Source Project
91 ZipArchive* ZipArchive::Open(const char* filename, std::string* error_msg) { function in class:art::ZipArchive
H A Ddex_file_verifier_test.cc2 * Copyright (C) 2011 The Android Open Source Project
127 bool success = DexFile::Open(location, location, error_msg, &tmp);
193 if (!DexFile::Open(location, location, error_msg, &tmp)) {
H A Delf_file_impl.h2 * Copyright (C) 2012 The Android Open Source Project
51 static ElfFileImpl* Open(File* file, bool writable, bool program_header_only,
53 static ElfFileImpl* Open(File* file, int mmap_prot, int mmap_flags, std::string* error_msg);
H A Delf_file.cc2 * Copyright (C) 2012 The Android Open Source Project
140 ElfFileImpl<ElfTypes>* ElfFileImpl<ElfTypes>::Open( function in class:art::ElfFileImpl
161 ElfFileImpl<ElfTypes>* ElfFileImpl<ElfTypes>::Open( function in class:art::ElfFileImpl
453 // We'd also like to confirm a shstrtab in program_header_only_ mode (else Open() does this for
473 // MemMap::Open should have already set an error.
817 // TODO: we need to change this to calculate base_address_ in ::Open,
1208 // TODO: base_address_ needs to be calculated in ::Open, otherwise
1463 Open(const_cast<File*>(file_), PROT_READ | PROT_WRITE, MAP_PRIVATE, &error_msg));
1771 ElfFile* ElfFile::Open(File* file, bool writable, bool program_header_only, std::string* error_msg, function in class:art::ElfFile
1785 ElfFileImpl64* elf_file_impl = ElfFileImpl64::Open(fil
1806 ElfFile* ElfFile::Open(File* file, int mmap_prot, int mmap_flags, std::string* error_msg) { function in class:art::ElfFile
[all...]
H A Ddex_file_test.cc2 * Copyright (C) 2011 The Android Open Source Project
33 TEST_F(DexFileTest, Open) {
159 bool success = DexFile::Open(location, location, &error_msg, &tmp);
H A Dcommon_runtime_test.cc2 * Copyright (C) 2012 The Android Open Source Project
283 if (!DexFile::Open(location, location, &error_msg, &dex_files)) {
461 bool success = DexFile::Open(filename.c_str(), filename.c_str(), &error_msg, &dex_files);
H A Ddex_file.cc2 * Copyright (C) 2011 The Android Open Source Project
130 bool DexFile::Open(const char* filename, const char* location, std::string* error_msg, function in class:art::DexFile
132 DCHECK(dex_files != nullptr) << "DexFile::Open: out-param is nullptr";
285 std::unique_ptr<const DexFile> DexFile::Open(const ZipArchive& zip_archive, const char* entry_name, function in class:art::DexFile
335 std::unique_ptr<const DexFile> dex_file(Open(zip_archive, kClassesDex, location, error_msg,
351 std::unique_ptr<const DexFile> next_dex_file(Open(zip_archive, name.c_str(), fake_location,
H A Doat_file.h2 * Copyright (C) 2011 The Android Open Source Project
51 // Open an oat file. Returns null on failure. Requested base can
55 static OatFile* Open(const std::string& filename,
63 // Open an oat file from an already opened File.
H A Ddex_file.h2 * Copyright (C) 2011 The Android Open Source Project
388 static bool Open(const char* filename, const char* location, std::string* error_msg,
392 // If this function returns false, Open will not succeed. The inverse is not true, however.
396 static std::unique_ptr<const DexFile> Open(const uint8_t* base, size_t size, function in class:art::DexFile
404 // Open all classesXXX.dex files from a zip archive.
942 static std::unique_ptr<const DexFile> Open(const ZipArchive& zip_archive, const char* entry_name,
H A Doat_file.cc2 * Copyright (C) 2011 The Android Open Source Project
51 // Whether OatFile::Open will try DlOpen() first. Fallback is our own ELF loader.
54 // Whether OatFile::Open will try DlOpen() on the host. On the host we're not linking against
60 // For debugging, Open will print DlOpen error message if set to true.
102 OatFile* OatFile::Open(const std::string& filename, function in class:art::OatFile
330 elf_file_.reset(ElfFile::Open(file, writable, /*program_header_only*/true, error_msg,
620 return DexFile::Open(dex_file_pointer_, FileSize(), dex_file_location_,
H A Doat_file_assistant.cc2 * Copyright (C) 2014 The Android Open Source Project
864 cached_odex_file_.reset(OatFile::Open(odex_file_name.c_str(),
890 cached_oat_file_.reset(OatFile::Open(oat_file_name.c_str(),
/art/runtime/mirror/
H A Ddex_cache_test.cc2 * Copyright (C) 2011 The Android Open Source Project
34 TEST_F(DexCacheTest, Open) {
/art/runtime/native/
H A Djava_lang_VMClassLoader.cc2 * Copyright (C) 2008 The Android Open Source Project
93 std::unique_ptr<ZipArchive> zip_archive(ZipArchive::Open(location.c_str(), &error_msg));
/art/dex2oat/
H A Ddex2oat.cc2 * Copyright (C) 2011 The Android Open Source Project
1638 if (!DexFile::Open(dex_filename, dex_location, &error_msg, dex_files)) {
1678 if (!DexFile::Open(parsed[i].c_str(), parsed[i].c_str(), &error_msg, opened_dex_files)) {
1789 std::unique_ptr<ZipArchive> zip_archive(ZipArchive::Open(zip_filename, error_msg));
/art/compiler/utils/
H A Dtest_dex_file_builder.h2 * Copyright (C) 2015 The Android Open Source Project
216 std::unique_ptr<const DexFile> dex_file(DexFile::Open(

Completed in 312 milliseconds

12