/base/update/updater/test/unittest/script/ |
D | script_unittest.h | 28 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/ |
D | pkg_algo_digest.cpp | 48 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 …]
|
D | pkg_algorithm.cpp | 32 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()
|
D | pkg_algo_deflate.cpp | 40 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 …]
|
D | pkg_algo_lz4.cpp | 82 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 …]
|
D | pkg_algo_digest.h | 45 return PKG_SUCCESS; in Update() 51 return PKG_SUCCESS; in Final() 58 return PKG_SUCCESS; in Calculate()
|
/base/update/updater/services/package/pkg_verify/ |
D | pkg_verify_util.cpp | 39 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()
|
D | zip_pkg_parse.cpp | 64 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/ |
D | pkg_lz4file.cpp | 25 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 …]
|
D | pkg_zipfile.cpp | 53 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 …]
|
D | pkg_upgradefile.cpp | 51 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 …]
|
D | pkg_gzipfile.cpp | 107 …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 …]
|
D | packages_info.cpp | 98 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()
|
D | pkg_pkgfile.cpp | 117 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/ |
D | pkg_managerImpl.cpp | 106 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 …]
|
D | pkg_stream.cpp | 94 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()
|
D | pkg_stream.h | 40 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/ |
D | TestDecompressGzip.new.gz |
|
/base/update/updater/interfaces/kits/packages/ |
D | package.cpp | 74 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/ |
D | pkg_verify_unittest.cpp | 69 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()
|
D | package_unittest.cpp | 109 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/ |
D | update_binary_unittest.h | 60 return Hpackage::PKG_SUCCESS; in ExtractFile() 87 return Hpackage::PKG_SUCCESS; in CreatePkgStream()
|
D | updater_binary_unittest.cpp | 78 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/ |
D | UpdaterStartUpdaterProc_fuzzer.cpp | 55 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/ |
D | extractandexecutescript_fuzzer.cpp | 149 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()
|