/base/location/interfaces/inner_api/include/ |
D | location_async_context.h | 38 class LocationAsyncContext : public AsyncContext { 43 napi_deferred deferred = nullptr) : AsyncContext(env, work, deferred), loc(nullptr) {} in AsyncContext() function 50 class ReverseGeocodeMockAsyncContext : public AsyncContext { 56 napi_deferred deferred = nullptr) : AsyncContext(env, work, deferred), enable(false) {} in AsyncContext() function 63 class LocationMockAsyncContext : public AsyncContext { 70 : AsyncContext(env, work, deferred), timeInterval(0), enable(false) {} in AsyncContext() function 77 class CountryCodeContext : public AsyncContext { 82 : AsyncContext(env, work, deferred), country(nullptr) {} in AsyncContext() function 89 class LocationRequestAsyncContext : public AsyncContext { 95 : AsyncContext(env, work, deferred), loc(nullptr), request(nullptr) {} in AsyncContext() function [all …]
|
D | async_context.h | 24 class AsyncContext { 36 explicit AsyncContext(napi_env e, napi_async_work w = nullptr, napi_deferred d = nullptr) 49 AsyncContext() = delete; 51 virtual ~AsyncContext() in ~AsyncContext()
|
D | napi_util.h | 70 napi_value DoAsyncWork(const napi_env& env, AsyncContext* asyncContext, 75 void CreateFailCallBackParams(AsyncContext& context, const std::string& msg, int32_t errorCode); 78 void DeleteQueueWork(AsyncContext* context);
|
/base/telephony/call_manager/frameworks/js/napi/include/ |
D | napi_call_manager_types.h | 49 struct AsyncContext { struct 50 virtual ~AsyncContext() {} in ~AsyncContext() argument 65 struct DialAsyncContext : AsyncContext { argument 72 struct AnswerAsyncContext : AsyncContext { 76 struct BoolResultAsyncContext : AsyncContext { 81 struct IntResultAsyncContext : AsyncContext { 85 struct RejectAsyncContext : AsyncContext { 90 struct ListAsyncContext : AsyncContext { 94 struct SupplementAsyncContext : AsyncContext { 103 struct ImsSwitchAsyncContext : AsyncContext { [all …]
|
/base/telephony/core_service/frameworks/js/sim/include/ |
D | napi_sim.h | 33 struct AsyncContext { struct 40 AsyncContext<bool> asyncContext; argument 45 AsyncContext<napi_value> asyncContext; 54 AsyncContext<napi_value> asyncContext; 64 AsyncContext<napi_value> asyncContext; 77 AsyncContext<T> asyncContext; 83 AsyncContext<bool> asyncContext; 89 AsyncContext<int32_t> asyncContext; 94 AsyncContext<int32_t> asyncContext; 98 AsyncContext<int32_t> asyncContext;
|
/base/time/time_service/framework/js/napi/system_time/src/ |
D | js_systemtime.cpp | 25 typedef struct AsyncContext { struct 26 ~AsyncContext() in ~AsyncContext() argument 43 } AsyncContext; typedef 45 void TimePaddingAsyncCallbackInfo(const napi_env &env, AsyncContext *&asynccallbackinfo, const napi… in TimePaddingAsyncCallbackInfo() 70 AsyncContext *asyncContext = new (std::nothrow) AsyncContext{ .env = env, .time = times }; in JSSystemTimeSetTime() 81 AsyncContext *asyncContext = (AsyncContext *)data; in JSSystemTimeSetTime() 91 AsyncContext *asyncContext = (AsyncContext *)data; in JSSystemTimeSetTime() 127 …AsyncContext *asyncContext = new (std::nothrow) AsyncContext{ .env = env, .timeZone = timezoneId }; in JSSystemTimeSetTimeZone() 138 AsyncContext *asyncContext = (AsyncContext *)data; in JSSystemTimeSetTimeZone() 148 AsyncContext *asyncContext = (AsyncContext *)data; in JSSystemTimeSetTimeZone() [all …]
|
/base/telephony/cellular_data/frameworks/js/napi/src/ |
D | napi_cellular_data.cpp | 124 auto asyncContext = static_cast<AsyncContext *>(data); in NativeGetCellularDataState() 140 auto context = static_cast<AsyncContext *>(data); in GetCellularDataStateCallback() 144 std::unique_ptr<AsyncContext> asyncContext(context); in GetCellularDataStateCallback() 167 auto asyncContext = std::make_unique<AsyncContext>(); in GetCellularDataState() 183 auto asyncContext = static_cast<AsyncContext *>(data); in NativeIsCellularDataEnabled() 203 auto context = static_cast<AsyncContext *>(data); in IsCellularDataEnabledCallback() 207 std::unique_ptr<AsyncContext> asyncContext(context); in IsCellularDataEnabledCallback() 233 auto asyncContext = std::make_unique<AsyncContext>(); in IsCellularDataEnabled() 248 auto asyncContext = static_cast<AsyncContext *>(data); in NativeEnableCellularData() 269 auto context = static_cast<AsyncContext *>(data); in EnableCellularDataCallback() [all …]
|
/base/theme/screenlock_mgr/interfaces/kits/napi/src/ |
D | async_call.cpp | 25 context_ = new AsyncContext(); in AsyncCall() 113 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnExecute() 120 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnComplete() 158 AsyncCall::AsyncContext::~AsyncContext() in ~AsyncContext()
|
/base/request/request/upload/interfaces/kits/napi/src/ |
D | async_call.cpp | 24 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/request/request/download/interfaces/kits/js/napi/download_single/src/ |
D | async_call.cpp | 26 context_ = new AsyncContext(); in AsyncCall() 105 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnExecute() 112 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnComplete() 145 void AsyncCall::DeleteContext(napi_env env, AsyncContext *context) in DeleteContext()
|
/base/inputmethod/imf/interfaces/kits/js/napi/inputmethodclient/ |
D | async_call.cpp | 26 context_ = new AsyncContext(); in AsyncCall() 101 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnExecute() 107 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnComplete() 140 void AsyncCall::DeleteContext(napi_env env, AsyncContext *context) in DeleteContext()
|
D | async_call.h | 109 struct AsyncContext { struct 116 static void DeleteContext(napi_env env, AsyncContext *context); argument 117 AsyncContext *context_ = nullptr;
|
/base/telephony/core_service/frameworks/js/sim/src/ |
D | napi_sim.cpp | 61 std::unique_ptr<AsyncContext<T>> asyncContext = std::make_unique<AsyncContext<T>>(); in NapiCreateAsyncWork() 80 AsyncContext<T> *pContext = asyncContext.release(); in NapiCreateAsyncWork() 123 void NapiAsyncCompleteCallback(napi_env env, napi_status status, const AsyncContext<T> &asyncContex… in NapiAsyncCompleteCallback() 163 …napi_env env, const AsyncContext<T> &asyncContext, JsError error, bool funcIgnoreReturnVal = false) in NapiAsyncBaseCompleteCallback() 200 void NapiAsyncPermissionCompleteCallback(napi_env env, napi_status status, const AsyncContext<T> &a… in NapiAsyncPermissionCompleteCallback() 214 napi_env env, napi_status status, const AsyncContext<T> &asyncContext, bool funcIgnoreReturnVal) in NapiAsyncCommomCompleteCallback() 344 AsyncContext<bool> *reVal = static_cast<AsyncContext<bool> *>(data); in NativeIsSimActive() 359 std::unique_ptr<AsyncContext<bool>> context(static_cast<AsyncContext<bool> *>(data)); in IsSimActiveCallback() 378 AsyncContext<bool> *simContext = static_cast<AsyncContext<bool> *>(data); in NativeActivateSim() 394 std::unique_ptr<AsyncContext<bool>> context(static_cast<AsyncContext<bool> *>(data)); in ActivateSimCallback() [all …]
|
/base/theme/wallpaper_mgr/interfaces/kits/napi/ |
D | async_call.cpp | 27 context_ = new AsyncContext(); in AsyncCall() 113 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnExecute() 120 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnComplete() 168 void AsyncCall::DeleteContext(napi_env env, AsyncContext *context) in DeleteContext()
|
D | async_call.h | 107 struct AsyncContext { struct 114 static void DeleteContext(napi_env env, AsyncContext *context); argument 116 AsyncContext *context_ = nullptr;
|
/base/request/request/upload/interfaces/kits/napi/include/ |
D | async_call.h | 94 struct AsyncContext { struct 101 static void DeleteContext(napi_env env, AsyncContext *context); argument 103 AsyncContext *context_ = nullptr;
|
/base/request/request/download/interfaces/kits/js/napi/download_single/include/ |
D | async_call.h | 95 struct AsyncContext { struct 103 static void DeleteContext(napi_env env, AsyncContext *context); argument 104 AsyncContext *context_ = nullptr;
|
/base/theme/screenlock_mgr/interfaces/kits/napi/include/ |
D | async_call.h | 103 struct AsyncContext { struct 104 ~AsyncContext(); 112 AsyncContext *context_ = nullptr; argument
|
/base/telephony/cellular_data/frameworks/js/napi/include/ |
D | napi_cellular_data.h | 27 struct AsyncContext : BaseContext { struct
|
/base/location/frameworks/native/source/ |
D | locator_callback_host.cpp | 157 AsyncContext *context = nullptr; in DoSendErrorCode() 163 context = static_cast<AsyncContext *>(work->data); in DoSendErrorCode() 219 AsyncContext *context = new (std::nothrow) AsyncContext(env_); in SendErrorCode() 288 auto context = new (std::nothrow) AsyncContext(env_); in DeleteHandler()
|
D | napi_util.cpp | 704 static bool InitAsyncCallBackEnv(const napi_env& env, AsyncContext* asyncContext, in InitAsyncCallBackEnv() 728 static bool InitAsyncPromiseEnv(const napi_env& env, AsyncContext *asyncContext, napi_value& promis… in InitAsyncPromiseEnv() 739 void CreateFailCallBackParams(AsyncContext& context, const std::string& msg, int32_t errorCode) in CreateFailCallBackParams() 795 void CreateResultObject(const napi_env& env, AsyncContext* context) in CreateResultObject() 810 void SendResultToJs(const napi_env& env, AsyncContext* context) in SendResultToJs() 836 void MemoryReclamation(const napi_env& env, AsyncContext* context) in MemoryReclamation() 856 static napi_value CreateAsyncWork(const napi_env& env, AsyncContext* asyncContext) in CreateAsyncWork() 868 AsyncContext* context = static_cast<AsyncContext *>(data); in CreateAsyncWork() 876 AsyncContext* context = static_cast<AsyncContext *>(data); in CreateAsyncWork() 886 napi_value DoAsyncWork(const napi_env& env, AsyncContext* asyncContext, in DoAsyncWork() [all …]
|
D | gnss_status_callback_host.cpp | 160 auto context = new (std::nothrow) AsyncContext(env_); in DeleteHandler()
|
D | location_switch_callback_host.cpp | 159 auto context = new (std::nothrow) AsyncContext(env_); in DeleteHandler()
|
D | nmea_message_callback_host.cpp | 168 auto context = new (std::nothrow) AsyncContext(env_); in DeleteHandler()
|
/base/telephony/call_manager/frameworks/js/napi/src/ |
D | napi_call_manager.cpp | 849 auto asyncContext = std::make_unique<AsyncContext>(); in MakeCall() 950 auto asyncContext = std::make_unique<AsyncContext>(); in HangUpCall() 982 auto asyncContext = std::make_unique<AsyncContext>(); in HoldCall() 1003 auto asyncContext = std::make_unique<AsyncContext>(); in UnHoldCall() 1025 auto asyncContext = std::make_unique<AsyncContext>(); in SwitchCall() 1048 auto asyncContext = std::make_unique<AsyncContext>(); in CombineConference() 1071 auto asyncContext = std::make_unique<AsyncContext>(); in SeparateConference() 1563 auto asyncContext = std::make_unique<AsyncContext>(); in StopDTMF() 1580 auto asyncContext = std::make_unique<AsyncContext>(); in GetCallState() 1617 auto asyncContext = std::make_unique<AsyncContext>(); in HasCall() [all …]
|