/base/hiviewdfx/hiappevent/frameworks/js/napi/src/ |
H A D | napi_app_event_watcher.cpp | 88 : AppEventWatcher(name, filters, cond), context_(nullptr)
in NapiAppEventWatcher() 94 if (context_ == nullptr) {
in ~NapiAppEventWatcher() 98 if (context_->receiveContext != nullptr) {
in ~NapiAppEventWatcher() 99 env = context_->receiveContext->env;
in ~NapiAppEventWatcher() 100 } else if (context_->triggerContext != nullptr) {
in ~NapiAppEventWatcher() 101 env = context_->triggerContext->env;
in ~NapiAppEventWatcher() 109 delete context_;
in ~NapiAppEventWatcher() 112 work->data = static_cast<void*>(context_);
in ~NapiAppEventWatcher() 130 if (context_ == nullptr) {
in InitHolder() 131 context_ in InitHolder() [all...] |
/base/request/request/frameworks/js/napi/src/upload/ |
H A D | async_call.cpp | 24 context_ = new AsyncContext();
in AsyncCall() 32 napi_create_reference(env, argv[argc - 1], 1, &context_->callback);
in AsyncCall() 40 context_->ctx = std::move(context);
in AsyncCall() 41 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() 56 UPLOAD_HILOGD(UPLOAD_MODULE_JS_NAPI, "context_ or context_ in Call() [all...] |
/base/theme/screenlock_mgr/frameworks/js/napi/src/ |
H A D | async_call.cpp | 25 context_ = new AsyncContext(); in AsyncCall() 26 context_->env = env; in AsyncCall() 27 if (context_ == nullptr) { in AsyncCall() 28 SCLOCK_HILOGD("context_ is null"); 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_ in Call() [all...] |
/base/inputmethod/imf/frameworks/js/napi/inputmethodclient/ |
H A D | async_call.cpp | 35 context_ = new AsyncContext(); in AsyncCall() 36 NAPI_ASSERT_RETURN_VOID(env, context_ != nullptr, "context_ != nullptr"); in AsyncCall() 46 napi_create_reference(env, argv[argc - 1], 1, &context_->callback); in AsyncCall() 51 context_->ctx = std::move(context); in AsyncCall() 52 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() 67 IMSA_HILOGE("context_ i in Call() [all...] |
/base/print/print_fwk/interfaces/kits/napi/print_napi/src/ |
H A D | print_async_call.cpp | 25 context_ = new AsyncContext(); in PrintAsyncCall() 37 napi_create_reference(env, argv[pos], 1, &context_->callback); in PrintAsyncCall() 41 context_->paramStatus = (*context)(env, argc, argv, self, info); in PrintAsyncCall() 42 context_->ctx = std::move(context); in PrintAsyncCall() 43 napi_create_reference(env, self, 1, &context_->self); in PrintAsyncCall() 48 if (context_ == nullptr) { in ~PrintAsyncCall() 52 DeleteContext(env_, context_); in ~PrintAsyncCall() 58 if (context_->ctx != nullptr) { in Call() 59 context_->ctx->exec_ = std::move(exec); in Call() 62 if (context_ in Call() [all...] |
/base/print/print_fwk/interfaces/kits/napi/scan_napi/src/ |
H A D | scan_async_call.cpp | 44 context_ = new AsyncContext(); in ScanAsyncCall() 56 napi_create_reference(env, argv[pos], 1, &context_->callback); in ScanAsyncCall() 60 context_->paramStatus = (*context)(env, argc, argv, self); in ScanAsyncCall() 61 context_->ctx = std::move(context); in ScanAsyncCall() 62 napi_create_reference(env, self, 1, &context_->self); in ScanAsyncCall() 67 if (context_ == nullptr) { in ~ScanAsyncCall() 71 DeleteContext(env_, context_); in ~ScanAsyncCall() 77 if (context_ != nullptr && context_->ctx != nullptr) { in Call() 78 context_ in Call() [all...] |
/base/theme/wallpaper_mgr/frameworks/js/napi/ |
H A D | call.cpp | 25 context_ = new CallContext(); in Call() 35 napi_create_reference(env, argv[pos], 1, &context_->callback); in Call() 48 context_->ctx = std::move(context); in Call() 49 napi_create_reference(env, self, 1, &context_->self); in Call() 55 if (context_ == nullptr) { in ~Call() 59 DeleteContext(env_, context_); in ~Call() 64 if (context_ == nullptr) { in AsyncCall() 65 HILOG_ERROR("context_ is null."); in AsyncCall() 68 if (context_->ctx == nullptr) { in AsyncCall() 69 HILOG_ERROR("context_ in AsyncCall() [all...] |
/base/msdp/device_status/services/interaction/drag/src/ |
H A D | display_change_event_listener.cpp | 31 : context_(context) in DisplayChangeEventListener() 59 CHKPV(context_); in OnChange() 60 int32_t ret = context_->GetDelegateTasks().PostAsyncTask([this] { in OnChange() 61 return this->context_->GetDragManager().RotateDragWindow(Rosen::Rotation::ROTATION_0); in OnChange() 97 CHKPV(context_); in RotateDragWindow() 98 int32_t ret = context_->GetDelegateTasks().PostAsyncTask([this, rotation] { in RotateDragWindow() 99 return this->context_->GetDragManager().RotateDragWindow(rotation); in RotateDragWindow() 108 CHKPV(context_); in ScreenRotate() 109 int32_t ret = context_->GetDelegateTasks().PostAsyncTask([this, rotation, lastRotation] { in ScreenRotate() 110 return this->context_ in ScreenRotate() [all...] |
H A D | collaboration_service_status_change.cpp | 26 : context_(context) in CollaborationServiceStatusChange() 41 CHKPV(context_); in OnRemoveSystemAbility() 42 context_->GetSocketSessionManager().DeleteCollaborationServiceByName(); in OnRemoveSystemAbility()
|
/base/hiviewdfx/hiappevent/frameworks/cj/ffi/src/ |
H A D | appevent_watcher_impl.cpp | 79 if (context_ != nullptr) { in ~AppEventWatcherImpl() 80 delete context_; in ~AppEventWatcherImpl() 81 context_ = nullptr; in ~AppEventWatcherImpl() 88 : HiviewDFX::AppEventWatcher(name, filters, cond), context_(nullptr) {} in AppEventWatcherImpl() 92 if (context_ == nullptr) { in InitTrigger() 93 context_ = new(std::nothrow) WatcherContext(); in InitTrigger() 94 if (context_ == nullptr) { in InitTrigger() 95 LOGE("InitTrigger is failed, context_ is null"); in InitTrigger() 99 if (context_->triggerContext == nullptr) { in InitTrigger() 100 context_ in InitTrigger() [all...] |
/base/msdp/device_status/intention/cooperate/plugin/src/ |
H A D | cooperate.cpp | 34 : env_(env), context_(env), sm_(env) in Cooperate() 39 context_.AttachSender(sender); in Cooperate() 40 context_.Enable(); in Cooperate() 47 context_.Disable(); in ~Cooperate() 53 auto ret = context_.Sender().Send(CooperateEvent( in AddObserver() 66 auto ret = context_.Sender().Send(CooperateEvent( in RemoveObserver() 79 auto ret = context_.Sender().Send(CooperateEvent( in RegisterListener() 93 auto ret = context_.Sender().Send(CooperateEvent( in UnregisterListener() 107 auto ret = context_.Sender().Send(CooperateEvent( in RegisterHotAreaListener() 121 auto ret = context_ in UnregisterHotAreaListener() [all...] |
/base/msdp/device_status/test/unittest/intention/stationary/src/ |
H A D | stationary_server_test.cpp | 32 CallingContext context_; 71 int32_t ret = stationary_.Enable(context_, data_, reply_); in HWTEST_F() 83 int32_t ret = stationary_.Disable(context_, data_, reply_); in HWTEST_F() 95 int32_t ret = stationary_.Start(context_, data_, reply_); in HWTEST_F() 107 int32_t ret = stationary_.Stop(context_, data_, reply_); in HWTEST_F() 119 int32_t ret = stationary_.SetParam(context_, SUBSCRIBE_STATIONARY_ONE, data_, reply_); in HWTEST_F() 131 int32_t ret = stationary_.GetParam(context_, SUBSCRIBE_STATIONARY_ONE, data_, reply_); in HWTEST_F() 133 ret = stationary_.GetParam(context_, SUBSCRIBE_STATIONARY_THREE, data_, reply_); in HWTEST_F() 145 int32_t ret = stationary_.Control(context_, SUBSCRIBE_STATIONARY_ONE, data_, reply_); in HWTEST_F() 166 int32_t ret = stationary_.AddWatch(context_, SUBSCRIBE_STATIONARY_ON in HWTEST_F() [all...] |
/base/hiviewdfx/hiview/base/ |
H A 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, domainRulesMap);
in AddListenerInfo() 86 context_.AddListenerInfo(type, name);
in AddListenerInfo() 91 return context_.GetPipelineSequenceByName(name);
in GetPipelineSequenceByName()
|
H A D | event_dispatch_queue.cpp | 26 : isRunning_(false), threadName_(name), type_(type), context_(context)
in EventDispatchQueue() 36 auto listeners = context_->GetListenerInfo(event.messageType_, event.eventName_, event.domain_);
in ProcessUnorderedEvent() 79 if (context_ == nullptr) {
in Enqueue()
|
/base/msdp/device_status/intention/cooperate/server/src/ |
H A D | cooperate_server.cpp | 42 : context_(context) in CooperateServer() 57 CHKPR(context_, RET_ERR); in Enable() 59 context_->GetTimerManager().RemoveTimer(unloadTimerId_); in Enable() 61 ICooperate* cooperate = context_->GetPluginManager().LoadCooperate(); in Enable() 79 CHKPR(context_, RET_ERR); in Disable() 80 ICooperate* cooperate = context_->GetPluginManager().LoadCooperate(); in Disable() 83 unloadTimerId_ = context_->GetTimerManager().AddTimer(DEFAULT_UNLOAD_COOLING_TIME_MS, REPEAT_ONCE, in Disable() 105 CHKPR(context_, RET_ERR); in Start() 106 ICooperate* cooperate = context_->GetPluginManager().LoadCooperate(); in Start() 123 CHKPR(context_, RET_ER in Stop() [all...] |
/base/msdp/device_status/intention/services/intention_service/src/ |
H A D | intention_service.cpp | 37 : context_(context), socketServer_(context), cooperate_(context), drag_(context), dumper_(context, stationary_) in IntentionService() 60 CHKPR(context_, RET_ERR); in Enable() 61 int32_t ret = context_->GetDelegateTasks().PostSyncTask([&] { in Enable() 81 CHKPR(context_, RET_ERR); in Disable() 82 int32_t ret = context_->GetDelegateTasks().PostSyncTask([&] { in Disable() 102 CHKPR(context_, RET_ERR); in Start() 103 int32_t ret = context_->GetDelegateTasks().PostSyncTask([&] { in Start() 123 CHKPR(context_, RET_ERR); in Stop() 124 int32_t ret = context_->GetDelegateTasks().PostSyncTask([&] { in Stop() 137 CHKPR(context_, RET_ER in AddWatch() [all...] |
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
H A D | arm_exidx.cpp | 94 context_.Reset(DfxRegsQut::GetQutRegsSize()); in ArmExidx() 103 if (context_.vsp != 0) { in FlushInstr() 104 if (__builtin_expect(!((context_.vsp & 0x3) == 0), false)) { in FlushInstr() 105 DFXLOGE("Check failed: context_.vsp & 0x3) == 0"); in FlushInstr() 107 rsState_->cfaRegOffset = context_.vsp; in FlushInstr() 114 if (context_.IsTransformed(reg)) { in FlushInstr() 115 if (__builtin_expect(!((context_.regs[i] & 0x3) == 0), false)) { in FlushInstr() 116 DFXLOGE("Check failed: context_.regs[%{public}zu] & 0x3) == 0", i); in FlushInstr() 119 rsState_->locs[i].val = -context_.regs[i]; in FlushInstr() 130 context_ in FlushInstr() [all...] |
/base/security/code_signature/interfaces/innerkits/jit_code_sign/src/ |
H A D | pac_sign_ctx.cpp | 60 : context_(0), salt_(salt), index_(0), purpose_(purpose) {} in PACSignCtx() 90 context = context_; in PaddingContext() 117 context_ = context; in SetContext() 121 context_ = PACDB(context, paddingContext); in SetContext() 127 return AUTDB(context_, paddingContext); in GetRealContext() 139 LOG_INFO("Before update context = %{public}lx", context_); in Update() 142 context_ = GetRealContext(); in Update() 149 context_, signature); in Update()
|
/base/msdp/device_status/intention/scheduler/plugin_manager/src/ |
H A D | plugin_manager.cpp | 46 CHKPP(context_); in LoadCooperate() 48 cooperate_ = LoadLibrary<ICooperate>(context_, LIB_COOPERATE_PATH.data()); in LoadCooperate() 68 CHKPP(context_); in LoadMotionDrag() 70 motionDrag_ = LoadLibrary<IMotionDrag>(context_, LIB_MOTION_DRAG_PATH.data()); in LoadMotionDrag()
|
/base/msdp/device_status/intention/scheduler/timer_manager/src/ |
H A D | timer_manager.cpp | 44 context_ = context; in OnInit() 72 CHKPR(context_, RET_ERR); in AddTimer() 73 return context_->GetDelegateTasks().PostSyncTask([this, intervalMs, repeatCount, callback] { in AddTimer() 90 CHKPR(context_, RET_ERR); in RemoveTimer() 91 return context_->GetDelegateTasks().PostSyncTask([this, timerId] { in RemoveTimer() 106 CHKPR(context_, RET_ERR); in ResetTimer() 107 return context_->GetDelegateTasks().PostSyncTask([this, timerId] { in ResetTimer() 124 CHKPR(context_, false); 130 int32_t ret = context_->GetDelegateTasks().PostSyncTask([this, &task, timerId] { 150 CHKPV(context_); [all...] |
/base/msdp/device_status/intention/scheduler/plugin_manager/include/ |
H A D | plugin_manager.h | 45 IContext *context_ { nullptr }; 57 PluginManager(IContext *context) : context_(context) {} in PluginManager() 73 IContext *context_ { nullptr }; 80 : context_(context), handle_(handle) in Plugin() 104 instance_ = create(context_); in GetInstance()
|
/base/msdp/device_status/test/unittest/intention/cooperate/src/ |
H A D | cooperate_server_test.cpp | 57 std::shared_ptr<TestContext> context_ { nullptr }; 63 context_ = std::make_shared<TestContext>(); in CooperateServerTest() 64 cooperateServer_ = std::make_shared<CooperateServer>(context_.get()); in CooperateServerTest() 216 context_->GetPluginManager().UnloadCooperate(); in HWTEST_F() 239 context_->GetPluginManager().UnloadCooperate(); in HWTEST_F() 263 context_->GetPluginManager().UnloadCooperate(); in HWTEST_F() 285 context_->GetPluginManager().UnloadCooperate(); in HWTEST_F() 307 context_->GetPluginManager().UnloadCooperate(); in HWTEST_F() 332 context_->GetPluginManager().UnloadCooperate(); in HWTEST_F() 354 context_ in HWTEST_F() [all...] |
/base/msdp/device_status/intention/services/device_manager/src/ |
H A D | device_manager.cpp | 84 context_ = context; in OnInit() 93 CHKPR(context_, RET_ERR); in Enable() 94 int32_t ret = context_->GetDelegateTasks().PostSyncTask([this] { in Enable() 133 CHKPR(context_, RET_ERR); in Disable() 134 int32_t ret = context_->GetDelegateTasks().PostSyncTask([this] { in Disable() 277 CHKPV(context_); in Dispatch() 278 int32_t ret = context_->GetDelegateTasks().PostAsyncTask([this, &ev] { in Dispatch() 298 CHKPP(context_); in GetDevice() 304 int32_t ret = context_->GetDelegateTasks().PostSyncTask([this, &task, id] { in GetDevice() 333 CHKPV(context_); in RetriggerHotplug() [all...] |
/base/customization/enterprise_device_management/framework/extension/src/ |
H A D | js_enterprise_admin_extension_context.cpp | 28 : context_(context) {} in JsEnterpriseAdminExtensionContext() 37 std::weak_ptr<EnterpriseAdminExtensionContext> context_; member in OHOS::EDM::__anon264::final
|
/base/hiviewdfx/hiview/base/include/ |
H A D | event_dispatch_queue.h | 28 EventDispatchQueue(const std::string& name, Event::ManageType type, HiviewContext* context_);
46 HiviewContext* context_;
member in OHOS::HiviewDFX::EventDispatchQueue
|