Home
last modified time | relevance | path

Searched refs:weakThis (Results 1 - 25 of 41) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/cppview/
H A Dnative_view.cpp54 wptr<NativeView> weakThis = this; in CreateUI() local
56 .appearFunc = [weakThis]() -> void { in CreateUI()
57 auto self = weakThis.promote(); in CreateUI()
62 .renderFunc = [weakThis]() -> RefPtr<AceType> { in CreateUI()
63 auto self = weakThis.promote(); in CreateUI()
73 .updateFunc = [weakThis]() -> void { in CreateUI()
74 auto self = weakThis.promote(); in CreateUI()
88 .removeFunc = [weakThis]() { in CreateUI()
89 auto self = weakThis.promote(); in CreateUI()
93 .reloadFunc = [weakThis](boo in CreateUI()
165 wptr<NativeView> weakThis = this; FinishUpdateFunc() local
[all...]
/foundation/ability/ability_runtime/service_router_framework/services/srms/src/
H A Dsr_common_event_subscriber.cpp51 std::weak_ptr<SrCommonEventSubscriber> weakThis = shared_from_this(); in OnReceiveEvent() local
54 auto task = [weakThis, userId]() { in OnReceiveEvent()
55 std::shared_ptr<SrCommonEventSubscriber> sharedThis = weakThis.lock(); in OnReceiveEvent()
64 auto task = [weakThis, bundleName]() { in OnReceiveEvent()
66 std::shared_ptr<SrCommonEventSubscriber> sharedThis = weakThis.lock(); in OnReceiveEvent()
73 auto task = [weakThis, bundleName]() { in OnReceiveEvent()
75 std::shared_ptr<SrCommonEventSubscriber> sharedThis = weakThis.lock(); in OnReceiveEvent()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/window_scene/scene/
H A Dsystem_window_scene.cpp33 boundsChangedCallback_ = [weakThis = WeakClaim(this)](const Rosen::Vector4f& bounds) { in SystemWindowScene()
34 auto self = weakThis.Upgrade(); in SystemWindowScene()
106 auto mouseCallback = [weakThis = WeakClaim(this), weakSession = wptr(session_)](MouseInfo& info) { in OnAttachToFrameNode()
107 auto self = weakThis.Upgrade(); in OnAttachToFrameNode()
170 [weakThis = WeakClaim(this), instanceId = instanceId_](std::shared_ptr<MMI::PointerEvent> PointerEvent) { in RegisterEventCallback()
185 taskExecutor->PostTask([weakThis, PointerEvent]() { in RegisterEventCallback()
186 auto self = weakThis.Upgrade(); in RegisterEventCallback()
189 "weakThis Upgrade null,id:%{public}d", PointerEvent->GetId()); in RegisterEventCallback()
205 auto keyEventCallback = [weakThis = WeakClaim(this), instanceId = instanceId_]( in RegisterEventCallback()
208 auto self = weakThis in RegisterEventCallback()
[all...]
H A Dwindow_scene.cpp41 boundsChangedCallback_ = [weakThis = WeakClaim(this)](const Rosen::Vector4f& bounds) { in WindowScene()
42 auto self = weakThis.Upgrade(); in WindowScene()
51 callback_ = [weakThis = WeakClaim(this), weakSession = wptr(session_)]() { in WindowScene()
60 auto self = weakThis.Upgrade(); in WindowScene()
156 auto responseRegionCallback = [weakThis = WeakClaim(this), weakSession = wptr(session_)]( in RegisterResponseRegionCallback()
158 auto self = weakThis.Upgrade(); in RegisterResponseRegionCallback()
185 auto requestFocusCallback = [weakThis = WeakClaim(this), instanceId = instanceId_]() { in RegisterFocusCallback()
190 [weakThis]() { in RegisterFocusCallback()
191 auto self = weakThis.Upgrade(); in RegisterFocusCallback()
203 auto lostFocusCallback = [weakThis in RegisterFocusCallback()
[all...]
/foundation/ability/ability_runtime/services/abilitymgr/src/
H A Dability_bundle_event_callback.cpp95 wptr<AbilityBundleEventCallback> weakThis = this; in HandleUpdatedModuleInfo() local
96 auto task = [weakThis, bundleName, uid]() { in HandleUpdatedModuleInfo()
97 sptr<AbilityBundleEventCallback> sharedThis = weakThis.promote(); in HandleUpdatedModuleInfo()
109 wptr<AbilityBundleEventCallback> weakThis = this; in HandleAppUpgradeCompleted() local
110 auto task = [weakThis, bundleName, uid]() { in HandleAppUpgradeCompleted()
111 sptr<AbilityBundleEventCallback> sharedThis = weakThis.promote(); in HandleAppUpgradeCompleted()
H A Dassert_fault_callback_death_mgr.cpp46 std::weak_ptr<AssertFaultCallbackDeathMgr> weakThis = shared_from_this(); in AddAssertFaultCallback() local
48 new (std::nothrow) AssertFaultRemoteDeathRecipient([weakThis] (const wptr<IRemoteObject> &remote) { in AddAssertFaultCallback()
49 auto callbackDeathMgr = weakThis.lock(); in AddAssertFaultCallback()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_render_service_connection.cpp151 [weakThis = wptr<RSRenderServiceConnection>(this)]() {
152 sptr<RSRenderServiceConnection> connection = weakThis.promote();
160 [weakThis = wptr<RSRenderServiceConnection>(this)]() {
161 sptr<RSRenderServiceConnection> connection = weakThis.promote();
170 [weakThis = wptr<RSRenderServiceConnection>(this)]() {
171 sptr<RSRenderServiceConnection> connection = weakThis.promote();
179 [weakThis = wptr<RSRenderServiceConnection>(this)]() {
180 sptr<RSRenderServiceConnection> connection = weakThis.promote();
327 std::function<void()> registerNode = [node, weakThis = wptr<RSRenderServiceConnection>(this), in CreateNode()
329 sptr<RSRenderServiceConnection> connection = weakThis in CreateNode()
[all...]
/foundation/window/window_manager/window_scene/interfaces/kits/napi/scene_session_manager/
H A Djs_scene_session.cpp405 sessionchangeCallback->clearCallbackFunc_ = [weakThis = wptr(this)](bool needRemove) { in JsSceneSession()
410 auto jsSceneSession = weakThis.promote(); in JsSceneSession()
437 NotifyPendingSessionActivationFunc func = [weakThis = wptr(this)](SessionInfo& info) { in ProcessPendingSceneSessionActivationRegister()
438 auto jsSceneSession = weakThis.promote(); in ProcessPendingSceneSessionActivationRegister()
457 NotifyWindowDragHotAreaFunc func = [weakThis = wptr(this)]( in ProcessWindowDragHotAreaRegister()
459 auto jsSceneSession = weakThis.promote(); in ProcessWindowDragHotAreaRegister()
484 auto task = [weakThis = wptr(this), persistentId = persistentId_, env = env_, displayId, type, reason, rect] { in OnWindowDragHotArea()
485 auto jsSceneSession = weakThis.promote(); in OnWindowDragHotArea()
524 NotifySessionInfoLockedStateChangeFunc func = [weakThis = wptr(this)](bool lockedState) { in ProcessSessionInfoLockedStateChangeRegister()
525 auto jsSceneSession = weakThis in ProcessSessionInfoLockedStateChangeRegister()
[all...]
/foundation/window/window_manager/window_scene/session/host/src/
H A Dmain_session.cpp66 return PostSyncTask([weakThis = wptr(this), sessionStage, eventChannel, surfaceNode, property, token, pid, uid]() { in Reconnect()
67 auto session = weakThis.promote(); in Reconnect()
161 auto task = [weakThis = wptr(this), topmost]() { in SetTopmost()
162 auto session = weakThis.promote(); in SetTopmost()
241 auto task = [weakThis = wptr(this)]() { in OnRestoreMainWindow()
242 auto session = weakThis.promote(); in OnRestoreMainWindow()
H A Dkeyboard_session.cpp77 auto task = [weakThis = wptr(this), property]() { in Show()
78 auto session = weakThis.promote(); in Show()
99 auto task = [weakThis = wptr(this)]() { in Hide()
100 auto session = weakThis.promote(); in Hide()
133 auto task = [weakThis = wptr(this), isFromClient]() { in Disconnect()
134 auto session = weakThis.promote(); in Disconnect()
158 auto task = [weakThis = wptr(this), rsTransaction, updateReason]() { in NotifyClientToUpdateRect()
159 auto session = weakThis.promote(); in NotifyClientToUpdateRect()
249 auto task = [weakThis = wptr(this), callingSessionId]() mutable { in SetCallingSessionId()
250 auto session = weakThis in SetCallingSessionId()
[all...]
H A Dsystem_session.cpp94 auto task = [weakThis = wptr(this), property]() { in Show()
95 auto session = weakThis.promote(); in Show()
129 auto task = [weakThis = wptr(this)]() { in Hide()
130 auto session = weakThis.promote(); in Hide()
159 auto task = [weakThis = wptr(this), isFromClient]() { in Disconnect()
160 auto session = weakThis.promote(); in Disconnect()
255 auto task = [weakThis = wptr(this), rsTransaction, updateReason]() { in NotifyClientToUpdateRect()
256 auto session = weakThis.promote(); in NotifyClientToUpdateRect()
362 return PostSyncTask([weakThis = wptr(this), isEnabled]() { in SetDialogSessionBackGestureEnabled()
363 auto session = weakThis in SetDialogSessionBackGestureEnabled()
[all...]
H A Dscene_session.cpp106 auto task = [weakThis = wptr(this), sessionStage, eventChannel, surfaceNode, &systemConfig, property, token, pid, in ConnectInner()
108 auto session = weakThis.promote(); in ConnectInner()
151 return PostSyncTask([weakThis = wptr(this), sessionStage, eventChannel, surfaceNode, property, token, pid, uid]() { in Reconnect()
152 auto session = weakThis.promote(); in Reconnect()
236 auto task = [weakThis = wptr(this), property]() { in ForegroundTask()
237 auto session = weakThis.promote(); in ForegroundTask()
296 auto task = [weakThis = wptr(this), notifyListener, rect]() { in NotifyFrameLayoutFinishFromApp()
297 auto session = weakThis.promote(); in NotifyFrameLayoutFinishFromApp()
316 auto task = [weakThis = wptr(this), isSaveSnapshot]() { in BackgroundTask()
317 auto session = weakThis in BackgroundTask()
[all...]
H A Dscb_system_session.cpp61 auto task = [weakThis = wptr(this), rsTransaction, updateReason]() { in NotifyClientToUpdateRect()
62 auto session = weakThis.promote(); in NotifyClientToUpdateRect()
199 auto task = [weakThis = wptr(this), isSkip]() { in SetSkipSelfWhenShowOnVirtualScreen()
200 auto session = weakThis.promote(); in SetSkipSelfWhenShowOnVirtualScreen()
H A Dsub_session.cpp54 auto task = [weakThis = wptr(this), property]() { in Show()
55 auto session = weakThis.promote(); in Show()
81 auto task = [weakThis = wptr(this)]() { in Hide()
82 auto session = weakThis.promote(); in Hide()
H A Dscene_persistence.cpp103 auto task = [weakThis = wptr(this), pixelMap, resetSnapshotCallback, in SaveSnapshot()
105 auto scenePersistence = weakThis.promote(); in SaveSnapshot()
158 auto task = [weakThis = wptr(this), oldPersistentId]() { in RenameSnapshotFromOldPersistentId()
159 auto scenePersistence = weakThis.promote(); in RenameSnapshotFromOldPersistentId()
H A Dsession.cpp543 auto task = [weakThis = wptr(this), isFocusableOnShow]() { in SetFocusableOnShow()
544 auto session = weakThis.promote(); in SetFocusableOnShow()
1351 auto task = [weakThis = wptr(this), isAttach]() { in SetAttachState()
1352 auto session = weakThis.promote(); in SetAttachState()
1490 auto task = [weakThis = wptr(this), abilitySessionInfo, needStartCaller, isFromBroker]() { in TerminateSessionNew()
1491 auto session = weakThis.promote(); in TerminateSessionNew()
1592 auto task = [weakThis = wptr(this), needStartCaller]() { in Clear()
1593 auto session = weakThis.promote(); in Clear()
2072 auto task = [weakThis = wptr(this), runInFfrt = useFfrt]() { in SaveSnapshot()
2073 auto session = weakThis in SaveSnapshot()
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/app_control/
H A Dapp_jump_interceptor_event_subscriber.cpp52 std::weak_ptr<AppJumpInterceptorEventSubscriber> weakThis = shared_from_this(); in OnReceiveEvent() local
55 auto task = [weakThis, bundleName, db, userId]() { in OnReceiveEvent()
61 std::shared_ptr<AppJumpInterceptorEventSubscriber> sharedThis = weakThis.lock(); in OnReceiveEvent()
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/transaction/
H A Drs_application_agent_impl.cpp54 [weakThis = wptr<RSApplicationAgentImpl>(this)](sptr<RSIRenderServiceConnection>& conn) { in RegisterRSApplicationAgent()
55 sptr<IApplicationAgent> appSptr = weakThis.promote(); in RegisterRSApplicationAgent()
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/base/task_manager/task_group/
H A Dbase_task_group.cpp88 std::weak_ptr<BaseTaskGroup> weakThis(shared_from_this()); in GetTaskUnlocked()
89 auto task = [param = que_.Pop(), weakThis]() { in GetTaskUnlocked()
90 auto thiz = weakThis.lock(); in GetTaskUnlocked()
/foundation/window/window_manager/wm/src/
H A Dvsync_station.cpp134 auto task = [weakThis = weak_from_this()] { in RequestVsync()
135 if (auto sp = weakThis.lock()) { in RequestVsync()
143 auto task = [weakThis = weak_from_this()] in RequestVsync()
145 if (auto sp = weakThis.lock()) { in RequestVsync()
H A Dwindow_input_channel.cpp88 auto callback = [weakThis = wptr(this)] (std::shared_ptr<MMI::KeyEvent>& keyEvent, bool consumed) { in HandleKeyEvent()
89 auto promoteThis = weakThis.promote(); in HandleKeyEvent()
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/base/timer/
H A Dtime_broker.cpp51 std::weak_ptr<TimeBroker> weakThis(shared_from_this()); in Initialize()
52 timer_ = Timer::Create(name_, TimerType::ONCE, 0, [weakThis]() { in Initialize()
53 if (auto timeBroker = weakThis.lock()) { in Initialize()
/foundation/window/window_manager/extension/modal_system_ui_extension/src/
H A Dmodal_system_ui_extension.cpp130 auto task = [weakThis = wptr(this)] { in OnAbilityConnectDone()
131 auto connection = weakThis.promote(); in OnAbilityConnectDone()
/foundation/window/window_manager/window_scene/session_manager/src/
H A Dsession_listener_controller.cpp44 auto task = [weakThis = weak_from_this()](const wptr<IRemoteObject>& remote) { in AddSessionListener()
45 if (auto controller = weakThis.lock()) { in AddSessionListener()
/foundation/ability/form_fwk/services/src/
H A Dform_bundle_event_callback.cpp66 wptr<FormBundleEventCallback> weakThis = this; in OnReceiveEvent() local

Completed in 23 milliseconds

12