Home
last modified time | relevance | path

Searched refs:asyncContext (Results 1 – 25 of 187) sorted by relevance

12345678

/ohos5.0/base/account/os_account/interfaces/kits/napi/osaccount/src/
H A Dnapi_os_account_common.cpp160 …return ParseCallbackAndId(env, cbInfo, asyncContext->callbackRef, asyncContext->id, asyncContext->… in ParseParaQueryOAByIdCB()
166asyncContext->errCode = OsAccountManager::QueryOsAccountById(asyncContext->id, asyncContext->osAcc… in QueryOAByIdExecuteCB()
323 …return ParseCallbackAndId(env, cbInfo, asyncContext->callbackRef, asyncContext->id, asyncContext->… in ParseParaRemoveOACB()
385asyncContext->errCode = OsAccountManager::SetOsAccountName(asyncContext->id, asyncContext->name); in SetOANameExecuteCB()
478 …return ParseCallbackAndId(env, cbInfo, asyncContext->callbackRef, asyncContext->id, asyncContext->… in ParseParaActiveOA()
635asyncContext->errCode = OsAccountManager::CreateOsAccount(asyncContext->name, asyncContext->shortN… in CreateOAExecuteCB()
1085asyncContext->errCode = OsAccountManager::GetOsAccountProfilePhoto(asyncContext->id, asyncContext-… in GetOAPhotoExecuteCB()
1191asyncContext->errCode = OsAccountManager::GetOsAccountLocalIdFromUid(asyncContext->uid, asyncConte… in GetIdByUidExecuteCB()
1199asyncContext->errCode = OsAccountManager::GetBundleIdFromUid(asyncContext->uid, asyncContext->id); in GetBundleIdByUidExecuteCB()
1208 asyncContext->domainInfo, asyncContext->id); in GetIdByDomainExecuteCB()
[all …]
/ohos5.0/base/time/time_service/framework/js/napi/system_time/src/
H A Djs_systemtime.cpp105 …CallbackPromiseInfo info{ asyncContext->callbackRef, asyncContext->deferred, asyncContext->isCallb… in JSSystemTimeSetTime()
106 asyncContext->errorCode, asyncContext->message }; in JSSystemTimeSetTime()
113 (void *)asyncContext, &asyncContext->work); in JSSystemTimeSetTime()
156 …CallbackPromiseInfo info{ asyncContext->callbackRef, asyncContext->deferred, asyncContext->isCallb… in JSSystemTimeSetTimeZone()
157 asyncContext->errorCode, asyncContext->message }; in JSSystemTimeSetTimeZone()
164 (void *)asyncContext, &asyncContext->work); in JSSystemTimeSetTimeZone()
217 (void *)asyncContext, &asyncContext->work); in JSSystemTimeGetCurrentTime()
270 (void *)asyncContext, &asyncContext->work); in JSSystemTimeGetRealActiveTime()
323 (void *)asyncContext, &asyncContext->work); in JSSystemTimeGetRealTime()
370 (void *)asyncContext, &asyncContext->work); in JSSystemTimeGetDate()
[all …]
/ohos5.0/base/account/os_account/interfaces/kits/napi/appaccount/src/
H A Dnapi_app_account.cpp504 asyncContext->name, asyncContext->credentialType, asyncContext->credential); in SetCredentialInternal()
916 asyncContext->authType, asyncContext->options, asyncContext->appAccountMgrCb); in AuthInternalExecuteCB()
988asyncContext->name, asyncContext->owner, asyncContext->authType, asyncContext->token); in GetAuthTokenInternal()
991asyncContext->name, asyncContext->owner, asyncContext->authType, asyncContext->token); in GetAuthTokenInternal()
1039 asyncContext->name, asyncContext->authType, asyncContext->token); in SetAuthTokenInternal()
1083asyncContext->name, asyncContext->owner, asyncContext->authType, asyncContext->token); in DeleteAuthTokenInternal()
1086asyncContext->name, asyncContext->owner, asyncContext->authType, asyncContext->token); in DeleteAuthTokenInternal()
1132asyncContext->name, asyncContext->authType, asyncContext->bundleName, asyncContext->isVisible); in SetAuthTokenVisibilityInternal()
1135asyncContext->name, asyncContext->authType, asyncContext->bundleName, asyncContext->isVisible); in SetAuthTokenVisibilityInternal()
1167asyncContext->name, asyncContext->authType, asyncContext->bundleName, asyncContext->isVisible); in CheckAuthTokenVisibilityExecuteCB()
[all …]
/ohos5.0/base/security/dlp_permission_service/interfaces/kits/dlp_permission/napi/src/
H A Dnapi_dlp_permission.cpp108 static_cast<void*>(asyncContext), &(asyncContext->work))); in GenerateDlpFile()
143 asyncContext->plaintextFd, asyncContext->ciphertextFd, asyncContext->property, in GenerateDlpFileExcute()
204 static_cast<void*>(asyncContext), &(asyncContext->work))); in OpenDlpFile()
328 static_cast<void*>(asyncContext), &(asyncContext->work))); in IsDlpFile()
395 static_cast<void*>(asyncContext), &(asyncContext->work))); in AddDlpLinkFile()
459 static_cast<void*>(asyncContext), &(asyncContext->work))); in StopDlpLinkFile()
522 static_cast<void*>(asyncContext), &(asyncContext->work))); in RestartDlpLinkFile()
585 static_cast<void*>(asyncContext), &(asyncContext->work))); in ReplaceDlpLinkFile()
649 static_cast<void*>(asyncContext), &(asyncContext->work))); in DeleteDlpLinkFile()
853 asyncContext->userId, asyncContext->sandboxInfo, asyncContext->uri); in InstallDlpSandboxExcute()
[all …]
/ohos5.0/foundation/multimodalinput/input/frameworks/napi/pointer/src/
H A Djs_pointer_manager.cpp106 CHKPV(asyncContext); in AsyncCallbackWork()
146 asyncContext.GetRefPtr(), &asyncContext->work); in AsyncCallbackWork()
158 CHKPP(asyncContext); in SetPointerVisible()
190 CHKPP(asyncContext); in IsPointerVisible()
220 CHKPP(asyncContext); in SetPointerColor()
246 CHKPP(asyncContext); in GetPointerColor()
307 CHKPP(asyncContext); in SetPointerSpeed()
337 CHKPP(asyncContext); in GetPointerSpeed()
367 CHKPP(asyncContext); in SetMouseScrollRows()
393 CHKPP(asyncContext); in GetMouseScrollRows()
[all …]
/ohos5.0/base/telephony/call_manager/frameworks/js/napi/src/
H A Dnapi_call_manager.cpp3968 asyncContext.info.fac, asyncContext.info.mode); in GetRestrictionInfo()
4003 asyncContext.info.type, asyncContext.info.settingType, asyncContext.info.startHour, in GetTransferInfo()
4004 asyncContext.info.startMinute, asyncContext.info.endHour, asyncContext.info.endMinute); in GetTransferInfo()
4424 asyncContext->slotId, asyncContext->info); in NativeSetCallRestriction()
4544 asyncContext->slotId, asyncContext->info); in NativeSetTransferNumber()
4570 asyncContext->slotId, asyncContext->enabled); in NativeCanSetCallTransferTime()
4628 asyncContext->slotId, asyncContext->enabled); in NativeIsImsSwitchEnabled()
4648 asyncContext->slotId, asyncContext->state); in NativeSetVoNRState()
4669 asyncContext->slotId, asyncContext->state); in NativeGetVoNRState()
4715 asyncContext->callId, asyncContext->proceed); in NativePostDialProceed()
[all …]
/ohos5.0/base/telephony/cellular_data/frameworks/js/napi/src/
H A Dnapi_cellular_data.cpp130 if (asyncContext == nullptr) { in NativeGetCellularDataState()
151 if (asyncContext->resolved) { in GetCellularDataStateCallback()
173 if (asyncContext == nullptr) { in GetCellularDataState()
189 if (asyncContext == nullptr) { in NativeIsCellularDataEnabled()
214 if (asyncContext->resolved) { in IsCellularDataEnabledCallback()
280 asyncContext->errorCode = asyncContext->result; in NativeEnableCellularData()
297 if (asyncContext->resolved) { in EnableCellularDataCallback()
317 if (asyncContext->resolved) { in DisableCellularDataCallback()
404 asyncContext->errorCode = asyncContext->result; in NativeDisableCellularData()
453 asyncContext->errorCode = asyncContext->result; in NativeEnableCellularDataRoaming()
[all …]
/ohos5.0/base/account/os_account/interfaces/kits/napi/distributedaccount/src/
H A Dnapi_distributed_account.cpp314 if (!asyncContext->throwErr) { in QueryOhosAccountInfoExecuteCB()
328 asyncContext->localId, asyncContext->ohosAccountInfo); in QueryOhosAccountInfoExecuteCB()
337 delete asyncContext; in QueryOhosAccountInfoCompletedCB()
343 if (asyncContext == nullptr) { in QueryOhosAccountInfo()
364 reinterpret_cast<void *>(asyncContext), &asyncContext->work)); in QueryOhosAccountInfo()
423 delete asyncContext; in UpdateOhosAccountInfoCompletedCB()
458 if (asyncContext == nullptr) { in SetOsAccountDistributedInfoByLocalId()
463 asyncContext->throwErr = true; in SetOsAccountDistributedInfoByLocalId()
479 reinterpret_cast<void *>(asyncContext), &asyncContext->work)); in SetOsAccountDistributedInfoByLocalId()
538 reinterpret_cast<void *>(asyncContext), &asyncContext->work)); in GetOsAccountDistributedInfoByLocalId()
[all …]
/ohos5.0/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
H A Dnapi_hiappevent_write.cpp65 if (asyncContext->appEventPack != nullptr && asyncContext->result >= 0) { in Write()
72 if (asyncContext->result == 0) { in Write()
76 if (asyncContext->isV9) { in Write()
86 if (asyncContext->result == 0) { in Write()
99 delete asyncContext; in Write()
101 (void*)asyncContext, &asyncContext->asyncWork); in Write()
111 if (asyncContext->appEventPack != nullptr && asyncContext->result == 0) { in SetEventParam()
113 asyncContext->result = ret; in SetEventParam()
120 if (asyncContext != nullptr && asyncContext->deferred != nullptr) { // promise in SetEventParam()
132 delete asyncContext; in SetEventParam()
[all …]
/ohos5.0/foundation/arkui/ace_engine/interfaces/napi/kits/promptaction/
H A Dprompt_action.cpp1113 napi_get_value_bool(env, asyncContext->isModal, &asyncContext->isModalBool); in GetNapiNamedBoolProperties()
1272 asyncContext->env = env; in JSPromptShowDialog()
1549 asyncContext->env = env; in JSPromptShowActionMenu()
1698 asyncContext->titleString, asyncContext->buttons, std::move(callBack)); in JSPromptShowActionMenu()
1935 if (!asyncContext) { in ParseCustomDialogContentCallback()
1948 if (asyncContext == nullptr || !asyncContext->valid) { in ParseCustomDialogContentCallback()
1985 if (!asyncContext) { in ParseCustomDialogIdCallback()
1998 if (asyncContext == nullptr || !asyncContext->valid) { in ParseCustomDialogIdCallback()
2074 asyncContext->env = env; in JSPromptOpenCustomDialog()
2155 asyncContext->env = env; in JSPromptCloseCustomDialog()
[all …]
/ohos5.0/base/startup/init/interfaces/kits/jskits/src/
H A Dnative_parameters_js.cpp48 asyncContext->status = SetParameter(asyncContext->key, asyncContext->value); in SetCallbackWork()
50 asyncContext->status, asyncContext->key, asyncContext->value); in SetCallbackWork()
80 delete asyncContext; in SetCallbackWork()
82 reinterpret_cast<void *>(asyncContext), &asyncContext->work); in SetCallbackWork()
95 asyncContext->env = env; in Set()
109 delete asyncContext; in Set()
226 … OHOS::system::GetStringParameter(asyncContext->key, asyncContext->getValue, asyncContext->value); in GetCallbackWork()
228asyncContext->status, asyncContext->getValue.c_str(), asyncContext->key, asyncContext->value); in GetCallbackWork()
259 delete asyncContext; in GetCallbackWork()
261 reinterpret_cast<void *>(asyncContext), &asyncContext->work); in GetCallbackWork()
[all …]
/ohos5.0/foundation/multimedia/media_library/frameworks/native/media_library_asset_manager/src/
H A Dmedia_asset_manager_impl.cpp227asyncContext->onRequestImageDataPreparedHandler, asyncContext->returnDataType, asyncContext->reque… in InsertDataHandler()
228 asyncContext->destUri, asyncContext->requestOptions.sourceMode); in InsertDataHandler()
233asyncContext->requestUri, asyncContext->destUri, asyncContext->requestOptions.sourceMode); in InsertDataHandler()
237 asyncContext->onDataPreparedHandler, asyncContext->returnDataType, asyncContext->requestUri, in InsertDataHandler()
238 asyncContext->destUri, asyncContext->requestOptions.sourceMode); in InsertDataHandler()
243 asyncContext->requestUri, asyncContext->destUri, mediaAssetDataHandler); in InsertDataHandler()
245 asyncContext->requestUri.c_str(), asyncContext->requestId.c_str()); in InsertDataHandler()
414 asyncContext->requestUri.length(), asyncContext->destUri.length()); in NativeRequestImage()
456 asyncContext->requestUri.length(), asyncContext->destUri.length()); in NativeRequestVideo()
629asyncContext->photoQuality = QueryPhotoStatus(asyncContext->fileId, asyncContext->photoId); in OnHandleRequestImage()
[all …]
/ohos5.0/base/security/access_token/interfaces/kits/napi/accesstoken/src/
H A Dnapi_request_permission.cpp125 asyncContext->instanceId, asyncContext->uiContentFlag); in GetInstanceId()
146 sessionId, asyncContext->tokenId, asyncContext->permissionList.size()); in CreateUIExtensionMainThread()
394 if ((asyncContext == nullptr) || (asyncContext->abilityContext == nullptr)) { in CreateServiceExtension()
431 ret, asyncContext->tokenId, asyncContext->permissionList.size()); in CreateServiceExtension()
451 asyncContext->tokenId, asyncContext->info.grantBundleName.c_str(), in IsDynamicRequest()
635 asyncContext->env = env; in ParseRequestPermissionFromUser()
774 reinterpret_cast<void *>(asyncContext), &(asyncContext->work)); in GetPermissionsStatus()
800 asyncContext.env = env; in ParseInputToGetQueryResult()
861 ReturnPromiseResult(env, asyncContext->result, asyncContext->deferred, result); in GetPermissionsStatusComplete()
871 … RequestResultsHandler(asyncContext->permissionList, asyncContext->permissionsState, asyncContext); in CheckDynamicRequest()
[all …]
H A Dnapi_atmanager.cpp418asyncContext->result = AccessTokenKit::VerifyAccessToken(asyncContext->tokenId, asyncContext->perm… in VerifyAccessTokenExecute()
428 asyncContext->tokenId, asyncContext->permissionName.c_str(), asyncContext->result); in VerifyAccessTokenComplete()
572 asyncContext->tokenId, asyncContext->permissionName); in UpdatePermissionCache()
580asyncContext->result = AccessTokenKit::VerifyAccessToken(asyncContext->tokenId, asyncContext->perm… in UpdatePermissionCache()
613asyncContext->result = AccessTokenKit::VerifyAccessToken(asyncContext->tokenId, asyncContext->perm… in VerifyAccessTokenSync()
677 asyncContext.tokenId, asyncContext.permissionName.c_str(), asyncContext.flag); in ParseInputGrantOrRevokePermission()
710asyncContext->result = AccessTokenKit::GrantPermission(asyncContext->tokenId, asyncContext->permis… in GrantUserGrantedPermissionExecute()
717asyncContext->tokenId, asyncContext->permissionName.c_str(), asyncContext->flag, asyncContext->res… in GrantUserGrantedPermissionExecute()
853asyncContext->result = AccessTokenKit::RevokePermission(asyncContext->tokenId, asyncContext->permi… in RevokeUserGrantedPermissionExecute()
860asyncContext->tokenId, asyncContext->permissionName.c_str(), asyncContext->flag, asyncContext->res… in RevokeUserGrantedPermissionExecute()
[all …]
/ohos5.0/base/startup/init/interfaces/kits/jskits/src_enhance/
H A Dnative_parameters_js.cpp110 asyncContext->status = SetParameter(asyncContext->key, asyncContext->value); in SetCallbackWork()
112 asyncContext->status, asyncContext->key, asyncContext->value); in SetCallbackWork()
139 delete asyncContext; in SetCallbackWork()
141 reinterpret_cast<void *>(asyncContext), &asyncContext->work); in SetCallbackWork()
154 asyncContext->env = env; in Set()
169 delete asyncContext; in Set()
177 asyncContext->key, asyncContext->keyLen, asyncContext->value, asyncContext->valueLen); in Set()
292 asyncContext->status = GetParameter(asyncContext->key, in GetCallbackWork()
328 reinterpret_cast<void *>(asyncContext), &asyncContext->work); in GetCallbackWork()
341 asyncContext->env = env; in Get()
[all …]
/ohos5.0/foundation/arkui/napi/sample/native_module_storage/
H A Djs_storage.cpp254 delete asyncContext; in CreateAsyncWorkOfGet()
256 (void*)asyncContext, &asyncContext->work); in CreateAsyncWorkOfGet()
302 delete asyncContext; in CreateAsyncWorkOfSet()
304 (void*)asyncContext, &asyncContext->work); in CreateAsyncWorkOfSet()
350 delete asyncContext; in CreateAsyncWorkOfDelete()
352 (void*)asyncContext, &asyncContext->work); in CreateAsyncWorkOfDelete()
400 (void*)asyncContext, &asyncContext->work); in CreateAsyncWorkOfClear()
445 asyncContext->env = env; in JSStorageGet()
481 asyncContext->env = env; in JSStorageSet()
519 asyncContext->env = env; in JSStorageDelete()
[all …]
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/player/
H A Dvideo_player_napi.cpp216 asyncContext.release(); in CreateVideoPlayer()
405 …if (asyncContext->surface.empty() || asyncContext->surface[0] < '0' || asyncContext->surface[0] > … in AsyncSetDisplaySurface()
456 asyncContext.release(); in SetDisplaySurface()
570 asyncContext.release(); in Prepare()
604 asyncContext.release(); in Play()
637 asyncContext.release(); in Pause()
669 asyncContext.release(); in Stop()
702 asyncContext.release(); in Reset()
746 asyncContext.release(); in Release()
799 asyncContext.release(); in Seek()
[all …]
/ohos5.0/foundation/arkui/ui_appearance/interfaces/kits/napi/src/
H A Djs_ui_appearance.cpp61 if (asyncContext == nullptr) { in OnExecute()
72 asyncContext->errMsg = ""; in OnExecute()
80 if (asyncContext == nullptr) { in OnSetFontScale()
97 asyncContext->errMsg = ""; in OnSetFontScale()
177 delete asyncContext; in OnComplete()
285 asyncContext->mode = JsUiAppearance::ConvertJsDarkMode2Enum(asyncContext->jsSetArg); in JSSetDarkMode()
296 reinterpret_cast<void*>(asyncContext), &asyncContext->work); in JSSetDarkMode()
386 asyncContext->fontScale = std::to_string(asyncContext->jsFontScale); in JSSetFontScale()
397 reinterpret_cast<void*>(asyncContext), &asyncContext->work); in JSSetFontScale()
459 asyncContext->fontWeightScale = std::to_string(asyncContext->jsFontWeightScale); in JSSetFontWeightScale()
[all …]
/ohos5.0/base/telephony/state_registry/frameworks/js/napi/src/
H A Dnapi_state_registry.cpp84 if (!IsValidSlotIdEx(asyncContext->eventType, asyncContext->slotId)) { in NativeOn()
92 asyncContext->eventType, in NativeOn()
93 asyncContext->slotId, in NativeOn()
94 asyncContext->callbackRef, in NativeOn()
111 if (!asyncContext->resolved) { in OnCallback()
124 delete asyncContext; in OnCallback()
134 if (asyncContext == nullptr) { in On()
190 env, asyncContext->eventType, asyncContext->removeListenerList); in NativeOff()
193 … env, asyncContext->eventType, asyncContext->callbackRef, asyncContext->removeListenerList); in NativeOff()
215 if (!asyncContext->resolved) { in OffCallback()
[all …]
/ohos5.0/foundation/multimodalinput/input/frameworks/napi/short_key/src/
H A Djs_short_key_manager.cpp60 napi_env env = asyncContext->env; in GetResult()
85 asyncContext->reserve >> resultType; in GetResult()
88 asyncContext->reserve >> temp; in GetResult()
92 asyncContext->reserve >> temp; in GetResult()
103 CHKPV(asyncContext); in AsyncCallbackWork()
104 CHKPV(asyncContext->env); in AsyncCallbackWork()
105 napi_env env = asyncContext->env; in AsyncCallbackWork()
143 asyncContext.GetRefPtr(), &asyncContext->work); in AsyncCallbackWork()
166 CHKPP(asyncContext); in SetKeyDownDuration()
167 asyncContext->errorCode = ret; in SetKeyDownDuration()
[all …]
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/dataability/include/
H A Dnapi_async_proxy.h65 asyncContext = new T(); in Init()
69 asyncContext->env = env; in Init()
79 delete asyncContext; in ~NapiAsyncProxy() local
80 asyncContext = nullptr; in ~NapiAsyncProxy()
97 napi_get_cb_info(asyncContext->env, asyncContext->info, &argc, args, &thisObj, nullptr);
109 parserFunction(asyncContext->env, args[i], this->asyncContext);
112 parserThis(asyncContext->env, thisObj, asyncContext);
123 napi_create_promise(asyncContext->env, &asyncContext->deferred, &ret); in DoAsyncWork()
167 (void *)asyncContext, &asyncContext->work), ret); in DoAsyncWork()
168 …NAPI_CALL_BASE(asyncContext->env, napi_queue_async_work(asyncContext->env, asyncContext->work), re… in DoAsyncWork()
[all …]
/ohos5.0/base/telephony/core_service/frameworks/js/sim/src/
H A Dnapi_sim.cpp108 BaseContext &context = asyncContext->asyncContext.context; in NapiCreateAsyncWork2()
139 BaseContext &context = asyncContext->asyncContext.context; in NapiCreateAsyncWork3()
557 BaseContext &context = asyncContext->asyncContext.context; in GetDefaultVoiceSlotId()
603 BaseContext &context = asyncContext->asyncContext.context; in GetDefaultVoiceSimId()
865 if (!IsValidSlotId(asyncContext->asyncContext.slotId)) { in NativeGetSimAuthentication()
872 asyncContext->asyncContext.slotId, static_cast<AuthType>(asyncContext->authType), in NativeGetSimAuthentication()
877 asyncContext->asyncContext.context.resolved = true; in NativeGetSimAuthentication()
879 asyncContext->asyncContext.context.resolved = false; in NativeGetSimAuthentication()
881 asyncContext->asyncContext.context.errorCode = errorCode; in NativeGetSimAuthentication()
1750 std::make_tuple(&asyncContext->asyncContext.slotId, std::data(asyncContext->inputStr), in SetShowName()
[all …]
/ohos5.0/base/telephony/core_service/frameworks/js/network_search/src/
H A Dnapi_radio.cpp226 asyncContext->slotId, asyncContext->signalInfoList); in NativeGetSignalInfoList()
237 asyncContext->signalInfoList.size(), asyncContext->resolved); in GetSignalInfoListCallback()
648 [asyncContext] { return asyncContext->callbackEnd; }); in NativeGetNetworkSearchInformation()
906asyncContext->slotId, asyncContext->selectMode, networkInfo, asyncContext->resumeSelection, callba… in NativeSetNetworkSelectionMode()
920 asyncContext->resolved = asyncContext->setResult; in SetNetworkSelectionModeCallback()
1461 asyncContext->slotId, asyncContext->preferredNetworkMode, callback); in NativeSetPreferredNetwork()
1615asyncContext->slotId, asyncContext->networkCapabilityType, asyncContext->networkCapabilityState); in NativeSetNetworkCapability()
1689asyncContext->slotId, asyncContext->networkCapabilityType, asyncContext->networkCapabilityState); in NativeGetNetworkCapability()
2172 asyncContext->slotId, asyncContext->cellInformations); in NativeGetCellInformation()
2191 asyncContext->cellInformations.size(), asyncContext->resolved, asyncContext->slotId); in GetCellInformationCallback()
[all …]
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/common/mock/include/
H A Dnapi_async_proxy.h64 asyncContext = new T(); in Init()
68 asyncContext->env = env; in Init()
69 asyncContext->info = info; in Init()
86 napi_get_cb_info(asyncContext->env, asyncContext->info, &argc, args, &thisObj, nullptr);
92 … napi_create_reference(asyncContext->env, args[i], 1, &asyncContext->callbackRef);
98 parserFunction(asyncContext->env, args[i], this->asyncContext);
101 parserThis(asyncContext->env, thisObj, asyncContext);
112 napi_create_promise(asyncContext->env, &asyncContext->deferred, &ret); in DoAsyncWork()
156 (void *)asyncContext, &asyncContext->work), ret); in DoAsyncWork()
157 …NAPI_CALL_BASE(asyncContext->env, napi_queue_async_work(asyncContext->env, asyncContext->work), re… in DoAsyncWork()
[all …]
/ohos5.0/base/security/certificate_manager/interfaces/kits/napi/src/dialog/
H A Dcm_napi_open_install_dialog.cpp76 if (asyncContext->errCode == CM_SUCCESS) { in ProcessCallback()
83 if (asyncContext->deferred != nullptr) { in ProcessCallback()
84 if (asyncContext->errCode == CM_SUCCESS) { in ProcessCallback()
147 if (!ParseCmUIAbilityContextReq(asyncContext->env, argv[PARAM0], asyncContext->context)) { in CMCheckArgvAndInitContext()
164 if (ParseUint32(asyncContext->env, argv[PARAM2], asyncContext->certificateScope) == nullptr) { in CMCheckArgvAndInitContext()
174 … if (GetUint8ArrayToBase64Str(asyncContext->env, argv[PARAM3], asyncContext->certStr) == nullptr) { in CMCheckArgvAndInitContext()
178 return GetInt32(asyncContext->env, 0); in CMCheckArgvAndInitContext()
234 asyncContext->labelName); in GetCallerLabelName()
266 asyncContext->env = env; in CMNapiOpenInstallCertDialog()
273 if (GetCallerLabelName(asyncContext) != CM_SUCCESS) { in CMNapiOpenInstallCertDialog()
[all …]

12345678