Searched refs:ZipString (Results 1 – 11 of 11) sorted by relevance
/system/core/libziparchive/include/ziparchive/ |
D | zip_archive.h | 36 struct ZipString { struct 40 ZipString() {} in ZipString() argument 45 explicit ZipString(const char* entry_name); 47 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 167 int32_t FindEntry(const ZipArchiveHandle archive, const ZipString& entryName, ZipEntry* data); 183 const ZipString* optional_prefix, const ZipString* optional_suffix); 191 int32_t Next(void* cookie, ZipEntry* data, ZipString* name);
|
/system/core/libziparchive/ |
D | zip_archive_test.cc | 66 static void SetZipString(ZipString* zip_str, const std::string& str) { in SetZipString() 114 static void AssertIterationOrder(const ZipString* prefix, const ZipString* suffix, in AssertIterationOrder() 125 ZipString name; in AssertIterationOrder() 148 ZipString prefix("b/"); in TEST() 155 ZipString suffix(".txt"); in TEST() 163 ZipString prefix("b"); in TEST() 164 ZipString suffix(".txt"); in TEST() 175 ZipString prefix("x"); in TEST() 176 ZipString suffix("y"); in TEST() 180 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() 166 ASSERT_EQ(0, FindEntry(handle, ZipString("align.txt"), &data)); in TEST_F() 194 ASSERT_EQ(0, FindEntry(handle, ZipString("align.txt"), &data)); in TEST_F() 216 ASSERT_EQ(0, FindEntry(handle, ZipString("align.txt"), &data)); in TEST_F() 244 ASSERT_EQ(0, FindEntry(handle, ZipString("file.txt"), &data)); in TEST_F() 276 ASSERT_EQ(0, FindEntry(handle, ZipString("file.txt"), &data)); in TEST_F() [all …]
|
D | zip_archive.cc | 104 static uint32_t ComputeHash(const ZipString& name) { in ComputeHash() 122 static bool isZipStringEqual(const uint8_t* start, const ZipString& zip_string, in isZipStringEqual() 124 const ZipString from_offset = zip_string_offset.GetZipString(start); in isZipStringEqual() 143 const ZipString& name, const uint8_t* start) { in EntryToIndex() 163 const ZipString& name, const uint8_t* start) { in AddToHash() 381 archive->hash_table_size, sizeof(ZipString)); in ParseZipArchive() 431 ZipString entry_name; in ParseZipArchive() 554 const ZipString from_offset = in FindEntry() 666 const ZipString from_offset = in FindEntry() 707 ZipString prefix; [all …]
|
D | zip_archive_benchmark.cpp | 58 ZipString name("thisFileNameDoesNotExist"); in FindEntry_no_match() 74 ZipString name; in Iterate_all_files()
|
D | zip_archive_private.h | 151 const ZipString GetZipString(const uint8_t* start) const { in GetZipString() 152 ZipString zip_string; in GetZipString()
|
D | unzip.cpp | 245 ZipString string; in ProcessAll()
|
/system/apex/apexd/ |
D | apex_file.cpp | 125 ret = FindEntry(handle, ZipString(kImageFilename), &entry); in Open() 135 ret = FindEntry(handle, ZipString(kManifestFilename), &entry); in Open() 155 ret = FindEntry(handle, ZipString(kBundledPublicKeyFilename), &entry); in Open()
|
D | apex_file_test.cpp | 50 rc = FindEntry(handle, ZipString("apex_payload.img"), &entry); in TEST()
|
/system/extras/simpleperf/ |
D | utils.cpp | 114 ZipString zname; in IterateEntries() 131 int result = ::FindEntry(handle_, ZipString(name.c_str()), entry); in FindEntry()
|
/system/core/fastboot/ |
D | fastboot.cpp | 505 ZipString zip_entry_name(entry_name.c_str()); in UnzipToMemory() 617 ZipString zip_entry_name(entry_name); in unzip_to_file()
|