/test/xts/hats/hdf/display/composer/common/ |
H A 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 in GetPixelValue() 128 CheckPixel(const BufferHandle &handle, int x, int y, uint32_t color) CheckPixel() argument 169 SetPixel(const BufferHandle &handle, int x, int y, uint32_t color) SetPixel() argument 192 ClearColor(const BufferHandle &handle, uint32_t color) ClearColor() argument 201 ClearColorRect(const BufferHandle &handle, uint32_t color, const IRect &rect) ClearColorRect() argument 212 SplitBuffer(const BufferHandle &handle, std::vector<uint32_t> &colors) SplitBuffer() argument [all...] |
H A 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 in SetPixel() 51 ClearColor(const BufferHandle& handle, uint32_t color) ClearColor() argument [all...] |
H A 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/arkui/ace_c_arkui_test/entry/src/main/cpp/Dialog/ |
H A D | native_dialog.h | 72 * @param handle Indicates the pointer to the custom dialog box controller.
74 void (*dispose)(ArkUI_NativeDialogHandle handle);
79 * @param handle Indicates the pointer to the custom dialog box controller.
83 int32_t (*setContent)(ArkUI_NativeDialogHandle handle, ArkUI_NodeHandle content);
88 * @param handle Indicates the pointer to the custom dialog box controller.
91 int32_t (*removeContent)(ArkUI_NativeDialogHandle handle);
96 * @param handle Indicates the pointer to the custom dialog box controller.
102 int32_t (*setContentAlignment)(ArkUI_NativeDialogHandle handle, int32_t alignment, float offsetX, float offsetY);
107 * @param handle Indicates the pointer to the custom dialog box controller.
110 int32_t (*resetContentAlignment)(ArkUI_NativeDialogHandle handle);
[all...] |
H A D | dialog_model.h | 43 void Dispose(ArkUI_NativeDialogHandle handle); 44 int32_t SetContent(ArkUI_NativeDialogHandle handle, ArkUI_NodeHandle content); 45 int32_t RemoveContent(ArkUI_NativeDialogHandle handle); 46 int32_t SetContentAlignment(ArkUI_NativeDialogHandle handle, int32_t alignment, float offsetX, float offsetY); 47 int32_t ResetContentAlignment(ArkUI_NativeDialogHandle handle); 48 int32_t SetModalMode(ArkUI_NativeDialogHandle handle, bool isModal); 49 int32_t SetAutoCancel(ArkUI_NativeDialogHandle handle, bool autoCancel); 50 int32_t SetMask(ArkUI_NativeDialogHandle handle, uint32_t maskColor, const ArkUI_Rect* rect); 51 int32_t SetBackgroundColor(ArkUI_NativeDialogHandle handle, uint32_t backgroundColor); 52 int32_t SetCornerRadius(ArkUI_NativeDialogHandle handle, floa [all...] |
/test/xts/acts/security/huks/huks_napi_BasicTest/src/ |
H A D | huks_three_stage_test_common.cpp | 47 static OH_Huks_Result TestLessThanMaxSeg(const struct OH_Huks_Blob *handle, const struct OH_Huks_ParamSet *paramSet, in TestLessThanMaxSeg() argument 58 ret = OH_Huks_UpdateSession(handle, paramSet, inData, &tmpOutData); in TestLessThanMaxSeg() 71 ret = OH_Huks_FinishSession(handle, paramSet, outData, &tmpInData); in TestLessThanMaxSeg() 73 ret = OH_Huks_FinishSession(handle, paramSet, &tmpInData, outData); in TestLessThanMaxSeg() 83 OH_Huks_Result HksTestUpdate(const struct OH_Huks_Blob *handle, const struct OH_Huks_ParamSet *paramSet, in HksTestUpdate() argument 109 if (OH_Huks_UpdateSession(handle, paramSet, &inDataSeg, &outDataSeg).errorCode != (int32_t)OH_HUKS_SUCCESS) { in HksTestUpdate() 123 OH_Huks_Result TestUpdateLoopFinish(const struct OH_Huks_Blob *handle, const struct OH_Huks_ParamSet *paramSet, in TestUpdateLoopFinish() argument 151 if (OH_Huks_UpdateSession(handle, paramSet, &inDataSeg, &outDataSeg).errorCode != (int32_t)OH_HUKS_SUCCESS) { in TestUpdateLoopFinish() 172 if (OH_Huks_FinishSession(handle, paramSet, &inDataSeg, &outDataFinish).errorCode != (int32_t)OH_HUKS_SUCCESS) { in TestUpdateLoopFinish() 184 OH_Huks_Result TestUpdateFinish(const struct OH_Huks_Blob *handle, cons argument 311 HksEncryptLoopUpdate(const struct OH_Huks_Blob *handle, const struct OH_Huks_ParamSet *paramSet, const struct OH_Huks_Blob *inData, struct OH_Huks_Blob *outData) HksEncryptLoopUpdate() argument 375 uint8_t handle[sizeof(uint64_t)] = {0}; HuksEncrypt() local 386 HksDecryptLoopUpdate(const struct OH_Huks_Blob *handle, const struct OH_Huks_ParamSet *paramSet, const struct OH_Huks_Blob *inData, struct OH_Huks_Blob *outData) HksDecryptLoopUpdate() argument 451 uint8_t handle[sizeof(uint64_t)] = {0}; HuksDecrypt() local 565 struct OH_Huks_Blob handle = {sizeof(uint64_t), handleU}; HuksAgreeKey() local [all...] |
H A D | huks_agree_ecdh_test_common.cpp | 30 struct OH_Huks_Blob handle = {sizeof(uint64_t), handleU}; in HksEcdhAgreeFinish() local 31 OH_Huks_Result ret = OH_Huks_InitSession(keyAlias, initParamSet, &handle, nullptr); in HksEcdhAgreeFinish() 39 ret = OH_Huks_UpdateSession(&handle, initParamSet, publicKey, &outDataUpdate); in HksEcdhAgreeFinish() 45 ret = OH_Huks_FinishSession(&handle, finishParamSet, &inData, outData); in HksEcdhAgreeFinish() 57 struct OH_Huks_Blob handle = {sizeof(uint64_t), handleU}; in HksEcdhAgreeAbort() local 58 OH_Huks_Result ret = OH_Huks_InitSession(keyAlias, initParamSet, &handle, nullptr); in HksEcdhAgreeAbort() 66 ret = OH_Huks_UpdateSession(&handle, initParamSet, publicKey, &outDataUpdate); in HksEcdhAgreeAbort() 72 ret = OH_Huks_AbortSession(&handle, initParamSet); in HksEcdhAgreeAbort()
|
/test/xts/acts/demo/sectest/poc_patch_scan/2022-09/OpenHarmony-SA-2022-0904/ |
H A 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, "_ZN4OHOS5Rosen14DisplayManager11GetInstanceEv")); in main() 54 dlclose(handle); in main() 63 GetDefaultDisplayId = reinterpret_cast<DisplayId>( dlsym(handle, "_ZN4OHOS5Rosen14DisplayManager19GetDefaultDisplayIdEv")); in main() 66 dlclose(handle); in main() 81 GetPixelMap = reinterpret_cast<GetDisplaySnapshot>(dlsym(handle, "_ZN4OHOS5Rosen14DisplayManager13GetScreenshotEy")); in main() 84 dlclose(handle); in main()
|
/test/xts/acts/multimedia/avcodec/AVCodecDrmNdk/entry/src/main/cpp/ |
H A D | hello.cpp | 45 OH_AVCencInfo *handle = OH_AVCencInfo_Create(); in Test_CencInfo_Destroy() local 48 handle_ptr = handle; in Test_CencInfo_Destroy() 69 OH_AVCencInfo *handle = OH_AVCencInfo_Create(); in Test_AVCencInfo_SetAlgorithm() local 72 handle_ptr = handle; in Test_AVCencInfo_SetAlgorithm() 75 OH_AVErrCode ret2 = OH_AVCencInfo_Destroy(handle); in Test_AVCencInfo_SetAlgorithm() 114 OH_AVCencInfo *handle = OH_AVCencInfo_Create(); in Test_AVCencInfo_SetKeyIdAndIv() local 117 handle_ptr = handle; in Test_AVCencInfo_SetKeyIdAndIv() 130 OH_AVErrCode ret2 = OH_AVCencInfo_Destroy(handle); in Test_AVCencInfo_SetKeyIdAndIv() 165 OH_AVCencInfo *handle = OH_AVCencInfo_Create(); in Test_AVCencInfo_SetSubsampleInfo() local 168 handle_ptr = handle; in Test_AVCencInfo_SetSubsampleInfo() 204 OH_AVCencInfo *handle = OH_AVCencInfo_Create(); Test_AVCencInfo_SetMode() local 245 OH_AVCencInfo *handle = OH_AVCencInfo_Create(); Test_AVCencInfo_SetAVBuffer() local [all...] |
/test/xts/acts/developtools/hiplugintest/ |
H A 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); in HWTEST_F() local 196 if (handle == nullptr) { in HWTEST_F() 199 memplugin = (PluginModuleStruct*)dlsym(handle, "g_pluginModule"); in HWTEST_F() 221 void* handle in HWTEST_F() local [all...] |
/test/xts/acts/security/huks/security_huks_basic/utils/param/derive/ |
H A D | publicDeriveCallback.js | 19 let handle;
51 handle = data.handle;
75 await update(handle, HuksOptions)
86 function update(handle, HuksOptions) {
88 huks.update(handle, HuksOptions, function (err, data) {
101 await finish(handle, huksOptionsFinish)
115 await abort(handle, huksOptionsAbort)
127 function abort(handle, huksOptionsAbort) {
129 huks.abort(handle, huksOptionsAbor [all...] |
/test/xts/acts/security/huks/security_huks_basic/huks_hmac_callback_BasicTest/entry/src/ohosTest/js/test/HMAC/ |
H A D | SecurityHuksHmacBasicCallbackJsunit.test.js | 22 var handle;
variable 54 handle = data.handle;
65 function update(handle, HuksOptions) {
67 huks.update(handle, HuksOptions, function (err, data) {
83 function finish(handle, HuksOptions) {
85 huks.finish(handle, HuksOptions, function (err, data) {
101 function abort(handle, HuksOptions) {
103 huks.abort(handle, HuksOptions, function (err, data) {
144 await update(handle, HuksOption [all...] |
/test/xts/acts/security/huks/security_huks_basic/huks_cipher_callback_BasicTest/entry/src/ohosTest/js/test/Cipher/ |
H A 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) {
182 await updateCallback(handle, HuksOptions)
193 function updateCallback(handle, HuksOptions) {
195 huks.update(handle, HuksOption [all...] |
H A 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) {
180 await updateCallback(handle, HuksOptions)
191 function updateCallback(handle, HuksOptions) {
193 huks.update(handle, HuksOption [all...] |
H A 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) {
112 await updateCallback(handle, HuksOptions)
128 function updateCallback(handle, HuksOptions) {
130 huks.update(handle, HuksOptions, function (err, data) {
150 await finishCallback(handle, HuksOption [all...] |
/test/xts/acts/security/huks/security_huks_reformed_test/utils/param/derive/ |
H A D | publicDeriveCallback.js | 19 let handle; 60 handle = data.handle; 91 await updateSession(handle, HuksOptions) 105 function updateSession(handle, HuksOptions) { 108 huks.updateSession(handle, HuksOptions, function (error, data) { 125 await finishSession(handle, huksOptionsFinish) 144 await abortSession(handle, huksOptionsAbort) 159 function abortSession(handle, HuksOptionsAbort) { 162 huks.abortSession(handle, HuksOptionsAbor [all...] |
/test/xts/acts/security/huks/security_huks_basic/utils/param/agree/ |
H A D | publicAgreeCallback.js | 22 let handle;
84 handle = data.handle;
113 await update(handle, HuksOptions)
125 function update(handle, HuksOptions) {
127 huks.update(handle, HuksOptions, function (err, data) {
140 await finish(handle, HuksOptionsFinish)
154 await abort(handle, HuksOptionsAbort)
166 function abort(handle, HuksOptionsAbort) {
168 huks.abort(handle, HuksOptionsAbor [all...] |
/test/xts/acts/security/huks/security_huks_reformed_test/huks_cipher_callback_BasicTest/entry/src/ohosTest/js/test/Cipher/ |
H A 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) { 207 await updateSession(handle, HuksOptions) 221 function updateSession(handle, HuksOptions) { 224 huks.updateSession(handle, HuksOption [all...] |
H A 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) { 228 await updateSession(handle, HuksOptions) 242 function updateSession(handle, HuksOptions) { 245 huks.updateSession(handle, HuksOption [all...] |
H A D | SecurityHuksAESBasicCallbackJsunit.test.js | 28 var handle; variable 74 handle = data.handle; 107 await publicUpdateSession(handle, HuksOptions); 114 await publicUpdateSession(handle, HuksOptions); 126 async function publicUpdateSession(handle, HuksOptions) { 129 await updateSession(handle, HuksOptions) 148 function updateSession(handle, HuksOptions) { 151 huks.updateSession(handle, HuksOptions, function (error, data) { 173 await finishSession(handle, HuksOption [all...] |
/test/xts/acts/demo/sectest/poc_patch_scan/2022-09/OpenHarmony-SA-2022-0901/ |
H A 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/huks/security_huks_reformed_test/huks_hmac_callback_BasicTest/entry/src/ohosTest/js/test/HMAC/ |
H A D | SecurityHuksHmacBasicCallbackJsunit.test.js | 22 var handle; variable 58 function updateSession(handle, HuksOptions) { 61 huks.updateSession(handle, HuksOptions, function (error, data) { 74 function finish(handle, HuksOptions) { 77 huks.finishSession(handle, HuksOptions, function (error, data) { 90 function abort(handle, HuksOptions) { 93 huks.abortSession(handle, HuksOptions, function (error, data) { 131 await updateSession(handle, HuksOptions) 152 await updateSession(handle, HuksOptions) 174 await updateSession(handle, HuksOption [all...] |
/test/xts/acts/security/huks/security_huks_basic/huks_cipher_promise_BasicTest/entry/src/ohosTest/js/test/Cipher/ |
H A D | SecurityHuksCipherRSABasicPromiseJsunit.test.js | 36 var handle;
variable 92 handle = data.handle;
106 await update(handle, HuksOptions);
113 await update(handle, HuksOptions);
120 await update(handle, HuksOptions);
125 async function update(handle, HuksOptions) {
127 .update(handle, HuksOptions)
149 .finish(handle, HuksOptions)
176 .abort(handle, HuksOption [all...] |
H A D | SecurityHuksCipherAESBasicPromiseJsunit.test.js | 27 var handle;
variable 52 handle = data.handle;
67 await update(handle, HuksOptions);
75 await update(handle, HuksOptions);
89 async function update(handle, HuksOptions) {
91 .update(handle, HuksOptions)
119 .finish(handle, HuksOptions)
152 .abort(handle, HuksOptions)
|
/test/xts/acts/security/huks/security_huks_reformed_test/huks_cipher_promise_BasicTest/entry/src/ohosTest/js/test/Cipher/ |
H A D | SecurityHuksCipherSM2BasicPromiseJsunit.test.js | 55 var handle; variable 127 handle = data.handle; 145 await update(handle, HuksOptions); 152 await update(handle, HuksOptions); 159 await update(handle, HuksOptions); 164 async function update(handle, HuksOptions) { 167 await huks.updateSession(handle, HuksOptions) 193 await huks.finishSession(handle, HuksOptions) 216 await huks.abortSession(handle, HuksOption [all...] |