/test/xts/acts/security/huks/huks_napi_BasicTest/src/ |
H A D | huks_wrapped_test_common.cpp | 87 static OH_Huks_Result CheckParamsValid(const struct HksImportWrappedKeyTestParams *params)
in CheckParamsValid() argument 91 if (params == nullptr) {
in CheckParamsValid() 96 if (params->wrappingKeyAlias == nullptr || params->genWrappingKeyParamSet == nullptr ||
in CheckParamsValid() 97 params->agreeKeyAlgName == nullptr || params->callerKeyAlias == nullptr ||
in CheckParamsValid() 98 params->genCallerKeyParamSet == nullptr || params->callerKekAlias == nullptr || params->callerKek == nullptr ||
in CheckParamsValid() 99 params in CheckParamsValid() 108 GenerateAndExportHuksPublicKey(const struct HksImportWrappedKeyTestParams *params, struct OH_Huks_Blob *huksPublicKey) GenerateAndExportHuksPublicKey() argument 121 GenerateAndExportCallerPublicKey(const struct HksImportWrappedKeyTestParams *params, struct OH_Huks_Blob *callerSelfPublicKey) GenerateAndExportCallerPublicKey() argument 135 ImportKekAndAgreeSharedSecret(const struct HksImportWrappedKeyTestParams *params, const struct OH_Huks_Blob *huksPublicKey, struct OH_Huks_Blob *outSharedKey) ImportKekAndAgreeSharedSecret() argument 158 EncryptImportedPlainKeyAndKek(const struct HksImportWrappedKeyTestParams *params, struct OH_Huks_Blob *plainCipherText, struct OH_Huks_Blob *kekCipherText) EncryptImportedPlainKeyAndKek() argument 173 ImportWrappedKey(const struct HksImportWrappedKeyTestParams *params, struct OH_Huks_Blob *plainCipher, struct OH_Huks_Blob *kekCipherText, struct OH_Huks_Blob *peerPublicKey, struct OH_Huks_Blob *wrappedKeyData) ImportWrappedKey() argument 220 HksImportWrappedKeyTestCommonCase(const struct HksImportWrappedKeyTestParams *params) HksImportWrappedKeyTestCommonCase() argument 249 HksClearKeysForWrappedKeyTest(const struct HksImportWrappedKeyTestParams *params) HksClearKeysForWrappedKeyTest() argument [all...] |
H A D | huks_attest_test_common.cpp | 166 ret |= strcmp(SEC_INFO_DATA, (char *)paramSet->params[g_index0].blob.data); in ValidataAndCompareCertInfo() 167 ret |= strcmp(CHALLENGE_DATA, (char *)paramSet->params[g_index1].blob.data); in ValidataAndCompareCertInfo() 168 ret |= strcmp(VERSION_DATA, (char *)paramSet->params[g_index2].blob.data); in ValidataAndCompareCertInfo() 169 ret |= strcmp(ALIAS, (char *)paramSet->params[g_index3].blob.data); in ValidataAndCompareCertInfo() 173 ret |= strcmp(UDID_DATA, (char *)paramSet->params[g_index4].blob.data); in ValidataAndCompareCertInfo() 174 ret |= strcmp(SN_DATA, (char *)paramSet->params[g_index5].blob.data); in ValidataAndCompareCertInfo() 175 ret |= strcmp(DEVICE_ID, (char *)paramSet->params[g_index6].blob.data); in ValidataAndCompareCertInfo()
|
H A D | huks_signverify_sm2_test.cpp | 257 ret = InitParamSet(&genParamSet, g_genParamsTest[genIndex].params, in HksSm2SignVerifyTestRun() 258 sizeof(g_genParamsTest[genIndex].params) / sizeof(OH_Huks_Param)); in HksSm2SignVerifyTestRun() 271 ret = InitParamSet(&signParamSet, g_signParamsTest[signIndex].params, in HksSm2SignVerifyTestRun() 272 sizeof(g_signParamsTest[signIndex].params) / sizeof(OH_Huks_Param)); in HksSm2SignVerifyTestRun() 286 ret = InitParamSet(&verifyParamSet, g_verifyParamsTest[verifyIndex].params, in HksSm2SignVerifyTestRun() 287 sizeof(g_verifyParamsTest[verifyIndex].params) / sizeof(OH_Huks_Param)); in HksSm2SignVerifyTestRun()
|
/test/testfwk/arkxtest/jsunit/src/module/config/ |
H A D | configService.js | 62 basicParamValidCheck(params) { 63 let size = params.size; 70 let level = params.level; 77 let testType = params.testType; 87 filterParamValidCheck(params) { 88 let timeout = params.timeout; 97 if (params[key] !== undefined && params[key] !== 'true' && params[key] !== 'false') { 98 this.filterValid.push(`${key}:${params[ke [all...] |
/test/xts/acts/security/huks/huks_ndk_Test/entry/src/main/cpp/ |
H A D | utils.cpp | 24 OH_Huks_Result InitParamSet(struct OH_Huks_ParamSet** paramSet, const struct OH_Huks_Param* params, uint32_t paramCount)
in InitParamSet() argument 30 ret = OH_Huks_AddParams(*paramSet, params, paramCount);
in InitParamSet() 290 static OH_Huks_Result CheckParamsValid(const struct HksImportWrappedKeyTestParams* params)
in CheckParamsValid() argument 294 if (params == nullptr) {
in CheckParamsValid() 298 if (params->wrappingKeyAlias == nullptr || params->genWrappingKeyParamSet == nullptr ||
in CheckParamsValid() 299 params->callerKeyAlias == nullptr || params->genCallerKeyParamSet == nullptr ||
in CheckParamsValid() 300 params->callerKekAlias == nullptr || params in CheckParamsValid() 309 GenerateAndExportHuksPublicKey(const struct HksImportWrappedKeyTestParams* params, struct OH_Huks_Blob* huksPublicKey) GenerateAndExportHuksPublicKey() argument 324 GenerateAndExportCallerPublicKey(const struct HksImportWrappedKeyTestParams* params, struct OH_Huks_Blob* callerSelfPublicKey) GenerateAndExportCallerPublicKey() argument 339 ImportKekAndAgreeSharedSecret(const struct HksImportWrappedKeyTestParams* params, const struct OH_Huks_Blob* huksPublicKey, struct OH_Huks_Blob* outSharedKey) ImportKekAndAgreeSharedSecret() argument 366 EncryptImportedPlainKeyAndKek(const struct HksImportWrappedKeyTestParams* params, struct OH_Huks_Blob* plainCipherText, struct OH_Huks_Blob* kekCipherText) EncryptImportedPlainKeyAndKek() argument 384 ImportWrappedKey(const struct HksImportWrappedKeyTestParams* params, struct OH_Huks_Blob* plainCipher, struct OH_Huks_Blob* kekCipherText, struct OH_Huks_Blob* peerPublicKey, struct OH_Huks_Blob* wrappedKeyData) ImportWrappedKey() argument 417 HksImportWrappedKeyTestCommonCase(const struct HksImportWrappedKeyTestParams* params) HksImportWrappedKeyTestCommonCase() argument 456 HksClearKeysForWrappedKeyTest(const struct HksImportWrappedKeyTestParams* params) HksClearKeysForWrappedKeyTest() argument [all...] |
/test/xts/acts/multimedia/image/image_js_standard/imageReceiverNDK/entry/src/main/cpp/napi/ |
H A D | image_receiver_test.cpp | 256 bool GetArgs(napi_env env, napi_callback_info info, napi_value (&argv)[NUM], int32_t (¶ms)[NUM]) in GetArgs() argument 265 if (napi_get_value_int32(env, argv[i], ¶ms[i]) != napi_ok) { in GetArgs() 300 HiviewDFX::HiLog::Error(LABEL, "JsCreateImageReceiverOptions failed to parse params"); in JsCreateImageReceiverOptions() 307 HiviewDFX::HiLog::Error(LABEL, "JsCreateImageReceiverOptions check params failed"); in JsCreateImageReceiverOptions() 327 int32_t params[NUM_1] = {0}; in JsImageReceiverOptionsGetSize() local 330 if (!GetArgs(env, info, argv, params)) { in JsImageReceiverOptionsGetSize() 334 OH_ImageReceiverOptions* options = (OH_ImageReceiverOptions*)optionMap.find(params[NUM_0]); in JsImageReceiverOptionsGetSize() 353 int32_t params[NUM_3] = {0}; in JsImageReceiverOptionsSetSize() local 357 if (!GetArgs(env, info, argv, params)) { in JsImageReceiverOptionsSetSize() 361 OH_ImageReceiverOptions* options = (OH_ImageReceiverOptions*)optionMap.find(params[NUM_ in JsImageReceiverOptionsSetSize() 376 int32_t params[NUM_1] = {0}; JsImageReceiverOptionsGetCapacity() local 400 int32_t params[NUM_2] = {0}; JsImageReceiverOptionsSetCapacity() local 420 int32_t params[NUM_1] = {0}; JsReleaseImageReceiverOptions() local 441 int32_t params[NUM_1] = {0}; JsCreateImageReceiver() local 473 int32_t params[NUM_1] = {0}; JsGetReceivingSurfaceId() local 498 int32_t params[NUM_1] = {0}; JsReadLatestImage() local 529 int32_t params[NUM_1] = {0}; JsReadNextImage() local 560 int32_t params[NUM_2] = {0}; JsOn() local 595 int32_t params[NUM_1] = {0}; JsOff() local 615 int32_t params[NUM_1] = {0}; JsGetSize() local 641 int32_t params[NUM_1] = {0}; JsGetCapacity() local 665 int32_t params[NUM_1] = {0}; JsReleaseImageReceiver() local 686 int32_t params[NUM_1] = {0}; JsGetImageSize() local 712 int32_t params[NUM_1] = {0}; JsGetImageComponentTypes() local 759 int32_t params[NUM_2] = {0}; JsGetImageByteBuffer() local 784 int32_t params[NUM_2] = {0}; JsGetImageBufferSize() local 809 int32_t params[NUM_2] = {0}; JsGetImageRowStride() local 834 int32_t params[NUM_2] = {0}; JsGetImagePixelStride() local 859 int32_t params[NUM_1] = {0}; JsReleaseImage() local [all...] |
/test/xts/acts/security/crypto_framework_napi_BasicTest/src/ |
H A D | crypto_framework_sym_cipher_test.cpp | 224 OH_CryptoSymCipherParams *params = nullptr; in HWTEST_P() local 243 // params in HWTEST_P() 244 EXPECT_EQ(OH_CryptoSymCipherParams_Create(¶ms), CRYPTO_SUCCESS); in HWTEST_P() 246 EXPECT_EQ(OH_CryptoSymCipherParams_SetParam(params, CRYPTO_IV_DATABLOB, (Crypto_DataBlob *)&ivBlob), CRYPTO_SUCCESS); in HWTEST_P() 250 EXPECT_EQ(OH_CryptoSymCipher_Init(encCtx, CRYPTO_ENCRYPT_MODE, keyCtx, params), CRYPTO_SUCCESS); in HWTEST_P() 254 EXPECT_EQ(OH_CryptoSymCipher_Init(decCtx, CRYPTO_DECRYPT_MODE, keyCtx, params), CRYPTO_SUCCESS); in HWTEST_P() 258 OH_CryptoSymCipherParams_Destroy(params); in HWTEST_P() 284 OH_CryptoSymCipherParams *params = nullptr; in HWTEST_P() local 306 // params in HWTEST_P() 307 EXPECT_EQ(OH_CryptoSymCipherParams_Create(¶ms), CRYPTO_SUCCES in HWTEST_P() 351 OH_CryptoSymCipherParams *params = nullptr; HWTEST_P() local 418 OH_CryptoSymCipherParams *params = nullptr; HWTEST_P() local 506 OH_CryptoSymCipherParams *params = nullptr; HWTEST_P() local 607 OH_CryptoSymCipherParams *params = nullptr; HWTEST_F() local 649 OH_CryptoSymCipherParams *params = nullptr; HWTEST_F() local 704 OH_CryptoSymCipherParams *params = nullptr; HWTEST_F() local 775 OH_CryptoSymCipherParams *params = nullptr; HWTEST_P() local 811 OH_CryptoSymCipherParams *params = nullptr; HWTEST_F() local 857 OH_CryptoSymCipherParams *params = nullptr; HWTEST_F() local 908 OH_CryptoSymCipherParams *params = nullptr; HWTEST_F() local 960 OH_CryptoSymCipherParams *params = nullptr; HWTEST_F() local 1012 OH_CryptoSymCipherParams *params = nullptr; HWTEST_F() local 1066 OH_CryptoSymCipherParams *params = nullptr; HWTEST_F() local [all...] |
/test/xts/acts/multimedia/avsession/avsession_ndk_standard/avsession_ndk_stage/entry/src/main/cpp/ |
H A D | AvsessionTest.cpp | 536 * params = [sessionType, sessionTag, bundleName, abilityName,# create avsession para 569 static AVSessionError TestAVSessionTestAll(const ParamList& params) in TestAVSessionTestAll() argument 573 if (params.size() != avSessionTestAllParaCnt) { return AV_SESSION_ERR_INVALID_PARA; } in TestAVSessionTestAll() 575 AVSession_Type sessionType = static_cast<AVSession_Type>(std::get<double>(params[listIdx++])); in TestAVSessionTestAll() 576 const std::string& sessionTag = std::get<std::string>(params[listIdx++]); in TestAVSessionTestAll() 577 const std::string& bundleName = std::get<std::string>(params[listIdx++]); in TestAVSessionTestAll() 578 const std::string& abilityName = std::get<std::string>(params[listIdx++]); in TestAVSessionTestAll() 591 result = g_builderSetList[i](builder, params[listIdx++]); in TestAVSessionTestAll() 606 result = g_setSessionFunctions[i](session, params[listIdx++]); in TestAVSessionTestAll() 612 result = AVSessionSetPlaybackPosition(session, params[listId in TestAVSessionTestAll() 638 TestAVSessionCreate(const ParamList& params) TestAVSessionCreate() argument 661 TestAVSessionSetPlaybackState(const ParamList& params) TestAVSessionSetPlaybackState() argument 682 TestAVSessionSetFavorite(const ParamList& params) TestAVSessionSetFavorite() argument 702 TestAVSessionSetLoopMode(const ParamList& params) TestAVSessionSetLoopMode() argument 723 TestAVSessionSetPlaybackPosition(const ParamList& params) TestAVSessionSetPlaybackPosition() argument 756 TestAVSessionSetAVMetaData(const ParamList& params) TestAVSessionSetAVMetaData() argument 879 FindAndDoTest(const std::string& functionName, const ParamList& params) FindAndDoTest() argument 911 ParamList params; RunTest() local [all...] |
/test/xts/acts/security/cryptoFramework/js_api_test_oh40/entry/src/ohosTest/js/test/ |
H A D | AsyGetKeySpecBySpec.test.js | 65 expect(n == rsaKeyPairSpec.params.n).assertTrue();
98 expect(p == dsaKeyPairSpec.params.p).assertTrue();
102 expect(q == dsaKeyPairSpec.params.q).assertTrue();
106 expect(g == dsaKeyPairSpec.params.g).assertTrue();
147 expect(p == eccKeyPairSpec.params.field.p).assertTrue();
151 expect(a == eccKeyPairSpec.params.a).assertTrue();
155 expect(b == eccKeyPairSpec.params.b).assertTrue();
159 expect(gx == eccKeyPairSpec.params.g.x).assertTrue();
163 expect(gy == eccKeyPairSpec.params.g.y).assertTrue();
167 expect(n == eccKeyPairSpec.params [all...] |
/test/testfwk/arkxtest/uitest/server/ |
H A D | server_main.cpp | 88 map<char, string> ¶ms) in GetParam() 97 params.insert(pair<char, string>(opt, "true")); in GetParam() 100 params.insert(pair<char, string>(opt, "true")); in GetParam() 103 params.insert(pair<char, string>(opt, optarg)); in GetParam() 138 map<char, string> params; in DumpLayout() local 140 if (GetParam(argc, argv, "p:ia", usage, params) == EXIT_FAILURE) { in DumpLayout() 143 auto iter = params.find('p'); in DumpLayout() 144 if (iter != params.end()) { in DumpLayout() 147 const bool listWindows = params.find('i') != params in DumpLayout() 87 GetParam(int32_t argc, char *argv[], string_view optstring, string_view usage, map<char, string> ¶ms) GetParam() argument 177 map<char, string> params; ScreenCap() local [all...] |
/test/testfwk/xdevice/src/xdevice/_core/ |
H A D | plugin.py | 45 def __init__(self, params=None): 46 if params is None: 47 params = {} 48 self.update(params) 56 def update(self, params): 57 self.__dict__.update(params) 105 self.params = _param_dict 110 setattr(cls, _DEFAULT_CONFIG_NAME, Config(self.params)) 143 return self.params 187 params [all...] |
/test/xts/acts/security/cryptoFramework/js_api_test_oh40/entry/src/ohosTest/js/test/utils/common/ |
H A D | publicDoSpec.js | 31 params: eccCommonSpec,
41 params: eccCommonSpec,
49 params: eccCommonSpec,
113 params: dsaCommonSpec,
132 params: dsaCommonSpec,
149 params: rsaCommSpec,
217 params: rsaCommSpec,
232 params: rsaCommSpec,
245 params: dsaCommonSpec,
262 params [all...] |
/test/xts/device_attest_lite/interfaces/kit/js/src/ |
H A D | native_device_attest.cpp | 101 FuncParams* params = new(std::nothrow) FuncParams(); in ExecuteAsyncWork() local 102 if (params == nullptr) { in ExecuteAsyncWork() 106 params->thisVal = JSI::AcquireValue(thisVal); in ExecuteAsyncWork() 107 params->args = JSI::AcquireValue(args[0]); in ExecuteAsyncWork() 108 JsAsyncWork::DispatchAsyncWork(ExecuteFunc, reinterpret_cast<void *>(params)); in ExecuteAsyncWork() 162 FuncParams* params = reinterpret_cast<FuncParams *>(data); in ExecuteGetAttestResult() local 163 if (params == nullptr) { in ExecuteGetAttestResult() 166 JSIValue args = params->args; in ExecuteGetAttestResult() 167 JSIValue thisVal = params->thisVal; in ExecuteGetAttestResult() 176 delete params; in ExecuteGetAttestResult() [all...] |
/test/testfwk/arkxtest/uitest/cj/ |
H A D | uitest_ffi.cpp | 168 RetDataCString CJ_ApiCall(ApiCallParams params) in CJ_ApiCall() argument 172 LOG_D("apiId: %{public}s", params.apiId); in CJ_ApiCall() 173 callInfo_.apiId_ = string{params.apiId}; in CJ_ApiCall() 174 if (params.callerObjRef != nullptr) { in CJ_ApiCall() 175 LOG_D("callerObjRef_: %{public}s", params.callerObjRef); in CJ_ApiCall() 176 callInfo_.callerObjRef_ = string{params.callerObjRef}; in CJ_ApiCall() 178 if (params.paramList == nullptr) { in CJ_ApiCall() 182 LOG_D("paramList_: %{public}s", params.paramList); in CJ_ApiCall() 183 callInfo_.paramList_ = nlohmann::json::parse(string{params.paramList}); in CJ_ApiCall()
|
/test/testfwk/arkxtest/uitest/record/ |
H A D | least_square_impl.cpp | 21 bool LeastSquareImpl::GetLSMParams(std::vector<double>& params)
in GetLSMParams() argument 27 params.resize(paramsNum_, ZERO);
in GetLSMParams() 29 params.assign(params_.begin(), params_.end());
in GetLSMParams() 69 auto ret = matrix3n.ScaleMapping(yVals, params);
in GetLSMParams() 71 params_.assign(params.begin(), params.end());
in GetLSMParams()
|
/test/testfwk/arkxtest/jsunit/src/module/mock/ |
H A D | MockKit.js | 99 stubApply(f, params, returnInfo) { 104 let key = params[0]; 119 getReturnInfo(f, params) { 124 let retrunKet = params[0]; 134 if (matcher.matcheReturnKey(params[0], undefined, stubSetKey) && matcher.matcheReturnKey(params[0], undefined, stubSetKey) !== stubSetKey) { 135 retrunKet = params[0]; 139 if (ArgumentMatchers.isRegExp(key) && matcher.matcheReturnKey(params[0], key)) {
|
/test/xts/acts/security/cryptoFramework/js_api_test_oh40/entry/src/ohosTest/js/test/utils/symmetric/ |
H A D | publicSymmetricCallback.js | 30 let params;
34 params = genIvParamsSpec(16);
36 params = genIvParamsSpec(8);
41 params = genGcmParamsSpec();
43 params = genCcmParamsSpec();
45 params = null;
49 return params;
89 async function initCipher(cipherGenerator, mode, key, params) {
91 cipherGenerator.init(mode, key, params, (err) => {
|
H A D | publicSymmetricPromise.js | 30 let params;
34 params = genIvParamsSpec(16);
36 params = genIvParamsSpec(8);
41 params = genGcmParamsSpec();
43 params = genCcmParamsSpec();
45 params = null;
49 return params;
91 async function initCipher(cipherGenerator, mode, key, params) {
94 .init(mode, key, params)
|
/test/xts/acts/security/cryptoFramework/js_api_test_one/entry/src/ohosTest/js/test/utils/symmetric/ |
H A D | publicSymmetricCallback.js | 32 let params;
36 params = genIvParamsSpec(16);
38 params = genIvParamsSpec(8);
43 params = genGcmParamsSpec();
45 params = genCcmParamsSpec();
47 params = null;
51 return params;
91 async function initCipher(cipherGenerator, mode, key, params) {
93 cipherGenerator.init(mode, key, params, (err) => {
|
H A D | publicSymmetricPromise.js | 32 let params;
36 params = genIvParamsSpec(16);
38 params = genIvParamsSpec(8);
43 params = genGcmParamsSpec();
45 params = genCcmParamsSpec();
47 params = null;
51 return params;
93 async function initCipher(cipherGenerator, mode, key, params) {
96 .init(mode, key, params)
|
/test/testfwk/arkxtest/hamock/src/main/mock/ |
H A D | MockKit.js | 85 stubApply(f, params, returnInfo) { 90 let key = params[0]; 104 getReturnInfo(f, params) { 109 let retrunKet = params[0]; 119 if (matcher.matcheReturnKey(params[0], undefined, stubSetKey) && matcher.matcheReturnKey(params[0], undefined, stubSetKey) !== stubSetKey) { 120 retrunKet = params[0]; 123 if (ArgumentMatchers.isRegExp(key) && matcher.matcheReturnKey(params[0], key)) { 241 if (target.__Param) { // copy attributes and params of the original context
|
/test/testfwk/xdevice/plugins/ohos/src/ohos/ |
H A D | utils.py | 36 is_param, params = False, {} 43 params.update(parse_line_key_value(line)) 44 return params
|
/test/testfwk/arkxtest/uitest/test/ |
H A D | ipc_transactor_test.cpp | 83 const auto params = ParamSuite[idx]; in TEST_P() local 84 auto token = string("testInitConnection_#") + string(params.description); in TEST_P() 89 this_thread::sleep_for(chrono::milliseconds(params.serverDelay)); in TEST_P() 102 this_thread::sleep_for(chrono::milliseconds(params.clientDelay)); in TEST_P() 103 if (!params.tokenLegal) { in TEST_P() 108 ASSERT_EQ(success, params.expectConnSuccess); in TEST_P()
|
/test/testfwk/xdevice/src/xdevice/_core/command/ |
H A D | console.py | 348 help='- the params of kits that related to' 413 # params post-processing 443 params = getattr(options, ConfigConst.kits_params, "") 445 self._parse_kit_params(params)) 677 params = ResultReporter.get_task_info_params(history_path) 678 if not params: 681 params[ReportConst.session_id], params[ReportConst.command], \ 682 params[ReportConst.report_path], \ 683 [(module, failed) for module, case_list in params[ReportCons [all...] |
/test/xts/acts/security/huks/huks_napi_BasicTest/include/ |
H A D | huks_wrapped_test_common.h | 58 void HksImportWrappedKeyTestCommonCase(const struct HksImportWrappedKeyTestParams *params);
60 void HksClearKeysForWrappedKeyTest(const struct HksImportWrappedKeyTestParams *params);
|