Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 62) sorted by relevance

123

/test/xts/hats/hdf/display/common/
Ddisplay_test_utils.cpp74 uint32_t GetPixelValue(const BufferHandle &handle, int x, int y) in GetPixelValue() argument
77 int32_t bpp = GetPixelFormatBpp((PixelFormat)handle.format); in GetPixelValue()
78 …CHK_RETURN((bpp <= 0), 0, DISPLAY_TEST_LOGE("CheckPixel do not support format %d", handle.format)); in GetPixelValue()
79 DISPLAY_TEST_CHK_RETURN((handle.virAddr == nullptr), 0, in GetPixelValue()
81 DISPLAY_TEST_CHK_RETURN((x < 0 || x >= handle.width), 0, in GetPixelValue()
82 DISPLAY_TEST_LOGE("CheckPixel invalid parameter x:%d width:%d", x, handle.width)); in GetPixelValue()
83 DISPLAY_TEST_CHK_RETURN((y < 0 || y >= handle.height), 0, in GetPixelValue()
84 DISPLAY_TEST_LOGE("CheckPixel invalid parameter y:%d height:%d", y, handle.height)); in GetPixelValue()
86 int32_t position = y * handle.width + x; in GetPixelValue()
87 if ((position * pixelBytes) > handle.size) { in GetPixelValue()
[all …]
Ddisplay_test_utils.h26 void SetPixel(const BufferHandle &handle, int x, int y, uint32_t color);
27 void ClearColor(const BufferHandle &handle, uint32_t color);
28 uint32_t GetPixelValue(const BufferHandle &handle, int x, int y);
29 uint32_t CheckPixel(const BufferHandle &handle, int x, int y, uint32_t color);
30 std::vector<IRect> SplitBuffer(const BufferHandle &handle, std::vector<uint32_t> &colors);
/test/xts/hats/hdf/display/device/
Dhdi_test_render_utils.cpp30 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 %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:%d width:%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:%d height:%d", y, handle.height)); in SetPixel()
42 int32_t position = y * handle.width + x; in SetPixel()
43 if ((position * pixelBytes) > handle.size) { in SetPixel()
[all …]
Dhdi_test_render_utils.h25 void SetPixel(const BufferHandle &handle, int x, int y, uint32_t color);
26 void ClearColor(const BufferHandle &handle, uint32_t color);
/test/xts/acts/security/security_huks_basic/utils/param/derive/
DpublicDeriveCallback.js19 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 …]
DpublicDerivePromise.js19 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/
DpublicDeriveCallback.js19 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 …]
DpublicDerivePromise.js19 let handle; variable
43 handle = data.handle;
58 await huks.updateSession(handle, HuksOptions)
76 await huks.finishSession(handle, huksOptionsFinish)
95 await huks.abortSession(handle, huksOptionsAbort)
/test/xts/acts/developtools/hiplugintest/
Dhipluginmoduleapitest.cpp69 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/huks_napi_BasicTest/src/
Dhuks_agree_ecdh_test_common.cpp31 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()
Dhuks_three_stage_test_common.cpp58 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/huks_hmac_callback_BasicTest/src/main/js/test/HMAC/
DSecurityHuksHmacBasicCallbackJsunit.test.js22 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/security_huks_reformed_test/utils/param/agree/
DpublicAgreeCallback.js22 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/agree/
DpublicAgreeCallback.js22 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 …]
DpublicAgreePromise.js22 let handle; variable
59 handle = data.handle;
76 .update(handle, HuksOptions)
91 .finish(handle, HuksOptionsFinish)
106 .abort(handle, HuksOptionsAbort)
/test/xts/acts/security/security_huks_reformed_test/huks_hmac_callback_BasicTest/src/main/js/test/HMAC/
DSecurityHuksHmacBasicCallbackJsunit.test.js22 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/huks_cipher_callback_BasicTest/src/main/js/test/Cipher/
DSecurityHuksAESBasicCallbackJsunit.test.js28 var handle; variable
74 handle = data.handle;
107 await publicUpdateSession(handle, HuksOptions);
114 await publicUpdateSession(handle, HuksOptions);
126 async function publicUpdateSession(handle, HuksOptions) { argument
129 await updateSession(handle, HuksOptions)
148 function updateSession(handle, HuksOptions) { argument
151 huks.updateSession(handle, HuksOptions, function (error, data) {
173 await finishSession(handle, HuksOptions)
204 function finishSession(handle, HuksOptionsFinish) { argument
[all …]
DSecurityHuksRSABasicCallbackJsunit.test.js33 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_basic/huks_cipher_callback_BasicTest/src/main/js/test/Cipher/
DSecurityHuksAESBasicCallbackJsunit.test.js28 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 …]
DSecurityHuksRSABasicCallbackJsunit.test.js33 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_basic/utils/param/signverify/
DpublicSignverifyCallback.js22 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/signverify/
DpublicSignverifyCallback.js22 let handle; variable
133 handle = data.handle;
176 await updateSession(handle, HuksOptions)
206 function updateSession(handle, HuksOptions) { argument
209 huks.updateSession(handle, HuksOptions, function (error, data) {
225 await finishSession(handle, HuksOptionsFinish)
242 function finishSession(handle, HuksOptionsFinish) { argument
245 huks.finishSession(handle, HuksOptionsFinish, function (error, data) {
261 await abortSession(handle, HuksOptionsAbort)
273 function abortSession(handle, HuksOptionsAbort) { argument
[all …]
/test/xts/acts/security/huks_napi_BasicTest/include/
Dhuks_three_stage_test_common.h54 const struct OH_Huks_Blob *handle,
59 const struct OH_Huks_Blob *handle,
65 const struct OH_Huks_Blob *handle,
/test/xts/acts/security/security_huks_reformed_test/huks_hmac_promise_BasicTest/src/main/js/test/HMAC/
DSecurityHuksHmacBasicPromiseJsunit.test.js22 var handle; variable
96 handle = data.handle;
114 await update(handle, HuksOptions);
123 await update(handle, HuksOptions);
132 await update(handle, HuksOptions);
142 await huks.finishSession(handle, HuksOptions)
157 await huks.abortSession(handle, HuksOptions)
202 async function update(handle, HuksOptions) { argument
205 await huks.updateSession(handle, HuksOptions)
/test/xts/acts/security/security_huks_basic/huks_hmac_promise_BasicTest/src/main/js/test/HMAC/
DSecurityHuksHmacBasicPromiseJsunit.test.js22 var handle; variable
130 handle = data.handle;
145 await update(handle, HuksOptions);
154 await update(handle, HuksOptions);
163 await update(handle, HuksOptions);
172 .finish(handle, HuksOptions)
183 .abort(handle, HuksOptions)
221 async function update(handle, HuksOptions) { argument
223 .update(handle, HuksOptions)

123