/base/location/interfaces/innerkits/locator_standard/include/ |
D | location_async_context.h | 34 class LocationAsyncContext : public AsyncContext { 39 : AsyncContext(env, work, deferred), loc(nullptr) {} in AsyncContext() function 46 class LocationRequestAsyncContext : public AsyncContext { 52 : AsyncContext(env, work, deferred), loc(nullptr), request(nullptr) {} in AsyncContext() function 59 class SwitchAsyncContext : public AsyncContext { 64 : AsyncContext(env, work, deferred), enable(false) {} in AsyncContext() function 71 class NmeaAsyncContext : public AsyncContext { 76 : AsyncContext(env, work, deferred), msg("") {} in AsyncContext() function 83 class GnssStatusAsyncContext : public AsyncContext { 88 : AsyncContext(env, work, deferred), statusInfo(nullptr) {} in AsyncContext() function [all …]
|
D | async_context.h | 25 class AsyncContext { 37 AsyncContext(napi_env e, napi_async_work w = nullptr, napi_deferred d = nullptr) 50 AsyncContext() = delete; 52 virtual ~AsyncContext() in ~AsyncContext()
|
D | napi_util.h | 71 napi_value DoAsyncWork(const napi_env& env, AsyncContext* asyncContext, 73 void CreateFailCallBackParams(AsyncContext& context, std::string msg, int32_t errorCode);
|
D | locator_callback_host.h | 48 bool InitContext(AsyncContext* context);
|
/base/telephony/call_manager/frameworks/js/napi/include/ |
D | napi_call_manager_types.h | 47 struct AsyncContext { struct 48 virtual ~AsyncContext() {} in ~AsyncContext() argument 62 struct DialAsyncContext : AsyncContext { argument 69 struct AnswerAsyncContext : AsyncContext { 73 struct RejectAsyncContext : AsyncContext { 78 struct ListAsyncContext : AsyncContext { 82 struct SupplementAsyncContext : AsyncContext { 91 struct CallRestrictionAsyncContext : AsyncContext { 97 struct CallTransferAsyncContext : AsyncContext { 103 struct UtilsAsyncContext : AsyncContext { [all …]
|
D | napi_call_manager.h | 195 static napi_value HandleAsyncWork(napi_env env, AsyncContext *context, std::string workName,
|
/base/telephony/core_service/frameworks/js/sim/include/ |
D | napi_sim.h | 34 struct AsyncContext { struct 41 AsyncContext<bool> asyncContext; argument 46 AsyncContext<napi_value> asyncContext; 55 AsyncContext<napi_value> asyncContext; 65 AsyncContext<napi_value> asyncContext; 78 AsyncContext<T> asyncContext; 84 AsyncContext<bool> asyncContext; 90 AsyncContext<int32_t> asyncContext; 95 AsyncContext<int32_t> asyncContext;
|
/base/miscservices/time/interfaces/kits/js/napi/system_time/src/ |
D | js_systemtime.cpp | 94 AsyncContext *&asynccallbackinfo, in TimePaddingAsyncCallbackInfo() 155 AsyncContext *asyncContext = new (std::nothrow)AsyncContext {.env = env, .time = times}; in JSSystemTimeSetTime() 167 AsyncContext *asyncContext = (AsyncContext*)data; in JSSystemTimeSetTime() 171 AsyncContext *asyncContext = (AsyncContext*)data; in JSSystemTimeSetTime() 235 … AsyncContext *asyncContext = new (std::nothrow)AsyncContext {.env = env, .timeZone = timezoneId}; in JSSystemTimeSetTimeZone() 247 AsyncContext *asyncContext = (AsyncContext*)data; in JSSystemTimeSetTimeZone() 251 AsyncContext *asyncContext = (AsyncContext*)data; in JSSystemTimeSetTimeZone() 320 AsyncContext* asyncContext = new (std::nothrow)AsyncContext {.env = env}; in JSSystemTimeGetCurrentTime() 333 AsyncContext* asyncContext = (AsyncContext*)data; in JSSystemTimeGetCurrentTime() 341 AsyncContext* asyncContext = (AsyncContext*)data; in JSSystemTimeGetCurrentTime() [all …]
|
/base/telephony/cellular_data/frameworks/js/napi/src/ |
D | napi_cellular_data.cpp | 110 auto asyncContext = static_cast<AsyncContext *>(data); in NativeGetCellularDataState() 126 auto context = static_cast<AsyncContext *>(data); in GetCellularDataStateCallback() 130 std::unique_ptr<AsyncContext> asyncContext(context); in GetCellularDataStateCallback() 153 auto asyncContext = std::make_unique<AsyncContext>(); in GetCellularDataState() 169 auto asyncContext = static_cast<AsyncContext *>(data); in NativeIsCellularDataEnabled() 185 auto context = static_cast<AsyncContext *>(data); in IsCellularDataEnabledCallback() 189 std::unique_ptr<AsyncContext> asyncContext(context); in IsCellularDataEnabledCallback() 210 auto asyncContext = std::make_unique<AsyncContext>(); in IsCellularDataEnabled() 227 auto asyncContext = static_cast<AsyncContext *>(data); in NativeEnableCellularData() 249 auto context = static_cast<AsyncContext *>(data); in VoidValueCallback() [all …]
|
/base/miscservices/time/interfaces/kits/js/napi/system_time/include/ |
D | js_systemtime.h | 41 typedef struct AsyncContext { struct 42 ~AsyncContext() in ~AsyncContext() argument 58 } AsyncContext; argument
|
/base/telephony/core_service/frameworks/js/sim/src/ |
D | napi_sim.cpp | 46 std::unique_ptr<AsyncContext<T>> asyncContext = std::make_unique<AsyncContext<T>>(); in NapiCreateAsyncWork() 65 AsyncContext<T> *pContext = asyncContext.release(); in NapiCreateAsyncWork() 138 void NapiAsyncCompleteCallback(napi_env env, napi_status status, const AsyncContext<T> &asyncContex… in NapiAsyncCompleteCallback() 295 AsyncContext<bool> *reVal = static_cast<AsyncContext<bool> *>(data); in NativeIsSimActive() 305 std::unique_ptr<AsyncContext<bool>> context(static_cast<AsyncContext<bool> *>(data)); in IsSimActiveCallback() 319 AsyncContext<bool> *simContext = static_cast<AsyncContext<bool> *>(data); in NativeActivateSim() 330 std::unique_ptr<AsyncContext<bool>> context(static_cast<AsyncContext<bool> *>(data)); in ActivateSimCallback() 344 AsyncContext<bool> *simContext = static_cast<AsyncContext<bool> *>(data); in NativeDeactivateSim() 355 std::unique_ptr<AsyncContext<bool>> context(static_cast<AsyncContext<bool> *>(data)); in DeactivateSimCallback() 369 AsyncContext<int32_t> *asyncContext = &(static_cast<AsyncDefaultSlotId *>(data)->asyncContext); in NativeGetDefaultVoiceSlotId() [all …]
|
/base/miscservices/request/upload/interfaces/kits/napi/src/ |
D | async_call.cpp | 23 context_ = new AsyncContext(); in AsyncCall() 94 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnExecute() 101 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnComplete() 134 void AsyncCall::DeleteContext(napi_env env, AsyncContext *context) in DeleteContext()
|
/base/miscservices/request/download/interfaces/kits/js/napi/download_single/src/ |
D | async_call.cpp | 24 context_ = new AsyncContext(); in AsyncCall() 99 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnExecute() 106 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnComplete() 139 void AsyncCall::DeleteContext(napi_env env, AsyncContext *context) in DeleteContext()
|
/base/miscservices/screenlock/interfaces/kits/napi/src/ |
D | async_call.cpp | 25 context_ = new AsyncContext(); in AsyncCall() 111 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnExecute() 118 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnComplete() 158 void AsyncCall::DeleteContext(const napi_env env, const AsyncContext *context) in DeleteContext()
|
/base/miscservices/wallpaper/interfaces/kits/napi/ |
D | async_call.cpp | 24 context_ = new AsyncContext(); in AsyncCall() 103 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnExecute() 110 AsyncContext *context = reinterpret_cast<AsyncContext *>(data); in OnComplete() 157 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 118 AsyncContext *context_ = nullptr;
|
/base/miscservices/pasteboard/interfaces/kits/napi/src/ |
D | napi_pasteboard.cpp | 420 using AsyncContext = struct AsyncContext { typedef 507 AsyncContext *asyncContext = new (std::nothrow) AsyncContext {.env = env, .work = nullptr}; in Clear() 532 AsyncContext* asyncContext = (AsyncContext*)data; in Clear() 537 AsyncContext* asyncContext = (AsyncContext*)data; in Clear() 568 AsyncContext *asyncContext = new (std::nothrow) AsyncContext {.env = env, .work = nullptr}; in HasPasteData() 593 AsyncContext* asyncContext = (AsyncContext*)data; in HasPasteData() 597 AsyncContext* asyncContext = (AsyncContext*)data; in HasPasteData() 632 AsyncContext *asyncContext = new (std::nothrow) AsyncContext {.env = env, .work = nullptr, }; in GetPasteData() 658 AsyncContext* asyncContext = (AsyncContext*)data; in GetPasteData() 706 AsyncContext *asyncContext = new (std::nothrow) AsyncContext {.env = env, .work = nullptr}; in SetPasteData() [all …]
|
/base/miscservices/screenlock/interfaces/kits/napi/include/ |
D | async_call.h | 85 struct AsyncContext { struct 92 static void DeleteContext(const napi_env env, const AsyncContext *context); argument 93 AsyncContext *context_ = nullptr;
|
/base/miscservices/request/upload/interfaces/kits/napi/include/ |
D | async_call.h | 89 struct AsyncContext { struct 96 static void DeleteContext(napi_env env, AsyncContext *context); argument 98 AsyncContext *context_ = nullptr;
|
/base/miscservices/request/download/interfaces/kits/js/napi/download_single/include/ |
D | async_call.h | 88 struct AsyncContext { struct 95 static void DeleteContext(napi_env env, AsyncContext *context); argument 97 AsyncContext *context_ = nullptr;
|
/base/location/interfaces/innerkits/locator_standard/src/ |
D | locator_callback_host.cpp | 142 AsyncContext *context = nullptr; in DoSendErrorCode() 148 context = static_cast<AsyncContext *>(work->data); in DoSendErrorCode() 179 bool LocatorCallbackHost::InitContext(AsyncContext* context) in InitContext() 219 AsyncContext *context = new (std::nothrow) AsyncContext(m_env); in SendErrorCode() 256 auto asyncContext = static_cast<AsyncContext*>(context); in OnLocationReport()
|
D | napi_util.cpp | 607 static napi_value InitAsyncCallBackEnv(const napi_env& env, AsyncContext* asyncContext, in InitAsyncCallBackEnv() 622 static napi_value InitAsyncPromiseEnv(const napi_env& env, AsyncContext *asyncContext, napi_value& … in InitAsyncPromiseEnv() 633 void CreateFailCallBackParams(AsyncContext& context, std::string msg, int32_t errorCode) in CreateFailCallBackParams() 661 void CreateResultObject(const napi_env& env, AsyncContext* context) in CreateResultObject() 678 void SendResultToJs(const napi_env& env, AsyncContext* context) in SendResultToJs() 704 void MemoryReclamation(const napi_env& env, AsyncContext* context) in MemoryReclamation() 724 static napi_value CreateAsyncWork(const napi_env& env, AsyncContext* asyncContext) in CreateAsyncWork() 736 AsyncContext* context = (AsyncContext *)data; in CreateAsyncWork() 744 AsyncContext* context = (AsyncContext *)data; in CreateAsyncWork() 754 napi_value DoAsyncWork(const napi_env& env, AsyncContext* asyncContext, in DoAsyncWork()
|
/base/telephony/cellular_data/frameworks/js/napi/include/ |
D | napi_cellular_data.h | 30 struct AsyncContext : BaseContext { struct
|
/base/telephony/call_manager/frameworks/js/napi/src/ |
D | napi_call_manager.cpp | 779 auto asyncContext = (std::make_unique<AsyncContext>()).release(); in MakeCall() 841 auto asyncContext = (std::make_unique<AsyncContext>()).release(); in HangUpCall() 855 auto asyncContext = (std::make_unique<AsyncContext>()).release(); in HoldCall() 869 auto asyncContext = (std::make_unique<AsyncContext>()).release(); in UnHoldCall() 883 auto asyncContext = (std::make_unique<AsyncContext>()).release(); in SwitchCall() 897 auto asyncContext = (std::make_unique<AsyncContext>()).release(); in CombineConference() 911 auto asyncContext = (std::make_unique<AsyncContext>()).release(); in SeparateConference() 925 auto asyncContext = (std::make_unique<AsyncContext>()).release(); in GetMainCallId() 1145 auto asyncContext = (std::make_unique<AsyncContext>()).release(); in StopDTMF() 1157 auto asyncContext = (std::make_unique<AsyncContext>()).release(); in GetCallState() [all …]
|
/base/telephony/core_service/frameworks/js/network_search/include/ |
D | napi_radio.h | 131 struct AsyncContext { struct
|