Home
last modified time | relevance | path

Searched defs:asyncContext (Results 1 – 25 of 72) sorted by relevance

123

/base/telephony/core_service/frameworks/js/sim/include/
Dnapi_sim.h38 AsyncContext<bool> asyncContext; member
43 AsyncContext<napi_value> asyncContext; member
52 AsyncContext<napi_value> asyncContext; member
62 AsyncContext<napi_value> asyncContext; member
75 AsyncContext<T> asyncContext; member
81 AsyncContext<bool> asyncContext; member
87 AsyncContext<int32_t> asyncContext; member
92 AsyncContext<int32_t> asyncContext; member
96 AsyncContext<int32_t> asyncContext; member
100 AsyncContext<int32_t> asyncContext; member
[all …]
/base/account/os_account/interfaces/kits/napi/osaccount/src/
Dnapi_os_account_common.cpp51 auto asyncContext = std::make_shared<CreateOAForDomainAsyncContext>(); in OnResult() local
74 …bool ParseOneParaContext(napi_env env, napi_callback_info cbInfo, CommonAsyncContext *asyncContext) in ParseOneParaContext()
113 …arseParaDeactivateOA(napi_env env, napi_callback_info cbInfo, ActivateOAAsyncContext *asyncContext) in ParseParaDeactivateOA()
136 ActivateOAAsyncContext *asyncContext = reinterpret_cast<ActivateOAAsyncContext *>(data); in DeactivateOAExecuteCB() local
142 ActivateOAAsyncContext *asyncContext = reinterpret_cast<ActivateOAAsyncContext *>(data); in DeactivateOACompletedCB() local
154 …seParaQueryOAByIdCB(napi_env env, napi_callback_info cbInfo, QueryOAByIdAsyncContext *asyncContext) in ParseParaQueryOAByIdCB()
161 QueryOAByIdAsyncContext *asyncContext = reinterpret_cast<QueryOAByIdAsyncContext *>(data); in QueryOAByIdExecuteCB() local
169 QueryOAByIdAsyncContext *asyncContext = reinterpret_cast<QueryOAByIdAsyncContext *>(data); in QueryOAByIdCallbackCompletedCB() local
317 …ol ParseParaRemoveOACB(napi_env env, napi_callback_info cbInfo, RemoveOAAsyncContext *asyncContext) in ParseParaRemoveOACB()
324 RemoveOAAsyncContext *asyncContext = reinterpret_cast<RemoveOAAsyncContext *>(data); in RemoveOAExecuteCB() local
[all …]
/base/telephony/call_manager/frameworks/js/napi/src/
Dnapi_call_manager.cpp963 auto asyncContext = (std::make_unique<DialAsyncContext>()); in Dial() local
1016 auto asyncContext = std::make_unique<AsyncContext>(); in MakeCall() local
1037 auto asyncContext = (std::make_unique<DialAsyncContext>()); in DialCall() local
1140 auto asyncContext = std::make_unique<RejectAsyncContext>(); in RejectCall() local
1152 void NapiCallManager::HandleRejectCall(napi_env env, RejectAsyncContext &asyncContext, in HandleRejectCall()
1203 auto asyncContext = std::make_unique<AsyncContext>(); in HangUpCall() local
1238 auto asyncContext = std::make_unique<AsyncContext>(); in HoldCall() local
1259 auto asyncContext = std::make_unique<AsyncContext>(); in UnHoldCall() local
1281 auto asyncContext = std::make_unique<AsyncContext>(); in SwitchCall() local
1304 auto asyncContext = std::make_unique<AsyncContext>(); in CombineConference() local
[all …]
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
Dnapi_hiappevent_write.cpp59 void Write(const napi_env env, HiAppEventAsyncContext* asyncContext) in Write()
64 HiAppEventAsyncContext* asyncContext = (HiAppEventAsyncContext*)data; in Write() local
70 HiAppEventAsyncContext* asyncContext = (HiAppEventAsyncContext*)data; in Write() local
105 void SetEventParam(const napi_env env, HiAppEventAsyncContext* asyncContext) in SetEventParam()
110 HiAppEventAsyncContext* asyncContext = (HiAppEventAsyncContext*)data; in SetEventParam() local
118 HiAppEventAsyncContext* asyncContext = (HiAppEventAsyncContext*)data; in SetEventParam() local
138 void SetEventConfig(const napi_env env, HiAppEventConfigAsyncContext* asyncContext) in SetEventConfig()
143 HiAppEventConfigAsyncContext* asyncContext = (HiAppEventConfigAsyncContext*)data; in SetEventConfig() local
147 HiAppEventConfigAsyncContext* asyncContext = (HiAppEventConfigAsyncContext*)data; in SetEventConfig() local
/base/security/dlp_permission_service/interfaces/kits/dlp_permission/napi/src/
Dnapi_dlp_permission.cpp85 auto* asyncContext = new (std::nothrow) GenerateDlpFileAsyncContext(env); in GenerateDlpFile() local
117 auto asyncContext = reinterpret_cast<GenerateDlpFileAsyncContext*>(data); in GenerateDlpFileExcute() local
150 auto asyncContext = reinterpret_cast<GenerateDlpFileAsyncContext*>(data); in GenerateDlpFileComplete() local
181 auto* asyncContext = new (std::nothrow) DlpFileAsyncContext(env); in OpenDlpFile() local
213 auto asyncContext = reinterpret_cast<DlpFileAsyncContext*>(data); in OpenDlpFileExcute() local
263 auto asyncContext = reinterpret_cast<DlpFileAsyncContext*>(data); in OpenDlpFileComplete() local
305 auto* asyncContext = new (std::nothrow) DlpFileAsyncContext(env); in IsDlpFile() local
337 auto asyncContext = reinterpret_cast<DlpFileAsyncContext*>(data); in IsDlpFileExcute() local
349 auto asyncContext = reinterpret_cast<DlpFileAsyncContext*>(data); in IsDlpFileComplete() local
372 auto* asyncContext = new (std::nothrow) DlpLinkFileAsyncContext(env); in AddDlpLinkFile() local
[all …]
/base/account/os_account/interfaces/kits/napi/appaccount/src/
Dnapi_app_account.cpp165 auto asyncContext = std::make_unique<AppAccountAsyncContext>(env); in AddAccount() local
179 AppAccountAsyncContext *asyncContext = reinterpret_cast<AppAccountAsyncContext *>(data); in AddAccount() local
183 AppAccountAsyncContext *asyncContext = reinterpret_cast<AppAccountAsyncContext *>(data); in AddAccount() local
262 auto asyncContext = std::make_unique<OAuthAsyncContext>(env); in AddAccountImplicitly() local
275 OAuthAsyncContext *asyncContext = reinterpret_cast<OAuthAsyncContext *>(data); in AddAccountImplicitly() local
281 OAuthAsyncContext *asyncContext = reinterpret_cast<OAuthAsyncContext *>(data); in AddAccountImplicitly() local
306 auto asyncContext = std::make_unique<AppAccountAsyncContext>(env, isThrowable); in RemoveAccountInternal() local
320 AppAccountAsyncContext *asyncContext = reinterpret_cast<AppAccountAsyncContext *>(data); in RemoveAccountInternal() local
324 AppAccountAsyncContext *asyncContext = reinterpret_cast<AppAccountAsyncContext *>(data); in RemoveAccountInternal() local
339 auto asyncContext = std::make_unique<AppAccountAsyncContext>(env); in DisableAppAccess() local
[all …]
/base/telephony/core_service/frameworks/js/esim/include/
Dnapi_esim.h53 AsyncContext<int32_t> asyncContext; member
58 AsyncContext<int32_t> asyncContext; member
62 AsyncContext<napi_value> asyncContext; member
67 AsyncContext<napi_value> asyncContext; member
72 AsyncContext<int32_t> asyncContext; member
98 AsyncContext<napi_value> asyncContext; member
106 AsyncContext<napi_value> asyncContext; member
113 AsyncContext<int32_t> asyncContext; member
119 AsyncContext<int32_t> asyncContext; member
125 AsyncContext<napi_value> asyncContext; member
[all …]
/base/account/os_account/interfaces/kits/napi/distributedaccount/src/
Dnapi_distributed_account.cpp80 napi_env env, napi_callback_info cbInfo, DistributedAccountAsyncContext *asyncContext) in ParseQueryOhosAccountInfoAsyncContext()
96 … bool GetAccountInfo(napi_env env, napi_value object, DistributedAccountAsyncContext *asyncContext) in GetAccountInfo()
145 …bool ParseInfoAndEvent(napi_env env, napi_value argv, DistributedAccountAsyncContext *asyncContext) in ParseInfoAndEvent()
168 napi_env env, napi_callback_info cbInfo, DistributedAccountAsyncContext *asyncContext) in ParseUpdateOhosAccountInfoAsyncContext()
191 … napi_env env, const DistributedAccountAsyncContext *asyncContext, napi_value err, napi_value data) in ProcessCallbackOrPromise()
208 void ProcessSetNamedProperty(napi_env env, const DistributedAccountAsyncContext *asyncContext) in ProcessSetNamedProperty()
313 …DistributedAccountAsyncContext *asyncContext = reinterpret_cast<DistributedAccountAsyncContext *>(… in QueryOhosAccountInfoExecuteCB() local
334 …DistributedAccountAsyncContext *asyncContext = reinterpret_cast<DistributedAccountAsyncContext *>(… in QueryOhosAccountInfoCompletedCB() local
342 auto *asyncContext = new (std::nothrow) DistributedAccountAsyncContext(env); in QueryOhosAccountInfo() local
405 …DistributedAccountAsyncContext *asyncContext = reinterpret_cast<DistributedAccountAsyncContext *>(… in UpdateOhosAccountInfoCompletedCB() local
[all …]
/base/security/access_token/frameworks/js/napi/accesstoken/src/
Dnapi_request_permission.cpp88 static Ace::UIContent* GetUIContent(std::shared_ptr<RequestAsyncContext> asyncContext) in GetUIContent()
102 static void GetInstanceId(std::shared_ptr<RequestAsyncContext>& asyncContext) in GetInstanceId()
128 static void CreateUIExtensionMainThread(std::shared_ptr<RequestAsyncContext>& asyncContext, const A… in CreateUIExtensionMainThread()
169 static void CloseModalUIExtensionMainThread(std::shared_ptr<RequestAsyncContext>& asyncContext, int… in CloseModalUIExtensionMainThread()
194 … const napi_env &env, const napi_value &value, std::shared_ptr<RequestAsyncContext>& asyncContext) in GetContext()
346 std::shared_ptr<RequestAsyncContext> asyncContext = data_; in GrantResultsCallback() local
357 std::shared_ptr<RequestAsyncContext> asyncContext = data_; in WindowShownCallback() local
372 static void CreateServiceExtension(std::shared_ptr<RequestAsyncContext> asyncContext) in CreateServiceExtension()
416 bool NapiRequestPermission::IsDynamicRequest(std::shared_ptr<RequestAsyncContext>& asyncContext) in IsDynamicRequest()
548 static void CreateUIExtension(std::shared_ptr<RequestAsyncContext> asyncContext) in CreateUIExtension()
[all …]
Dnapi_request_global_switch_on_setting.cpp57 static Ace::UIContent* GetUIContent(std::shared_ptr<RequestGlobalSwitchAsyncContext> asyncContext) in GetUIContent()
72 …onst napi_env &env, const napi_value &value, std::shared_ptr<RequestGlobalSwitchAsyncContext>& asy… in GetContext()
141 std::shared_ptr<RequestGlobalSwitchAsyncContext> asyncContext = retCB->data; in GlobalSwitchResultsCallbackUI() local
165 static void CloseModalUIExtensionMainThread(std::shared_ptr<RequestGlobalSwitchAsyncContext>& async… in CloseModalUIExtensionMainThread()
280 static void CreateUIExtensionMainThread(std::shared_ptr<RequestGlobalSwitchAsyncContext>& asyncCont… in CreateUIExtensionMainThread()
315 …c int32_t CreateUIExtension(const Want &want, std::shared_ptr<RequestGlobalSwitchAsyncContext> asy… in CreateUIExtension()
346 static int32_t StartUIExtension(std::shared_ptr<RequestGlobalSwitchAsyncContext> asyncContext) in StartUIExtension()
363 std::shared_ptr<RequestGlobalSwitchAsyncContext> asyncContext = in RequestGlobalSwitch() local
392 … const napi_callback_info& cbInfo, std::shared_ptr<RequestGlobalSwitchAsyncContext>& asyncContext) in ParseRequestGlobalSwitch()
Dnapi_atmanager.cpp323 AtManagerAsyncContext& asyncContext) in ParseInputVerifyPermissionOrGetFlag()
398 AtManagerAsyncContext* asyncContext = reinterpret_cast<AtManagerAsyncContext *>(data); in VerifyAccessTokenExecute() local
416 AtManagerAsyncContext* asyncContext = reinterpret_cast<AtManagerAsyncContext *>(data); in VerifyAccessTokenComplete() local
431 auto* asyncContext = new (std::nothrow) AtManagerAsyncContext(env); in VerifyAccessToken() local
464 AtManagerAsyncContext* asyncContext = reinterpret_cast<AtManagerAsyncContext *>(data); in CheckAccessTokenExecute() local
494 AtManagerAsyncContext* asyncContext = reinterpret_cast<AtManagerAsyncContext *>(data); in CheckAccessTokenComplete() local
506 auto* asyncContext = new (std::nothrow) AtManagerAsyncContext(env); in CheckAccessToken() local
636 AtManagerAsyncContext& asyncContext) in ParseInputGrantOrRevokePermission()
692 AtManagerAsyncContext* asyncContext = reinterpret_cast<AtManagerAsyncContext *>(data); in GrantUserGrantedPermissionExecute() local
746 auto* asyncContext = new (std::nothrow) AtManagerAsyncContext(env); in GetVersion() local
[all …]
Dnapi_request_permission_on_setting.cpp59 static Ace::UIContent* GetUIContent(std::shared_ptr<RequestPermOnSettingAsyncContext> asyncContext) in GetUIContent()
74 …onst napi_env &env, const napi_value &value, std::shared_ptr<RequestPermOnSettingAsyncContext>& as… in GetContext()
161 std::shared_ptr<RequestPermOnSettingAsyncContext> asyncContext = retCB->data; in PermissionResultsCallbackUI() local
192 static void CloseModalUIExtensionMainThread(std::shared_ptr<RequestPermOnSettingAsyncContext>& asyn… in CloseModalUIExtensionMainThread()
307 static void CreateUIExtensionMainThread(std::shared_ptr<RequestPermOnSettingAsyncContext>& asyncCon… in CreateUIExtensionMainThread()
342 … int32_t CreateUIExtension(const Want &want, std::shared_ptr<RequestPermOnSettingAsyncContext> asy… in CreateUIExtension()
373 static int32_t StartUIExtension(std::shared_ptr<RequestPermOnSettingAsyncContext> asyncContext) in StartUIExtension()
389 std::shared_ptr<RequestPermOnSettingAsyncContext> asyncContext = in RequestPermissionOnSetting() local
418 … const napi_callback_info& cbInfo, std::shared_ptr<RequestPermOnSettingAsyncContext>& asyncContext) in ParseRequestPermissionOnSetting()
/base/telephony/cellular_data/frameworks/js/napi/src/
Dnapi_cellular_data.cpp139 auto asyncContext = static_cast<AsyncContext *>(data); in NativeGetCellularDataState() local
159 std::unique_ptr<AsyncContext> asyncContext(context); in GetCellularDataStateCallback() local
182 auto asyncContext = std::make_unique<AsyncContext>(); in GetCellularDataState() local
198 auto asyncContext = static_cast<AsyncContext *>(data); in NativeIsCellularDataEnabled() local
222 std::unique_ptr<AsyncContext> asyncContext(context); in IsCellularDataEnabledCallback() local
248 auto asyncContext = std::make_unique<AsyncContext>(); in IsCellularDataEnabled() local
282 auto asyncContext = static_cast<AsyncContext *>(data); in NativeEnableCellularData() local
308 std::unique_ptr<AsyncContext> asyncContext(context); in EnableCellularDataCallback() local
328 std::unique_ptr<AsyncContext> asyncContext(context); in DisableCellularDataCallback() local
348 std::unique_ptr<AsyncContext> asyncContext(context); in EnableCellularDataRoamingCallback() local
[all …]
/base/security/access_token/frameworks/js/napi/privacy/src/
Dpermission_record_manager_napi.cpp137 RecordManagerAsyncContext& asyncContext) in ParseAddPermissionFifthParam()
172 const napi_env env, const napi_callback_info info, RecordManagerAsyncContext& asyncContext) in ParseAddPermissionRecord()
222 const napi_env& env, const napi_callback_info& info, RecordManagerAsyncContext& asyncContext) in ParsePermissionUsedRecordToggleStatus()
247 RecordManagerAsyncContext& asyncContext) in ParseStartAndStopThirdParam()
275 const napi_env env, const napi_callback_info info, RecordManagerAsyncContext& asyncContext) in ParseStartAndStopUsingPermission()
511 const napi_env env, const napi_callback_info info, RecordManagerAsyncContext& asyncContext) in ParseGetPermissionUsedRecords()
548 RecordManagerAsyncContext* asyncContext = reinterpret_cast<RecordManagerAsyncContext*>(data); in AddPermissionUsedRecordExecute() local
565 RecordManagerAsyncContext* asyncContext = reinterpret_cast<RecordManagerAsyncContext*>(data); in AddPermissionUsedRecordComplete() local
580 auto *asyncContext = new (std::nothrow) RecordManagerAsyncContext(env); in AddPermissionUsedRecord() local
616 RecordManagerAsyncContext* asyncContext = reinterpret_cast<RecordManagerAsyncContext*>(data); in SetPermissionUsedRecordToggleStatusExecute() local
[all …]
/base/account/os_account/interfaces/kits/napi/domain_account/src/
Dnapi_domain_server_manager.cpp87 … AddServerConfigAsyncContext *asyncContext = reinterpret_cast<AddServerConfigAsyncContext *>(data); in AddServerConfigExecuteCB() local
112 … AddServerConfigAsyncContext *asyncContext = reinterpret_cast<AddServerConfigAsyncContext *>(data); in AddServerConfigCompletedCB() local
169 …RemoveServerConfigAsyncContext *asyncContext = reinterpret_cast<RemoveServerConfigAsyncContext *>(… in RemoveServerConfigExecuteCB() local
179 …RemoveServerConfigAsyncContext *asyncContext = reinterpret_cast<RemoveServerConfigAsyncContext *>(… in RemoveServerConfigCompletedCB() local
234 …GetAccountServerConfigAsyncContext *asyncContext = reinterpret_cast<GetAccountServerConfigAsyncCon… in GetAccountServerConfigExecuteCB() local
246 …GetAccountServerConfigAsyncContext *asyncContext = reinterpret_cast<GetAccountServerConfigAsyncCon… in GetAccountServerConfigCompletedCB() local
312 …UpdateServerConfigAsyncContext *asyncContext = reinterpret_cast<UpdateServerConfigAsyncContext *>(… in UpdateServerConfigExecuteCB() local
324 …UpdateServerConfigAsyncContext *asyncContext = reinterpret_cast<UpdateServerConfigAsyncContext *>(… in UpdateServerConfigCompletedCB() local
381 … GetServerConfigAsyncContext *asyncContext = reinterpret_cast<GetServerConfigAsyncContext *>(data); in GetServerConfigExecuteCB() local
392 … GetServerConfigAsyncContext *asyncContext = reinterpret_cast<GetServerConfigAsyncContext *>(data); in GetServerConfigCompletedCB() local
[all …]
/base/security/certificate_manager/interfaces/kits/napi/src/dialog/
Dcm_napi_open_uninstall_dialog.cpp39 static napi_value CMInitAsyncContext(std::shared_ptr<CmUIExtensionRequestContext> asyncContext, in CMInitAsyncContext()
68 static OHOS::AAFwk::Want CMGetUninstallCertWant(std::shared_ptr<CmUIExtensionRequestContext> asyncC… in CMGetUninstallCertWant()
108 auto asyncContext = std::make_shared<CmUIExtensionRequestContext>(env); in CMNapiOpenUninstallCertDialog() local
Dcm_napi_open_install_dialog.cpp44 static napi_value CMCheckArgvAndInitContext(std::shared_ptr<CmUIExtensionRequestContext> asyncConte… in CMCheckArgvAndInitContext()
86 static OHOS::AAFwk::Want CMGetInstallCertWant(std::shared_ptr<CmUIExtensionRequestContext> asyncCon… in CMGetInstallCertWant()
122 auto asyncContext = std::make_shared<CmUIExtensionRequestContext>(env); in CMNapiOpenInstallCertDialog() local
Dcm_napi_open_detail_dialog.cpp46 static int32_t CheckDetailParamsAndInitContext(std::shared_ptr<CmUIExtensionRequestContext> asyncCo… in CheckDetailParamsAndInitContext()
73 static OHOS::AAFwk::Want CMGetCertDetailWant(std::shared_ptr<CmUIExtensionRequestContext> asyncCont… in CMGetCertDetailWant()
103 auto asyncContext = std::make_shared<CmUIExtensionRequestContext>(env); in CMNapiOpenDetailDialog() local
/base/time/time_service/framework/js/napi/system_time/src/
Djs_systemtime.cpp44 void FreeWorkIfFail(napi_status status, napi_env env, AsyncContext *asyncContext) in FreeWorkIfFail()
89 AsyncContext *asyncContext = (AsyncContext *)data; in JSSystemTimeSetTime() local
99 AsyncContext *asyncContext = (AsyncContext *)data; in JSSystemTimeSetTime() local
140 AsyncContext *asyncContext = (AsyncContext *)data; in JSSystemTimeSetTimeZone() local
150 AsyncContext *asyncContext = (AsyncContext *)data; in JSSystemTimeSetTimeZone() local
192 AsyncContext *asyncContext = (AsyncContext *)data; in JSSystemTimeGetCurrentTime() local
200 AsyncContext *asyncContext = (AsyncContext *)data; in JSSystemTimeGetCurrentTime() local
245 AsyncContext *asyncContext = (AsyncContext *)data; in JSSystemTimeGetRealActiveTime() local
253 AsyncContext *asyncContext = (AsyncContext *)data; in JSSystemTimeGetRealActiveTime() local
298 AsyncContext *asyncContext = (AsyncContext *)data; in JSSystemTimeGetRealTime() local
[all …]
/base/telephony/state_registry/frameworks/js/napi/src/
Dnapi_state_registry.cpp77 ObserverContext *asyncContext = static_cast<ObserverContext *>(data); in NativeOn() local
110 ObserverContext *asyncContext = static_cast<ObserverContext *>(data); in OnCallback() local
133 std::unique_ptr<ObserverContext> asyncContext = std::make_unique<ObserverContext>(); in On() local
187 ObserverContext *asyncContext = static_cast<ObserverContext *>(data); in NativeOff() local
208 ObserverContext *asyncContext = static_cast<ObserverContext *>(data); in OffCallback() local
239 std::unique_ptr<ObserverContext> asyncContext = std::make_unique<ObserverContext>(); in Off() local
/base/startup/init/interfaces/kits/jskits/src/
Dnative_parameters_js.cpp40 static void SetCallbackWork(napi_env env, StorageAsyncContextPtr asyncContext) in SetCallbackWork()
47 StorageAsyncContext *asyncContext = reinterpret_cast<StorageAsyncContext *>(data); in SetCallbackWork() local
53 StorageAsyncContext *asyncContext = reinterpret_cast<StorageAsyncContext *>(data); in SetCallbackWork() local
94 StorageAsyncContextPtr asyncContext = new StorageAsyncContext(); in Set() local
217 static void GetCallbackWork(napi_env env, StorageAsyncContextPtr asyncContext) in GetCallbackWork()
224 StorageAsyncContext *asyncContext = reinterpret_cast<StorageAsyncContext *>(data); in GetCallbackWork() local
231 StorageAsyncContext *asyncContext = reinterpret_cast<StorageAsyncContext *>(data); in GetCallbackWork() local
273 StorageAsyncContextPtr asyncContext = new StorageAsyncContext(); in Get() local
/base/telephony/core_service/frameworks/js/network_search/src/
Dnapi_radio.cpp136 auto asyncContext = static_cast<RadioTechContext *>(data); in NativeGetRadioTech() local
158 auto asyncContext = static_cast<RadioTechContext *>(data); in GetRadioTechCallback() local
203 auto asyncContext = std::make_unique<RadioTechContext>(); in GetRadioTech() local
255 auto asyncContext = static_cast<SignalInfoListContext *>(data); in NativeGetSignalInfoList() local
271 auto asyncContext = static_cast<SignalInfoListContext *>(data); in GetSignalInfoListCallback() local
336 auto asyncContext = std::make_unique<SignalInfoListContext>(); in GetSignalInfoList() local
411 auto asyncContext = static_cast<GetStateContext *>(data); in NativeGetNetworkState() local
448 auto asyncContext = static_cast<GetStateContext *>(data); in GetNetworkStateCallback() local
586 auto asyncContext = std::make_unique<GetStateContext>(); in GetNetworkState() local
611 auto asyncContext = static_cast<GetSelectModeContext *>(data); in NativeGetNetworkSelectionMode() local
[all …]
/base/location/frameworks/js/napi/source/
Dlocation_napi_adapter.cpp44 auto asyncContext = new (std::nothrow) LocationAsyncContext(env); in GetLastLocation() local
110 auto asyncContext = new (std::nothrow) SwitchAsyncContext(env); in IsLocationEnabled() local
228 auto asyncContext = new (std::nothrow) SwitchAsyncContext(env); in EnableLocation() local
274 auto asyncContext = new (std::nothrow) SwitchAsyncContext(env); in DisableLocation() local
303 auto asyncContext = new (std::nothrow) SwitchAsyncContext(env); in RequestEnableLocation() local
346 auto asyncContext = new (std::nothrow) SwitchAsyncContext(env); in IsGeoServiceAvailable() local
386 void CreateReverseGeocodeAsyncContext(ReverseGeoCodeAsyncContext* asyncContext) in CreateReverseGeocodeAsyncContext()
431 void CreateGeocodeAsyncContext(GeoCodeAsyncContext* asyncContext) in CreateReverseGeocodeAsyncContext()
501 auto asyncContext = new (std::nothrow) ReverseGeoCodeAsyncContext(env); in CreateReverseGeocodeAsyncContext() local
554 auto asyncContext = new (std::nothrow) GeoCodeAsyncContext(env); in CreateReverseGeocodeAsyncContext() local
[all …]
/base/startup/init/interfaces/kits/jskits/src_enhance/
Dnative_parameters_js.cpp102 static void SetCallbackWork(napi_env env, StorageAsyncContextPtr asyncContext) in SetCallbackWork()
109 StorageAsyncContext *asyncContext = reinterpret_cast<StorageAsyncContext *>(data); in SetCallbackWork() local
115 StorageAsyncContext *asyncContext = reinterpret_cast<StorageAsyncContext *>(data); in SetCallbackWork() local
153 StorageAsyncContextPtr asyncContext = new StorageAsyncContext(); in Set() local
283 static void GetCallbackWork(napi_env env, StorageAsyncContextPtr asyncContext) in GetCallbackWork()
290 StorageAsyncContext *asyncContext = reinterpret_cast<StorageAsyncContext *>(data); in GetCallbackWork() local
301 StorageAsyncContext *asyncContext = reinterpret_cast<StorageAsyncContext *>(data); in GetCallbackWork() local
340 StorageAsyncContextPtr asyncContext = new StorageAsyncContext(); in Get() local
/base/security/access_token/interfaces/kits/cj/accesstoken/src/
Drequest_global_switch_on_setting.cpp193 …c int32_t CreateUIExtension(const Want &want, std::shared_ptr<RequestGlobalSwitchAsyncContext> asy… in CreateUIExtension()
222 static int32_t StartUIExtension(std::shared_ptr<RequestGlobalSwitchAsyncContext> asyncContext) in StartUIExtension()
238 …std::shared_ptr<RequestGlobalSwitchAsyncContext> asyncContext = std::make_shared<RequestGlobalSwit… in RequestGlobalSwitch() local
257 const std::shared_ptr<RequestGlobalSwitchAsyncContext>& asyncContext) in ParseRequestGlobalSwitch()

123