Lines Matching refs:location
121 bool DexFile::Open(const char* filename, const char* location, std::string* error_msg, in Open() argument
130 return DexFile::OpenZip(fd.release(), location, error_msg, dex_files); in Open()
133 std::unique_ptr<const DexFile> dex_file(DexFile::OpenFile(fd.release(), location, true, in Open()
176 const DexFile* DexFile::OpenFile(int fd, const char* location, bool verify, in OpenFile() argument
178 CHECK(location != nullptr); in OpenFile()
185 *error_msg = StringPrintf("DexFile: fstat '%s' failed: %s", location, strerror(errno)); in OpenFile()
189 *error_msg = StringPrintf("Attempt to mmap directory '%s'", location); in OpenFile()
193 map.reset(MemMap::MapFile(length, PROT_READ, MAP_PRIVATE, fd, 0, location, error_msg)); in OpenFile()
202 "DexFile: failed to open dex file '%s' that is too short to have a header", location); in OpenFile()
208 const DexFile* dex_file = OpenMemory(location, dex_header->checksum_, map.release(), error_msg); in OpenFile()
210 *error_msg = StringPrintf("Failed to open dex file '%s' from memory: %s", location, in OpenFile()
215 if (verify && !DexFileVerifier::Verify(dex_file, dex_file->Begin(), dex_file->Size(), location, in OpenFile()
225 bool DexFile::OpenZip(int fd, const std::string& location, std::string* error_msg, in OpenZip() argument
227 std::unique_ptr<ZipArchive> zip_archive(ZipArchive::OpenFromFd(fd, location.c_str(), error_msg)); in OpenZip()
232 return DexFile::OpenFromZip(*zip_archive, location, error_msg, dex_files); in OpenZip()
235 const DexFile* DexFile::OpenMemory(const std::string& location, in OpenMemory() argument
241 location, in OpenMemory()
249 const std::string& location, std::string* error_msg, in Open() argument
251 CHECK(!location.empty()); in Open()
257 std::unique_ptr<MemMap> map(zip_entry->ExtractToMemMap(location.c_str(), entry_name, error_msg)); in Open()
259 *error_msg = StringPrintf("Failed to extract '%s' from '%s': %s", entry_name, location.c_str(), in Open()
264 std::unique_ptr<const DexFile> dex_file(OpenMemory(location, zip_entry->GetCrc32(), map.release(), in Open()
267 *error_msg = StringPrintf("Failed to open dex file '%s' from memory: %s", location.c_str(), in Open()
273 *error_msg = StringPrintf("Failed to make dex file '%s' read only", location.c_str()); in Open()
277 CHECK(dex_file->IsReadOnly()) << location; in Open()
279 location.c_str(), error_msg)) { in Open()
287 bool DexFile::OpenFromZip(const ZipArchive& zip_archive, const std::string& location, in OpenFromZip() argument
290 std::unique_ptr<const DexFile> dex_file(Open(zip_archive, kClassesDex, location, error_msg, in OpenFromZip()
306 std::string fake_location = location + kMultiDexSeparator + name; in OpenFromZip()
328 const std::string& location, in OpenMemory() argument
335 new DexFile(base, size, location, location_checksum, mem_map, oat_file)); in OpenMemory()
344 const std::string& location, in DexFile() argument
350 location_(location), in DexFile()
956 bool DexFile::IsMultiDexLocation(const char* location) { in IsMultiDexLocation() argument
957 return strrchr(location, kMultiDexSeparator) != nullptr; in IsMultiDexLocation()