Home
last modified time | relevance | path

Searched refs:res (Results 201 - 225 of 795) sorted by relevance

12345678910>>...32

/base/web/webview/interfaces/kits/cj/src/
H A Dwebview_utils.cpp29 char* res = static_cast<char*>(malloc(sizeof(char) * len)); in MallocCString() local
30 if (res == nullptr) { in MallocCString()
33 return std::char_traits<char>::copy(res, origin.c_str(), len); in MallocCString()
42 char* res = static_cast<char*>(malloc(sizeof(char) * len)); in MallocUInt8() local
43 if (res == nullptr) { in MallocUInt8()
46 return reinterpret_cast<uint8_t*>(std::char_traits<char>::copy(res, origin.c_str(), len)); in MallocUInt8()
/base/security/device_auth/deps_adapter/os_adapter/impl/src/
H A Dhc_task_thread.c87 int32_t res = thread->thread.start(&thread->thread); in StartTaskThread() local
88 if (res != HAL_SUCCESS) { in StartTaskThread()
89 LOGE("Start thread failed, res:%d", res); in StartTaskThread()
91 return res; in StartTaskThread()
131 int32_t res = InitThread(&thread->thread, TaskThreadLoop, stackSize, threadName); in InitHcTaskThread() local
132 if (res != 0) { in InitHcTaskThread()
133 return res; in InitHcTaskThread()
135 res = InitHcMutex(&thread->queueLock); in InitHcTaskThread()
136 if (res ! in InitHcTaskThread()
[all...]
/base/security/dlp_permission_service/services/dlp_permission/sa/adapt/
H A Daccount_adapt.cpp59 int32_t res = OHOS::AccountSA::OsAccountManager::GetForegroundOsAccountLocalId(*userId); in GetUserIdByForegroundAccount() local
60 if (res != 0) { in GetUserIdByForegroundAccount()
61 DLP_LOG_ERROR(LABEL, "GetForegroundOsAccountLocalId failed %{public}d", res); in GetUserIdByForegroundAccount()
95 int32_t res; in IsAccountLogIn() local
98 res = OhosAccountKits::GetInstance().GetOhosAccountInfoByUserId(osAccountId, accountInfo); in IsAccountLogIn()
99 if (res != DLP_SUCCESS) { in IsAccountLogIn()
100 DLP_LOG_ERROR(LABEL, "GetOhosAccountInfoByUserId from OhosAccountKits failed, res:%{public}d.", res); in IsAccountLogIn()
120 res = DomainAccountClient::GetInstance().GetAccountStatus(info, status); in IsAccountLogIn()
121 if (res ! in IsAccountLogIn()
[all...]
/base/hiviewdfx/hisysevent/adapter/native/idl/src/
H A Dsys_event_service_proxy.cpp60 int32_t res = remote->SendRequest(ADD_SYS_EVENT_LISTENER, data, reply, option); in AddListener() local
61 if (res != ERR_OK) { in AddListener()
62 HILOG_ERROR(LOG_CORE, "send request failed, error is %{public}d.", res); in AddListener()
96 int32_t res = remote->SendRequest(REMOVE_SYS_EVENT_LISTENER, data, reply, option); in RemoveListener() local
97 if (res != ERR_OK) { in RemoveListener()
98 HILOG_ERROR(LOG_CORE, "send request failed, error is %{public}d.", res); in RemoveListener()
142 int32_t res = remote->SendRequest(QUERY_SYS_EVENT, data, reply, option); in Query() local
143 if (res != ERR_OK) { in Query()
144 HILOG_ERROR(LOG_CORE, "send request failed, error is %{public}d.", res); in Query()
183 int32_t res in SetDebugMode() local
216 int32_t res = remote->SendRequest(ADD_SYS_EVENT_SUBSCRIBER, data, reply, option); AddSubscriber() local
244 int32_t res = remote->SendRequest(REMOVE_SYS_EVENT_SUBSCRIBER, data, reply, option); RemoveSubscriber() local
281 int32_t res = remote->SendRequest(EXPORT_SYS_EVENT, data, reply, option); Export() local
[all...]
/base/customization/enterprise_device_management/interfaces/inner_api/common/src/
H A Denterprise_device_mgr_proxy.cpp81 ErrCode res = remote->SendRequest(EdmInterfaceCode::ADD_DEVICE_ADMIN, data, reply, option); in EnableAdmin() local
82 if (FAILED(res)) { in EnableAdmin()
83 EDMLOGE("EnterpriseDeviceMgrProxy:EnableAdmin send request fail. %{public}d", res); in EnableAdmin()
110 ErrCode res = remote->SendRequest(EdmInterfaceCode::REMOVE_DEVICE_ADMIN, data, reply, option); in DisableAdmin() local
111 if (FAILED(res)) { in DisableAdmin()
112 EDMLOGE("EnterpriseDeviceMgrProxy:DisableAdmin send request fail. %{public}d", res); in DisableAdmin()
138 ErrCode res = remote->SendRequest(EdmInterfaceCode::REMOVE_SUPER_ADMIN, data, reply, option); in DisableSuperAdmin() local
139 if (FAILED(res)) { in DisableSuperAdmin()
140 EDMLOGE("EnterpriseDeviceMgrProxy:DisableSuperAdmin send request fail. %{public}d", res); in DisableSuperAdmin()
166 ErrCode res in GetEnabledAdmin() local
195 ErrCode res = remote->SendRequest(EdmInterfaceCode::GET_ENT_INFO, data, reply, option); GetEnterpriseInfo() local
228 ErrCode res = remote->SendRequest(EdmInterfaceCode::SET_ENT_INFO, data, reply, option); SetEnterpriseInfo() local
262 ErrCode res = remote->SendRequest(policyCode, data, reply, option); HandleManagedEvent() local
288 ErrCode res = remote->SendRequest(EdmInterfaceCode::IS_SUPER_ADMIN, data, reply, option); IsSuperAdmin() local
320 ErrCode res = remote->SendRequest(EdmInterfaceCode::IS_ADMIN_ENABLED, data, reply, option); IsAdminEnabled() local
382 ErrCode res = remote->SendRequest(policyCode, data, reply, option); HandleDevicePolicy() local
408 ErrCode res = remote->SendRequest(EdmInterfaceCode::AUTHORIZE_ADMIN, data, reply, option); AuthorizeAdmin() local
435 ErrCode res = remote->SendRequest(EdmInterfaceCode::GET_SUPER_ADMIN_WANT_INFO, data, reply, option); GetSuperAdmin() local
539 ErrCode res = remote->SendRequest(funcCode, data, reply, option); GetPolicy() local
598 ErrCode res = remote->SendRequest(GET_ENABLE_ADMIN, data, reply, option); GetEnabledAdmins() local
[all...]
/base/msdp/device_status/utils/common/include/
H A Dutil.h85 bool AddInt(T op1, T op2, T minValue, T maxValue, T &res) in AddInt() argument
96 res = op1 + op2; in AddInt()
100 inline bool AddInt32(int32_t op1, int32_t op2, int32_t &res) in AddInt32() argument
102 return AddInt(op1, op2, std::numeric_limits<int32_t>::min(), std::numeric_limits<int32_t>::max(), res); in AddInt32()
105 inline bool AddInt64(int64_t op1, int64_t op2, int64_t &res) in AddInt64() argument
107 return AddInt(op1, op2, std::numeric_limits<int64_t>::min(), std::numeric_limits<int64_t>::max(), res); in AddInt64()
111 bool MultiplyInt(T op1, T op2, T minVal, T maxVal, T &res) in MultiplyInt() argument
134 res = op1 * op2; in MultiplyInt()
138 inline bool MultiplyInt32(int32_t op1, int32_t op2, int32_t& res) in MultiplyInt32() argument
140 return MultiplyInt(op1, op2, std::numeric_limits<int32_t>::min(), std::numeric_limits<int32_t>::max(), res); in MultiplyInt32()
143 MultiplyInt64(int64_t op1, int64_t op2, int64_t& res) MultiplyInt64() argument
[all...]
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/js/test/unittest/cpp/
H A Dfaultlogger_test_napi.cpp23 napi_value res = nullptr; in TriggerCppCrash() local
26 napi_get_boolean(env, false, &res); in TriggerCppCrash()
27 return res; in TriggerCppCrash()
31 napi_get_boolean(env, true, &res); in TriggerCppCrash()
32 return res; in TriggerCppCrash()
/base/hiviewdfx/faultloggerd/interfaces/common/
H A Ddfx_dump_res.h65 inline static std::string ToString(const int32_t& res) in ToString() argument
67 std::string ss = std::to_string(res) + " ( " + GetResStr(res) + " )"; in ToString()
72 inline static const char* GetResStr(const int32_t& res) in GetResStr() argument
75 switch (res) { in GetResStr()
/base/security/dlp_permission_service/frameworks/dlp_permission/src/
H A Ddlp_permission_info_parcel.cpp45 uint32_t res; in Unmarshalling() local
46 if (!(in.ReadUint32(res))) { in Unmarshalling()
52 permInfoParcel->permInfo_.dlpFileAccess = static_cast<DLPFileAccess>(res); in Unmarshalling()
54 if (!(in.ReadUint32(res))) { in Unmarshalling()
60 permInfoParcel->permInfo_.flags = static_cast<ActionFlags>(res); in Unmarshalling()
/base/security/certificate_framework/frameworks/adapter/v1.0/src/
H A Dx509_cert_chain_validator_openssl.c141 CfResult res = CF_SUCCESS; in ValidateCertChainInner() local
147 res = CF_ERR_MALLOC; in ValidateCertChainInner()
155 res = CF_ERR_MALLOC; in ValidateCertChainInner()
159 if (res != CF_SUCCESS) { in ValidateCertChainInner()
167 res = CF_ERR_CRYPTO_OPERATION; in ValidateCertChainInner()
176 res = ConvertOpensslErrorMsg(errCode); in ValidateCertChainInner()
187 return res; in ValidateCertChainInner()
214 CfResult res = InitX509Certs(certsList, &certs); in Validate() local
215 if (res != CF_SUCCESS) { in Validate()
216 LOGE("Failed to init certs, res in Validate()
[all...]
/base/customization/config_policy/frameworks/config_policy/src/
H A Dconfig_policy_utils.c280 char *res = moveToStart ? str : src; in TrimInplace() local
287 return (*res != '\0') ? res : NULL; in TrimInplace()
383 static void GetCfgDirRealPolicyValue(CfgDir *res) in GetCfgDirRealPolicyValue() argument
385 if (res == NULL) { in GetCfgDirRealPolicyValue()
393 res->realPolicyValue = strdup(gConfigPolicy); in GetCfgDirRealPolicyValue()
398 res->realPolicyValue = CustGetSystemParam(CUST_KEY_POLICY_LAYER); in GetCfgDirRealPolicyValue()
400 if (res->realPolicyValue != NULL && res->realPolicyValue[0]) { in GetCfgDirRealPolicyValue()
403 res in GetCfgDirRealPolicyValue()
406 FreeCfgFiles(CfgFiles *res) FreeCfgFiles() argument
420 FreeCfgDirList(CfgDir *res) FreeCfgDirList() argument
525 CfgDir *res = (CfgDir *)(malloc(sizeof(CfgDir))); GetCfgDirList() local
[all...]
/base/telephony/core_service/test/unittest/esim_gtest/
H A Desim_file_manager_test.cpp112 ResultState res = simFileManager.DisableProfile(portIndex, iccId); in HWTEST_F() local
113 EXPECT_NE(res, ResultState::RESULT_UNDEFINED_ERROR); in HWTEST_F()
115 res = simFileManager.DisableProfile(portIndex, iccId); in HWTEST_F()
116 EXPECT_EQ(res, ResultState::RESULT_UNDEFINED_ERROR); in HWTEST_F()
150 EuiccRulesAuthTable res = simFileManager.GetRulesAuthTable(portIndex); in HWTEST_F() local
151 EXPECT_EQ(res.position_, 0); in HWTEST_F()
153 res = simFileManager.GetRulesAuthTable(portIndex); in HWTEST_F()
154 EXPECT_EQ(res.position_, 0); in HWTEST_F()
169 ResponseEsimResult res = simFileManager.GetEuiccChallenge(portIndex); in HWTEST_F() local
170 EXPECT_EQ(res in HWTEST_F()
207 ResponseEsimResult res = simFileManager.CancelSession(transactionId, cancelReason); HWTEST_F() local
227 EuiccProfile res = simFileManager.GetProfile(portIndex, iccId); HWTEST_F() local
246 ResultState res = simFileManager.ResetMemory(resetOption); HWTEST_F() local
265 ResultState res = simFileManager.SetDefaultSmdpAddress(defaultSmdpAddress); HWTEST_F() local
283 bool res = simFileManager.IsEsimSupported(); HWTEST_F() local
303 ResponseEsimResult res = simFileManager.SendApduData(aid, apduData); HWTEST_F() local
324 ResponseEsimResult res = simFileManager.PrepareDownload(downLoadConfigInfo); HWTEST_F() local
345 ResponseEsimBppResult res = simFileManager.LoadBoundProfilePackage(portIndex, boundProfilePackage); HWTEST_F() local
405 EuiccNotification res = simFileManager.RetrieveNotification(portIndex, seqNumber); HWTEST_F() local
425 ResultState res = simFileManager.RemoveNotificationFromList(portIndex, seqNumber); HWTEST_F() local
444 ResultState res = simFileManager.DeleteProfile(iccId); HWTEST_F() local
465 ResultState res = simFileManager.SwitchToProfile(portIndex, iccId, forceDisableProfile); HWTEST_F() local
485 ResultState res = simFileManager.SetProfileNickname(iccId, nickname); HWTEST_F() local
504 EuiccInfo2 res = simFileManager.GetEuiccInfo2(portIndex); HWTEST_F() local
523 ResponseEsimResult res = simFileManager.AuthenticateServer(authenticateConfigInfo); HWTEST_F() local
[all...]
/base/security/device_auth/services/session_manager/src/session/v1/compatible_bind_sub_session/
H A Dcompatible_bind_sub_session_common.c149 int32_t res = HcGetUdid((uint8_t *)udid, INPUT_UDID_LEN); in CheckAuthIdAndUserTypeValid() local
150 if (res != HC_SUCCESS) { in CheckAuthIdAndUserTypeValid()
151 LOGE("Failed to get local udid! res: %d", res); in CheckAuthIdAndUserTypeValid()
152 return res; in CheckAuthIdAndUserTypeValid()
188 int32_t res = HcGetUdid((uint8_t *)udid, INPUT_UDID_LEN); in AddAuthIdAndUserTypeIfValidOrDefault() local
189 if (res != HC_SUCCESS) { in AddAuthIdAndUserTypeIfValidOrDefault()
190 LOGE("Failed to get local udid! res: %d", res); in AddAuthIdAndUserTypeIfValidOrDefault()
191 return res; in AddAuthIdAndUserTypeIfValidOrDefault()
213 int32_t res = HcGetUdid((uint8_t *)udid, INPUT_UDID_LEN); AddUdid() local
285 int32_t res = AddGroupInfoToParams(entry, params); AddGroupInfoByDatabase() local
314 int32_t res = HcGetUdid((uint8_t *)udid, INPUT_UDID_LEN); AddDevInfoByDatabase() local
361 int32_t res = GaGetLocalDeviceInfo(osAccountId, groupId, selfDeviceEntry); AddSelfUpgradeFlag() local
384 int32_t res = AddSelfUpgradeFlag(session->params, (isClient == CLIENT), osAccountId, groupId, session->opCode); AddGroupAndDevInfo() local
581 int32_t res = HcGetUdid((uint8_t *)udid, INPUT_UDID_LEN); GenerateCompatibleInfo() local
624 int32_t res = GenerateCompatibleInfo(groupInfo); AddCompatibleInfoToSendData() local
[all...]
/base/security/dlp_permission_service/services/dlp_permission/sa/sa_main/
H A Ddlp_permission_stub.cpp37 int res = Security::AccessToken::AccessTokenKit::VerifyAccessToken(callingToken, permission); in CheckPermission() local
38 if (res == Security::AccessToken::PermissionState::PERMISSION_GRANTED) { in CheckPermission()
54 Security::AccessToken::TypeATokenTypeEnum res = Security::AccessToken::AccessTokenKit::GetTokenType(callingToken); in IsSaCall() local
55 return (res == Security::AccessToken::TOKEN_NATIVE); in IsSaCall()
60 int32_t res = AccessToken::AccessTokenKit::GetHapDlpFlag(tokenId); in CheckSandboxFlag() local
61 if (res < 0) { in CheckSandboxFlag()
63 return res; in CheckSandboxFlag()
65 sandboxFlag = (res == 1); in CheckSandboxFlag()
86 int32_t res = requestFunc(data, reply); in OnRemoteRequest() local
93 return res; in OnRemoteRequest()
124 int32_t res = GenerateDlpCertificate(policyParcel, callback); GenerateDlpCertificateInner() local
163 int32_t res = ParseDlpCertificate(certParcel, callback, appId, offlineAccess); ParseDlpCertificateInner() local
203 int32_t res = InstallDlpSandbox(bundleName, dlpFileAccess, userId, sandboxInfo, uri); InstallDlpSandboxInner() local
243 int32_t res = UninstallDlpSandbox(bundleName, appIndex, userId); UninstallDlpSandboxInner() local
270 int32_t res = GetSandboxExternalAuthorization(sandboxUid, *want, authType); GetSandboxExternalAuthorizationInner() local
290 int32_t res = QueryDlpFileCopyableByTokenId(copyable, tokenId); QueryDlpFileCopyableByTokenIdInner() local
313 int32_t res = QueryDlpFileAccess(permInfoParcel); QueryDlpFileAccessInner() local
328 int32_t res = IsInDlpSandbox(inSandbox); IsInDlpSandboxInner() local
343 int32_t res = GetDlpSupportFileType(supportFileType); GetDlpSupportFileTypeInner() local
382 bool res = false; UnRegisterDlpSandboxChangeCallbackInner() local
444 int32_t res = GetDlpGatheringPolicy(isGathering); GetDlpGatheringPolicyInner() local
561 int32_t res = GetDLPFileVisitRecord(infoVec); GetDLPFileVisitRecordInner() local
635 int32_t res = SetSandboxAppConfig(configInfo); SetSandboxAppConfigInner() local
653 int32_t res = CleanSandboxAppConfig(); CleanSandboxAppConfigInner() local
664 int32_t res = GetSandboxAppConfig(configInfo); GetSandboxAppConfigInner() local
701 int32_t res = SetReadFlag(uid); SetReadFlagInner() local
[all...]
/base/security/crypto_framework/test/unittest/src/
H A Dcrypto_asy_key_generator_cov_test.cpp870 HcfResult res = HcfAsyKeyGeneratorBySpecCreate(reinterpret_cast<HcfAsyKeyParamsSpec *>(&rsaCommSpec), &generator); in HWTEST_F() local
871 EXPECT_NE(res, HCF_SUCCESS); in HWTEST_F()
886 HcfResult res = HcfAsyKeyGeneratorBySpecCreate(reinterpret_cast<HcfAsyKeyParamsSpec *>(&rsaCommSpec), &generator); in HWTEST_F() local
887 EXPECT_NE(res, HCF_SUCCESS); in HWTEST_F()
901 HcfResult res = HcfAsyKeyGeneratorBySpecCreate(reinterpret_cast<HcfAsyKeyParamsSpec *>(&rsaCommSpec), &generator); in HWTEST_F() local
902 EXPECT_NE(res, HCF_SUCCESS); in HWTEST_F()
918 HcfResult res = HcfAsyKeyGeneratorBySpecCreate(reinterpret_cast<HcfAsyKeyParamsSpec *>(&rsaPubKeySpec), &generator); in HWTEST_F() local
919 EXPECT_NE(res, HCF_SUCCESS); in HWTEST_F()
934 HcfResult res = HcfAsyKeyGeneratorBySpecCreate(reinterpret_cast<HcfAsyKeyParamsSpec *>(&rsaPubKeySpec), &generator); in HWTEST_F() local
935 EXPECT_NE(res, HCF_SUCCES in HWTEST_F()
950 HcfResult res = HcfAsyKeyGeneratorBySpecCreate(reinterpret_cast<HcfAsyKeyParamsSpec *>(&rsaPubKeySpec), &generator); HWTEST_F() local
968 HcfResult res = HcfAsyKeyGeneratorBySpecCreate(reinterpret_cast<HcfAsyKeyParamsSpec *>(&rsaPairSpec), &generator); HWTEST_F() local
985 HcfResult res = HcfAsyKeyGeneratorBySpecCreate(reinterpret_cast<HcfAsyKeyParamsSpec *>(&rsaPairSpec), &generator); HWTEST_F() local
1002 HcfResult res = HcfAsyKeyGeneratorBySpecCreate(reinterpret_cast<HcfAsyKeyParamsSpec *>(&rsaPairSpec), &generator); HWTEST_F() local
1019 HcfResult res = HcfAsyKeyGeneratorBySpecCreate(reinterpret_cast<HcfAsyKeyParamsSpec *>(&rsaPairSpec), &generator); HWTEST_F() local
1036 HcfResult res = HcfAsyKeyGeneratorBySpecCreate(reinterpret_cast<HcfAsyKeyParamsSpec *>(&rsaPairSpec), &generator); HWTEST_F() local
1099 HcfResult res = ConstructEcc224CommParamsSpec(&eccCommSpec); HWTEST_F() local
1116 HcfResult res = ConstructEcc224CommParamsSpec(&eccCommSpec); HWTEST_F() local
1132 HcfResult res = ConstructEcc224CommParamsSpec(&eccCommSpec); HWTEST_F() local
1148 HcfResult res = ConstructEcc224CommParamsSpec(&eccCommSpec); HWTEST_F() local
1164 HcfResult res = ConstructEcc224CommParamsSpec(&eccCommSpec); HWTEST_F() local
1180 HcfResult res = ConstructEcc224CommParamsSpec(&eccCommSpec); HWTEST_F() local
1196 HcfResult res = ConstructEcc224CommParamsSpec(&eccCommSpec); HWTEST_F() local
1212 HcfResult res = ConstructEcc224CommParamsSpec(&eccCommSpec); HWTEST_F() local
1228 HcfResult res = ConstructEcc224CommParamsSpec(&eccCommSpec); HWTEST_F() local
1244 HcfResult res = ConstructEcc224CommParamsSpec(&eccCommSpec); HWTEST_F() local
1260 HcfResult res = ConstructEcc224CommParamsSpec(&eccCommSpec); HWTEST_F() local
1276 HcfResult res = ConstructEcc224CommParamsSpec(&eccCommSpec); HWTEST_F() local
1293 HcfResult res = ConstructEcc224CommParamsSpec(&eccCommSpec); HWTEST_F() local
1309 HcfResult res = ConstructEcc224CommParamsSpec(&eccCommSpec); HWTEST_F() local
1326 HcfResult res = ConstructEcc224CommParamsSpec(&eccCommSpec); HWTEST_F() local
1344 HcfResult res = ConstructEcc224PubKeyParamsSpec(&eccPubSpec); HWTEST_F() local
1360 HcfResult res = ConstructEcc224PubKeyParamsSpec(&eccPubSpec); HWTEST_F() local
1376 HcfResult res = ConstructEcc224PubKeyParamsSpec(&eccPubSpec); HWTEST_F() local
1392 HcfResult res = ConstructEcc224PubKeyParamsSpec(&eccPubSpec); HWTEST_F() local
1408 HcfResult res = ConstructEcc224PubKeyParamsSpec(&eccPubSpec); HWTEST_F() local
1425 HcfResult res = ConstructEcc224PriKeyParamsSpec(&eccPriSpec); HWTEST_F() local
1441 HcfResult res = ConstructEcc224PriKeyParamsSpec(&eccPriSpec); HWTEST_F() local
1457 HcfResult res = ConstructEcc224PriKeyParamsSpec(&eccPriSpec); HWTEST_F() local
1474 HcfResult res = ConstructEcc224KeyPairParamsSpec(&eccKeyPairSpec); HWTEST_F() local
1490 HcfResult res = ConstructEcc224KeyPairParamsSpec(&eccKeyPairSpec); HWTEST_F() local
1506 HcfResult res = ConstructEcc224KeyPairParamsSpec(&eccKeyPairSpec); HWTEST_F() local
1522 HcfResult res = ConstructEcc224KeyPairParamsSpec(&eccKeyPairSpec); HWTEST_F() local
1538 HcfResult res = ConstructEcc224KeyPairParamsSpec(&eccKeyPairSpec); HWTEST_F() local
1554 HcfResult res = ConstructEcc224KeyPairParamsSpec(&eccKeyPairSpec); HWTEST_F() local
1570 HcfResult res = ConstructEcc224KeyPairParamsSpec(&eccKeyPairSpec); HWTEST_F() local
[all...]
/base/security/device_auth/services/session_manager/src/session/v2/
H A Ddev_session_util.c73 int32_t res = manager->getPseudonymId(osAccountId, userId, &pdid); in GetPdidByContext() local
75 if (res != HC_SUCCESS) { in GetPdidByContext()
77 return res; in GetPdidByContext()
142 int32_t res = manager->getRealInfo(osAccountId, pdid, &peerInfo); in GetRealPkInfoJson() local
143 if (res != HC_SUCCESS) { in GetRealPkInfoJson()
145 return res; in GetRealPkInfoJson()
159 res = BuildRealPkInfoJson(pkInfoJson, peerInfoJson, *realPkInfoJson); in GetRealPkInfoJson()
161 if (res != HC_SUCCESS) { in GetRealPkInfoJson()
166 return res; in GetRealPkInfoJson()
213 bool res in IsPeerPseudonym() local
318 int32_t res = SetPeerAuthIdByDb(context, groupId); SetPeerAuthIdToContextIfNeeded() local
351 int32_t res = GeneratePeerInfoJson(pkInfoJson, &peerInfoJson); SetPeerInfoToContext() local
376 int32_t res = GetLoaderInstance()->generateRandom(&authIdBuff); ReplaceAuthIdWithRandom() local
424 int32_t res = manager->getRealInfo(osAccountId, pdid, &peerInfo); CheckPeerPkInfoForPdid() local
447 int32_t res = GetRealPkInfoJson(osAccountId, pkInfoJson, &realPkInfoJson); GetRealPkInfoStr() local
483 int32_t res = GetPdidByContext(context, &pdid); AddPkInfoWithPdid() local
[all...]
/base/hiviewdfx/hidumper/services/zidl/src/
H A Ddump_broker_proxy.cpp41 int res = remote->SendRequest(static_cast<int>(HidumperServiceInterfaceCode::DUMP_REQUEST_FILEFD), in Request() local
43 if (res != ERR_OK) { in Request()
44 DUMPER_HILOGE(MODULE_ZIDL, "error|SendRequest error code: %{public}d", res); in Request()
68 int res = remote->SendRequest(static_cast<int>(HidumperServiceInterfaceCode::SCAN_PID_OVER_LIMIT), in ScanPidOverLimit() local
70 if (res != ERR_OK) { in ScanPidOverLimit()
71 DUMPER_HILOGE(MODULE_ZIDL, "send ScanPidOverLimit error code: %{public}d.", res); in ScanPidOverLimit()
98 int res = remote->SendRequest(static_cast<int>(HidumperServiceInterfaceCode::COUNT_FD_NUMS), in CountFdNums() local
100 if (res != ERR_OK) { in CountFdNums()
101 DUMPER_HILOGE(MODULE_ZIDL, "send CountFdNums error code: %{public}d.", res); in CountFdNums()
/base/security/certificate_framework/frameworks/core/v1.0/certificate/
H A Dcert_chain_validator.c91 CfResult res = CF_SUCCESS; in ConvertCertBuffer2List() local
95 res = CF_INVALID_PARAMS; in ConvertCertBuffer2List()
107 res = CF_ERR_MALLOC; in ConvertCertBuffer2List()
112 res = CF_INVALID_PARAMS; in ConvertCertBuffer2List()
116 res = CF_ERR_COPY; in ConvertCertBuffer2List()
123 return res; in ConvertCertBuffer2List()
146 CfResult res = ConvertCertBuffer2List(certChainData, &certsList); in Validate() local
147 if (res != CF_SUCCESS) { in Validate()
150 return res; in Validate()
152 res in Validate()
185 CfResult res = func->createFunc(&spiObj); HcfCertChainValidatorCreate() local
[all...]
/base/security/crypto_framework/test/unittest/src/native/
H A Dnative_signature_test.cpp50 OH_Crypto_ErrCode res = OH_CryptoAsymKeyGenerator_Create("RSA2048|PRIMES_2", &generator); in HWTEST_F() local
53 res = OH_CryptoAsymKeyGenerator_Generate(generator, &keyPair); in HWTEST_F()
54 EXPECT_EQ(res, CRYPTO_SUCCESS); in HWTEST_F()
58 res = OH_CryptoVerify_Create("RSA1024|PSS|SHA256|MGF1_SHA512", &verify); in HWTEST_F()
59 EXPECT_EQ(res, CRYPTO_SUCCESS); in HWTEST_F()
66 res = OH_CryptoVerify_SetParam(verify, CRYPTO_PSS_SALT_LEN_INT, &value); in HWTEST_F()
67 EXPECT_EQ(res, CRYPTO_SUCCESS); in HWTEST_F()
68 res = OH_CryptoVerify_Init(verify, pubkey); in HWTEST_F()
69 EXPECT_EQ(res, CRYPTO_SUCCESS); in HWTEST_F()
70 res in HWTEST_F()
80 OH_Crypto_ErrCode res = CRYPTO_SUCCESS; HWTEST_F() local
[all...]
/base/account/os_account/services/accountmgr/test/unittest/account_iam/
H A Daccount_iam_service_test.cpp131 int32_t res = accountIAMService_->OpenSession(-1, challenge); in HWTEST_F() local
132 EXPECT_EQ(res, ERR_ACCOUNT_ZIDL_ACCOUNT_SERVICE_ERROR); in HWTEST_F()
134 res = accountIAMService_->OpenSession(0, challenge); in HWTEST_F()
135 EXPECT_EQ(res, ERR_ACCOUNT_COMMON_ACCOUNT_IS_RESTRICTED); in HWTEST_F()
147 int32_t res = accountIAMService_->OpenSession(TEST_NOT_EXIST_ID, challenge); in HWTEST_F() local
148 EXPECT_EQ(res, ERR_ACCOUNT_COMMON_ACCOUNT_NOT_EXIST_ERROR); in HWTEST_F()
159 int32_t res = accountIAMService_->CloseSession(-1); in HWTEST_F() local
160 EXPECT_EQ(res, ERR_ACCOUNT_ZIDL_ACCOUNT_SERVICE_ERROR); in HWTEST_F()
162 res = accountIAMService_->CloseSession(0); in HWTEST_F()
163 EXPECT_EQ(res, ERR_ACCOUNT_COMMON_ACCOUNT_IS_RESTRICTE in HWTEST_F()
174 int32_t res = accountIAMService_->CloseSession(TEST_NOT_EXIST_ID); HWTEST_F() local
261 int32_t res = accountIAMService_->Cancel(-1); HWTEST_F() local
305 int32_t res = accountIAMService_->GetCredentialInfo(-1, AuthType::PIN, callback); HWTEST_F() local
319 int32_t res = accountIAMService_->GetCredentialInfo(TEST_NOT_EXIST_ID, AuthType::PIN, callback); HWTEST_F() local
333 int32_t res = HWTEST_F() local
414 ErrCode res = accountIAMService_->AuthUser(authParam, callback, contextId); HWTEST_F() local
436 ErrCode res = accountIAMService_->AuthUser(authParam, callback, contextId); HWTEST_F() local
449 int32_t res = accountIAMService_->GetAvailableStatus(static_cast<AuthType>(-1), AuthTrustLevel::ATL1, status); HWTEST_F() local
[all...]
/base/hiviewdfx/hiview/plugins/sysevent_source/test/unittest/common/
H A Devent_server_test.cpp57 int res = bbox.Open(); in HWTEST_F() local
58 ASSERT_TRUE(res >= 0); in HWTEST_F()
59 res = bbox.Close(); in HWTEST_F()
60 ASSERT_TRUE(res >= 0); in HWTEST_F()
/base/security/crypto_framework/frameworks/cj/src/
H A Dmd_impl.cpp30 HcfResult res = mdObj_->update(mdObj_, input); in MdUpdate() local
31 return res; in MdUpdate()
45 HcfResult res = mdObj_->doFinal(mdObj_, output); in MdDoFinal() local
46 return res; in MdDoFinal()
H A Dsym_key_generator_impl.cpp47 HcfResult res = generator_->generateSymKey(generator_, symKey); in GenerateSymKey() local
48 return res; in GenerateSymKey()
57 HcfResult res = generator_->convertSymKey(generator_, &key, symKey); in ConvertKey() local
58 return res; in ConvertKey()
/base/security/crypto_framework/test/fuzztest/key/dhkeyutil_fuzzer/
H A Ddhkeyutil_fuzzer.cpp36 int32_t res = HcfDhKeyUtilCreate(3072, 512, &returnCommonParamSpec); in TestDhKey() local
37 if (res != HCF_SUCCESS) { in TestDhKey()
56 HcfResult res = HcfDhKeyUtilCreate(HCF_DH_PLEN_2048, skLen, &returnCommonParamSpec); in DhKeyUtilFuzzTest() local
57 if (res != HCF_SUCCESS) { in DhKeyUtilFuzzTest()
/base/global/resource_management/frameworks/resmgr/test/unittest/common/
H A Dresource_manager_test_media.cpp120 std::string res = tmp->GetResourcePath(); in HWTEST_F() local
121 res.append("entry/resources/mdpi/media/icon.png"); in HWTEST_F()
141 EXPECT_EQ(res, outValue); in HWTEST_F()
156 std::string res = tmp->GetResourcePath(); in HWTEST_F() local
157 res.append("entry/resources/ldpi/media/icon.png"); in HWTEST_F()
177 EXPECT_EQ(res, outValue); in HWTEST_F()
192 std::string res = tmp->GetResourcePath(); in HWTEST_F() local
193 res.append("entry/resources/xldpi/media/icon.png"); in HWTEST_F()
213 EXPECT_EQ(res, outValue); in HWTEST_F()
228 std::string res in HWTEST_F() local
264 std::string res = tmp->GetResourcePath(); HWTEST_F() local
348 std::string res = tmp->GetResourcePath(); HWTEST_F() local
384 std::string res = tmp->GetResourcePath(); HWTEST_F() local
420 std::string res = tmp->GetResourcePath(); HWTEST_F() local
456 std::string res = tmp->GetResourcePath(); HWTEST_F() local
492 std::string res = tmp->GetResourcePath(); HWTEST_F() local
528 std::string res = tmp->GetResourcePath(); HWTEST_F() local
564 std::string res = tmp->GetResourcePath(); HWTEST_F() local
603 std::string res = tmp->GetResourcePath(); HWTEST_F() local
642 std::string res = tmp->GetResourcePath(); HWTEST_F() local
681 std::string res = tmp->GetResourcePath(); HWTEST_F() local
720 std::string res = tmp->GetResourcePath(); HWTEST_F() local
759 std::string res = tmp->GetResourcePath(); HWTEST_F() local
887 std::string res = tmp->GetResourcePath(); HWTEST_F() local
921 std::string res = tmp->GetResourcePath(); HWTEST_F() local
955 std::string res = tmp->GetResourcePath(); HWTEST_F() local
989 std::string res = tmp->GetResourcePath(); HWTEST_F() local
1023 std::string res = tmp->GetResourcePath(); HWTEST_F() local
1102 std::string res = tmp->GetResourcePath(); HWTEST_F() local
1136 std::string res = tmp->GetResourcePath(); HWTEST_F() local
1170 std::string res = tmp->GetResourcePath(); HWTEST_F() local
1204 std::string res = tmp->GetResourcePath(); HWTEST_F() local
1238 std::string res = tmp->GetResourcePath(); HWTEST_F() local
1272 std::string res = tmp->GetResourcePath(); HWTEST_F() local
1306 std::string res = tmp->GetResourcePath(); HWTEST_F() local
1343 std::string res = tmp->GetResourcePath(); HWTEST_F() local
1380 std::string res = tmp->GetResourcePath(); HWTEST_F() local
1417 std::string res = tmp->GetResourcePath(); HWTEST_F() local
1454 std::string res = tmp->GetResourcePath(); HWTEST_F() local
1491 std::string res = tmp->GetResourcePath(); HWTEST_F() local
[all...]

Completed in 15 milliseconds

12345678910>>...32