/ohos5.0/foundation/window/window_manager/window_scene/intention_event/service/anr_manager/src/ |
H A D | anr_manager.cpp | 56 [this, eventId, persistentId]() { in AddTimer() 73 eventId, persistentId); in AddTimer() 79 persistentId, timerId, eventId); in AddTimer() 99 …persistentId, applicationMap_[persistentId].pid, applicationMap_[persistentId].bundleName.c_str()); in IsANRTriggered() 110 …persistentId, applicationMap_[persistentId].pid, applicationMap_[persistentId].bundleName.c_str()); in OnSessionLost() 111 RemoveTimers(persistentId); in OnSessionLost() 112 RemovePersistentId(persistentId); in OnSessionLost() 120 …persistentId, applicationMap_[persistentId].pid, applicationMap_[persistentId].bundleName.c_str()); in OnBackground() 121 RemoveTimers(persistentId); in OnBackground() 122 RemovePersistentId(persistentId); in OnBackground() [all …]
|
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/src/ |
H A D | session_listener_controller.cpp | 96 if (persistentId == -1) { in NotifySessionCreated() 104 auto task = [weak = weak_from_this(), persistentId]() { in NotifySessionCreated() 118 if (persistentId == -1) { in NotifySessionDestroyed() 126 auto task = [weak = weak_from_this(), persistentId]() { in NotifySessionDestroyed() 163 if (persistentId == -1) { in NotifySessionSnapshotChanged() 185 if (persistentId == -1) { in NotifySessionMovedToFront() 207 if (persistentId == -1) { in NotifySessionFocused() 229 if (persistentId == -1) { in NotifySessionUnfocused() 252 if (persistentId == -1) { in NotifySessionIconChanged() 274 if (persistentId == -1) { in NotifySessionClosed() [all …]
|
H A D | extension_session_manager.cpp | 86 auto persistentId = extSession->GetPersistentId(); in RequestExtensionSessionActivation() local 89 if (extensionSessionMap_.count(persistentId) == 0) { in RequestExtensionSessionActivation() 121 auto persistentId = extSession->GetPersistentId(); in RequestExtensionSessionBackground() local 126 if (extensionSessionMap_.count(persistentId) == 0) { in RequestExtensionSessionBackground() 156 auto persistentId = extSession->GetPersistentId(); in RequestExtensionSessionDestruction() local 160 if (extensionSessionMap_.count(persistentId) == 0) { in RequestExtensionSessionDestruction() 169 extensionSessionMap_.erase(persistentId); in RequestExtensionSessionDestruction() 190 auto persistentId = extSession->GetPersistentId(); in RequestExtensionSessionDestructionDone() local 193 if (extensionSessionMap_.count(persistentId) == 0) { in RequestExtensionSessionDestructionDone() 195 where, persistentId); in RequestExtensionSessionDestructionDone() [all …]
|
H A D | scene_session_manager.cpp | 2561 persistentId, in RequestSceneSessionDestructionInner() 5206 persistentId); in RequestFocusSpecificCheck() 5449 persistentId, isFocused); in NotifyFocusStatus() 6690 persistentId); in GetSessionInfo() 8632 isVisible, persistentId); in NotifyStatusBarShowStatus() 10031 persistentId = iter->second.persistentId; in GetExtensionWindowIds() 10053 persistentId, parentId); in DestroyExtensionSession() 10126 modalUIExtensionEventInfo.value().persistentId == persistentId) { in ProcessModalExtensionPointDown() 10165 int32_t persistentId = info.persistentId; in AddExtensionWindowStageToSCB() local 10190 .persistentId = persistentId, in AddExtensionWindowStageToSCB() [all …]
|
H A D | scene_session_manager_lite.cpp | 66 int32_t persistentId, SessionInfoBean& sessionInfo) in GetSessionInfo() argument 130 WSError SceneSessionManagerLite::ClearSession(int32_t persistentId) in ClearSession() argument 132 WLOGFD("run ClearSession with persistentId: %{public}d", persistentId); in ClearSession() 133 return SceneSessionManager::GetInstance().ClearSession(persistentId); in ClearSession() 201 WSError SceneSessionManagerLite::UpdateWindowMode(int32_t persistentId, int32_t windowMode) in UpdateWindowMode() argument 203 return SceneSessionManager::GetInstance().UpdateWindowMode(persistentId, windowMode); in UpdateWindowMode() 211 WSError SceneSessionManagerLite::RaiseWindowToTop(int32_t persistentId) in RaiseWindowToTop() argument 213 return SceneSessionManager::GetInstance().RaiseWindowToTop(persistentId); in RaiseWindowToTop() 248 WMError SceneSessionManagerLite::TerminateSessionByPersistentId(int32_t persistentId) in TerminateSessionByPersistentId() argument 250 return SceneSessionManager::GetInstance().TerminateSessionByPersistentId(persistentId); in TerminateSessionByPersistentId() [all …]
|
/ohos5.0/foundation/window/window_manager/window_scene/test/unittest/ |
H A D | session_listener_controller_test.cpp | 181 int32_t persistentId = 1; variable 202 persistentId = 1; 220 persistentId = 1; 252 int32_t persistentId = 1; variable 268 persistentId = 1; 286 persistentId = 1; 304 persistentId = 1; 322 persistentId = 1; 340 persistentId = 1; 358 persistentId = 1; [all …]
|
H A D | event_stage_test.cpp | 61 int32_t persistentId = 0; variable 63 eventStage_.SetAnrStatus(persistentId, status); 76 int32_t persistentId = 0; variable 88 int32_t persistentId = 0; variable 102 int32_t persistentId = 0; variable 103 eventStage_.GetTimerIds(persistentId); 104 ASSERT_EQ(persistentId, 0); 114 int32_t persistentId = 0; variable 116 eventStage_.DelEvents(persistentId, eventId); 127 int32_t persistentId = 0; variable [all …]
|
H A D | scene_persistence_test.cpp | 102 int32_t persistentId = 1423; variable 111 uint32_t fileID = static_cast<uint32_t>(persistentId) & 0x3fffffff; 127 int32_t persistentId = 1424; variable 130 scenePersistence2->RenameSnapshotFromOldPersistentId(persistentId); 136 scenePersistence3->RenameSnapshotFromOldPersistentId(persistentId); 147 int32_t persistentId = 1423; variable 167 auto persistentId = abilityInfo.persistentId_; variable 170 new ScenePersistence(abilityInfo.bundleName_, persistentId); 213 int32_t persistentId = 1423; variable 228 int32_t persistentId = 1423; variable [all …]
|
H A D | dfx_hisysevent_test.cpp | 65 int32_t persistentId = 4; in TEST_F() local 68 dfxHisysevent.ApplicationBlockInput(eventId, pid, bundleName, persistentId); in TEST_F() 88 int32_t persistentId = 2; in TEST_F() local 91 dfxHisysevent.ApplicationBlockInput(eventId, pid, bundleName, persistentId); in TEST_F() 111 int32_t persistentId = -2; in TEST_F() local 114 dfxHisysevent.ApplicationBlockInput(eventId, pid, bundleName, persistentId); in TEST_F() 134 int32_t persistentId = -2; in TEST_F() local 137 dfxHisysevent.ApplicationBlockInput(eventId, pid, bundleName, persistentId); in TEST_F()
|
H A D | scene_session_manager_test7.cpp | 97 int32_t persistentId = 1; variable 351 int32_t persistentId = 1; variable 585 int32_t persistentId = 1; variable 609 int32_t persistentId = 1; variable 846 int32_t persistentId = 1; variable 1068 int32_t persistentId = 0; variable 1081 int32_t persistentId = 0; variable 1103 int32_t persistentId = 0; variable 1125 int32_t persistentId = 1; variable 1149 int32_t persistentId = 1; variable [all …]
|
/ohos5.0/foundation/window/window_manager/window_scene/intention_event/service/event_stage/src/ |
H A D | event_stage.cpp | 38 isAnrProcess_[persistentId] = status; in SetAnrStatus() 41 bool EventStage::CheckAnrStatus(int32_t persistentId) in CheckAnrStatus() argument 45 return isAnrProcess_[persistentId]; in CheckAnrStatus() 55 events_[persistentId].push_back(eventTime); in SaveANREvent() 61 if (events_.find(persistentId) == events_.end()) { in GetTimerIds() 66 for (const auto &item : events_[persistentId]) { in GetTimerIds() 80 auto &events = events_[persistentId]; in DelEvents() 89 isAnrProcess_[persistentId] = false; in DelEvents() 93 void EventStage::OnSessionLost(int32_t persistentId) in OnSessionLost() argument 97 events_.erase(persistentId); in OnSessionLost() [all …]
|
/ohos5.0/foundation/window/window_manager/window_scene/intention_event/framework/anr_handler/src/ |
H A D | anr_handler.cpp | 61 int32_t persistentId = session->GetPersistentId(); in SetSessionStage() local 92 void ANRHandler::OnWindowDestroyed(int32_t persistentId) in OnWindowDestroyed() argument 94 auto task = [this, persistentId]() { in OnWindowDestroyed() 95 anrHandlerState_.sendStatus.erase(persistentId); in OnWindowDestroyed() 97 if (iter->second.persistentId == persistentId) { in OnWindowDestroyed() 130 int32_t persistentId = GetPersistentIdOfEvent(eventId); in SetAnrHandleState() local 131 anrHandlerState_.sendStatus[persistentId] = status; in SetAnrHandleState() 187 int32_t persistentId = GetPersistentIdOfEvent(eventId); in ClearExpiredEvents() local 202 return sessionStageMap_[eventId].persistentId; in GetPersistentIdOfEvent() 208 bool ANRHandler::IsOnEventHandler(int32_t persistentId) in IsOnEventHandler() argument [all …]
|
/ohos5.0/foundation/window/window_manager/window_scene/intention_event/service/anr_manager/include/ |
H A D | anr_manager.h | 38 void AddTimer(int32_t eventId, int32_t persistentId); 39 void MarkProcessed(int32_t eventId, int32_t persistentId); 40 bool IsANRTriggered(int32_t persistentId); 42 void OnSessionLost(int32_t persistentId); 43 void OnBackground(int32_t persistentId); 44 void SetApplicationInfo(int32_t persistentId, int32_t pid, const std::string& uid); 53 void RemoveTimers(int32_t persistentId); 54 void RemovePersistentId(int32_t persistentId); 56 ANRManager::AppInfo GetAppInfoByPersistentId(int32_t persistentId);
|
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/include/ |
H A D | session_listener_controller.h | 44 void NotifySessionCreated(int32_t persistentId); 46 void NotifySessionDestroyed(int32_t persistentId); 48 void NotifySessionSnapshotChanged(int32_t persistentId); 50 void NotifySessionMovedToFront(int32_t persistentId); 52 void NotifySessionFocused(int32_t persistentId); 54 void NotifySessionUnfocused(int32_t persistentId); 56 …void NotifySessionIconChanged(int32_t persistentId, const std::shared_ptr<OHOS::Media::PixelMap>& … 58 void NotifySessionClosed(int32_t persistentId); 60 void NotifySessionLabelUpdated(int32_t persistentId);
|
H A D | scene_session_manager.h | 210 WSError SetFocusedSessionId(int32_t persistentId); 236 void NotifySessionMovedToFront(int32_t persistentId); 275 WSError ClearSession(int32_t persistentId) override; 339 WSError NotifyStackEmpty(int32_t persistentId); 412 int32_t GetCustomDecorHeight(int32_t persistentId); 595 void UpdateFocusableProperty(int32_t persistentId); 608 void UpdateAvoidArea(int32_t persistentId); 633 WSError UpdateBrightness(int32_t persistentId); 797 bool IsNeedRecover(const int32_t persistentId); 866 void RecoverCachedSubSession(int32_t persistentId); [all …]
|
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/include/zidl/ |
H A D | scene_session_manager_proxy.h | 32 sptr<WindowSessionProperty> property, int32_t& persistentId, sptr<ISession>& session, 41 WSError DestroyAndDisconnectSpecificSession(const int32_t persistentId) override; 42 WSError DestroyAndDisconnectSpecificSessionWithDetachCallback(const int32_t persistentId, 45 WMError RequestFocusStatus(int32_t persistentId, bool isFocused, bool byForeground = true, 47 WSError RaiseWindowToTop(int32_t persistentId) override; 87 WSError GetSessionSnapshot(const std::string& deviceId, int32_t persistentId, 90 WSError LockSession(int32_t persistentId) override; 91 WSError UnlockSession(int32_t persistentId) override; 94 WSError ClearSession(int32_t persistentId) override; 110 WSError AddOrRemoveSecureSession(int32_t persistentId, bool shouldHide) override; [all …]
|
H A D | scene_session_manager_lite_proxy.h | 51 …WSError GetSessionInfo(const std::string& deviceId, int32_t persistentId, SessionInfoBean& session… 57 WSError GetSessionSnapshot(const std::string& deviceId, int32_t persistentId, 59 WSError LockSession(int32_t persistentId) override; 60 WSError UnlockSession(int32_t persistentId) override; 63 WSError ClearSession(int32_t persistentId) override; 76 WSError RaiseWindowToTop(int32_t persistentId) override; 84 WMError TerminateSessionByPersistentId(int32_t persistentId) override; 91 WMError GetRootMainWindowId(int32_t persistentId, int32_t& hostWindowId) override;
|
/ohos5.0/foundation/window/window_manager/window_scene/intention_event/service/event_stage/include/ |
H A D | event_stage.h | 29 void SetAnrStatus(int32_t persistentId, bool status); 30 bool CheckAnrStatus(int32_t persistentId); 31 void SaveANREvent(int32_t persistentId, int32_t eventId, int32_t timerId); 32 std::vector<int32_t> GetTimerIds(int32_t persistentId); 33 std::vector<int32_t> DelEvents(int32_t persistentId, int32_t eventId); 34 void OnSessionLost(int32_t persistentId);
|
/ohos5.0/foundation/window/window_manager/wm/include/ |
H A D | window_adapter.h | 89 virtual WMError DumpSessionWithId(int32_t persistentId, std::vector<std::string> &infos); 96 virtual WMError UpdateSessionAvoidAreaListener(int32_t& persistentId, bool haveListener); 97 virtual WMError UpdateSessionTouchOutsideListener(int32_t& persistentId, bool haveListener); 99 virtual WMError UpdateSessionWindowVisibilityListener(int32_t persistentId, bool haveListener); 100 virtual WMError RaiseWindowToTop(int32_t persistentId); 104 sptr<WindowSessionProperty> property, int32_t& persistentId, sptr<ISession>& session, 109 virtual WMError DestroyAndDisconnectSpecificSession(const int32_t persistentId); 117 void UnregisterSessionRecoverCallbackFunc(int32_t persistentId); 121 virtual WMError RequestFocusStatus(int32_t persistentId, bool isFocused); 128 virtual WMError AddOrRemoveSecureSession(int32_t persistentId, bool shouldHide); [all …]
|
/ohos5.0/foundation/window/window_manager/wmserver/include/zidl/ |
H A D | window_manager_interface.h | 152 virtual WSError UpdateSessionTouchOutsideListener(int32_t& persistentId, bool haveListener) in UpdateSessionTouchOutsideListener() argument 160 virtual WSError RaiseWindowToTop(int32_t persistentId) { return WSError::WS_OK; } in RaiseWindowToTop() argument 161 virtual WSError UpdateSessionWindowVisibilityListener(int32_t persistentId, bool haveListener) in UpdateSessionWindowVisibilityListener() argument 171 sptr<WindowSessionProperty> property, int32_t& persistentId, sptr<ISession>& session, 180 … virtual WSError DestroyAndDisconnectSpecificSessionWithDetachCallback(const int32_t persistentId, in DestroyAndDisconnectSpecificSessionWithDetachCallback() argument 188 virtual WSError BindDialogSessionTarget(uint64_t persistentId, sptr<IRemoteObject> targetToken) in BindDialogSessionTarget() argument 192 … virtual WSError SetSessionGravity(int32_t persistentId, SessionGravity gravity, uint32_t percent) in SetSessionGravity() argument 196 … virtual WMError RequestFocusStatus(int32_t persistentId, bool isFocused, bool byForeground = true, 211 virtual WSError AddOrRemoveSecureSession(int32_t persistentId, bool shouldHide) in AddOrRemoveSecureSession() argument 228 virtual WMError GetCallingWindowWindowStatus(int32_t persistentId, WindowStatus& windowStatus) in GetCallingWindowWindowStatus() argument [all …]
|
/ohos5.0/foundation/window/window_manager/wm/src/ |
H A D | window_adapter.cpp | 318 int32_t persistentId, const SessionRecoverCallbackFunc& callbackFunc) in RegisterSessionRecoverCallbackFunc() argument 320 TLOGI(WmsLogTag::WMS_RECOVER, "persistentId = %{public}d", persistentId); in RegisterSessionRecoverCallbackFunc() 322 sessionRecoverCallbackFuncMap_[persistentId] = callbackFunc; in RegisterSessionRecoverCallbackFunc() 334 void WindowAdapter::UnregisterSessionRecoverCallbackFunc(int32_t persistentId) in UnregisterSessionRecoverCallbackFunc() argument 337 auto it = sessionRecoverCallbackFuncMap_.find(persistentId); in UnregisterSessionRecoverCallbackFunc() 706 wmsProxy->UpdateSessionTouchOutsideListener(persistentId, haveListener)); in UpdateSessionTouchOutsideListener() 718 WMError WindowAdapter::RaiseWindowToTop(int32_t persistentId) in RaiseWindowToTop() argument 724 return static_cast<WMError>(wmsProxy->RaiseWindowToTop(persistentId)); in RaiseWindowToTop() 757 surfaceNode, property, persistentId, session, systemConfig, token); in CreateAndConnectSpecificSession() 829 WMError WindowAdapter::RequestFocusStatus(int32_t persistentId, bool isFocused) in RequestFocusStatus() argument [all …]
|
/ohos5.0/foundation/window/window_manager/window_scene/interfaces/kits/napi/scene_session_manager/ |
H A D | js_scene_session.cpp | 492 persistentId); in OnWindowDragHotArea() 568 persistentId); in SetLandscapeMultiWindow() 610 persistentId); in OnKeyboardGravityChange() 670 persistentId); in OnLayoutFullScreenChange() 753 persistentId); in OnDefaultDensityEnabled() 813 persistentId); in OnAdjustKeyboardLayout() 839 persistentId); in OnSessionInfoLockedStateChange() 907 persistentId); in OnDefaultAnimationFlagChange() 1441 persistentId); in OnSessionEvent() 1591 persistentId); in OnForceHideChange() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/window_scene/scene/ |
H A D | window_scene_model.cpp | 49 void WindowSceneModel::Create(int32_t persistentId) in Create() argument 51 if (persistentId == -1) { // -1: transform window scene type in Create() 62 auto sceneSession = Rosen::SceneSessionManager::GetInstance().GetSceneSession(persistentId); in Create() 65 "[WMSMain][WMSSystem] session is nullptr, persistentId:%{public}d", persistentId); in Create() 84 …auto windowNode = WindowNode::GetOrCreateWindowNode(V2::WINDOW_SCENE_ETS_TAG, nodeId, persistentId, in Create() 88 "session is nullptr, persistentId:%{public}d", persistentId); in Create()
|
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/src/zidl/ |
H A D | scene_session_manager_stub.cpp | 226 auto persistentId = INVALID_SESSION_ID; in HandleCreateAndConnectSpecificSession() local 234 reply.WriteInt32(persistentId); in HandleCreateAndConnectSpecificSession() 317 auto persistentId = data.ReadInt32(); in HandleDestroyAndDisconnectSpcificSession() local 327 auto persistentId = data.ReadInt32(); in HandleDestroyAndDisconnectSpcificSessionWithDetachCallback() local 338 int32_t persistentId = data.ReadInt32(); in HandleRequestFocusStatus() local 496 int32_t persistentId = data.ReadInt32(); in HandleGetSessionInfo() local 549 int32_t persistentId = data.ReadInt32(); in HandleDumpSessionWithId() local 694 auto persistentId = data.ReadInt32(); in HandleUpdateSessionAvoidAreaListener() local 705 int32_t persistentId = data.ReadInt32(); in HandleGetSessionSnapshot() local 852 auto persistentId = data.ReadInt32(); in HandleUpdateSessionTouchOutsideListener() local [all …]
|
/ohos5.0/foundation/window/window_manager/wm/test/unittest/ |
H A D | window_adapter_test.cpp | 223 int32_t persistentId = -1; variable 225 windowAdapter.GetSnapshotByWindowId(persistentId, pixelMap); 264 uint32_t persistentId = 0; variable 266 windowAdapter.DestroyAndDisconnectSpecificSession(persistentId); 278 uint32_t persistentId = 0; variable 351 int32_t persistentId = 0; variable 353 windowAdapter.AddOrRemoveSecureSession(persistentId, true); 522 int32_t persistentId = 0; variable 538 int32_t persistentId = 0; variable 552 int32_t persistentId = 0; variable [all …]
|