Home
last modified time | relevance | path

Searched refs:AsyncContext (Results 1 - 25 of 38) sorted by relevance

12

/base/location/interfaces/inner_api/include/
H A Dlocation_async_context.h42 class LocationAsyncContext : public AsyncContext {
47 napi_deferred deferred = nullptr) : AsyncContext(env, work, deferred), loc(nullptr) {} in LocationAsyncContext()
54 class ReverseGeocodeMockAsyncContext : public AsyncContext {
60 napi_deferred deferred = nullptr) : AsyncContext(env, work, deferred), enable(false) {} in ReverseGeocodeMockAsyncContext()
67 class LocationMockAsyncContext : public AsyncContext {
74 : AsyncContext(env, work, deferred), timeInterval(0), enable(false) {} in LocationMockAsyncContext()
81 class CountryCodeContext : public AsyncContext {
86 : AsyncContext(env, work, deferred), country(nullptr) {} in CountryCodeContext()
93 class LocationRequestAsyncContext : public AsyncContext {
99 : AsyncContext(en in LocationRequestAsyncContext()
[all...]
H A Dasync_context.h24 class AsyncContext { class
36 explicit AsyncContext(napi_env e, napi_async_work w = nullptr, napi_deferred d = nullptr) in AsyncContext() function in OHOS::Location::AsyncContext
49 AsyncContext() = delete;
51 virtual ~AsyncContext() in ~AsyncContext()
H A Dgeofence_async_context.h34 class GnssGeofenceAsyncContext : public AsyncContext {
44 : AsyncContext(env, work, deferred), fenceId_(-1) {} in GnssGeofenceAsyncContext()
/base/telephony/core_service/frameworks/js/sim/include/
H A Dnapi_sim.h31 struct AsyncContext { struct
38 AsyncContext<bool> asyncContext;
43 AsyncContext<napi_value> asyncContext;
52 AsyncContext<napi_value> asyncContext;
62 AsyncContext<napi_value> asyncContext;
75 AsyncContext<T> asyncContext;
81 AsyncContext<bool> asyncContext;
87 AsyncContext<int32_t> asyncContext;
92 AsyncContext<int32_t> asyncContext;
96 AsyncContext<int32_
[all...]
/base/telephony/core_service/frameworks/js/esim/include/
H A Dnapi_esim.h40 struct AsyncContext { struct
47 AsyncContext<int32_t> asyncContext;
52 AsyncContext<int32_t> asyncContext;
56 AsyncContext<napi_value> asyncContext;
61 AsyncContext<napi_value> asyncContext;
66 AsyncContext<int32_t> asyncContext;
86 AsyncContext<napi_value> asyncContext;
95 AsyncContext<napi_value> asyncContext;
102 AsyncContext<int32_t> asyncContext;
108 AsyncContext<napi_valu
[all...]
/base/telephony/call_manager/frameworks/js/napi/include/
H A Dnapi_call_manager_types.h50 struct AsyncContext { struct
51 virtual ~AsyncContext() {} in ~AsyncContext()
66 struct DialAsyncContext : AsyncContext {
74 struct AnswerAsyncContext : AsyncContext {
78 struct BoolResultAsyncContext : AsyncContext {
83 struct IntResultAsyncContext : AsyncContext {
87 struct RejectAsyncContext : AsyncContext {
92 struct ListAsyncContext : AsyncContext {
96 struct SupplementAsyncContext : AsyncContext {
105 struct ImsSwitchAsyncContext : AsyncContext {
[all...]
/base/time/time_service/framework/js/napi/system_time/src/
H A Djs_systemtime.cpp26 typedef struct AsyncContext { struct
27 ~AsyncContext() in ~AsyncContext()
44 } AsyncContext; typedef
46 void FreeWorkIfFail(napi_status status, napi_env env, AsyncContext *asyncContext) in FreeWorkIfFail()
55 void TimePaddingAsyncCallbackInfo(const napi_env &env, AsyncContext *&asynccallbackinfo, const napi_ref &callback, in TimePaddingAsyncCallbackInfo()
80 AsyncContext *asyncContext = new (std::nothrow) AsyncContext{ .env = env, .time = times }; in JSSystemTimeSetTime()
91 AsyncContext *asyncContext = (AsyncContext *)data; in JSSystemTimeSetTime()
101 AsyncContext *asyncContex in JSSystemTimeSetTime()
[all...]
/base/telephony/cellular_data/frameworks/js/napi/src/
H A Dnapi_cellular_data.cpp129 auto asyncContext = static_cast<AsyncContext *>(data); in NativeGetCellularDataState()
145 auto context = static_cast<AsyncContext *>(data); in GetCellularDataStateCallback()
149 std::unique_ptr<AsyncContext> asyncContext(context); in GetCellularDataStateCallback()
172 auto asyncContext = std::make_unique<AsyncContext>(); in GetCellularDataState()
188 auto asyncContext = static_cast<AsyncContext *>(data); in NativeIsCellularDataEnabled()
208 auto context = static_cast<AsyncContext *>(data); in IsCellularDataEnabledCallback()
212 std::unique_ptr<AsyncContext> asyncContext(context); in IsCellularDataEnabledCallback()
238 auto asyncContext = std::make_unique<AsyncContext>(); in IsCellularDataEnabled()
269 auto asyncContext = static_cast<AsyncContext *>(data); in NativeEnableCellularData()
290 auto context = static_cast<AsyncContext *>(dat in EnableCellularDataCallback()
[all...]
/base/request/request/frameworks/js/napi/src/upload/
H A Dasync_call.cpp24 context_ = new AsyncContext(); in AsyncCall()
100 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnExecute()
107 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnComplete()
138 void AsyncCall::DeleteContext(napi_env env, AsyncContext *context) in DeleteContext()
/base/print/print_fwk/interfaces/kits/napi/print_napi/src/
H A Dprint_async_call.cpp25 context_ = new AsyncContext(); in PrintAsyncCall()
97 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnExecute()
109 uint32_t PrintAsyncCall::GetErrorIndex(AsyncContext *context) in GetErrorIndex()
126 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnComplete()
169 void PrintAsyncCall::DeleteContext(napi_env env, AsyncContext *context) in DeleteContext()
/base/theme/screenlock_mgr/frameworks/js/napi/src/
H A Dasync_call.cpp25 context_ = new AsyncContext(); in AsyncCall()
114 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnExecute()
121 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnComplete()
159 AsyncCall::AsyncContext::~AsyncContext() in ~AsyncContext()
/base/print/print_fwk/interfaces/kits/napi/print_napi/include/
H A Dprint_async_call.h105 struct AsyncContext { struct in OHOS::Print::final
113 static void DeleteContext(napi_env env, AsyncContext *context);
114 static uint32_t GetErrorIndex(AsyncContext *context);
116 AsyncContext *context_ = nullptr;
/base/security/asset/frameworks/js/napi/inc/
H A Dasset_napi_common.h59 struct AsyncContext { struct
82 AsyncContext *CreateAsyncContext();
84 void DestroyAsyncContext(const napi_env env, AsyncContext *context);
86 napi_value CreateAsyncWork(const napi_env env, AsyncContext *context, const char *funcName,
/base/print/print_fwk/interfaces/kits/napi/scan_napi/src/
H A Dscan_async_call.cpp44 context_ = new AsyncContext(); in ScanAsyncCall()
122 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnExecute()
136 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnComplete()
186 void ScanAsyncCall::DeleteContext(napi_env env, AsyncContext *context) in DeleteContext()
/base/inputmethod/imf/frameworks/js/napi/inputmethodclient/
H A Dasync_call.cpp35 context_ = new AsyncContext(); in AsyncCall()
144 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnExecute()
155 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnExecuteSeq()
172 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnComplete()
210 void AsyncCall::DeleteContext(napi_env env, AsyncContext *context) in DeleteContext()
H A Dasync_call.h129 struct AsyncContext { struct in OHOS::MiscServices::final
137 static void DeleteContext(napi_env env, AsyncContext *context);
139 AsyncContext *context_ = nullptr;
/base/telephony/core_service/frameworks/js/sim/src/
H A Dnapi_sim.cpp74 std::unique_ptr<AsyncContext<T>> asyncContext = std::make_unique<AsyncContext<T>>(); in NapiCreateAsyncWork()
93 AsyncContext<T> *pContext = asyncContext.release(); in NapiCreateAsyncWork()
186 void NapiAsyncCompleteCallback(napi_env env, napi_status status, const AsyncContext<T> &asyncContext, in NapiAsyncCompleteCallback()
226 napi_env env, const AsyncContext<T> &asyncContext, JsError error, bool funcIgnoreReturnVal = false) in NapiAsyncBaseCompleteCallback()
265 void NapiAsyncPermissionCompleteCallback(napi_env env, napi_status status, const AsyncContext<T> &asyncContext, in NapiAsyncPermissionCompleteCallback()
280 napi_env env, napi_status status, const AsyncContext<T> &asyncContext, bool funcIgnoreReturnVal) in NapiAsyncCommomCompleteCallback()
420 AsyncContext<bool> *reVal = static_cast<AsyncContext<bool> *>(data); in NativeIsSimActive()
435 std::unique_ptr<AsyncContext<boo in IsSimActiveCallback()
[all...]
/base/security/certificate_framework/frameworks/js/napi/certificate/inc/
H A Dnapi_common.h28 struct AsyncContext { struct
38 using AsyncCtx = AsyncContext *;
/base/security/asset/frameworks/js/napi/src/
H A Dasset_napi_common.cpp168 napi_value GetBusinessValue(const napi_env env, AsyncContext *context) in GetBusinessValue()
183 void ResolvePromise(const napi_env env, AsyncContext *context) in ResolvePromise()
253 AsyncContext *CreateAsyncContext() in CreateAsyncContext()
255 return static_cast<AsyncContext *>(AssetMalloc(sizeof(AsyncContext))); in CreateAsyncContext()
258 void DestroyAsyncContext(const napi_env env, AsyncContext *context) in DestroyAsyncContext()
275 napi_value CreateAsyncWork(const napi_env env, AsyncContext *context, const char *funcName, in CreateAsyncWork()
286 AsyncContext *asyncContext = static_cast<AsyncContext *>(data); in CreateAsyncWork()
396 AsyncContext *contex in NapiAsync()
[all...]
H A Dasset_napi_post_query.cpp62 AsyncContext *context = static_cast<AsyncContext *>(data); in NapiPostQuery()
H A Dasset_napi_remove.cpp55 AsyncContext *context = static_cast<AsyncContext *>(data); in NapiRemove()
/base/telephony/cellular_data/frameworks/js/napi/include/
H A Dnapi_cellular_data.h27 struct AsyncContext : BaseContext { struct
/base/print/print_fwk/interfaces/kits/napi/scan_napi/include/
H A Dscan_async_call.h110 struct AsyncContext { struct in OHOS::Scan::final
118 static void DeleteContext(napi_env env, AsyncContext *context);
121 AsyncContext *context_ = nullptr;
/base/request/request/frameworks/js/napi/include/upload/
H A Dasync_call.h93 struct AsyncContext { struct in OHOS::Request::UploadNapi::final
100 static void DeleteContext(napi_env env, AsyncContext *context);
102 AsyncContext *context_ = nullptr;
/base/theme/screenlock_mgr/frameworks/js/napi/include/
H A Dasync_call.h105 struct AsyncContext { struct in OHOS::ScreenLock::final
106 ~AsyncContext();
114 AsyncContext *context_ = nullptr;

Completed in 14 milliseconds

12