Searched refs:ZipString (Results 1 – 9 of 9) sorted by relevance
/system/core/include/ziparchive/ |
D | zip_archive.h | 37 struct ZipString { struct 41 ZipString() {} in ZipString() argument 46 explicit ZipString(const char* entry_name) in ZipString() function 49 bool operator==(const ZipString& rhs) const { 54 bool StartsWith(const ZipString& prefix) const { in StartsWith() argument 59 bool EndsWith(const ZipString& suffix) const { in EndsWith() argument 159 int32_t FindEntry(const ZipArchiveHandle handle, const ZipString& entryName, 176 const ZipString* optional_prefix, 177 const ZipString* optional_suffix); 185 int32_t Next(void* cookie, ZipEntry* data, ZipString* name);
|
/system/core/libziparchive/ |
D | zip_archive_test.cc | 70 const ZipString& name) { in AssertNameEquals() 75 static void SetZipString(ZipString* zip_str, const std::string& str) { in SetZipString() 123 ZipString name; in TEST() 156 ZipString prefix("b/"); in TEST() 160 ZipString name; in TEST() 185 ZipString suffix(".txt"); in TEST() 189 ZipString name; in TEST() 218 ZipString prefix("b"); in TEST() 219 ZipString suffix(".txt"); in TEST() 223 ZipString name; in TEST() [all …]
|
D | zip_writer_test.cc | 61 ASSERT_EQ(0, FindEntry(handle, ZipString("file.txt"), &data)); in TEST_F() 100 ASSERT_EQ(0, FindEntry(handle, ZipString("file.txt"), &data)); in TEST_F() 109 ASSERT_EQ(0, FindEntry(handle, ZipString("file/file.txt"), &data)); in TEST_F() 118 ASSERT_EQ(0, FindEntry(handle, ZipString("file/file2.txt"), &data)); in TEST_F() 140 ASSERT_EQ(0, FindEntry(handle, ZipString("align.txt"), &data)); in TEST_F() 185 ASSERT_EQ(0, FindEntry(handle, ZipString("align.txt"), &data)); in TEST_F() 214 ASSERT_EQ(0, FindEntry(handle, ZipString("align.txt"), &data)); in TEST_F() 236 ASSERT_EQ(0, FindEntry(handle, ZipString("align.txt"), &data)); in TEST_F() 265 ASSERT_EQ(0, FindEntry(handle, ZipString("file.txt"), &data)); in TEST_F() 303 ASSERT_EQ(0, FindEntry(handle, ZipString("file.txt"), &data)); in TEST_F()
|
D | zip_archive.cc | 156 static uint32_t ComputeHash(const ZipString& name) { in ComputeHash() 172 static int64_t EntryToIndex(const ZipString* hash_table, in EntryToIndex() 174 const ZipString& name) { in EntryToIndex() 194 static int32_t AddToHash(ZipString *hash_table, const uint64_t hash_table_size, in AddToHash() 195 const ZipString& name) { in AddToHash() 374 archive->hash_table = reinterpret_cast<ZipString*>(calloc(archive->hash_table_size, in ParseZipArchive() 375 sizeof(ZipString))); in ParseZipArchive() 414 ZipString entry_name; in ParseZipArchive() 648 ZipString prefix; 649 ZipString suffix; [all …]
|
D | zip_archive_private.h | 44 ZipString* hash_table;
|
/system/extras/simpleperf/ |
D | read_apk.cpp | 76 ZipString zname; in FindElfInApkByOffsetWithoutCache() 127 int32_t rc = FindEntry(handle, ZipString(elf_filename.c_str()), &zentry); in FindElfInApkByName()
|
D | gtest_main.cpp | 68 ZipString name; in ExtractTestDataFromElfSection()
|
/system/core/fastboot/ |
D | fastboot.cpp | 485 ZipString zip_entry_name(entry_name); in unzip_file() 599 ZipString zip_entry_name(entry_name); in unzip_to_file()
|
/system/core/libbacktrace/ |
D | BacktraceOffline.cpp | 700 ret_code = FindEntry(handle, ZipString(elf_file.c_str()), &zentry); in OpenEmbeddedElfFile()
|