/test/xts/hats/hdf/display/composer/common/ |
D | display_test_utils.cpp | 95 uint32_t GetPixelValue(const BufferHandle &handle, int x, int y) in GetPixelValue() argument 98 int32_t bpp = GetPixelFormatBpp((Composer::V1_0::PixelFormat)handle.format); in GetPixelValue() 100 handle.format)); in GetPixelValue() 101 DISPLAY_TEST_CHK_RETURN((handle.virAddr == nullptr), 0, in GetPixelValue() 103 DISPLAY_TEST_CHK_RETURN((x < 0 || x >= handle.width), 0, in GetPixelValue() 104 … DISPLAY_TEST_LOGE("CheckPixel invalid parameter x:%{public}d width:%{public}d", x, handle.width)); in GetPixelValue() 105 DISPLAY_TEST_CHK_RETURN((y < 0 || y >= handle.height), 0, in GetPixelValue() 106 …DISPLAY_TEST_LOGE("CheckPixel invalid parameter y:%{public}d height:%{public}d", y, handle.height)… in GetPixelValue() 108 int32_t position = y * handle.width + x; in GetPixelValue() 109 if ((position * PIXEL_BYTES) > handle.size) { in GetPixelValue() [all …]
|
D | hdi_test_render_utils.cpp | 30 void SetPixel(const BufferHandle& handle, int x, int y, uint32_t color) in SetPixel() argument 33 DISPLAY_TEST_CHK_RETURN_NOT_VALUE((handle.format <= 0), in SetPixel() 34 DISPLAY_TEST_LOGE("CheckPixel do not support format %{public}d", handle.format)); in SetPixel() 35 DISPLAY_TEST_CHK_RETURN_NOT_VALUE((handle.virAddr == nullptr), in SetPixel() 37 DISPLAY_TEST_CHK_RETURN_NOT_VALUE((x < 0 || x >= handle.width), in SetPixel() 38 … DISPLAY_TEST_LOGE("CheckPixel invalid parameter x:%{public}d width:%{public}d", x, handle.width)); in SetPixel() 39 DISPLAY_TEST_CHK_RETURN_NOT_VALUE((y < 0 || y >= handle.height), in SetPixel() 40 …DISPLAY_TEST_LOGE("CheckPixel invalid parameter y:%{public}d height:%{public}d", y, handle.height)… in SetPixel() 42 int32_t position = y * handle.width + x; in SetPixel() 43 if ((position * PIXEL_BYTES) > handle.size) { in SetPixel() [all …]
|
D | display_test_utils.h | 83 void SetPixel(const BufferHandle& handle, int x, int y, uint32_t color); 84 void ClearColor(const BufferHandle& handle, uint32_t color); 85 uint32_t GetPixelValue(const BufferHandle& handle, int x, int y); 86 uint32_t CheckPixel(const BufferHandle& handle, int x, int y, uint32_t color); 87 std::vector<IRect> SplitBuffer(const BufferHandle& handle, std::vector<uint32_t> &colors);
|
/test/xts/acts/demo/sectest/poc_patch_scan/2022-09/OpenHarmony-SA-2022-0904/ |
D | poc.cpp | 25 void *handle,*handle2; in main() local 43 handle = dlopen("/system/lib/libdm.z.so", RTLD_LAZY); in main() 44 if (!handle) { in main() 51 …CreateObjFunc create_obj = reinterpret_cast<CreateObjFunc>(dlsym(handle, "_ZN4OHOS5Rosen14DisplayM… in main() 54 dlclose(handle); in main() 63 …GetDefaultDisplayId = reinterpret_cast<DisplayId>( dlsym(handle, "_ZN4OHOS5Rosen14DisplayManager19… in main() 66 dlclose(handle); in main() 81 …GetPixelMap = reinterpret_cast<GetDisplaySnapshot>(dlsym(handle, "_ZN4OHOS5Rosen14DisplayManager13… in main() 84 dlclose(handle); in main()
|
/test/xts/acts/security/certificate_manager/certificate_manager_func/src/main/ets/test/utils/signAndVerify/ |
D | signVerifyCallback.ets | 25 console.log("[Callback] initProcess get CMHandle: " + CMHandle.handle); 32 async function updateProcess(handle: Uint8Array, data: Uint8Array): Promise<void> { 34 certManager.update(handle, data, (err, status) => { 45 async function finishProcess(handle: Uint8Array, signature?: Uint8Array): Promise<certManager.CMRes… 48 certManager.finish(handle, signature, (err, CMResult) => { 58 certManager.finish(handle, (err, CMResult) => { 71 async function abortProcess(handle: Uint8Array): Promise<void> { 73 certManager.abort(handle, (err, status) => { 89 await updateProcess(signHandle.handle, srcData); 90 let signResult: certManager.CMResult = await finishProcess(signHandle.handle); [all …]
|
D | signVerifyPromise.ets | 22 await certManager.update(signHandle.handle, srcData); 23 let signResult: certManager.CMResult = await certManager.finish(signHandle.handle); 25 await certManager.update(verifyHandle.handle, srcData); 26 …let verifyResult: certManager.CMResult = await certManager.finish(verifyHandle.handle, signResult.… 43 await certManager.update(signHandle.handle, srcData); 44 let signResult: certManager.CMResult = await certManager.finish(signHandle.handle); 48 await certManager.abort(verifyHandle.handle); 51 await certManager.update(verifyHandle.handle, srcData); 52 await certManager.abort(verifyHandle.handle); 55 await certManager.update(verifyHandle.handle, srcData); [all …]
|
/test/xts/acts/demo/sectest/poc_patch_scan/2022-09/OpenHarmony-SA-2022-0901/ |
D | poc.cpp | 35 void *handle; in main() local 37 handle = dlopen("/system/lib/libsoftbus_server.z.so", RTLD_LAZY); in main() 38 if (!handle) in main() 46 Func cJSON_Parse = reinterpret_cast<Func>(dlsym(handle, "cJSON_Parse")); in main() 49 dlclose(handle); in main()
|
/test/xts/acts/security/security_huks_basic/utils/param/derive/ |
D | publicDeriveCallback.js | 19 let handle; variable 51 handle = data.handle; 75 await update(handle, HuksOptions) 86 function update(handle, HuksOptions) { argument 88 huks.update(handle, HuksOptions, function (err, data) { 101 await finish(handle, huksOptionsFinish) 115 await abort(handle, huksOptionsAbort) 127 function abort(handle, huksOptionsAbort) { argument 129 huks.abort(handle, huksOptionsAbort, function (err, data) { 140 function finish(handle, huksOptionsFinish) { argument [all …]
|
D | publicDerivePromise.js | 19 let handle; variable 38 handle = data.handle; 49 .update(handle, HuksOptions) 63 .finish(handle, huksOptionsFinish) 78 .abort(handle, huksOptionsAbort)
|
/test/xts/acts/security/security_huks_reformed_test/utils/param/derive/ |
D | publicDeriveCallback.js | 19 let handle; variable 60 handle = data.handle; 91 await updateSession(handle, HuksOptions) 105 function updateSession(handle, HuksOptions) { argument 108 huks.updateSession(handle, HuksOptions, function (error, data) { 125 await finishSession(handle, huksOptionsFinish) 144 await abortSession(handle, huksOptionsAbort) 159 function abortSession(handle, HuksOptionsAbort) { argument 162 huks.abortSession(handle, HuksOptionsAbort, function (error, data) { 175 function finishSession(handle, HuksOptionsFinish) { argument [all …]
|
/test/xts/acts/developtools/hiplugintest/ |
D | hipluginmoduleapitest.cpp | 69 void* handle; in MemoryPluginTest() local 81 handle = dlopen(libPath.c_str(), RTLD_LAZY); in MemoryPluginTest() 82 if (handle == nullptr) { in MemoryPluginTest() 87 memplugin = (PluginModuleStruct*)dlsym(handle, "g_pluginModule"); in MemoryPluginTest() 96 dlclose(handle); in MemoryPluginTest() 121 dlclose(handle); in MemoryPluginTest() 195 void* handle = dlopen(LIB_PATH.c_str(), RTLD_LAZY); variable 196 if (handle == nullptr) { 199 memplugin = (PluginModuleStruct*)dlsym(handle, "g_pluginModule"); 221 void* handle = dlopen(LIB_PATH.c_str(), RTLD_LAZY); variable [all …]
|
/test/xts/acts/security/security_huks_basic/huks_hmac_callback_BasicTest/src/main/js/test/HMAC/ |
D | SecurityHuksHmacBasicCallbackJsunit.test.js | 22 var handle; variable 54 handle = data.handle; 65 function update(handle, HuksOptions) { argument 67 huks.update(handle, HuksOptions, function (err, data) { 83 function finish(handle, HuksOptions) { argument 85 huks.finish(handle, HuksOptions, function (err, data) { 101 function abort(handle, HuksOptions) { argument 103 huks.abort(handle, HuksOptions, function (err, data) { 144 await update(handle, HuksOptions) 160 await update(handle, HuksOptions) [all …]
|
/test/xts/acts/security/huks_napi_BasicTest/src/ |
D | huks_agree_ecdh_test_common.cpp | 31 struct OH_Huks_Blob handle = { sizeof(uint64_t), handleU }; in HksEcdhAgreeFinish() local 32 OH_Huks_Result ret = OH_Huks_InitSession(keyAlias, initParamSet, &handle, nullptr); in HksEcdhAgreeFinish() 40 ret = OH_Huks_UpdateSession(&handle, initParamSet, publicKey, &outDataUpdate); in HksEcdhAgreeFinish() 46 ret = OH_Huks_FinishSession(&handle, finishParamSet, &inData, outData); in HksEcdhAgreeFinish() 58 struct OH_Huks_Blob handle = { sizeof(uint64_t), handleU }; in HksEcdhAgreeAbort() local 59 OH_Huks_Result ret = OH_Huks_InitSession(keyAlias, initParamSet, &handle, nullptr); in HksEcdhAgreeAbort() 67 ret = OH_Huks_UpdateSession(&handle, initParamSet, publicKey, &outDataUpdate); in HksEcdhAgreeAbort() 73 ret = OH_Huks_AbortSession(&handle, initParamSet); in HksEcdhAgreeAbort()
|
D | huks_three_stage_test_common.cpp | 58 const struct OH_Huks_Blob *handle, in TestLessThanMaxSeg() argument 74 ret = OH_Huks_UpdateSession(handle, paramSet, inData, &tmpOutData); in TestLessThanMaxSeg() 92 ret = OH_Huks_FinishSession(handle, paramSet, outData, &tmpInData); in TestLessThanMaxSeg() 96 ret = OH_Huks_FinishSession(handle, paramSet, &tmpInData, outData); in TestLessThanMaxSeg() 108 const struct OH_Huks_Blob *handle, in HksTestUpdate() argument 142 …if (OH_Huks_UpdateSession(handle, paramSet, &inDataSeg, &outDataSeg).errorCode != (int32_t)OH_HUKS… in HksTestUpdate() 158 OH_Huks_Result TestUpdateLoopFinish(const struct OH_Huks_Blob *handle, in TestUpdateLoopFinish() argument 193 …if (OH_Huks_UpdateSession(handle, paramSet, &inDataSeg, &outDataSeg).errorCode != (int32_t)OH_HUKS… in TestUpdateLoopFinish() 217 …if (OH_Huks_FinishSession(handle, paramSet, &inDataSeg, &outDataFinish).errorCode != (int32_t)OH_H… in TestUpdateLoopFinish() 231 const struct OH_Huks_Blob *handle, in TestUpdateFinish() argument [all …]
|
/test/xts/acts/security/security_huks_basic/utils/param/agree/ |
D | publicAgreeCallback.js | 22 let handle; variable 84 handle = data.handle; 113 await update(handle, HuksOptions) 125 function update(handle, HuksOptions) { argument 127 huks.update(handle, HuksOptions, function (err, data) { 140 await finish(handle, HuksOptionsFinish) 154 await abort(handle, HuksOptionsAbort) 166 function abort(handle, HuksOptionsAbort) { argument 168 huks.abort(handle, HuksOptionsAbort, function (err, data) { 179 function finish(handle, HuksOptionsFinish) { argument [all …]
|
/test/xts/acts/security/security_huks_basic/huks_cipher_callback_BasicTest/src/main/js/test/Cipher/ |
D | SecurityHuksSM2BasicCallbackJsunit.test.js | 34 var handle; variable 135 handle = data.handle; 162 await update(handle, HuksOptions); 169 await update(handle, HuksOptions); 176 await update(handle, HuksOptions); 181 async function update(handle, HuksOptions) { argument 182 await updateCallback(handle, HuksOptions) 193 function updateCallback(handle, HuksOptions) { argument 195 huks.update(handle, HuksOptions, function (err, data) { 217 await finishCallback(handle, HuksOptions) [all …]
|
D | SecurityHuksAESBasicCallbackJsunit.test.js | 28 var handle; variable 65 handle = data.handle; 92 await update(handle, HuksOptions); 99 await update(handle, HuksOptions); 111 async function update(handle, HuksOptions) { argument 112 await updateCallback(handle, HuksOptions) 128 function updateCallback(handle, HuksOptions) { argument 130 huks.update(handle, HuksOptions, function (err, data) { 150 await finishCallback(handle, HuksOptions) 181 function finishCallback(handle, huksOptionsFinish) { argument [all …]
|
D | SecurityHuksRSABasicCallbackJsunit.test.js | 33 var handle; variable 133 handle = data.handle; 160 await update(handle, HuksOptions); 167 await update(handle, HuksOptions); 174 await update(handle, HuksOptions); 179 async function update(handle, HuksOptions) { argument 180 await updateCallback(handle, HuksOptions) 191 function updateCallback(handle, HuksOptions) { argument 193 huks.update(handle, HuksOptions, function (err, data) { 214 await finishCallback(handle, HuksOptions) [all …]
|
/test/xts/acts/security/security_huks_reformed_test/huks_cipher_callback_BasicTest/src/main/js/test/Cipher/ |
D | SecurityHuksSM2BasicCallbackJsunit.test.js | 35 var handle; variable 173 handle = data.handle; 206 await publicUpdateSession(handle, HuksOptions); 213 await publicUpdateSession(handle, HuksOptions); 220 await publicUpdateSession(handle, HuksOptions); 225 async function publicUpdateSession(handle, HuksOptions) { argument 228 await updateSession(handle, HuksOptions) 242 function updateSession(handle, HuksOptions) { argument 245 huks.updateSession(handle, HuksOptions, function (error, data) { 270 await finishSession(handle, HuksOptions) [all …]
|
D | SecurityHuksRSABasicCallbackJsunit.test.js | 33 var handle; variable 152 handle = data.handle; 185 await publicUpdateSession(handle, HuksOptions); 192 await publicUpdateSession(handle, HuksOptions); 199 await publicUpdateSession(handle, HuksOptions); 204 async function publicUpdateSession(handle, HuksOptions) { argument 207 await updateSession(handle, HuksOptions) 221 function updateSession(handle, HuksOptions) { argument 224 huks.updateSession(handle, HuksOptions, function (error, data) { 249 await finishSession(handle, HuksOptions) [all …]
|
/test/xts/acts/security/security_huks_reformed_test/huks_hmac_callback_BasicTest/src/main/js/test/HMAC/ |
D | SecurityHuksHmacBasicCallbackJsunit.test.js | 22 var handle; variable 58 function updateSession(handle, HuksOptions) { argument 61 huks.updateSession(handle, HuksOptions, function (error, data) { 74 function finish(handle, HuksOptions) { argument 77 huks.finishSession(handle, HuksOptions, function (error, data) { 90 function abort(handle, HuksOptions) { argument 93 huks.abortSession(handle, HuksOptions, function (error, data) { 131 await updateSession(handle, HuksOptions) 152 await updateSession(handle, HuksOptions) 174 await updateSession(handle, HuksOptions) [all …]
|
/test/xts/acts/security/security_huks_reformed_test/utils/param/agree/ |
D | publicAgreeCallback.js | 22 let handle; variable 100 handle = data.handle; 137 await updateSession(handle, HuksOptions) 152 function updateSession(handle, HuksOptions) { argument 155 huks.updateSession(handle, HuksOptions, function (error, data) { 172 await finishSession(handle, HuksOptionsFinish) 191 await abortSession(handle, HuksOptionsAbort) 204 function abortSession(handle, HuksOptionsAbort) { argument 207 huks.abortSession(handle, HuksOptionsAbort, function (error, data) { 220 function finishSession(handle, HuksOptionsFinish) { argument [all …]
|
/test/xts/acts/security/security_huks_basic/utils/param/signverify/ |
D | publicSignverifyCallback.js | 22 let handle; variable 108 handle = data.handle; 144 await updateCallback(handle, HuksOptions).then(async (data) => { 170 function updateCallback(handle, HuksOptions) { argument 172 huks.update(handle, HuksOptions, function (err, data) { 184 await finish(handle, HuksOptions) 196 function finish(handle, HuksOptionsFinish) { argument 198 huks.finish(handle, HuksOptionsFinish, function (err, data) { 210 await abort(handle, HuksOptions) 221 function abort(handle, HuksOptionsAbort) { argument [all …]
|
/test/xts/acts/security/security_huks_reformed_test/utils/param/ |
D | checkAES.js | 36 let handle; variable 45 handle = data.handle; 62 await update(handle, HuksOptions); 70 await update(handle, HuksOptions); 84 async function update(handle, HuksOptions) { argument 87 await huks.updateSession(handle, HuksOptions) 119 await huks.finishSession(handle, HuksOptions) 143 await huks.abortSession(handle, HuksOptions)
|
/test/xts/acts/security/security_huks_basic/utils/param/ |
D | checkAES.js | 35 let handle; variable 44 handle = data.handle; 61 await update(handle, HuksOptions); 69 await update(handle, HuksOptions); 83 async function update(handle, HuksOptions) { argument 86 await huks.updateSession(handle, HuksOptions) 118 await huks.finishSession(handle, HuksOptions) 142 await huks.abortSession(handle, HuksOptions)
|