/base/startup/init/interfaces/innerkits/syspara/ |
H A D | param_comm.c | 106 char *res = (char *)calloc(1, len + 1);
in GetProperty() local 107 BEGET_CHECK(res != NULL, return NULL);
in GetProperty() 108 ret = SystemGetParameter(key, res, &len);
in GetProperty() 110 free(res);
in GetProperty() 114 res = g_propertyGetProcessor(key, res);
in GetProperty() 116 *paramHolder = res;
in GetProperty()
|
/base/startup/init/services/param/watcher/agent/ |
H A D | watcher_manager_proxy.cpp | 32 int32_t res = SendWatcherMsg(static_cast<uint32_t>(ParamWatcherInterfaceCode::ADD_REMOTE_AGENT), in AddRemoteWatcher() local 34 WATCHER_CHECK(res == ERR_OK, return 0, "Transact error %d", res); in AddRemoteWatcher() 45 int32_t res = SendWatcherMsg(static_cast<uint32_t>(ParamWatcherInterfaceCode::DEL_REMOTE_AGENT), in DelRemoteWatcher() local 47 WATCHER_CHECK(res == ERR_OK, return ERR_FLATTEN_OBJECT, "Transact error"); in DelRemoteWatcher() 59 int32_t res = SendWatcherMsg(op, data, reply, option); in SendMsg() local 60 WATCHER_CHECK(res == ERR_OK, return 0, "Transact error"); in SendMsg()
|
/base/request/request/services/src/cxx/ |
H A D | url_policy.cpp | 76 int32_t res = -1; in CheckUrlDomain() local 79 return res; in CheckUrlDomain() 83 return res; in CheckUrlDomain() 85 res = this->checkUrlFunc(app_id, domain_type, url); in CheckUrlDomain() 86 return res; in CheckUrlDomain()
|
/base/security/selinux_adapter/framework/policycoreutils/src/ |
H A D | selinux_klog.c | 72 int res = 0;
in SelinuxKmsg() local 74 res = snprintf_s(logInfo, MAX_LOG_SIZE, MAX_LOG_SIZE - 1, "[pid=%d][%s][%s] %s", getpid(), "SELINUX",
in SelinuxKmsg() 77 res = snprintf_s(logInfo, MAX_LOG_SIZE, MAX_LOG_SIZE - 1, "%s", tmpFmt);
in SelinuxKmsg() 79 if (res == -1) {
in SelinuxKmsg()
|
/base/security/access_token/interfaces/innerkits/analysis_model/src/ |
H A D | code_signature_analysis_kit.c | 173 int32_t res = DataPreProcess(report, node, optType); in UpdateInfoInCurrNode() local 174 if (res != OPER_SUCCESS) { in UpdateInfoInCurrNode() 175 return res; in UpdateInfoInCurrNode() 177 res = IsRiskStatusChanged(node); in UpdateInfoInCurrNode() 181 if (res == STATUS_NOT_CHANGED) { in UpdateInfoInCurrNode() 210 int32_t res = strcpy_s(node->bundleName, MAX_BUNDLE_NAME_LENGTH - 1, report->bundleName); in AddNewAppInfoNode() local 211 if (res != OPER_SUCCESS) { in AddNewAppInfoNode() 215 return res; in AddNewAppInfoNode() 218 res = DataPreProcess(report, node, optType); in AddNewAppInfoNode() 219 if (res ! in AddNewAppInfoNode() 252 int32_t res = UpdateInfoInCurrNode(report, node, optType); DataProcess() local 263 int32_t res = AddNewAppInfoNode(report, optType); DataProcess() local 277 int32_t res = DataProcess(report, optType); DatabaseListener() local 416 int32_t res = pthread_mutex_init(&g_modelVisitLock, NULL); GetModelApi() local [all...] |
/base/location/frameworks/location_common/common/source/ |
H A D | location_data_rdb_manager.cpp | 65 int res = LocationDataRdbManager::GetSwitchStateFromSysparaForCurrentUser(); in QuerySwitchState() local 66 if (res == DISABLED || res == ENABLED) { in QuerySwitchState() 67 return res; in QuerySwitchState() 77 if (res == DEFAULT_SWITCH_STATE && state != DEFAULT_SWITCH_STATE) { in QuerySwitchState() 166 auto res = GetParameter(LOCATION_SWITCH_MODE, "", result, MAX_SIZE); in GetSwitchStateFromSysparaForUser() local 167 if (res < 0 || strlen(result) == 0) { in GetSwitchStateFromSysparaForUser() 168 LBSLOGE(COMMON_UTILS, "%{public}s get para value failed, res: %{public}d", __func__, res); in GetSwitchStateFromSysparaForUser() 195 auto res in SetSwitchStateToSysparaForUser() local [all...] |
/base/account/os_account/frameworks/appaccount/cj/src/ |
H A D | appaccount_ffi.cpp | 95 ErrCArrAppAccountInfo res{}; in FfiAppAccountAppAccountManagerGetAccountsByOwner() 96 res.err = ERR_CJ_SYSTEM_SERVICE_EXCEPTION; in FfiAppAccountAppAccountManagerGetAccountsByOwner() 97 return res; in FfiAppAccountAppAccountManagerGetAccountsByOwner() 174 ErrCArrAuthTokenInfo res{}; in FfiAppAccountAppAccountManagerGetAllAuthTokens() 175 res.err = ERR_CJ_SYSTEM_SERVICE_EXCEPTION; in FfiAppAccountAppAccountManagerGetAllAuthTokens() 176 return res; in FfiAppAccountAppAccountManagerGetAllAuthTokens() 185 RetDataCArrString res = { .code = ERR_CJ_SYSTEM_SERVICE_EXCEPTION, .data = {.head = nullptr, .size = 0}}; in FfiAppAccountAppAccountManagerGetAuthList() local 186 return res; in FfiAppAccountAppAccountManagerGetAuthList() 195 ErrCAuthenticatorInfo res{}; in FfiAppAccountAppAccountManagerQueryAuthenticatorInfo() 196 res in FfiAppAccountAppAccountManagerQueryAuthenticatorInfo() [all...] |
/base/security/device_auth/services/key_agree_sdk/src/ |
H A D | key_agree_sdk.c | 66 int32_t res = AddIntToJson(outJson, FIELD_SDK_ERROR_CODE, errorCode); in BuildErrorMessage() local 67 if (res != HC_SUCCESS) { in BuildErrorMessage() 68 LOGE("Add errorCode failed, res: %d.", res); in BuildErrorMessage() 110 int32_t res = KEYAGREE_SUCCESS; in InitKeyAgreeStartSessionParams() local 114 res = KEYAGREE_START_INIT_PARAMS_SHAREDSECRET_FAIL; in InitKeyAgreeStartSessionParams() 120 res = KEYAGREE_START_MEMORY_COPY_SHAREDSECRET_FAIL; in InitKeyAgreeStartSessionParams() 125 res = KEYAGREE_START_MEMORY_COPY_DEVID_FAIL; in InitKeyAgreeStartSessionParams() 131 res = KEYAGREE_START_MEMORY_COPY_DEVID_FAIL; in InitKeyAgreeStartSessionParams() 138 if (res ! in InitKeyAgreeStartSessionParams() 208 int32_t res = InitKeyAgreeStartSessionParams(spekeSession, sharedSecret, deviceId, extras); KeyAgreeStartSession() local [all...] |
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/ |
H A D | sys_event_callback_proxy.cpp | 45 int32_t res = remote->SendRequest( in Handle() local 47 if (res != ERR_OK) { in Handle() 48 HIVIEW_LOGE("send request failed, error is %{public}d.", res); in Handle()
|
/base/security/appverify/interfaces/innerkits/appverify/src/common/ |
H A D | hap_byte_buffer_data_source.cpp | 50 bool res = HapVerifyOpensslUtils::DigestUpdate(digestParam, chunk, chunkSize); in ReadDataAndDigestUpdate() local 51 if (res) { in ReadDataAndDigestUpdate() 54 return res; in ReadDataAndDigestUpdate()
|
/base/security/device_auth/deps_adapter/os_adapter/impl/src/linux/ |
H A D | hc_dev_info.c | 31 int32_t res = GetDevUdid((char *)udid, udidLen); in HcGetUdid() local 32 if (res != 0) { in HcGetUdid() 33 LOGE("[UDID]: GetDevUdid fail. [Res]: %d", res); in HcGetUdid()
|
/base/security/security_component_manager/frameworks/inner_api/security_component/src/ |
H A D | sec_comp_dialog_callback_stub.cpp | 41 int32_t res; in OnRemoteRequest() local 42 if (!data.ReadInt32(res)) { in OnRemoteRequest() 47 OnDialogClosed(res); in OnRemoteRequest()
|
/base/telephony/call_manager/frameworks/cj/src/ |
H A D | telephony_call_utils.h | 30 char* res = static_cast<char*>(malloc(sizeof(char) * lenth)); in MallocCString() local 31 if (res == nullptr) { in MallocCString() 34 return std::char_traits<char>::copy(res, origin.c_str(), lenth); in MallocCString()
|
/base/telephony/state_registry/frameworks/cj/src/ |
H A D | telephony_observer_utils.cpp | 26 char* res = static_cast<char*>(malloc(sizeof(char) * lenth)); in MallocCString() local 27 if (res == nullptr) { in MallocCString() 30 return std::char_traits<char>::copy(res, origin.c_str(), lenth); in MallocCString()
|
/base/hiviewdfx/hilog/test/unittest/common/ |
H A D | hilog_print_test.cpp | 103 std::string res = GetCmdResultFromPopen("hilog -T HILOGTEST_C -x");
in HWTEST_F() local 106 Split(res, vec, "\n");
in HWTEST_F() 141 std::string res = GetCmdResultFromPopen("hilog -T HILOGTEST_C -x");
in HWTEST_F() local 144 Split(res, vec, "\n");
in HWTEST_F() 167 std::string res = GetCmdResultFromPopen("hilog -T HILOGTEST_C -x");
in HWTEST_F() local 170 Split(res, vec, "\n");
in HWTEST_F() 199 std::string res = GetCmdResultFromPopen("hilog -T HILOGTEST_C -x");
in HWTEST_F() local 202 Split(res, vec, "\n");
in HWTEST_F()
|
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | notification_multiline_content_test.cpp | 184 auto res = rrc->FromJson(jsonObject);
in HWTEST_F() local 185 EXPECT_NE(res, nullptr);
in HWTEST_F() 200 auto res = rrc->FromJson(jsonObject);
in HWTEST_F() local 201 EXPECT_NE(res, nullptr);
in HWTEST_F() 216 auto res = rrc->FromJson(jsonObject);
in HWTEST_F() local 217 EXPECT_NE(res, nullptr);
in HWTEST_F() 232 auto res = rrc->FromJson(jsonObject);
in HWTEST_F() local 233 EXPECT_NE(res, nullptr);
in HWTEST_F()
|
/base/security/certificate_framework/frameworks/js/napi/certificate/src/ |
H A D | napi_cert_crl_common.cpp | 61 CfResult res = GetCertObject(cert, &certObj); in ConvertCertToNapiValue() local 62 if (res != CF_SUCCESS) { in ConvertCertToNapiValue() 187 CfResult res = x509Cert->base.getEncoded(&(x509Cert->base), &encodingBlob); in GetCertObject() local 188 if (res != CF_SUCCESS) { in GetCertObject() 190 return res; in GetCertObject() 192 res = static_cast<CfResult>(CfCreate(CF_OBJ_TYPE_CERT, &encodingBlob, out)); in GetCertObject() 193 if (res != CF_SUCCESS) { in GetCertObject() 196 return res; in GetCertObject()
|
/base/security/certificate_framework/test/fuzztest/v1.0/x509certificate_fuzzer/ |
H A D | x509certificate_fuzzer.cpp | 60 CfResult res = x509CertObj->base.getEncoded(&(x509CertObj->base), &derBlob); in TestGetEncoded() local 61 if (res != CF_SUCCESS) { in TestGetEncoded() 70 CfResult res = x509CertObj->base.getPublicKey(&(x509CertObj->base), (void **)&keyOut); in TestVerify() local 71 if (res != CF_SUCCESS) { in TestVerify() 168 CfResult res = HcfX509CertificateCreate(&inStream, &x509CertObj); in CreateOneCert() local 169 if (res != CF_SUCCESS) { in CreateOneCert() 192 CfResult res = HcfX509CertificateCreate(&inStream, &x509CertObj); in X509CertificateFuzzTest() local 193 if (res != CF_SUCCESS) { in X509CertificateFuzzTest()
|
/base/hiviewdfx/hidumper/frameworks/native/src/util/zip/ |
H A D | zip_writer.cpp | 65 int res = ZIP_OK; in Close() local 68 res = zipClose(zipFile_, nullptr); in Close() 72 bool ret = (res == ZIP_OK); in Close() 74 DUMPER_HILOGD(MODULE_COMMON, "Close leave|ret=%{public}d, res=%{public}d", ret, res); in Close() 163 int res = zipOpenNewFileInZip4(zip_file, strPath.c_str(), &fileInfo, in ZipOpenNewFileInZip() local 167 bool ret = (res == ZIP_OK); in ZipOpenNewFileInZip() 169 DUMPER_HILOGD(MODULE_COMMON, "ZipOpenNewFileInZip leave|ret=%{public}d, res=%{public}d", ret, res); in ZipOpenNewFileInZip() 224 int res in CloseNewFileEntry() local [all...] |
/base/security/security_component_manager/services/security_component_service/sa/sa_main/ |
H A D | sec_comp_entity.cpp | 108 int32_t res = SC_SERVICE_ERROR_CLICK_EVENT_INVALID; in CheckClickInfo() local 111 res = CheckPointEvent(clickInfo); in CheckClickInfo() 116 res = CheckKeyEvent(clickInfo); in CheckClickInfo() 118 if (res != SC_OK) { in CheckClickInfo() 119 return res; in CheckClickInfo() 122 res = SecCompEnhanceAdapter::CheckExtraInfo(clickInfo); in CheckClickInfo() 123 if (res == SC_SERVICE_ERROR_CLICK_EVENT_INVALID) { in CheckClickInfo() 125 return res; in CheckClickInfo() 128 if ((res != SC_OK) && (res ! in CheckClickInfo() [all...] |
/base/security/crypto_framework/frameworks/js/napi/crypto/src/ |
H A D | napi_pri_key.cpp | 85 HcfResult res = priKey->base.getEncoded(&priKey->base, &returnBlob); in JsGetEncoded() local 86 if (res != HCF_SUCCESS) { in JsGetEncoded() 87 napi_throw(env, GenerateBusinessError(env, res, "c getEncoded fail.")); in JsGetEncoded() 95 napi_throw(env, GenerateBusinessError(env, res, "covert blob to napi value failed.")); in JsGetEncoded() 139 HcfResult res = priKey->base.getEncodedPem(&priKey->base, format.c_str(), &returnString); in JsGetEncodedPem() local 140 if (res != HCF_SUCCESS) { in JsGetEncodedPem() 142 napi_throw(env, GenerateBusinessError(env, res, "getEncodedPem fail.")); in JsGetEncodedPem() 177 HcfResult res = priKey->getAsyKeySpecBigInteger(priKey, item, &returnBigInteger); in GetAsyKeySpecBigInt() local 178 if (res != HCF_SUCCESS) { in GetAsyKeySpecBigInt() 179 napi_throw(env, GenerateBusinessError(env, res, " in GetAsyKeySpecBigInt() 198 HcfResult res = priKey->getAsyKeySpecInt(priKey, item, &returnInt); GetAsyKeySpecNumber() local 213 HcfResult res = priKey->getAsyKeySpecString(priKey, item, &returnString); GetAsyKeySpecString() local 305 HcfResult res = priKey->getEncodedDer(priKey, format.c_str(), &returnBlob); JsGetEncodedDer() local [all...] |
H A D | napi_pub_key.cpp | 85 HcfResult res = pubKey->base.getEncoded(&pubKey->base, &returnBlob); in JsGetEncoded() local 86 if (res != HCF_SUCCESS) { in JsGetEncoded() 95 napi_throw(env, GenerateBusinessError(env, res, "covert blob to napi value failed.")); in JsGetEncoded() 137 HcfResult res = pubKey->getEncodedDer(pubKey, format.c_str(), &returnBlob); in JsGetEncodedDer() local 138 if (res != HCF_SUCCESS) { in JsGetEncodedDer() 140 napi_throw(env, GenerateBusinessError(env, res, "c getEncodedDer fail.")); in JsGetEncodedDer() 147 napi_throw(env, GenerateBusinessError(env, res, "covert blob to napi value failed.")); in JsGetEncodedDer() 191 HcfResult res = pubKey->base.getEncodedPem(&pubKey->base, format.c_str(), &returnString); in JsGetEncodedPem() local 192 if (res != HCF_SUCCESS) { in JsGetEncodedPem() 194 napi_throw(env, GenerateBusinessError(env, res, "getEncodedPe in JsGetEncodedPem() 206 HcfResult res = pubKey->getAsyKeySpecBigInteger(pubKey, item, &returnBigInteger); GetAsyKeySpecBigInt() local 227 HcfResult res = pubKey->getAsyKeySpecInt(pubKey, item, &returnInt); GetAsyKeySpecNumber() local 242 HcfResult res = pubKey->getAsyKeySpecString(pubKey, item, &returnString); GetAsyKeySpecString() local [all...] |
/base/account/os_account/services/accountmgr/src/osaccount/ |
H A D | os_account_manager_service.cpp | 257 ErrCode res = CheckLocalId(id); in RemoveOsAccount() local 258 if (res != ERR_OK) { in RemoveOsAccount() 259 return res; in RemoveOsAccount() 299 ErrCode res = CheckLocalId(id); in IsOsAccountConstraintEnable() local 300 if (res != ERR_OK) { in IsOsAccountConstraintEnable() 301 return res; in IsOsAccountConstraintEnable() 315 ErrCode res = CheckLocalId(id); in CheckOsAccountConstraintEnabled() local 316 if (res != ERR_OK) { in CheckOsAccountConstraintEnabled() 317 return res; in CheckOsAccountConstraintEnabled() 337 ErrCode res in IsOsAccountVerified() local 454 ErrCode res = CheckLocalId(id); QueryOsAccountById() local 512 ErrCode res = CheckLocalId(id); SetOsAccountName() local 541 ErrCode res = CheckLocalId(id); SetOsAccountConstraints() local 561 ErrCode res = CheckLocalId(id); SetOsAccountProfilePhoto() local 589 ErrCode res = CheckLocalId(id); ActivateOsAccount() local 609 ErrCode res = CheckLocalId(id); DeactivateOsAccount() local 656 ErrCode res = innerManager_.QueryActiveOsAccountIds(userIds); DeactivateAllOsAccounts() local 785 ErrCode res = CheckLocalId(id); SetCurrentOsAccountIsVerified() local 799 ErrCode res = CheckLocalId(id); SetOsAccountIsVerified() local 963 ErrCode res = CheckLocalId(id); QueryOsAccountConstraintSourceTypes() local [all...] |
H A D | os_account_plugin_manager.cpp | 133 int32_t res = (*reinterpret_cast<VerifyActivationLockFunc>(iter->second))(callback); in PluginVerifyActivationLockFunc() local 134 if (res != ERR_OK) { in PluginVerifyActivationLockFunc() 136 return res; in PluginVerifyActivationLockFunc() 153 ErrCode res = PluginVerifyActivationLockFunc(isAllowed); in IsCreationAllowed() 155 if (res != ERR_OK) { in IsCreationAllowed() 156 ACCOUNT_LOGE("Call IsOsAccountCreationAllowed failed, ErrCode=%{public}d", res); in IsCreationAllowed()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/sigdump_handler/ |
H A D | dfx_sigdump_handler.cpp | 117 int res = DUMP_ESUCCESS; in RunThread() local 140 res = DUMP_EBADFRAME; in RunThread() 142 res = DUMP_ENOINFO; in RunThread() 144 ssize_t nres = OHOS_TEMP_FAILURE_RETRY(write(resFd, &res, sizeof(res))); in RunThread() 145 if (nres != sizeof(res)) { in RunThread()
|