Home
last modified time | relevance | path

Searched refs:PKG_SUCCESS (Results 1 – 25 of 38) sorted by relevance

12

/base/update/updater/test/unittest/script/
Dscript_unittest.h28 return PKG_SUCCESS; in CreatePackage()
33 return PKG_SUCCESS; in CreatePackage()
38 return PKG_SUCCESS; in CreatePackage()
43 return PKG_SUCCESS; in VerifyPackage()
48 return PKG_SUCCESS; in LoadPackage()
52 return PKG_SUCCESS; in VerifyOtaPackage()
57 return PKG_SUCCESS; in VerifyBinFile()
65 return PKG_SUCCESS; in ExtractFile()
74 return PKG_SUCCESS; in CreatePkgStream()
79 return PKG_SUCCESS; in CreatePkgStream()
[all …]
/base/update/updater/services/package/pkg_algorithm/
Dpkg_algo_digest.cpp48 return PKG_SUCCESS; in Init()
58 return PKG_SUCCESS; in Update()
72 return PKG_SUCCESS; in Final()
88 return PKG_SUCCESS; in Calculate()
94 return PKG_SUCCESS; in Init()
104 return PKG_SUCCESS; in Update()
114 return PKG_SUCCESS; in Final()
130 return PKG_SUCCESS; in Calculate()
136 return PKG_SUCCESS; in Init()
146 return PKG_SUCCESS; in Update()
[all …]
Dpkg_algorithm.cpp32 if (ret != PKG_SUCCESS) { in ReadData()
39 return PKG_SUCCESS; in ReadData()
56 return PKG_SUCCESS; in FinalDigest()
70 int32_t ret = PKG_SUCCESS; in Pack()
77 if (ret != PKG_SUCCESS) { in Pack()
83 if (ret != PKG_SUCCESS) { in Pack()
116 int32_t ret = PKG_SUCCESS; in Unpack()
123 if (ret != PKG_SUCCESS) { in Unpack()
129 if (ret != PKG_SUCCESS) { in Unpack()
Dpkg_algo_deflate.cpp40 if (ret1 != PKG_SUCCESS) { in DeflateData()
52 return PKG_SUCCESS; in DeflateData()
66 PKG_CHECK(ret == PKG_SUCCESS, return ret, "fail InitStream "); in Pack()
77 PKG_CHECK(ret == PKG_SUCCESS, break, "Read data fail!"); in Pack()
85 PKG_CHECK(ret == PKG_SUCCESS, break, "error write data deflateLen: %zu", destOffset); in Pack()
88 PKG_CHECK(ret == PKG_SUCCESS, return ret, "error write data"); in Pack()
103 PKG_CHECK(ret == PKG_SUCCESS, return ret, "fail InitStream "); in UnpackCalculate()
116 PKG_CHECK(ret == PKG_SUCCESS, break, "Read data fail!"); in UnpackCalculate()
128 PKG_CHECK(ret == PKG_SUCCESS, break, "write data is fail!"); in UnpackCalculate()
146 return (ret == Z_STREAM_END) ? PKG_SUCCESS : ret; in UnpackCalculate()
[all …]
Dpkg_algo_lz4.cpp82 PKG_CHECK(ret == PKG_SUCCESS, return ret, "Fail write data "); in Pack()
87 PKG_CHECK(ret == PKG_SUCCESS, break, "Fail read data "); in Pack()
98 PKG_CHECK(ret == PKG_SUCCESS, break, "Fail write data "); in Pack()
107 return PKG_SUCCESS; in Pack()
131 PKG_CHECK(ret == PKG_SUCCESS, break, "Fail read data "); in Unpack()
143 PKG_CHECK(ret == PKG_SUCCESS, break, "Fail read data "); in Unpack()
152 PKG_CHECK(ret == PKG_SUCCESS, break, "Fail write data "); in Unpack()
158 return PKG_SUCCESS; in Unpack()
193 return PKG_SUCCESS; in GetPackParam()
206 PKG_CHECK(ret == PKG_SUCCESS, return PKG_NONE_MEMORY, "Fail to get param for pack"); in Pack()
[all …]
Dpkg_algo_digest.h45 return PKG_SUCCESS; in Update()
51 return PKG_SUCCESS; in Final()
58 return PKG_SUCCESS; in Calculate()
/base/update/updater/services/package/pkg_verify/
Dpkg_verify_util.cpp39 if (GetSignature(pkgStream, signatureSize, signature) != PKG_SUCCESS) { in VerifyPackageSign()
52 if (ret != PKG_SUCCESS) { in VerifyPackageSign()
66 if (ret != PKG_SUCCESS || signatureSize < PKG_FOOTER_SIZE) { in GetSignature()
75 if (ret != PKG_SUCCESS) { in GetSignature()
81 return PKG_SUCCESS; in GetSignature()
89 if (ret != PKG_SUCCESS) { in ParsePackage()
94 return PKG_SUCCESS; in ParsePackage()
118 if (ret != PKG_SUCCESS) { in HashCheck()
128 return PKG_SUCCESS; in HashCheck()
Dzip_pkg_parse.cpp64 PKG_CHECK(ret == PKG_SUCCESS, UPDATER_LAST_WORD(ret); in ParseZipPkg()
70 if (ret != PKG_SUCCESS) { in ParseZipPkg()
83 PKG_CHECK(ret == PKG_SUCCESS, UPDATER_LAST_WORD(PKG_INVALID_PKG_FORMAT); in ParseZipPkg()
87 PKG_CHECK(ret == PKG_SUCCESS, UPDATER_LAST_WORD(PKG_INVALID_PKG_FORMAT); in ParseZipPkg()
95 return PKG_SUCCESS; in ParseZipPkg()
130 return PKG_SUCCESS; in ParsePkgFooter()
167 return PKG_SUCCESS; in CheckZipEocd()
/base/update/updater/services/package/pkg_package/
Dpkg_lz4file.cpp25 if (ret != PKG_SUCCESS) { in Init()
36 return PKG_SUCCESS; in Init()
44 return PKG_SUCCESS; in EncodeHeader()
66 if (ret != PKG_SUCCESS) { in Pack()
74 return PKG_SUCCESS; in Pack()
96 if (ret != PKG_SUCCESS) { in Unpack()
106 return PKG_SUCCESS; in Unpack()
126 return PKG_SUCCESS; in DecodeHeader()
147 if (ret != PKG_SUCCESS) { in AddEntry()
154 if (ret != PKG_SUCCESS) { in AddEntry()
[all …]
Dpkg_zipfile.cpp53 int32_t ret = PKG_SUCCESS; in AddEntry()
63 if (ret != PKG_SUCCESS) { in AddEntry()
69 if (ret != PKG_SUCCESS) { in AddEntry()
74 return PKG_SUCCESS; in AddEntry()
84 int32_t ret = PKG_SUCCESS; in SavePackage()
108 if (ret != PKG_SUCCESS) { in SavePackage()
114 return PKG_SUCCESS; in SavePackage()
145 if (ret != PKG_SUCCESS || signature != 0x07064b50) { in LoadPackage()
151 if (ret == PKG_SUCCESS && signature == 0x06064b50) { in LoadPackage()
184 …PKG_CHECK(ret == PKG_SUCCESS, return ret, "read EOCD struct failed %s", pkgStream_->GetFileName().… in LoadPackage()
[all …]
Dpkg_upgradefile.cpp51 if (ret != PKG_SUCCESS) { in Init()
68 return PKG_SUCCESS; in Init()
98 PKG_CHECK(ret == PKG_SUCCESS, return ret, "Fail init entry for %s", file->identity.c_str()); in AddEntry()
105 PKG_CHECK(ret == PKG_SUCCESS, return ret, "Fail Pack for %s", file->identity.c_str()); in AddEntry()
110 PKG_CHECK(ret == PKG_SUCCESS, return ret, "Fail encode header for %s", file->identity.c_str()); in AddEntry()
113 return PKG_SUCCESS; in AddEntry()
157 PKG_CHECK(ret == PKG_SUCCESS, return ret, "Fail write upgrade file header for %s ret: %d", in SavePackage()
167 PKG_CHECK(ret == PKG_SUCCESS, return ret, "Fail write descriptPackageId"); in SavePackage()
169 …PKG_CHECK(ret == PKG_SUCCESS, return ret, "Fail write sign for %s", pkgStream_->GetFileName().c_st… in SavePackage()
172 return PKG_SUCCESS; in SavePackage()
[all …]
Dpkg_gzipfile.cpp107 …PKG_CHECK(ret == PKG_SUCCESS, return ret, "Fail write header for %s", fileInfo_.fileInfo.identity.… in EncodeHeader()
109 return PKG_SUCCESS; in EncodeHeader()
131 if (ret != PKG_SUCCESS) { in Pack()
147 if (ret != PKG_SUCCESS) { in Pack()
154 return PKG_SUCCESS; in Pack()
175 …PKG_CHECK(ret == PKG_SUCCESS, return ret, "Fail Decompress for %s", fileInfo_.fileInfo.identity.c_… in Unpack()
182 …PKG_CHECK(ret == PKG_SUCCESS, return ret, "Fail to read file %s", inStream->GetFileName().c_str()); in Unpack()
193 return PKG_SUCCESS; in Unpack()
254 if (ret != PKG_SUCCESS) { in DecodeHeader()
263 return PKG_SUCCESS; in DecodeHeader()
[all …]
Dpackages_info.cpp98 if (ret != PKG_SUCCESS) { in GetOTAVersion()
105 if (ret != PKG_SUCCESS) { in GetOTAVersion()
133 if (outStream == nullptr || ret != PKG_SUCCESS) { in GetBoardID()
138 if (ret != PKG_SUCCESS) { in GetBoardID()
144 if (ret != PKG_SUCCESS) { in GetBoardID()
Dpkg_pkgfile.cpp117 return PKG_SUCCESS; in ConvertBufferToString()
130 return PKG_SUCCESS; in ConvertStringToBuffer()
164 return PKG_SUCCESS; in Init()
175 if (ret != PKG_SUCCESS) { in AddSignData()
/base/update/updater/services/package/pkg_manager/
Dpkg_managerImpl.cpp106 if (ret != PKG_SUCCESS) { in CreatePackage()
128 if (ret != PKG_SUCCESS) { in CreatePackage()
151 if (ret != PKG_SUCCESS) { in CreatePackage()
176 if (ret != PKG_SUCCESS) { in CreatePackage()
192 if (ret != PKG_SUCCESS) { in CreatePackage()
197 if (ret != PKG_SUCCESS) { in CreatePackage()
204 if (ret != PKG_SUCCESS) { in CreatePackage()
211 if (ret != PKG_SUCCESS) { in CreatePackage()
246 if (ret != PKG_SUCCESS) { in LoadPackageWithoutUnPack()
251 return PKG_SUCCESS; in LoadPackageWithoutUnPack()
[all …]
Dpkg_stream.cpp94 return PKG_SUCCESS; in Read()
117 return PKG_SUCCESS; in Write()
180 return PKG_SUCCESS; in Flush()
216 return PKG_SUCCESS; in Read()
237 if (ret != PKG_SUCCESS) { in Write()
242 return PKG_SUCCESS; in Write()
275 return PKG_SUCCESS; in Seek()
Dpkg_stream.h40 return PKG_SUCCESS; in Read()
47 return PKG_SUCCESS; in GetBuffer()
140 return PKG_SUCCESS; in Flush()
147 return PKG_SUCCESS; in GetBuffer()
189 return PKG_SUCCESS; in Seek()
/base/update/updater/test/unittest/test_data/applypatch/
DTestDecompressGzip.new.gz
/base/update/updater/interfaces/kits/packages/
Dpackage.cpp74 return PKG_SUCCESS; in GetUpgradePkgInfo()
94 return PKG_SUCCESS; in GetZipPkgInfo()
118 return PKG_SUCCESS; in GetLz4PkgInfo()
133 int32_t ret = PKG_SUCCESS; in CreatePackage()
139 if (ret == PKG_SUCCESS) { in CreatePackage()
149 if (ret == PKG_SUCCESS) { in CreatePackage()
158 if (ret == PKG_SUCCESS) { in CreatePackage()
218 if (ret != PKG_SUCCESS) { in ExtraPackageDir()
239 return PKG_SUCCESS; in ExtraPackageDir()
253 if (ret != PKG_SUCCESS) { in ExtraPackageFile()
[all …]
/base/update/updater/test/unittest/package/
Dpkg_verify_unittest.cpp69 EXPECT_EQ(ret, PKG_SUCCESS); in TestExtraPackageFile()
88 EXPECT_EQ(ret, PKG_SUCCESS); in TestExtraPackageDir()
184 EXPECT_NE(ret, PKG_SUCCESS); in TestPkgVerifyFailed()
188 EXPECT_NE(ret, PKG_SUCCESS); in TestPkgVerifyFailed()
190 EXPECT_NE(ret, PKG_SUCCESS); in TestPkgVerifyFailed()
Dpackage_unittest.cpp109 EXPECT_EQ(ret, PKG_SUCCESS); in TestPackagePack()
122 EXPECT_EQ(ret, PKG_SUCCESS); in TestPackagePack()
143 EXPECT_EQ(ret, PKG_SUCCESS); in TestPackageUnpack()
149 return PKG_SUCCESS; in TestPackageUnpack()
164 EXPECT_EQ(ret, PKG_SUCCESS); in TestZipPkgDecompress()
176 EXPECT_EQ(ret, PKG_SUCCESS); in TestGZipPkgCompress()
234 EXPECT_EQ(ret, PKG_SUCCESS); in TestLz4PkgCompress()
/base/update/updater/test/unittest/updater_binary/
Dupdate_binary_unittest.h60 return Hpackage::PKG_SUCCESS; in ExtractFile()
87 return Hpackage::PKG_SUCCESS; in CreatePkgStream()
Dupdater_binary_unittest.cpp78 PKG_CHECK(ret == PKG_SUCCESS, pkgManager->ClosePkgStream(stream); in BuildFileDigest()
97 PKG_CHECK(ret == PKG_SUCCESS, in BuildFileDigest()
108 return PKG_SUCCESS; in BuildFileDigest()
191 EXPECT_EQ(ret, PKG_SUCCESS); in BuildCompnentInfo()
/base/update/updater/test/fuzztest/UpdaterStartUpdaterProc_fuzzer/
DUpdaterStartUpdaterProc_fuzzer.cpp55 PKG_CHECK(ret == PKG_SUCCESS, packageManager->ClosePkgStream(stream); in BuildFileDigest()
74 PKG_CHECK(ret == PKG_SUCCESS, in BuildFileDigest()
85 return PKG_SUCCESS; in BuildFileDigest()
90 int32_t ret = PKG_SUCCESS; in CreatePackageZip()
/base/update/updater/test/fuzztest/extractandexecutescript_fuzzer/
Dextractandexecutescript_fuzzer.cpp149 return PKG_SUCCESS; in TestUscriptExecute()
185 PKG_CHECK(ret == PKG_SUCCESS, packageManager->ClosePkgStream(stream); in BuildFileDigest()
204 PKG_CHECK(ret == PKG_SUCCESS, in BuildFileDigest()
215 return PKG_SUCCESS; in BuildFileDigest()
220 int32_t ret = PKG_SUCCESS; in CreatePackageBin()

12