/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | zip_file.h | 28 struct ZipEntry; 30 using ZipEntryMap = std::map<std::string, ZipEntry>; 137 struct ZipEntry { struct 138 ZipEntry() = default; 139 explicit ZipEntry(const CentralDirEntry ¢ralEntry); 140 ~ZipEntry() = default; // for CodeDEX warning 181 * @return Returns true if the ZipEntry is successfully finded; returns false otherwise. 190 * @param resultEntry Indicates the obtained ZipEntry object. 191 * @return Returns true if the ZipEntry is successfully finded; returns false otherwise. 193 bool GetEntry(const std::string &entryName, ZipEntry [all...] |
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/ |
H A D | zip_file.h | 32 using ZipEntry = struct ZipEntry; 33 using ZipEntryMap = std::map<std::string, ZipEntry>; 126 struct ZipEntry { struct 127 ZipEntry() = default; 128 explicit ZipEntry(const CentralDirEntry ¢ralEntry); 129 ~ZipEntry() = default; 152 bool GetEntry(const std::string &entryName, ZipEntry &resultEntry) const; 161 bool CheckDataDesc(const ZipEntry &zipEntry, const LocalHeader &localHeader) const; 162 bool CheckCoherencyLocalHeader(const ZipEntry [all...] |
/foundation/ability/ability_base/interfaces/kits/native/extractortool/include/ |
H A D | zip_file.h | 33 struct ZipEntry; 35 using ZipEntryMap = std::unordered_map<std::string, ZipEntry>; 142 struct ZipEntry { struct 143 ZipEntry() = default; 144 explicit ZipEntry(const CentralDirEntry ¢ralEntry); 145 ~ZipEntry() = default; // for CodeDEX warning 193 * @return Returns true if the ZipEntry is successfully finded; returns false otherwise. 204 * @param resultEntry Indicates the obtained ZipEntry object. 205 * @return Returns true if the ZipEntry is successfully finded; returns false otherwise. 207 bool GetEntry(const std::string &entryName, ZipEntry [all...] |
/foundation/ability/ability_base/test/unittest/extractor/ |
H A D | extractor_test.cpp | 210 extractor->zipFile_.entriesMap_.emplace("a/b/c.txt", ZipEntry()); in HWTEST_F() 211 extractor->zipFile_.entriesMap_.emplace("a/c.txt", ZipEntry()); in HWTEST_F() 212 extractor->zipFile_.entriesMap_.emplace("a/b.txt", ZipEntry()); in HWTEST_F() 213 extractor->zipFile_.entriesMap_.emplace("a.txt", ZipEntry()); in HWTEST_F() 214 extractor->zipFile_.entriesMap_.emplace("b.txt", ZipEntry()); in HWTEST_F() 215 extractor->zipFile_.entriesMap_.emplace("b/c.txt", ZipEntry()); in HWTEST_F() 216 extractor->zipFile_.entriesMap_.emplace("b/c/", ZipEntry()); in HWTEST_F() 217 extractor->zipFile_.entriesMap_.emplace("c", ZipEntry()); in HWTEST_F() 267 extractor->zipFile_.entriesMap_.emplace("a/b/c.txt", ZipEntry()); in HWTEST_F() 268 extractor->zipFile_.entriesMap_.emplace("a/c.txt", ZipEntry()); in HWTEST_F() [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | zip_file.cpp | 40 ZipEntry::ZipEntry(const CentralDirEntry ¢ralEntry) in ZipEntry() function in OHOS::AppExecFwk::ZipEntry 126 APP_LOGE("parse entry(%{public}d) read ZipEntry failed, error: %{public}d", i, errno); in ParseAllEntries() 148 ZipEntry currentEntry(directoryEntry); in ParseAllEntries() 274 bool ZipFile::GetEntry(const std::string &entryName, ZipEntry &resultEntry) const in GetEntry() 292 bool ZipFile::CheckDataDesc(const ZipEntry &zipEntry, const LocalHeader &localHeader) const in CheckDataDesc() 336 bool ZipFile::CheckCoherencyLocalHeader(const ZipEntry &zipEntry, uint16_t &extraSize) const in CheckCoherencyLocalHeader() 394 bool ZipFile::SeekToEntryStart(const ZipEntry &zipEntry, const uint16_t extraSize) const in SeekToEntryStart() 416 bool ZipFile::UnzipWithStore(const ZipEntry &zipEntry, const uint16_t extraSize, std::ostream &dest) const in UnzipWithStore() 493 bool ZipFile::UnzipWithInflated(const ZipEntry [all...] |
H A D | base_extractor.cpp | 46 ZipEntry zipEntry; in Init()
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | zip_file.cpp | 50 ZipEntry::ZipEntry(const CentralDirEntry ¢ralEntry) in ZipEntry() function in OHOS::ZipEntry 129 HILOG_ERROR(HILOG_MODULE_APP, "parse entry(%{public}d) read ZipEntry failed, error: %{public}s", in ParseAllEntries() 153 ZipEntry currentEntry(directoryEntry); in ParseAllEntries() 245 bool ZipFile::GetEntry(const std::string &entryName, ZipEntry &resultEntry) const in GetEntry() 267 bool ZipFile::CheckDataDesc(const ZipEntry &zipEntry, const LocalHeader &localHeader) const in CheckDataDesc() 320 bool ZipFile::CheckCoherencyLocalHeader(const ZipEntry &zipEntry, uint16_t &extraSize) const in CheckCoherencyLocalHeader() 377 bool ZipFile::SeekToEntryStart(const ZipEntry &zipEntry, const uint16_t extraSize) const in SeekToEntryStart() 401 bool ZipFile::UnzipWithStore(const ZipEntry &zipEntry, const uint16_t extraSize, std::ostream &dest) const in UnzipWithStore() 476 bool ZipFile::UnzipWithInflated(const ZipEntry [all...] |
/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/ |
H A D | zip_file.cpp | 101 ZipEntry::ZipEntry(const CentralDirEntry ¢ralEntry) in ZipEntry() function in OHOS::AbilityBase::ZipEntry 186 ZipEntry currentEntry(directoryEntry); in ParseOneEntry() 595 bool ZipFile::GetEntry(const std::string &entryName, ZipEntry &resultEntry) const in GetEntry() 610 bool ZipFile::CheckDataDesc(const ZipEntry &zipEntry, const LocalHeader &localHeader) const in CheckDataDesc() 649 bool ZipFile::CheckCoherencyLocalHeader(const ZipEntry &zipEntry, uint16_t &extraSize) const in CheckCoherencyLocalHeader() 696 size_t ZipFile::GetEntryStart(const ZipEntry &zipEntry, const uint16_t extraSize) const in GetEntryStart() 737 ZipPos ZipFile::GetEntryDataOffset(const ZipEntry &zipEntry, const uint16_t extraSize) const in GetEntryDataOffset() 748 bool ZipFile::GetDataOffsetRelative(const ZipEntry &zipEntry, ZipPos &offset, uint32_t &length) const in GetDataOffsetRelative() 764 ZipEntry zipEntr in ExtractFileFromMMap() [all...] |
H A D | extractor.cpp | 196 ZipEntry zipEntry; in GetFileInfo() 240 ZipEntry zipEntry; in IsHapCompress()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_quick_fix_test/ |
H A D | bms_bundle_quick_fix_test.cpp | 5024 ZipEntry zipEntry; in HWTEST_F() 5045 ZipEntry zipEntry; in HWTEST_F() 5066 ZipEntry zipEntry; in HWTEST_F() 5087 ZipEntry zipEntry; in HWTEST_F()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_installer_test/ |
H A D | bms_bundle_installer_test.cpp | 2716 ZipEntry zipEntry; in HWTEST_F() 2731 ZipEntry zipEntry; in HWTEST_F() 2774 ZipEntry resultEntry; in HWTEST_F() 2846 ZipEntry zipEntry; in HWTEST_F() 2861 ZipEntry zipEntry; in HWTEST_F()
|