Home
last modified time | relevance | path

Searched refs:patch (Results 1 – 25 of 141) sorted by relevance

123456

/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libpngplugin/src/
H A Dpng_ninepatch_res.cpp25 static void Fill9patchOffsets(PngNinePatchRes *patch) in Fill9patchOffsets() argument
27 if (patch == nullptr) { in Fill9patchOffsets()
30 patch->xDivsOffset = sizeof(PngNinePatchRes); in Fill9patchOffsets()
31 patch->yDivsOffset = patch->xDivsOffset + (patch->numXDivs * sizeof(int32_t)); in Fill9patchOffsets()
32 patch->colorsOffset = patch->yDivsOffset + (patch->numYDivs * sizeof(int32_t)); in Fill9patchOffsets()
37 PngNinePatchRes *patch = static_cast<PngNinePatchRes *>(inData); in Deserialize() local
38 patch->wasDeserialized = true; in Deserialize()
39 Fill9patchOffsets(patch); in Deserialize()
41 return patch; in Deserialize()
H A Dnine_patch_listener.cpp70 PngNinePatchRes *patch = static_cast<PngNinePatchRes *>(data); in ReadChunk() local
71 size_t patchSize = patch->SerializedSize(); in ReadChunk()
82 errno_t err = memcpy_s(patchNew, patchSize, patch, patchSize); in ReadChunk()
/ohos5.0/base/update/updater/services/diffpatch/patch/
H A Dimage_patch.cpp41 size_t srcStart = static_cast<size_t>(ReadLE<int64_t>(param.patch + offset)); in ApplyImagePatch()
43 size_t srcLen = static_cast<size_t>(ReadLE<int64_t>(param.patch + offset)); in ApplyImagePatch()
54 PatchBuffer patchInfo = {param.patch, patchOffset, param.patchSize}; in ApplyImagePatch()
79 BlockBuffer data = {param.patch + offset, dataLen}; in ApplyImagePatch()
233 level_ = ReadLE<int32_t>(param.patch + offset); in ReadHeader()
235 method_ = ReadLE<int32_t>(param.patch + offset); in ReadHeader()
237 windowBits_ = ReadLE<int32_t>(param.patch + offset); in ReadHeader()
239 memLevel_ = ReadLE<int32_t>(param.patch + offset); in ReadHeader()
241 strategy_ = ReadLE<int32_t>(param.patch + offset); in ReadHeader()
288 method_ = static_cast<int32_t>(ReadLE<int32_t>(param.patch + offset)); in ReadHeader()
[all …]
H A Dupdate_patch.cpp76 int32_t numChunks = ImagePatch::ReadLE<int32_t>(param.patch + offset); in ApplyImagePatch()
86 int32_t type = ImagePatch::ReadLE<int32_t>(param.patch + offset); in ApplyImagePatch()
123 if (patch == nullptr) { in ApplyBlockPatch()
127 return patch->ApplyPatch(); in ApplyBlockPatch()
149 if (patch == nullptr) { in ApplyBlockPatch()
155 ret = patch->ApplyPatch(); in ApplyBlockPatch()
196 if (patch == nullptr) { in ApplyBlockPatch()
202 ret = patch->ApplyPatch(); in ApplyBlockPatch()
216 if (patch == nullptr) { in ApplyBlockPatch()
220 return patch->ApplyPatch(); in ApplyBlockPatch()
[all …]
H A DBUILD.gn30 "${updater_path}/services/include/patch",
34 "${updater_path}/services/diffpatch/patch",
46 "${updater_path}/services/diffpatch/patch/blocks_patch.cpp",
47 "${updater_path}/services/diffpatch/patch/image_patch.cpp",
48 "${updater_path}/services/diffpatch/patch/update_patch.cpp",
/ohos5.0/base/update/updater/services/diffpatch/
H A Ddiff_main.cpp22 std::string patch; member
43 diffParams.patch = optarg; in main()
59 if (diffParams.source != "" && diffParams.destination != "" && diffParams.patch != "") { in main()
65 diffParams.patch); in main()
70 diffParams.patch); in main()
H A DBUILD.gn42 "./patch/blocks_patch.cpp",
43 "./patch/image_patch.cpp",
44 "./patch/update_patch.cpp",
52 "${updater_path}/services/include/patch",
57 "${updater_path}/services/diffpatch/patch",
/ohos5.0/docs/zh-cn/device-dev/subsystems/
H A Dsubsys-build-product.md299 7. 配置产品Patch(可选,视产品涉及部件是否需要打补丁而定) 在产品目录下创建patch.yml文件。patch.yml需按产品实际情况配置,一个典型的patch.yml文件如下:
302 # 需要打patch的路径
304 # 该路径下需要打的patch存放路径
305 - foundation/communication/dsoftbus/1.patch
306 - foundation/communication/dsoftbus/2.patch
308 - third_party/wpa_supplicant/1.patch
309 - third_party/wpa_supplicant/2.patch
310 - third_party/wpa_supplicant/3.patch
314 配置完成后,编译时增加--patch参数,即可在产品编译前将配置的Patch文件打到对应目录中,再进行编译:
317 hb build -f --patch
/ohos5.0/docs/zh-cn/readme/
H A D内核子系统.md86 │ │ ├── linux-4.19 # linux-4.19 相关patch
88 │ │ │ │ └── hdf.patch # linux-4.19 HDF patches
90 │ │ │ └── hispark_taurus.patch # linux-4.19 hispark_taurus SOC patches
93 │ │ │ │ └── hdf.patch # linux-5.10 HDF patches
95 │ │ │ │ └── hispark_taurus.patch # linux-5.10 hispark_taurus SOC patches
97 │ │ │ ├── kernel.patch # linux-5.10 rk3568 SOC patches
98 │ │ │ └── hdf.patch # linux-5.10 rk3568 定制 HDF patches
101 │ │ ├── kernel.patch # linux-6.6 rk3568 SOC patches
102 │ │ └── hdf.patch # linux-6.6 rk3568 定制 HDF patches
189 在kernel/linux/build仓中,按照kernel.mk中的芯片组件所对应的patch路径规则及命名规则,将对应的芯片组件patch放到对应路径下:
[all …]
/ohos5.0/docs/zh-cn/device-dev/kernel/
H A Dkernel-standard-patch.md10 …openharmony/kernel_linux_build/blob/master/kernel.mk)中的芯片组件所对应的patch路径规则及命名规则,将对应的芯片组件patch放到对应路径下:
13 DEVICE_PATCH_FILE := $(DEVICE_PATCH_DIR)/$(DEVICE_NAME).patch
17 …/gitee.com/openharmony/kernel_linux_build/blob/master/kernel.mk)中的芯片组件所对应的patch路径规则及命名规则,将对应的芯片组件c…
H A Dkernel-overview.md159 在kernel/linux/build仓中,按照kernel.mk中的芯片组件所对应的patch路径规则及命名规则,将对应的芯片组件patch放到对应路径下:
163 DEVICE_PATCH_FILE := $(DEVICE_PATCH_DIR)/$(DEVICE_NAME).patch
167 在kernel/linux/build仓中,按照kernel.mk中的芯片组件所对应的patch路径规则及命名规则,将对应的芯片组件config放到对应路径下:
/ohos5.0/docs/en/application-dev/reference/apis-ability-kit/
H A Djs-apis-app-ability-quickFixManager-sys.md28 | quickFixFilePath | string | Yes| Yes | Installation path of the quick fix patch file.…
51 Applies a quick fix patch. This API uses an asynchronous callback to return the result.
63 …| hapModuleQuickFixFiles | Array\<string> | Yes| Quick fix patch files, each of which must contain…
107 Applies a quick fix patch. This API uses a promise to return the result.
119 …| hapModuleQuickFixFiles | Array\<string> | Yes| Quick fix patch files, each of which must contain…
188 | 18500001 | The bundle does not exist or no patch has been applied. |
244 | 18500001 | The bundle does not exist or no patch has been applied. |
281 | bundleName | string | Yes| Name of the bundle for which the patch needs to be revoked.|
293 | 18500001 | The bundle does not exist or no patch has been applied. |
326 | bundleName | string | Yes| Name of the bundle for which the patch needs to be revoked.|
[all …]
H A Derrorcode-ability.md1275 Invalid patch package.
1294 Failed to deploy the patch.
1302 1. The **type** field in the **patch.json** file is set to a value other than **patch** or **hotrel…
1305 4. If a patch package has been deployed, the **versionCode** of the new patch package is not later …
1318 Failed to enable the patch package.
1330 Check the state of the patch package.
1336 Failed to remove the patch package.
1348 Check the state of the patch package.
1354 Failed to load the patch.
1362 The Ark engine fails to install the patch.
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-ability-kit/
H A Derrorcode-ability.md1257 The bundle does not exist or no patch has been applied.
1275 Invalid patch package.
1294 Failed to deploy the patch.
1302 1. patch.json中type只能为patch或者hotreload,否则部署失败。
1304 3. bundleName、versionCode必须和已安装的hap应用相同,如果为patch类型,还需确保versionName相同,否则部署失败。
1306 5. 对于patch类型的补丁会校验签名信息,使用的签名证书需要和应用相同,签名不一致,部署失败。
1307 6. 在部署patch类型的补丁包时,如果是debug版本,先判断是否有在使用的补丁包,如果在使用的补丁包为hotreload类型,则部署失败。
1318 Failed to enable the patch package.
1336 Failed to remove the patch package.
1354 Failed to load the patch.
[all …]
/ohos5.0/base/update/updater/interfaces/kits/diff_patch/
H A DBUILD.gn25 "${updater_path}/services/include/patch",
29 deps = [ "${updater_path}/services/diffpatch/patch:libpatch" ]
43 "${updater_path}/services/include/patch",
49 "${updater_path}/services/diffpatch/patch:libpatch_shared",
/ohos5.0/drivers/hdf_core/adapter/khdf/linux/
H A Dpatch_hdf.sh59 HDF_PATCH_FILE=${KERNEL_PATCH_PATH}/${DEVICE_NAME}_patch/hdf.patch
62 HDF_PATCH_FILE=${KERNEL_PATCH_PATH}/${HDF_COMMON_PATCH}_patch/hdf.patch
64 patch -p1 < $HDF_PATCH_FILE
/ohos5.0/docs/en/device-dev/kernel/
H A Dkernel-standard-patch.md9 2. Apply the chip driver patch. The following uses Hi3516D V300 as an example.
10 …Place the chip component patches in the related directory. For details about the patch directory a…
13 DEVICE_PATCH_FILE := $(DEVICE_PATCH_DIR)/$(DEVICE_NAME).patch
17 …Place the chip component **config** in the related directory. For details about the patch director…
/ohos5.0/docs/zh-cn/release-notes/
H A DOpenHarmony-v3.1.3-release.md84patch%2Fohos-sdk-mac-full.tar.gz) | [SHA256校验码](https://gitee.com/link?target=https%3A%2F%2Fmirror…
85 …-patch%2Fohos-sdk-full.tar.gz) | [SHA256校验码](https://gitee.com/link?target=https%3A%2F%2Fmirrors.h…
86patch%2Fohos-sdk-mac-public.tar.gz) | [SHA256校验码](https://gitee.com/link?target=https%3A%2F%2Fmirr…
87patch%2Fohos-sdk-public.tar.gz) | [SHA256校验码](https://gitee.com/link?target=https%3A%2F%2Fmirrors.…
H A DOpenHarmony-v3.1.2-release.md96 …nharmony/os/3.1.2/sdk-patch/ohos-sdk-mac-full.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.co…
97 …penharmony/os/3.1.2/sdk-patch/ohos-sdk-full.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/…
98 …harmony/os/3.1.2/sdk-patch/ohos-sdk-mac-public.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.c…
99 …enharmony/os/3.1.2/sdk-patch/ohos-sdk-public.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com…
H A DOpenHarmony-v3.2-beta2.md122 …os/3.2-Beta2/sdk-patch/ohos-sdk-mac-full_20220913.tar.gz) | [SHA256校验码](https://repo.huaweicloud.c…
123 …2-Beta2/sdk-patch/ohos-sdk-windows_linux-full_20220913.tar.gz) | [SHA256校验码](https://repo.huaweicl…
124 …ony/os/3.2-Beta2/sdk-patch/ohos-sdk-mac-public.tar.gz) | [SHA256校验码](https://repo.huaweicloud.com/…
125 …s/3.2-Beta2/sdk-patch/ohos-sdk-windows_linux-public.tar.gz) | [SHA256校验码](https://repo.huaweicloud…
/ohos5.0/base/update/updater/test/unittest/
H A DBUILD.gn78 "${updater_path}/services/diffpatch/patch/blocks_patch.cpp",
79 "${updater_path}/services/diffpatch/patch/image_patch.cpp",
80 "${updater_path}/services/diffpatch/patch/update_patch.cpp",
125 "${updater_path}/services/include/patch",
142 "${updater_path}/services/diffpatch/patch",
151 "${updater_path}/services/diffpatch/patch:libpatch",
/ohos5.0/base/update/packaging_tools/
H A DREADME_zh.md35 ├── patch_package_process.py # 差分镜像处理,Block差分获取patch差异
58 - bsdiff可执行程序,差分计算,比较生成patch
60 - imgdiff可执行程序,差分计算,针对zip、gz、lz4类型的文件,对比生成patch
/ohos5.0/docs/zh-cn/device-dev/porting/
H A Dporting-smallchip-kernel-linux.md31 …以hi3516dv300芯片为例,参考已有的patch目录hi3516dv300_small_patch目录,新建&lt;YOUR_CHIP&gt;_patch目录,放置相关芯片补丁,注意hdf.
35 …下面,版本级整编命令会通过BUILD.gn进入`kernel_module_build.sh`和`kernel.mk`,需要在这2个文件中针对性进行patch及defconfig文件路径、编译器、…
/ohos5.0/docs/en/device-dev/subsystems/
H A Dsubsys-build-product.md297 … components need to be patched.<br>Create a **patch.yml** file in the product directory. A typical…
300 # Directory in which the patch is to be installed
302 # Directory in which the patch is stored
303 - foundation/communication/dsoftbus/1.patch
304 - foundation/communication/dsoftbus/2.patch
306 - third_party/wpa_supplicant/1.patch
307 - third_party/wpa_supplicant/2.patch
308 - third_party/wpa_supplicant/3.patch
312 …Add **--patch** when running the **hb build** command. Then, the patch files can be added to the s…
315 hb build -f --patch
/ohos5.0/docs/en/release-notes/
H A DOpenHarmony-v3.1.3-release.md84patch%2Fohos-sdk-mac-full.tar.gz)| [Download](https://gitee.com/link?target=https%3A%2F%2Fmirrors.…
85 …k-patch%2Fohos-sdk-full.tar.gz)| [Download](https://gitee.com/link?target=https%3A%2F%2Fmirrors.hu…
86patch%2Fohos-sdk-mac-public.tar.gz)| [Download](https://gitee.com/link?target=https%3A%2F%2Fmirror…
87 …-patch%2Fohos-sdk-public.tar.gz)| [Download](https://gitee.com/link?target=https%3A%2F%2Fmirrors.h…

123456