Home
last modified time | relevance | path

Searched refs:checkRet (Results 1 – 25 of 37) sorted by relevance

12

/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/src/utils/
H A Dextension_permissions_util.cpp27 auto checkRet = false; in CheckSAPermission() local
33 checkRet = PermissionVerification::GetInstance()->VerifyCallingPermission( in CheckSAPermission()
36 checkRet = PermissionVerification::GetInstance()->VerifyCallingPermission( in CheckSAPermission()
39 checkRet = PermissionVerification::GetInstance()->VerifyCallingPermission( in CheckSAPermission()
42 checkRet = PermissionVerification::GetInstance()->VerifyCallingPermission( in CheckSAPermission()
45 checkRet = PermissionVerification::GetInstance()->VerifyCallingPermission( in CheckSAPermission()
48 checkRet = PermissionVerification::GetInstance()->VerifyCallingPermission( in CheckSAPermission()
63 checkRet = CheckSAPermissionMore(extensionType); in CheckSAPermission()
65 if (!checkRet) { in CheckSAPermission()
75 auto checkRet = false; in CheckSAPermissionMore() local
[all …]
/ohos5.0/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/test/unittest/
H A Dutd_client_test.cpp463 bool checkRet = false; variable
483 bool checkRet = false; variable
503 bool checkRet = false; variable
523 bool checkRet = false; variable
543 bool checkRet = false; variable
563 bool checkRet = false; variable
583 bool checkRet = false; variable
603 bool checkRet = false; variable
623 bool checkRet = false; variable
643 bool checkRet = false; variable
[all …]
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/pan/
H A Dnapi_bluetooth_pan.cpp144 napi_status checkRet = CheckEmptyParam(env, info); in GetConnectionDevices() local
172 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in GetDeviceState() local
173 NAPI_BT_ASSERT_RETURN(env, checkRet, BT_ERR_INVALID_PARAM, result); in GetDeviceState()
198 napi_status checkRet = CheckEmptyParam(env, info); in GetConnectedDevices() local
226 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in GetConnectionState() local
227 NAPI_BT_ASSERT_RETURN(env, checkRet, BT_ERR_INVALID_PARAM, result); in GetConnectionState()
248 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in Disconnect() local
249 NAPI_BT_ASSERT_RETURN_FALSE(env, checkRet, BT_ERR_INVALID_PARAM); in Disconnect()
274 bool checkRet = CheckSetTetheringParam(env, info, value); in SetTethering() local
275 NAPI_BT_ASSERT_RETURN_UNDEF(env, checkRet, BT_ERR_INVALID_PARAM); in SetTethering()
[all …]
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/connection/
H A Dnapi_bluetooth_connection.cpp160 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in PairDevice() local
173 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in CancelPairedDevice() local
190 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in GetRemoteDeviceName() local
205 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in GetRemoteDeviceClass() local
265 bool checkRet = CheckProfileIdParam(env, info, profileId); in GetProfileConnectionState() local
320 bool checkRet = CheckLocalNameParam(env, info, localName); in SetLocalName() local
429 auto checkRet = CheckDeviceAsyncParam(env, info, remoteAddr); in PairDeviceAsync() local
576 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in GetPairState() local
632 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in GetRemoteProductId() local
726 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in GetRemoteDeviceType() local
[all …]
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/hid/
H A Dnapi_bluetooth_hid_host.cpp130 napi_status checkRet = CheckEmptyParam(env, info); in GetConnectionDevices() local
131 NAPI_BT_ASSERT_RETURN(env, checkRet == napi_ok, BT_ERR_INVALID_PARAM, ret); in GetConnectionDevices()
157 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in GetDeviceState() local
158 NAPI_BT_ASSERT_RETURN(env, checkRet, BT_ERR_INVALID_PARAM, result); in GetDeviceState()
177 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in Connect() local
178 NAPI_BT_ASSERT_RETURN_FALSE(env, checkRet, BT_ERR_INVALID_PARAM); in Connect()
192 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in Disconnect() local
193 NAPI_BT_ASSERT_RETURN_FALSE(env, checkRet, BT_ERR_INVALID_PARAM); in Disconnect()
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/opp/
H A Dnapi_bluetooth_opp.cpp181 napi_status checkRet = CheckEmptyParam(env, info); in GetCurrentTransferInformation() local
182 NAPI_BT_ASSERT_RETURN(env, checkRet == napi_ok, BT_ERR_INVALID_PARAM, ret); in GetCurrentTransferInformation()
202 napi_status checkRet = CheckEmptyParam(env, info); in CancelTransfer() local
203 NAPI_BT_ASSERT_RETURN(env, checkRet == napi_ok, BT_ERR_INVALID_PARAM, ret); in CancelTransfer()
217 napi_status checkRet = CheckEmptyParam(env, info); in GetConnectionDevices() local
218 NAPI_BT_ASSERT_RETURN(env, checkRet == napi_ok, BT_ERR_INVALID_PARAM, ret); in GetConnectionDevices()
239 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in GetDeviceState() local
240 NAPI_BT_ASSERT_RETURN_UNDEF(env, checkRet, BT_ERR_INVALID_PARAM); in GetDeviceState()
/ohos5.0/foundation/distributeddatamgr/udmf/framework/jskitsimpl/data/
H A Dtype_descriptor_napi.cpp99 bool checkRet = false; in BelongsTo() local
100 … status = reinterpret_cast<TypeDescriptorNapi*>(ctxt->native)->value_->BelongsTo(typeId, checkRet); in BelongsTo()
102 napi_get_boolean(env, checkRet, &ctxt->output); in BelongsTo()
122 bool checkRet = false; in IsLowerLevelType() local
123 … = reinterpret_cast<TypeDescriptorNapi*>(ctxt->native)->value_->IsLowerLevelType(typeId, checkRet); in IsLowerLevelType()
125 napi_get_boolean(env, checkRet, &ctxt->output); in IsLowerLevelType()
145 bool checkRet = false; in IsHigherLevelType() local
146 …= reinterpret_cast<TypeDescriptorNapi*>(ctxt->native)->value_->IsHigherLevelType(typeId, checkRet); in IsHigherLevelType()
148 napi_get_boolean(env, checkRet, &ctxt->output); in IsHigherLevelType()
/ohos5.0/base/useriam/user_auth_framework/services/ipc/src/
H A Duser_auth_service.cpp239 int32_t checkRet = GENERAL_ERROR; in GetAvailableStatusInner() local
246 return checkRet; in GetAvailableStatusInner()
487 if (checkRet != SUCCESS) { in Auth()
489 contextCallback->OnResult(checkRet, extraInfo); in Auth()
794 if (checkRet) { in CancelAuthOrIdentify()
823 if (checkRet) { in GetVersion()
1098 if (checkRet != SUCCESS) { in AuthWidget()
1099 contextCallback->OnResult(checkRet, extraInfo); in AuthWidget()
1103 if (checkRet != SUCCESS) { in AuthWidget()
1105 contextCallback->OnResult(checkRet, extraInfo); in AuthWidget()
[all …]
/ohos5.0/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
H A Dsys_event_service_ohos.cpp394 …auto checkRet = CheckEventQueryingValidity(rules, 100); // count of query rule limits to 100 in qu… in Query() local
395 if (checkRet != IPC_CALL_SUCCEED) { in Query()
396 …callback->OnComplete(checkRet, 0, EventStore::SysEventSequenceManager::GetInstance().GetSequence()… in Query()
397 return checkRet; in Query()
486 auto checkRet = CheckEventSubscriberAddingValidity(events); in AddSubscriber() local
487 if (checkRet != IPC_CALL_SUCCEED) { in AddSubscriber()
488 return checkRet; in AddSubscriber()
529 …auto checkRet = CheckEventQueryingValidity(rules, 10); // count of query rule limits to 10 in expo… in Export() local
530 if (checkRet != IPC_CALL_SUCCEED) { in Export()
531 return checkRet; in Export()
/ohos5.0/foundation/bundlemanager/distributed_bundle_framework/interfaces/inner_api/src/
H A Ddistributed_bms_proxy.cpp46 int32_t checkRet = CheckElementName(elementName); in GetRemoteAbilityInfo() local
47 if (checkRet != ERR_OK) { in GetRemoteAbilityInfo()
49 return checkRet; in GetRemoteAbilityInfo()
87 int32_t checkRet = CheckElementName(elementName); in GetRemoteAbilityInfos() local
88 if (checkRet != ERR_OK) { in GetRemoteAbilityInfos()
90 return checkRet; in GetRemoteAbilityInfos()
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/map/
H A Dnapi_bluetooth_map_mse.cpp112 napi_status checkRet = CheckEmptyParam(env, info); in GetConnectedDevices() local
113 NAPI_BT_ASSERT_RETURN(env, checkRet == napi_ok, BT_ERR_INVALID_PARAM, ret); in GetConnectedDevices()
135 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in GetConnectionState() local
136 NAPI_BT_ASSERT_RETURN_UNDEF(env, checkRet, BT_ERR_INVALID_PARAM); in GetConnectionState()
155 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in Disconnect() local
156 NAPI_BT_ASSERT_RETURN_FALSE(env, checkRet, BT_ERR_INVALID_PARAM); in Disconnect()
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/hfp/
H A Dnapi_bluetooth_hfp_ag.cpp134 napi_status checkRet = CheckEmptyParam(env, info); in GetConnectionDevices() local
135 NAPI_BT_ASSERT_RETURN(env, checkRet == napi_ok, BT_ERR_INVALID_PARAM, ret); in GetConnectionDevices()
161 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in GetDeviceState() local
162 NAPI_BT_ASSERT_RETURN(env, checkRet, BT_ERR_INVALID_PARAM, result); in GetDeviceState()
343 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in Connect() local
344 NAPI_BT_ASSERT_RETURN_FALSE(env, checkRet, BT_ERR_INVALID_PARAM); in Connect()
358 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in Disconnect() local
359 NAPI_BT_ASSERT_RETURN_FALSE(env, checkRet, BT_ERR_INVALID_PARAM); in Disconnect()
/ohos5.0/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/src/
H A Duser_auth_impl.cpp67 ResultCode checkRet = CheckAuthTypeAndAuthTrustLevel(authType, authTrustLevel); in GetAvailableStatus() local
68 if (checkRet != SUCCESS) { in GetAvailableStatus()
70 NAPI_CALL(env, napi_create_int32(env, checkRet, &result)); in GetAvailableStatus()
218 …ResultCode checkRet = CheckAuthTypeAndAuthTrustLevel(AuthType(authType), AuthTrustLevel(authTrustL… in Auth() local
219 if (checkRet != SUCCESS) { in Auth()
222 callback->OnResult(checkRet, extraInfo); in Auth()
/ohos5.0/foundation/arkui/napi/native_engine/
H A Dnative_safe_async_work.cpp188 SafeAsyncCode checkRet = ValidEngineCheck(); in Send() local
189 if (checkRet != SafeAsyncCode::SAFE_ASYNC_OK) { in Send()
190 return checkRet; in Send()
250 SafeAsyncCode checkRet = ValidEngineCheck(); in Release() local
251 if (checkRet != SafeAsyncCode::SAFE_ASYNC_OK) { in Release()
252 return checkRet; in Release()
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/pbap/
H A Dnapi_bluetooth_pbap_pse.cpp144 napi_status checkRet = CheckEmptyParam(env, info); in GetConnectedDevices() local
145 NAPI_BT_ASSERT_RETURN(env, checkRet == napi_ok, BT_ERR_INVALID_PARAM, ret); in GetConnectedDevices()
167 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in GetConnectionState() local
168 NAPI_BT_ASSERT_RETURN_UNDEF(env, checkRet, BT_ERR_INVALID_PARAM); in GetConnectionState()
187 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in Disconnect() local
188 NAPI_BT_ASSERT_RETURN_FALSE(env, checkRet, BT_ERR_INVALID_PARAM); in Disconnect()
/ohos5.0/base/useriam/face_auth/services/src/
H A Dface_auth_service.cpp120 bool checkRet = TokenIdKit::IsSystemAppByFullTokenID(fullTokenId); in SetBufferProducer() local
123 if (callingType == TOKEN_HAP && !checkRet) { in SetBufferProducer()
/ohos5.0/base/useriam/face_auth/frameworks/ipc/src/
H A Dface_auth_client_impl.cpp71 bool checkRet = TokenIdKit::IsSystemAppByFullTokenID(fullTokenId); in CheckSystemPermission() local
73 if (AccessTokenKit::GetTokenType(tokenId) == TOKEN_HAP && !checkRet) { in CheckSystemPermission()
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/session/src/
H A Dclient_trans_message_service.c163 int checkRet = CheckSendLen(channelId, channelType, len, BUSINESS_TYPE_MESSAGE); in SendMessage() local
164 if (checkRet != SOFTBUS_OK) { in SendMessage()
165 return checkRet; in SendMessage()
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/a2dp/
H A Dnapi_bluetooth_a2dp_src.cpp191 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in GetPlayingState() local
192 NAPI_BT_ASSERT_RETURN(env, checkRet, BT_ERR_INVALID_PARAM, ret); in GetPlayingState()
208 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in Connect() local
209 NAPI_BT_ASSERT_RETURN_FALSE(env, checkRet, BT_ERR_INVALID_PARAM); in Connect()
224 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in Disconnect() local
225 NAPI_BT_ASSERT_RETURN_FALSE(env, checkRet, BT_ERR_INVALID_PARAM); in Disconnect()
675 bool checkRet = CheckDeivceIdParam(env, info, remoteAddr); in GetCurrentCodecInfo() local
676 NAPI_BT_ASSERT_RETURN(env, checkRet, BT_ERR_INVALID_PARAM, ret); in GetCurrentCodecInfo()
/ohos5.0/base/customization/enterprise_device_management/interfaces/kits/account_manager/src/
H A Daccount_manager_addon.cpp158 napi_value checkRet = AddOsAccountCommon(env, info, asyncCallbackInfo); in AddOsAccount() local
160 napi_get_value_int32(env, checkRet, &errCode); in AddOsAccount()
161 if (checkRet == nullptr || errCode != ERR_OK) { in AddOsAccount()
485 napi_value checkRet = AddOsAccountCommon(env, info, asyncCallbackInfo); in AddOsAccountAsync() local
487 napi_get_value_int32(env, checkRet, &errCode); in AddOsAccountAsync()
488 if (checkRet == nullptr || errCode != ERR_OK) { in AddOsAccountAsync()
/ohos5.0/base/customization/enterprise_device_management/interfaces/inner_api/bundle_manager/src/
H A Dbundle_manager_proxy.cpp248 ErrCode checkRet = checkHapFilePath(hapFilePath, fileName, realPath, errMessage); in WriteFileToStream() local
249 if (checkRet != ERR_OK) { in WriteFileToStream()
250 return checkRet; in WriteFileToStream()
/ohos5.0/base/customization/enterprise_device_management/test/unittest/interface/plugin_kits/
H A Diplugin_test.cpp149 std::string checkRet = NONE_PERMISSION_MATCH; variable
150 EXPECT_TRUE(ret == checkRet);
/ohos5.0/foundation/resourceschedule/device_standby/services/core/src/
H A Dstandby_service_impl.cpp566 … if (auto checkRet = CheckCallerPermission(resourceRequest->GetReasonCode()); checkRet != ERR_OK) { in ApplyAllowResource() local
567 return checkRet; in ApplyAllowResource()
679 … if (auto checkRet = CheckCallerPermission(resourceRequest->GetReasonCode()); checkRet != ERR_OK) { in UnapplyAllowResource() local
680 return checkRet; in UnapplyAllowResource()
782 if (auto checkRet = CheckCallerPermission(reasonCode); checkRet != ERR_OK) { in GetAllowList() local
783 return checkRet; in GetAllowList()
/ohos5.0/base/useriam/pin_auth/frameworks/client/src/
H A Dinputer_data_impl.cpp282 bool checkRet = std::regex_match(reinterpret_cast<char*>(input.data()), regex); in CheckPinComplexityByReg() local
283 if (!checkRet) { in CheckPinComplexityByReg()
/ohos5.0/base/useriam/user_auth_framework/services/core/src/
H A Dipc_common.cpp303 bool checkRet = TokenIdKit::IsSystemAppByFullTokenID(fullTokenId); in CheckCallerIsSystemApp() local
305 if (checkRet && callingType == ATokenTypeEnum::TOKEN_HAP) { in CheckCallerIsSystemApp()

12