Home
last modified time | relevance | path

Searched refs:param (Results 1 – 25 of 293) sorted by relevance

12345678910>>...12

/base/account/os_account/test/systemtest/common/resource/fuzzTest/src/
Dgetparam.cpp38 bool param = false; in GetBoolParam() local
40 param = true; in GetBoolParam()
42 cout << "Bool param is: " << param << endl; in GetBoolParam()
43 return param; in GetBoolParam()
51 size_t param = u(e); in GenRandom() local
52 return param; in GenRandom()
60 int8_t param = u(e); in GetS8Param() local
61 cout << "Int8_t param is: " << param << endl; in GetS8Param()
62 return param; in GetS8Param()
70 int16_t param = u(e); in GetS16Param() local
[all …]
/base/account/os_account/interfaces/kits/napi/appaccount/src/
Dnapi_app_account_authenticator.cpp72 …AccountAuthenticator::InitWorkEnv(uv_loop_s **loop, uv_work_t **work, JsAuthenticatorParam **param) in InitWorkEnv() argument
84 *param = new (std::nothrow) JsAuthenticatorParam(); in InitWorkEnv()
85 if (*param == nullptr) { in InitWorkEnv()
90 (*param)->env = env_; in InitWorkEnv()
91 (*param)->jsAuthenticator = jsAuthenticator_; in InitWorkEnv()
104 JsAuthenticatorParam *param = nullptr; in AddAccountImplicitly() local
105 ErrCode result = InitWorkEnv(&loop, &work, &param); in AddAccountImplicitly()
110 param->authType = authType; in AddAccountImplicitly()
111 param->callerBundleName = callerBundleName; in AddAccountImplicitly()
112 param->options = options; in AddAccountImplicitly()
[all …]
Dnapi_app_account_authenticator_callback.cpp70 static void ParseContextForOnResult(napi_env env, napi_callback_info cbInfo, CallbackParam *param) in ParseContextForOnResult() argument
76 napi_unwrap(env, thisVar, reinterpret_cast<void **>(&(param->callback))); in ParseContextForOnResult()
81 napi_get_value_int32(env, argv[i], &(param->resultCode)); in ParseContextForOnResult()
83 if (!AppExecFwk::UnwrapWantParams(env, argv[i], param->result)) { in ParseContextForOnResult()
93 …oid ParseContextForRequestRedirected(napi_env env, napi_callback_info cbInfo, CallbackParam *param) in ParseContextForRequestRedirected() argument
99 napi_unwrap(env, thisVar, reinterpret_cast<void **>(&(param->callback))); in ParseContextForRequestRedirected()
103 if (!AppExecFwk::UnwrapWant(env, argv[0], param->request)) { in ParseContextForRequestRedirected()
114 CallbackParam *param = reinterpret_cast<CallbackParam *>(data); in OnAuthenticatorWorkComplete() local
115 napi_delete_async_work(env, param->work); in OnAuthenticatorWorkComplete()
116 delete param; in OnAuthenticatorWorkComplete()
[all …]
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/
Dhisysevent.cpp228 void HiSysEvent::AppendInvalidParam(HiSysEvent::EventBase &eventBase, const HiSysEventParam &param) in AppendInvalidParam() argument
233 void HiSysEvent::AppendBoolParam(HiSysEvent::EventBase &eventBase, const HiSysEventParam &param) in AppendBoolParam() argument
235 AppendData<bool>(eventBase, param.name, param.v.b); in AppendBoolParam()
238 void HiSysEvent::AppendInt8Param(HiSysEvent::EventBase &eventBase, const HiSysEventParam &param) in AppendInt8Param() argument
240 AppendData<int8_t>(eventBase, param.name, param.v.i8); in AppendInt8Param()
243 void HiSysEvent::AppendUint8Param(HiSysEvent::EventBase &eventBase, const HiSysEventParam &param) in AppendUint8Param() argument
245 AppendData<uint8_t>(eventBase, param.name, param.v.ui8); in AppendUint8Param()
248 void HiSysEvent::AppendInt16Param(HiSysEvent::EventBase &eventBase, const HiSysEventParam &param) in AppendInt16Param() argument
250 AppendData<int16_t>(eventBase, param.name, param.v.i16); in AppendInt16Param()
253 void HiSysEvent::AppendUint16Param(HiSysEvent::EventBase &eventBase, const HiSysEventParam &param) in AppendUint16Param() argument
[all …]
/base/web/webview/interfaces/kits/napi/webviewcontroller/
Dwebview_hasimage_callback.cpp40 HasImageParam *param = new (std::nothrow) HasImageParam(); in OnReceiveValue() local
41 if (param == nullptr) { in OnReceiveValue()
45 param->env_ = env_; in OnReceiveValue()
46 param->callbackRef_ = callbackRef_; in OnReceiveValue()
47 param->deferred_ = deferred_; in OnReceiveValue()
48 param->result_ = result; in OnReceiveValue()
50 work->data = reinterpret_cast<void*>(param); in OnReceiveValue()
54 if (param != nullptr) { in OnReceiveValue()
55 delete param; in OnReceiveValue()
56 param = nullptr; in OnReceiveValue()
[all …]
Dwebview_javascript_execute_callback.cpp41 JavaScriptExecuteParam *param = new (std::nothrow) JavaScriptExecuteParam(); in OnReceiveValue() local
42 if (param == nullptr) { in OnReceiveValue()
46 param->env_ = env_; in OnReceiveValue()
47 param->callbackRef_ = callbackRef_; in OnReceiveValue()
48 param->deferred_ = deferred_; in OnReceiveValue()
49 param->result_ = result; in OnReceiveValue()
51 work->data = reinterpret_cast<void*>(param); in OnReceiveValue()
55 if (param != nullptr) { in OnReceiveValue()
56 delete param; in OnReceiveValue()
57 param = nullptr; in OnReceiveValue()
[all …]
Dwebview_javascript_result_callback.cpp38 WebviewJavaScriptResultCallBack::NapiJsCallBackParm *param = in UvJsCallbackThreadWoker() local
40 if (param == nullptr) { in UvJsCallbackThreadWoker()
47 napi_open_handle_scope(param->env_, &scope); in UvJsCallbackThreadWoker()
53 for (std::shared_ptr<NWebValue> input: param->args_) { in UvJsCallbackThreadWoker()
54 ParseNwebValue2NapiValue(param->env_, input, argv); in UvJsCallbackThreadWoker()
59 napi_get_reference_value(param->env_, param->callback_, &callback); in UvJsCallbackThreadWoker()
60 napi_call_function(param->env_, nullptr, callback, argv.size(), &argv[0], &callResult); in UvJsCallbackThreadWoker()
62 ParseNapiValue2NwebValue(param->env_, callResult, param->value_); in UvJsCallbackThreadWoker()
64 std::unique_lock<std::mutex> lock(param->mutex_); in UvJsCallbackThreadWoker()
65 param->ready_ = true; in UvJsCallbackThreadWoker()
[all …]
/base/notification/common_event_service/test/systemtest/common/resource/fuzzTest/src/
Dgetparam.cpp31 bool param; in GetBoolParam() local
33 param = true; in GetBoolParam()
35 param = false; in GetBoolParam()
37 return param; in GetBoolParam()
45 size_t param = u(e); in GenRandom() local
46 return param; in GenRandom()
54 int8_t param = u(e); in GetS8Param() local
55 return param; in GetS8Param()
62 int16_t param = u(e); in GetS16Param() local
63 return param; in GetS16Param()
[all …]
/base/notification/distributed_notification_service/test/resource/notificationfuzztest/src/
Dnotificationgetparam.cpp53 bool param; in GetBoolParam() local
55 param = true; in GetBoolParam()
57 param = false; in GetBoolParam()
59 return param; in GetBoolParam()
67 size_t param = u(e); in GenRandom() local
68 return param; in GenRandom()
76 int8_t param = u(e); in GetS8Param() local
77 return param; in GetS8Param()
84 int16_t param = u(e); in GetS16Param() local
85 return param; in GetS16Param()
[all …]
/base/security/device_auth/services/protocol/src/
Dprotocol_common.c33 int32_t InitSingleParam(Uint8Buff *param, uint32_t len) in InitSingleParam() argument
35 if (param == NULL) { in InitSingleParam()
39 if (param->val != NULL) { in InitSingleParam()
40 (void)memset_s(param->val, param->length, 0, param->length); in InitSingleParam()
41 HcFree(param->val); in InitSingleParam()
43 param->length = len; in InitSingleParam()
44 param->val = (uint8_t *)HcMalloc(param->length, 0); in InitSingleParam()
45 if (param->val == NULL) { in InitSingleParam()
/base/telephony/sms_mms/test/unittest/
Dsms_mms_test.cpp73 … void InitGsmFun(const std::unique_ptr<std::vector<TestStruct>> &funArray, const TestParam &param, in InitGsmFun() argument
77 …"TestSendShortText", std::bind(&GsmSmsSenderTest::TestSendShortText, param.gsmSmsSenderTest, smsSe… in InitGsmFun()
79 std::bind(&GsmSmsSenderTest::TestGsmSendShortData, param.gsmSmsSenderTest, smsService)); in InitGsmFun()
81 …"TestSendLongText", std::bind(&GsmSmsSenderTest::TestSendLongText, param.gsmSmsSenderTest, smsServ… in InitGsmFun()
83 std::bind(&GsmSmsSenderTest::TestGsmSendLongData, param.gsmSmsSenderTest, smsService)); in InitGsmFun()
85 …"TestSetSmscAddr", std::bind(&GsmSmsSenderTest::TestSetSmscAddr, param.gsmSmsSenderTest, smsServic… in InitGsmFun()
87 …"TestGetSmscAddr", std::bind(&GsmSmsSenderTest::TestGetSmscAddr, param.gsmSmsSenderTest, smsServic… in InitGsmFun()
88 …funArray->emplace_back("TestCbMessage", std::bind(&SmsCbMessageTest::ProcessTest, param.smsCbMessa… in InitGsmFun()
90 … std::bind(&GsmSmsSenderTest::TestEnableCBRangeConfig, param.gsmSmsSenderTest, smsService)); in InitGsmFun()
92 … std::bind(&GsmSmsSenderTest::TestDisableCBRangeConfig, param.gsmSmsSenderTest, smsService)); in InitGsmFun()
[all …]
/base/web/webview/interfaces/kits/napi/webstorage/
Dnapi_web_storage.cpp121 GetOriginsParam *param = reinterpret_cast<GetOriginsParam *>(data); in ExecuteGetOrigins() local
124 param->errCode = INTERFACE_ERROR; in ExecuteGetOrigins()
125 param->status = napi_generic_failure; in ExecuteGetOrigins()
134 param->origins.push_back(napiOrigin); in ExecuteGetOrigins()
136 param->errCode = param->origins.empty() ? NWebError::NO_WEBSTORAGE_ORIGIN : INTERFACE_OK; in ExecuteGetOrigins()
137 param->status = param->errCode == INTERFACE_OK ? napi_ok : napi_generic_failure; in ExecuteGetOrigins()
167 GetOriginsParam* param = static_cast<GetOriginsParam*>(data); in GetOriginComplete() local
174 if (param->status) { in GetOriginComplete()
180 GetNapiWebStorageOriginForResult(env, param->origins, setResult[PARAMONE]); in GetOriginComplete()
184 napi_get_reference_value(env, param->callbackRef, &callback); in GetOriginComplete()
[all …]
/base/web/webview/interfaces/kits/napi/webdatabase/
Dnapi_geolocation_permission.cpp171 GetOriginPermissionStateParam *param = static_cast<GetOriginPermissionStateParam *>(data); in GetPermissionStateComplete() local
178 if (param->status) { in GetPermissionStateComplete()
179 setResult[PARAMZERO] = NWebError::BusinessError::CreateError(env, param->errCode); in GetPermissionStateComplete()
183 napi_get_boolean(env, param->retValue, &setResult[PARAMONE]); in GetPermissionStateComplete()
187 napi_get_reference_value(env, param->callbackRef, &callback); in GetPermissionStateComplete()
190 napi_delete_reference(env, param->jsStringRef); in GetPermissionStateComplete()
191 napi_delete_reference(env, param->callbackRef); in GetPermissionStateComplete()
192 napi_delete_async_work(env, param->asyncWork); in GetPermissionStateComplete()
194 delete param; in GetPermissionStateComplete()
195 param = nullptr; in GetPermissionStateComplete()
[all …]
/base/hiviewdfx/hidumper_lite/
Dhidumper.c118 static void DumpMemData(int fd, struct MemDumpParam *param) in DumpMemData() argument
121 int ret = ioctl(fd, HIDUMPER_MEM_DATA, param); in DumpMemData()
127 (void)param; in DumpMemData()
158 struct MemDumpParam param; in ParameterMatching() local
174 param.type = DUMP_TO_STDOUT; in ParameterMatching()
175 DumpMemData(fd, &param); in ParameterMatching()
177 param.type = DUMP_TO_FILE; in ParameterMatching()
178 if (strncpy_s(param.filePath, sizeof(param.filePath), in ParameterMatching()
179 argv[TWO_OF_ARGC_PARAMETERS], sizeof(param.filePath) - 1) != EOK) { in ParameterMatching()
183 DumpMemData(fd, &param); in ParameterMatching()
[all …]
/base/update/updater/services/diffpatch/patch/
Dimage_patch.cpp31 int32_t NormalImagePatch::ApplyImagePatch(const PatchParam &param, size_t &startOffset) in ApplyImagePatch() argument
34 if (offset + PATCH_NORMAL_MIN_HEADER_LEN > param.patchSize) { in ApplyImagePatch()
39 size_t srcStart = static_cast<size_t>(ReadLE<int64_t>(param.patch + offset)); in ApplyImagePatch()
41 size_t srcLen = static_cast<size_t>(ReadLE<int64_t>(param.patch + offset)); in ApplyImagePatch()
43 size_t patchOffset = static_cast<size_t>(ReadLE<int64_t>(param.patch + offset)); in ApplyImagePatch()
46 if (srcStart + srcLen > param.oldSize) { in ApplyImagePatch()
51 PatchBuffer patchInfo = {param.patch, patchOffset, param.patchSize}; in ApplyImagePatch()
52 BlockBuffer oldInfo = {param.oldBuff + srcStart, srcLen}; in ApplyImagePatch()
62 int32_t RowImagePatch::ApplyImagePatch(const PatchParam &param, size_t &startOffset) in ApplyImagePatch() argument
65 if (offset + sizeof(int32_t) > param.patchSize) { in ApplyImagePatch()
[all …]
/base/startup/init/services/param/base/
Dparam_base.c389 CachedParameter *param = (CachedParameter *)malloc( in CachedParameterCreate() local
391 PARAM_CHECK(param != NULL, return NULL, "Failed to create CachedParameter for %s", name); in CachedParameterCreate()
392 ret = ParamStrCpy(param->data, nameLen + 1, name); in CachedParameterCreate()
393 PARAM_CHECK(ret == 0, free(param); in CachedParameterCreate()
395 param->workspace = workspace; in CachedParameterCreate()
396 param->nameLen = nameLen; in CachedParameterCreate()
397 param->paramValue = &param->data[PARAM_ALIGN(nameLen) + 1]; in CachedParameterCreate()
398 param->bufferLen = PARAM_VALUE_LEN_MAX; in CachedParameterCreate()
399 param->dataCommitId = (uint32_t)-1; in CachedParameterCreate()
401 param->dataIndex = node->dataIndex; in CachedParameterCreate()
[all …]
/base/startup/init/test/unittest/lite/
DBUILD.gn40 "//base/startup/init/services/param/manager/param_manager.c",
41 "//base/startup/init/services/param/manager/param_persist.c",
42 "//base/startup/init/services/param/manager/param_server.c",
47 "//base/startup/init/services/param/base/param_base.c",
48 "//base/startup/init/services/param/base/param_comm.c",
49 "//base/startup/init/services/param/base/param_trie.c",
84 "//base/startup/init/services/include/param",
91 "//base/startup/init/services/param/adapter",
92 "//base/startup/init/services/param/base",
93 "//base/startup/init/services/param/linux",
[all …]
/base/account/os_account/interfaces/kits/napi/domain_account/src/
Dnapi_domain_auth_callback.cpp99 static bool ParseContextForOnResult(napi_env env, napi_callback_info cbInfo, CallbackParam *param) in ParseContextForOnResult() argument
111 param->callback = napiCallback->GetDomainAuthCallback(); in ParseContextForOnResult()
116 napi_get_value_int32(env, argv[0], &(param->resultCode)); in ParseContextForOnResult()
117 ParseDoaminAuthResult(env, argv[1], param->authResult); in ParseContextForOnResult()
123 auto *param = new (std::nothrow) CallbackParam(env); in JsOnResult() local
124 if (param == nullptr) { in JsOnResult()
128 std::unique_ptr<CallbackParam> paramPtr(param); in JsOnResult()
129 ParseContextForOnResult(env, cbInfo, param); in JsOnResult()
134 CallbackParam *param = reinterpret_cast<CallbackParam *>(data); in JsOnResult() local
135 if ((param == nullptr) || (param->callback == nullptr)) { in JsOnResult()
[all …]
Dnapi_domain_account_manager.cpp89 JsDomainPluginParam *param = reinterpret_cast<JsDomainPluginParam *>(work->data); in AuthWork() local
90 …napi_value napiDomainAccountInfo = CreateNapiDomainAccountInfo(param->env, param->domainAccountInf… in AuthWork()
91 …napi_value napiCredential = CreateUint8Array(param->env, param->credential.data(), param->credenti… in AuthWork()
92 napi_value napiCallback = CreateNapiDomainAuthCallback(param->env, param->callback); in AuthWork()
95 napi_get_undefined(param->env, &undefined); in AuthWork()
98 napi_get_reference_value(param->env, param->jsPlugin.auth, &funcRef); in AuthWork()
102 napi_call_function(param->env, undefined, funcRef, ARG_SIZE_THREE, argv, &returnVal); in AuthWork()
126 JsDomainPluginParam *param = new (std::nothrow) JsDomainPluginParam(); in Auth() local
127 if (param == nullptr) { in Auth()
132 param->env = env_; in Auth()
[all …]
/base/startup/init/services/param/liteos/
DBUILD.gn18 "//base/startup/init/services/param/include",
19 "//base/startup/init/services/param/adapter",
20 "//base/startup/init/services/param/base",
21 "//base/startup/init/services/include/param",
47 "//base/startup/init/services/etc_lite/param/ohos_const/ohos.para"),
51 rebase_path("//base/startup/init/services/etc/param/ohos.para"),
62 "//base/startup/init/interfaces/service/include/param",
63 "//base/startup/init/interfaces/service/param/include",
69 "//base/startup/init/services/param/base/param_base.c",
70 "//base/startup/init/services/param/base/param_comm.c",
[all …]
/base/hiviewdfx/hiview/utility/smart_parser/feature_analysis/
Dfeature_analysis.cpp194 if (rule.param.empty()) { in ParseElementForParam()
199 for (auto iter = rule.param.begin(); iter != rule.param.end();) { in ParseElementForParam()
210 iter = rule.param.erase(iter); in ParseElementForParam()
219 return hasContinue ? false : rule.param.empty(); in ParseElementForParam()
222 int FeatureAnalysis::GetSeekInfo(const string& param, string& value) const in GetSeekInfo() argument
224 if (param.find(L3_SEEK_LAST) != string::npos) { in GetSeekInfo()
225 value = StringUtil::GetRightSubstr(param, L3_SEEK_LAST); in GetSeekInfo()
228 value = param; in GetSeekInfo()
242 for (const auto& param : paramSeekRecord_) { in CheckVariableParam() local
243 symbol = L3_DESCRIPTOR_LEFT + param.first + L3_DESCRIPTOR_RIGHT; in CheckVariableParam()
[all …]
/base/telephony/core_service/frameworks/native/src/
Dcell_location.cpp50 GsmCellLocation *param = new (std::nothrow) GsmCellLocation(); in Unmarshalling() local
51 if (param == nullptr) { in Unmarshalling()
54 if (!param->ReadFromParcel(parcel)) { in Unmarshalling()
55 delete param; in Unmarshalling()
56 param = nullptr; in Unmarshalling()
58 return param; in Unmarshalling()
131 CdmaCellLocation *param = new (std::nothrow) CdmaCellLocation(); in Unmarshalling() local
132 if (param == nullptr) { in Unmarshalling()
135 if (!param->ReadFromParcel(parcel)) { in Unmarshalling()
136 delete param; in Unmarshalling()
[all …]
/base/security/certificate_manager/test/unittest/module_test/src/
Dcm_param_test.cpp70 struct CmParam param[] = { variable
73 int32_t ret = CmAddParams(nullptr, param, sizeof(param) / sizeof(struct CmParam));
104 struct CmParam param[] = { variable
107 int32_t ret = CmAddParams(&paramSet, param, sizeof(param) / sizeof(struct CmParam));
123 struct CmParam param[] = { variable
126 ret = CmAddParams(paramSet, param, CM_DEFAULT_PARAM_CNT + 1);
145 struct CmParam param[] = { variable
148 ret = CmAddParams(paramSet, param, sizeof(param) / sizeof(struct CmParam));
167 struct CmParam param[] = { variable
170 ret = CmAddParams(paramSet, param, sizeof(param) / sizeof(struct CmParam));
[all …]
/base/startup/init/services/param/linux/
DBUILD.gn20 "//base/startup/init/interfaces/service/include/param",
21 "//base/startup/init/interfaces/service/param/include",
28 "//base/startup/init/services/param/include",
29 "//base/startup/init/services/param/adapter",
30 "//base/startup/init/services/param/linux",
31 "//base/startup/init/services/param/base",
32 "//base/startup/init/services/include/param",
47 "//base/startup/init/services/param/adapter/param_persistadp.c",
48 "//base/startup/init/services/param/linux/param_message.c",
49 "//base/startup/init/services/param/linux/param_msgadp.c",
[all …]
/base/security/device_auth/services/group_auth/src/session/auth_session/
Dauth_session_client.c117 static void PrintErrorInputInfo(const CJson *param) in PrintErrorInputInfo() argument
119 const char *peerUdid = GetStringFromJson(param, FIELD_PEER_CONN_DEVICE_ID); in PrintErrorInputInfo()
120 const char *peerAuthId = GetStringFromJson(param, FIELD_PEER_AUTH_ID); in PrintErrorInputInfo()
165 static Session *CreateClientAuthSessionInner(int32_t osAccountId, CJson *param, const DeviceAuthCal… in CreateClientAuthSessionInner() argument
169 int32_t res = GetAuthParamsList(osAccountId, param, &authParamsVec); in CreateClientAuthSessionInner()
173 PrintErrorInputInfo(param); in CreateClientAuthSessionInner()
174 InformLocalAuthError(param, callback); in CreateClientAuthSessionInner()
182 InformLocalAuthError(param, callback); in CreateClientAuthSessionInner()
189 session->base.appId = GetDuplicateServicePkgName(param); in CreateClientAuthSessionInner()
196 InformLocalAuthError(param, callback); in CreateClientAuthSessionInner()
[all …]

12345678910>>...12