/foundation/ability/ability_runtime/test/unittest/window_focus_changed_listener_test/ |
H A D | window_focus_changed_listener_test.cpp | 68 sptr<Rosen::FocusChangeInfo> focusChangeInfo; in HWTEST_F() local 69 info->OnFocused(focusChangeInfo); in HWTEST_F() 70 EXPECT_EQ(focusChangeInfo, nullptr); in HWTEST_F() 85 sptr<Rosen::FocusChangeInfo> focusChangeInfo; in HWTEST_F() local 87 focusChangeInfo = new Rosen::FocusChangeInfo(); in HWTEST_F() 88 focusChangeInfo->pid_ = pid; in HWTEST_F() 89 info->OnFocused(focusChangeInfo); in HWTEST_F() 90 EXPECT_NE(focusChangeInfo, nullptr); in HWTEST_F() 107 sptr<Rosen::FocusChangeInfo> focusChangeInfo; in HWTEST_F() local 109 focusChangeInfo in HWTEST_F() 127 sptr<Rosen::FocusChangeInfo> focusChangeInfo; HWTEST_F() local 144 sptr<Rosen::FocusChangeInfo> focusChangeInfo; HWTEST_F() local 166 sptr<Rosen::FocusChangeInfo> focusChangeInfo; HWTEST_F() local [all...] |
/foundation/ability/ability_runtime/services/abilitymgr/src/ |
H A D | window_focus_changed_listener.cpp | 24 void WindowFocusChangedListener::OnFocused(const sptr<FocusChangeInfo> &focusChangeInfo) in OnFocused() argument 26 if (!focusChangeInfo) { in OnFocused() 27 TAG_LOGW(AAFwkTag::ABILITYMGR, "OnFocused invalid focusChangeInfo"); in OnFocused() 32 auto task = [inner = owner_, focusChangeInfo] { in OnFocused() 39 owner->HandleFocused(focusChangeInfo); in OnFocused() 46 void WindowFocusChangedListener::OnUnfocused(const sptr<FocusChangeInfo> &focusChangeInfo) in OnUnfocused() argument 48 if (!focusChangeInfo) { in OnUnfocused() 49 TAG_LOGW(AAFwkTag::ABILITYMGR, "OnUnfocused invalid focusChangeInfo"); in OnUnfocused() 54 auto task = [inner = owner_, focusChangeInfo] { in OnUnfocused() 61 owner->HandleUnfocused(focusChangeInfo); in OnUnfocused() [all...] |
/foundation/ability/ability_runtime/services/appmgr/src/ |
H A D | window_focus_changed_listener.cpp | 31 void WindowFocusChangedListener::OnFocused(const sptr<FocusChangeInfo> &focusChangeInfo) in OnFocused() argument 33 if (!focusChangeInfo) { in OnFocused() 34 TAG_LOGW(AAFwkTag::APPMGR, "null focusChangeInfo"); in OnFocused() 39 auto task = [inner = owner_, focusChangeInfo] { in OnFocused() 45 owner->HandleFocused(focusChangeInfo); in OnFocused() 51 void WindowFocusChangedListener::OnUnfocused(const sptr<FocusChangeInfo> &focusChangeInfo) in OnUnfocused() argument 53 if (!focusChangeInfo) { in OnUnfocused() 54 TAG_LOGW(AAFwkTag::APPMGR, "null focusChangeInfo"); in OnUnfocused() 59 auto task = [inner = owner_, focusChangeInfo] { in OnUnfocused() 65 owner->HandleUnfocused(focusChangeInfo); in OnUnfocused() [all...] |
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/framework/sched_controller/ |
H A D | window_state_observer.cpp | 28 void WindowStateObserver::OnFocused(const sptr<FocusChangeInfo>& focusChangeInfo) in OnFocused() argument 30 if (!focusChangeInfo) { in OnFocused() 36 auto windowId = focusChangeInfo->windowId_; in OnFocused() 37 auto token = reinterpret_cast<uintptr_t>(focusChangeInfo->abilityToken_.GetRefPtr()); in OnFocused() 38 auto windowType = focusChangeInfo->windowType_; in OnFocused() 39 auto displayId = focusChangeInfo->displayId_; in OnFocused() 40 auto pid = focusChangeInfo->pid_; in OnFocused() 41 auto uid = focusChangeInfo->uid_; in OnFocused() 49 payload["pid"] = std::to_string(focusChangeInfo->pid_); in OnFocused() 50 payload["uid"] = std::to_string(focusChangeInfo in OnFocused() 58 OnUnfocused(const sptr<FocusChangeInfo>& focusChangeInfo) OnUnfocused() argument [all...] |
/foundation/window/window_manager/utils/include/ |
H A D | focus_change_info.h | 66 auto focusChangeInfo = new FocusChangeInfo(); in Unmarshalling() local 67 bool res = parcel.ReadInt32(focusChangeInfo->windowId_) && parcel.ReadUint64(focusChangeInfo->displayId_) && in Unmarshalling() 68 parcel.ReadInt32(focusChangeInfo->pid_) && parcel.ReadInt32(focusChangeInfo->uid_); in Unmarshalling() 70 delete focusChangeInfo; in Unmarshalling() 73 focusChangeInfo->windowType_ = static_cast<WindowType>(parcel.ReadUint32()); in Unmarshalling() 75 focusChangeInfo->abilityToken_ = (static_cast<MessageParcel*>(&parcel))->ReadRemoteObject(); in Unmarshalling() 77 return focusChangeInfo; in Unmarshalling()
|
/foundation/ability/ability_runtime/services/abilitymgr/include/ |
H A D | window_focus_changed_listener.h | 32 void OnFocused(const sptr<OHOS::Rosen::FocusChangeInfo> &focusChangeInfo) override; 33 void OnUnfocused(const sptr<OHOS::Rosen::FocusChangeInfo> &focusChangeInfo) override;
|
/foundation/ability/ability_runtime/services/appmgr/include/ |
H A D | window_focus_changed_listener.h | 34 void OnFocused(const sptr<OHOS::Rosen::FocusChangeInfo> &focusChangeInfo) override; 35 void OnUnfocused(const sptr<OHOS::Rosen::FocusChangeInfo> &focusChangeInfo) override;
|
/foundation/window/window_manager/wm/src/ |
H A D | window_manager_lite.cpp | 42 void NotifyFocused(const sptr<FocusChangeInfo>& focusChangeInfo); 43 void NotifyUnfocused(const sptr<FocusChangeInfo>& focusChangeInfo); 104 void WindowManagerLite::Impl::NotifyFocused(const sptr<FocusChangeInfo>& focusChangeInfo) in NotifyFocused() argument 106 if (focusChangeInfo == nullptr) { in NotifyFocused() 110 focusChangeInfo->windowId_, focusChangeInfo->displayId_, focusChangeInfo->pid_, focusChangeInfo->uid_, in NotifyFocused() 111 static_cast<uint32_t>(focusChangeInfo->windowType_)); in NotifyFocused() 123 listener->OnFocused(focusChangeInfo); in NotifyFocused() 127 NotifyUnfocused(const sptr<FocusChangeInfo>& focusChangeInfo) NotifyUnfocused() argument 398 UpdateFocusChangeInfo(const sptr<FocusChangeInfo>& focusChangeInfo, bool focused) const UpdateFocusChangeInfo() argument [all...] |
H A D | window_manager_agent_lite.cpp | 24 void WindowManagerAgentLite::UpdateFocusChangeInfo(const sptr<FocusChangeInfo>& focusChangeInfo, bool focused) in UpdateFocusChangeInfo() argument 26 SingletonContainer::Get<WindowManagerLite>().UpdateFocusChangeInfo(focusChangeInfo, focused); in UpdateFocusChangeInfo()
|
H A D | window_manager_agent.cpp | 23 void WindowManagerAgent::UpdateFocusChangeInfo(const sptr<FocusChangeInfo>& focusChangeInfo, bool focused) in UpdateFocusChangeInfo() argument 25 SingletonContainer::Get<WindowManager>().UpdateFocusChangeInfo(focusChangeInfo, focused); in UpdateFocusChangeInfo()
|
H A D | window_manager.cpp | 53 void NotifyFocused(const sptr<FocusChangeInfo>& focusChangeInfo);
55 void NotifyUnfocused(const sptr<FocusChangeInfo>& focusChangeInfo);
128 void WindowManager::Impl::NotifyFocused(const sptr<FocusChangeInfo>& focusChangeInfo)
in NotifyFocused() argument 131 focusChangeInfo->windowId_, focusChangeInfo->displayId_, focusChangeInfo->pid_, focusChangeInfo->uid_,
in NotifyFocused() 132 static_cast<uint32_t>(focusChangeInfo->windowType_));
in NotifyFocused() 139 listener->OnFocused(focusChangeInfo);
in NotifyFocused() 143 void WindowManager::Impl::NotifyUnfocused(const sptr<FocusChangeInfo>& focusChangeInfo)
in NotifyUnfocused() argument 1050 UpdateFocusChangeInfo(const sptr<FocusChangeInfo>& focusChangeInfo, bool focused) const UpdateFocusChangeInfo() argument [all...] |
/foundation/ability/ability_runtime/test/fuzztest/appmgrrest_fuzzer/ |
H A D | appmgrrest_fuzzer.cpp | 98 sptr<Rosen::FocusChangeInfo> focusChangeInfo = nullptr; in DoSomethingInterestingWithMyAPI() local 99 windowFocusChangedListener.OnFocused(focusChangeInfo); in DoSomethingInterestingWithMyAPI() 100 windowFocusChangedListener.OnUnfocused(focusChangeInfo); in DoSomethingInterestingWithMyAPI()
|
/foundation/window/window_manager/test/fuzztest/wms/windowmanager_fuzzer/ |
H A D | windowmanager_fuzzer.cpp | 42 virtual void OnFocused(const sptr<FocusChangeInfo>& focusChangeInfo) override 46 virtual void OnUnfocused(const sptr<FocusChangeInfo>& focusChangeInfo) override 161 sptr<FocusChangeInfo> focusChangeInfo = new FocusChangeInfo(); in DoSomethingInterestingWithMyAPI() local 162 focusChangeInfo->Marshalling(parcel); in DoSomethingInterestingWithMyAPI()
|
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/framework/sched_controller/include/ |
H A D | window_state_observer.h | 57 void OnFocused(const sptr<FocusChangeInfo>& focusChangeInfo) override; 58 void OnUnfocused(const sptr<FocusChangeInfo>& focusChangeInfo) override;
|
/foundation/window/window_manager/wm/test/unittest/ |
H A D | window_manager_lite_test.cpp | 45 void OnFocused(const sptr<FocusChangeInfo>& focusChangeInfo) override {}; 46 void OnUnfocused(const sptr<FocusChangeInfo>& focusChangeInfo) override {}; 286 sptr<FocusChangeInfo> focusChangeInfo = nullptr; in HWTEST_F() local 288 lite.pImpl_->NotifyFocused(focusChangeInfo); in HWTEST_F() 289 lite.pImpl_->NotifyUnfocused(focusChangeInfo); in HWTEST_F() 290 focusChangeInfo = new FocusChangeInfo(); in HWTEST_F() 291 lite.pImpl_->NotifyFocused(focusChangeInfo); in HWTEST_F() 292 lite.pImpl_->NotifyUnfocused(focusChangeInfo); in HWTEST_F() 443 sptr<FocusChangeInfo> focusChangeInfo = nullptr; in HWTEST_F() local 444 WindowManagerLite::GetInstance().UpdateFocusChangeInfo(focusChangeInfo, tru in HWTEST_F() 470 sptr<FocusChangeInfo> focusChangeInfo = nullptr; HWTEST_F() local 548 sptr<FocusChangeInfo> focusChangeInfo = new (std::nothrow) FocusChangeInfo(); HWTEST_F() local 717 sptr<FocusChangeInfo> focusChangeInfo = nullptr; HWTEST_F() local [all...] |
H A D | window_manager_agent_stub_test.cpp | 84 sptr<FocusChangeInfo> focusChangeInfo = new FocusChangeInfo(); in HWTEST_F() local 85 data.WriteParcelable(focusChangeInfo); in HWTEST_F() 86 data.WriteRemoteObject(focusChangeInfo->abilityToken_); in HWTEST_F() 428 sptr<FocusChangeInfo> focusChangeInfo = sptr<FocusChangeInfo>::MakeSptr(); in HWTEST_F() local 429 data.WriteParcelable(focusChangeInfo); in HWTEST_F() 430 data.WriteRemoteObject(focusChangeInfo->abilityToken_); in HWTEST_F()
|
/foundation/window/window_manager/test/systemtest/wms/ |
H A D | window_focus_test.cpp | 37 void OnFocused(const sptr<FocusChangeInfo>& focusChangeInfo) override;
38 void OnUnfocused(const sptr<FocusChangeInfo>& focusChangeInfo) override;
56 void TestFocusChangedListener::OnFocused(const sptr<FocusChangeInfo>& focusChangeInfo)
in OnFocused() argument 58 WLOGI("TestFocusChangedListener Focused ID: %{public}u", focusChangeInfo->windowId_);
in OnFocused() 59 focusedWindow_ = focusChangeInfo->windowId_;
in OnFocused() 62 void TestFocusChangedListener::OnUnfocused(const sptr<FocusChangeInfo>& focusChangeInfo)
in OnUnfocused() argument 64 WLOGI("TestFocusChangedListener Unfocused ID: %{public}u", focusChangeInfo->windowId_);
in OnUnfocused() 65 unfocusedWindow_ = focusChangeInfo->windowId_;
in OnUnfocused()
|
/foundation/window/window_manager/wmserver/src/ |
H A D | window_manager_agent_controller.cpp | 39 void WindowManagerAgentController::UpdateFocusChangeInfo(const sptr<FocusChangeInfo>& focusChangeInfo, bool focused)
in UpdateFocusChangeInfo() argument 42 agent->UpdateFocusChangeInfo(focusChangeInfo, focused);
in UpdateFocusChangeInfo()
|
/foundation/window/window_manager/wmserver/include/ |
H A D | window_manager_agent_controller.h | 34 void UpdateFocusChangeInfo(const sptr<FocusChangeInfo>& focusChangeInfo, bool focused);
|
/foundation/window/window_manager/wm/include/zidl/ |
H A D | window_manager_agent_proxy.h | 30 void UpdateFocusChangeInfo(const sptr<FocusChangeInfo>& focusChangeInfo, bool focused) override;
|
H A D | window_manager_agent_interface.h | 64 virtual void UpdateFocusChangeInfo(const sptr<FocusChangeInfo>& focusChangeInfo, bool focused) = 0;
|
/foundation/window/window_manager/wm/include/ |
H A D | window_manager_agent.h | 29 void UpdateFocusChangeInfo(const sptr<FocusChangeInfo>& focusChangeInfo, bool focused) override;
|
H A D | window_manager_agent_lite.h | 29 void UpdateFocusChangeInfo(const sptr<FocusChangeInfo>& focusChangeInfo, bool focused) override;
|
/foundation/window/window_manager/window_scene/test/unittest/ |
H A D | session_manager_agent_controller_test.cpp | 98 sptr<FocusChangeInfo> focusChangeInfo = new FocusChangeInfo(); in HWTEST_F() local 99 SessionManagerAgentController::GetInstance().UpdateFocusChangeInfo(focusChangeInfo, false); in HWTEST_F()
|
/foundation/window/window_manager/window_scene/session_manager/include/ |
H A D | session_manager_agent_controller.h | 39 void UpdateFocusChangeInfo(const sptr<FocusChangeInfo>& focusChangeInfo, bool focused);
|