/base/request/request/download/interfaces/kits/js/napi/download_single/src/ |
D | async_call.cpp | 26 context_ = new AsyncContext(); in AsyncCall() 36 napi_create_reference(env, argv[pos], 1, &context_->callback); in AsyncCall() 42 context_->ctx = std::move(context); in AsyncCall() 43 context_->type = type; in AsyncCall() 44 napi_create_reference(env, self, 1, &context_->self); in AsyncCall() 51 if (context_ == nullptr) { in ~AsyncCall() 55 DeleteContext(env_, context_); in ~AsyncCall() 60 if ((context_ == nullptr) || (context_->ctx == nullptr)) { in Call() 65 context_->ctx->exec_ = std::move(exec); in Call() 67 if (context_->callback == nullptr) { in Call() [all …]
|
/base/request/request/upload/interfaces/kits/napi/src/ |
D | async_call.cpp | 24 context_ = new AsyncContext(); in AsyncCall() 32 napi_create_reference(env, argv[argc - 1], 1, &context_->callback); in AsyncCall() 37 context_->ctx = std::move(context); in AsyncCall() 38 napi_create_reference(env, self, 1, &context_->self); in AsyncCall() 46 if (context_ == nullptr) { in ~AsyncCall() 50 DeleteContext(env_, context_); in ~AsyncCall() 55 if ((context_ == nullptr) || (context_->ctx == nullptr)) { in Call() 60 context_->ctx->exec_ = std::move(exec); in Call() 62 if (context_->callback == nullptr) { in Call() 63 napi_create_promise(env, &context_->defer, &promise); in Call() [all …]
|
/base/inputmethod/imf/interfaces/kits/js/napi/inputmethodclient/ |
D | async_call.cpp | 26 context_ = new AsyncContext(); in AsyncCall() 36 napi_create_reference(env, argv[pos], 1, &context_->callback); in AsyncCall() 41 context_->ctx = std::move(context); in AsyncCall() 42 napi_create_reference(env, self, 1, &context_->self); in AsyncCall() 47 if (context_ == nullptr) { in ~AsyncCall() 51 DeleteContext(env_, context_); in ~AsyncCall() 56 if (context_ == nullptr) { in Call() 60 if (context_->ctx == nullptr) { in Call() 64 context_->ctx->exec_ = std::move(exec); in Call() 66 if (context_->callback == nullptr) { in Call() [all …]
|
/base/theme/screenlock_mgr/interfaces/kits/napi/src/ |
D | async_call.cpp | 25 context_ = new AsyncContext(); in AsyncCall() 26 context_->env = env; in AsyncCall() 27 if (context_ == nullptr) { in AsyncCall() 40 napi_create_reference(env, argv[pos], 1, &context_->callback); in AsyncCall() 49 context_->ctx = context; in AsyncCall() 50 napi_create_reference(env, self, 1, &context_->self); in AsyncCall() 56 if (context_ == nullptr) { in ~AsyncCall() 59 delete context_; in ~AsyncCall() 64 if (context_ == nullptr) { in Call() 68 if (context_->ctx == nullptr) { in Call() [all …]
|
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/ |
D | napi_app_event_watcher.cpp | 55 TriggerCondition cond) : AppEventWatcher(name, filters, cond), context_(nullptr) in NapiAppEventWatcher() 61 if (context_ == nullptr) { in ~NapiAppEventWatcher() 66 napi_get_uv_event_loop(context_->env, &loop); in ~NapiAppEventWatcher() 68 work->data = (void*)context_; in ~NapiAppEventWatcher() 84 if (context_ == nullptr) { in InitHolder() 85 context_ = new(std::nothrow) OnTriggerContext(); in InitHolder() 87 context_->env = env; in InitHolder() 88 context_->holder = NapiUtil::CreateReference(env, holder); in InitHolder() 94 if (context_ == nullptr) { in OnTrigger() 98 context_->row = row; in OnTrigger() [all …]
|
/base/theme/wallpaper_mgr/interfaces/kits/napi/ |
D | async_call.cpp | 27 context_ = new AsyncContext(); in AsyncCall() 37 napi_create_reference(env, argv[pos], 1, &context_->callback); in AsyncCall() 50 context_->ctx = std::move(context); in AsyncCall() 51 napi_create_reference(env, self, 1, &context_->self); in AsyncCall() 57 if (context_ == nullptr) { in ~AsyncCall() 61 DeleteContext(env_, context_); in ~AsyncCall() 66 if (context_ == nullptr) { in Call() 70 if (context_->ctx == nullptr) { in Call() 76 if (context_->callback == nullptr) { in Call() 77 napi_create_promise(env, &context_->defer, &promise); in Call() [all …]
|
/base/hiviewdfx/faultloggerd/tools/process_dump/ |
D | dfx_unwind_local.cpp | 66 (void)memset_s(&context_, sizeof(context_), 0, sizeof(context_)); in DfxUnwindLocal() 85 (void)memset_s(&context_, sizeof(context_), 0, sizeof(context_)); in Init() 218 ret = ExecLocalDumpUnwinding(&context_, 0); in ExecLocalDumpUnwindByWait() 332 (void)memset_s(&context_, sizeof(context_), 0, sizeof(context_)); in LocalDumper() 334 context_.regs[UNW_ARM_R0] = uc->uc_mcontext.arm_r0; in LocalDumper() 335 context_.regs[UNW_ARM_R1] = uc->uc_mcontext.arm_r1; in LocalDumper() 336 context_.regs[UNW_ARM_R2] = uc->uc_mcontext.arm_r2; in LocalDumper() 337 context_.regs[UNW_ARM_R3] = uc->uc_mcontext.arm_r3; in LocalDumper() 338 context_.regs[UNW_ARM_R4] = uc->uc_mcontext.arm_r4; in LocalDumper() 339 context_.regs[UNW_ARM_R5] = uc->uc_mcontext.arm_r5; in LocalDumper() [all …]
|
D | dfx_dump_request.cpp | 32 err = memset_s(&context_, sizeof(context_), 0, sizeof(context_)); in ProcessDumpRequest() 143 return context_; in GetContext() 166 context_ = context; in SetContext()
|
D | dfx_unwind_local.h | 71 unw_context_t context_; variable
|
D | dfx_dump_request.h | 83 ucontext_t context_; variable
|
/base/hiviewdfx/hiview/base/ |
D | hiview_global.cpp | 50 return context_.GetHiViewDirectory(type); in GetHiViewDirectory() 55 return context_.GetHiviewProperty(key, defaultValue); in GetHiviewProperty() 60 return context_.SetHiviewProperty(key, value, forceUpdate); in SetHiviewProperty() 65 context_.PostAsyncEventToTarget(nullptr, targetPlugin, event); in PostAsyncEventToTarget() 70 return context_.PostSyncEventToTarget(nullptr, targetPlugin, event); in PostSyncEventToTarget() 75 context_.PostUnorderedEvent(nullptr, event); in PostUnorderedEvent() 81 context_.AddListenerInfo(type, name, eventNames, listenerInfo); in AddListenerInfo() 87 return context_.GetListenerInfo(type, name, listenerInfo); in GetListenerInfo() 92 return context_.GetListenerInfo(type, name, eventNames); in GetListenerInfo() 97 return context_.GetPipelineSequenceByName(name); in GetPipelineSequenceByName()
|
D | plugin.cpp | 100 if (context_ == nullptr) { in AddEventListenerInfo() 106 context_->AddListenerInfo(type, shared_from_this(), eventNames, listenerInfo); in AddEventListenerInfo() 111 if (context_ == nullptr) { in AddEventListenerInfo() 115 context_->AddListenerInfo(type, shared_from_this(), eventNames, listenerInfo); in AddEventListenerInfo() 120 if (context_ == nullptr) { in GetEventListenerInfo() 123 return context_->GetListenerInfo(type, name_, listenerInfo); in GetEventListenerInfo() 128 if (context_ == nullptr) { in AddEventListenerInfo() 134 context_->AddListenerInfo(type, shared_from_this(), eventNames, listenerInfo); in AddEventListenerInfo() 139 if (context_ == nullptr) { in AddEventListenerInfo() 143 context_->AddListenerInfo(type, shared_from_this(), eventNames, listenerInfo); in AddEventListenerInfo() [all …]
|
D | event_dispatch_queue.cpp | 32 : stop_(false), isRunning_(false), threadName_(name), type_(type), context_(context) in EventDispatchQueue() 79 auto listeners = context_->GetListenerInfo(event.messageType_, eventName, event.eventId_); in ProcessUnorderedEvent()
|
/base/hiviewdfx/hiview/base/include/ |
D | event_dispatch_queue.h | 32 EventDispatchQueue(const std::string& name, Event::ManageType type, HiviewContext* context_); 52 HiviewContext* context_; variable
|
D | hiview_global.h | 28 explicit HiviewGlobal(HiviewContext& context) : context_(context) {} in HiviewGlobal() 46 HiviewContext& context_;
|
D | plugin.h | 42 Plugin() : handle_(DynamicModuleDefault), context_(nullptr), useCount_(0) {}; in Plugin() 123 return context_; in GetHiviewContext() 128 std::call_once(contextSetFlag_, [&]() { context_ = context; }); in SetHiviewContext() 195 HiviewContext* context_; variable
|
/base/customization/enterprise_device_management/framework/extension/src/ |
D | js_enterprise_admin_extension_context.cpp | 29 : context_(context) {} in JsEnterpriseAdminExtensionContext() 38 std::weak_ptr<EnterpriseAdminExtensionContext> context_; member in OHOS::EDM::__anon4a6ca72e0111::JsEnterpriseAdminExtensionContext
|
/base/startup/init/services/param/watcher/agent/ |
D | watcher_manager_kits.h | 48 : callback_(callback), context_(context) {} in ParameterChangeListener() 53 return (callback == callback_ && context == context_); in IsEqual() 65 void *context_ { nullptr };
|
/base/update/updater/services/package/pkg_manager/ |
D | pkg_stream.h | 161 : PkgStreamImpl(pkgManager, fileName), processor_(processor), context_(context) {} in ProcessorStream() 180 int ret = processor_(data, size, start, false, context_); in Write() 210 return processor_(data, 0, 0, true, context_); in Flush() 215 const void *context_; variable
|
/base/hiviewdfx/hiappevent/frameworks/js/napi/include/ |
D | napi_app_event_watcher.h | 44 OnTriggerContext* context_;
|
/base/telephony/call_manager/services/audio/src/ |
D | audio_proxy.cpp | 25 … : context_(nullptr), audioSoundManager_(std::make_unique<AudioStandard::RingtoneSoundManager>()), in AudioProxy() 196 if (context_ == nullptr) { in GetSystemRingtoneUri() 201 return audioSoundManager_->GetSystemRingtoneUri(context_, rinigtoneType); in GetSystemRingtoneUri()
|
/base/inputmethod/imf/frameworks/kits/extension/src/ |
D | js_inputmethod_extension_context.cpp | 49 : context_(context) in JsInputMethodExtensionContext() 97 std::weak_ptr<InputMethodExtensionContext> context_; member in OHOS::AbilityRuntime::__anon0a6f107b0111::JsInputMethodExtensionContext 124 AsyncTask::CompleteCallback complete = [weak = context_, want, startOptions, unwrapArgc]( in OnStartAbility() 185 …AsyncTask::CompleteCallback complete = [weak = context_, want, accountId, startOptions, unwrapArgc… in OnStartAbilityWithAccount() 221 AsyncTask::CompleteCallback complete = [weak = context_]( in OnTerminateAbility() 272 AsyncTask::CompleteCallback complete = [weak = context_, want, connection, connectId]( in OnConnectAbility() 327 … AsyncTask::CompleteCallback complete = [weak = context_, want, accountId, connection, connectId]( in OnConnectAbilityWithAccount() 374 AsyncTask::CompleteCallback complete = [weak = context_, want, connection]( in OnDisconnectAbility()
|
/base/theme/wallpaper_mgr/frameworks/kits/extension/src/ |
D | js_wallpaper_extension_context.cpp | 48 …aperExtensionContext(const std::shared_ptr<WallpaperExtensionContext>& context) : context_(context) in JsWallpaperExtensionContext() 95 std::weak_ptr<WallpaperExtensionContext> context_; member in OHOS::AbilityRuntime::__anon200560450111::JsWallpaperExtensionContext 125 …[weak = context_, want, startOptions, unwrapArgc](NativeEngine& engine, AsyncTask& task, int32_t s… in OnStartAbility() 188 [weak = context_, want, accountId, startOptions, unwrapArgc]( in OnStartAbilityWithAccount() 225 [weak = context_](NativeEngine& engine, AsyncTask& task, int32_t status) { in OnTerminateAbility() 281 …[weak = context_, want, connection, connectId](NativeEngine& engine, AsyncTask& task, int32_t stat… in OnConnectAbility() 341 [weak = context_, want, accountId, connection, connectId]( in OnConnectAbilityWithAccount() 394 [weak = context_, want, connection]( in OnDisconnectAbility()
|
/base/telephony/call_manager/services/audio/include/ |
D | audio_proxy.h | 79 std::shared_ptr<AbilityRuntime::Context> context_; variable
|
/base/request/request/upload/frameworks/libs/src/ |
D | upload_task.cpp | 38 context_ = nullptr; in UploadTask() 134 context_ = context; in SetContext() 178 uint32_t ret = obtainFile.GetFile(&file, f.uri, fileSize, context_); in InitFileArray()
|