Searched refs:ZipString (Results 1 – 9 of 9) sorted by relevance
/system/core/include/ziparchive/ |
D | zip_archive.h | 35 struct ZipString { struct 39 ZipString() {} in ZipString() argument 44 explicit ZipString(const char* entry_name); 46 bool operator==(const ZipString& rhs) const { 51 bool StartsWith(const ZipString& prefix) const { in StartsWith() argument 56 bool EndsWith(const ZipString& suffix) const { in EndsWith() argument 158 int32_t FindEntry(const ZipArchiveHandle handle, const ZipString& entryName, 175 const ZipString* optional_prefix, 176 const ZipString* optional_suffix); 184 int32_t Next(void* cookie, ZipEntry* data, ZipString* name);
|
/system/core/libziparchive/ |
D | zip_archive_test.cc | 75 const ZipString& name) { in AssertNameEquals() 80 static void SetZipString(ZipString* zip_str, const std::string& str) { in SetZipString() 136 ZipString name; in TEST() 169 ZipString prefix("b/"); in TEST() 173 ZipString name; in TEST() 198 ZipString suffix(".txt"); in TEST() 202 ZipString name; in TEST() 231 ZipString prefix("b"); in TEST() 232 ZipString suffix(".txt"); in TEST() 236 ZipString name; in TEST() [all …]
|
D | zip_writer_test.cc | 65 ASSERT_EQ(0, FindEntry(handle, ZipString("file.txt"), &data)); in TEST_F() 98 ASSERT_EQ(0, FindEntry(handle, ZipString("file.txt"), &data)); in TEST_F() 104 ASSERT_EQ(0, FindEntry(handle, ZipString("file/file.txt"), &data)); in TEST_F() 110 ASSERT_EQ(0, FindEntry(handle, ZipString("file/file2.txt"), &data)); in TEST_F() 132 ASSERT_EQ(0, FindEntry(handle, ZipString("align.txt"), &data)); in TEST_F() 177 ASSERT_EQ(0, FindEntry(handle, ZipString("align.txt"), &data)); in TEST_F() 206 ASSERT_EQ(0, FindEntry(handle, ZipString("align.txt"), &data)); in TEST_F() 228 ASSERT_EQ(0, FindEntry(handle, ZipString("align.txt"), &data)); in TEST_F() 257 ASSERT_EQ(0, FindEntry(handle, ZipString("file.txt"), &data)); in TEST_F() 289 ASSERT_EQ(0, FindEntry(handle, ZipString("file.txt"), &data)); in TEST_F() [all …]
|
D | zip_archive.cc | 159 static uint32_t ComputeHash(const ZipString& name) { in ComputeHash() 175 static int64_t EntryToIndex(const ZipString* hash_table, in EntryToIndex() 177 const ZipString& name) { in EntryToIndex() 197 static int32_t AddToHash(ZipString *hash_table, const uint64_t hash_table_size, in AddToHash() 198 const ZipString& name) { in AddToHash() 374 archive->hash_table = reinterpret_cast<ZipString*>(calloc(archive->hash_table_size, in ParseZipArchive() 375 sizeof(ZipString))); in ParseZipArchive() 378 archive->hash_table_size, sizeof(ZipString)); in ParseZipArchive() 427 ZipString entry_name; in ParseZipArchive() 658 ZipString prefix; [all …]
|
D | zip_archive_private.h | 110 ZipString* hash_table;
|
/system/extras/simpleperf/ |
D | read_apk.cpp | 76 ZipString zname; in FindElfInApkByOffsetWithoutCache() 128 int32_t rc = FindEntry(handle, ZipString(elf_filename.c_str()), &zentry); in FindElfInApkByName()
|
D | gtest_main.cpp | 72 ZipString name; in ExtractTestDataFromElfSection()
|
/system/core/fastboot/ |
D | fastboot.cpp | 488 ZipString zip_entry_name(entry_name); in unzip_file() 602 ZipString zip_entry_name(entry_name); in unzip_to_file()
|
/system/core/libbacktrace/ |
D | BacktraceOffline.cpp | 825 ret_code = FindEntry(handle, ZipString(elf_file.c_str()), &zentry); in OpenEmbeddedElfFile()
|