Home
last modified time | relevance | path

Searched refs:subWindow (Results 1 – 25 of 36) sorted by relevance

12

/ohos5.0/foundation/window/window_manager/test/systemtest/wms/
H A Dwindow_subwindow_test.cpp90 if (subWindow == nullptr) {
102 subWindow->Destroy();
118 if (subWindow == nullptr) {
130 subWindow->Destroy();
146 if (subWindow == nullptr) {
158 subWindow->Destroy();
174 if (subWindow == nullptr) {
186 subWindow->Destroy();
219 subWindow->Destroy();
281 subWindow->Destroy();
[all …]
H A Dwindow_systemsubwindow_test.cpp122 if (subWindow == nullptr) {
126 ASSERT_NE(nullptr, subWindow);
182 if (subWindow == nullptr) {
185 ASSERT_NE(nullptr, subWindow);
219 if (subWindow == nullptr) {
286 if (subWindow == nullptr) {
289 ASSERT_EQ(nullptr, subWindow);
319 if (subWindow == nullptr) {
322 ASSERT_NE(nullptr, subWindow);
360 if (subWindow == nullptr) {
[all …]
H A Dwindow_focus_test.cpp159 ASSERT_NE(nullptr, subWindow);
176 ASSERT_EQ(WMError::WM_OK, subWindow->Show());
185 subWindow->Destroy();
208 if (subWindow == nullptr) {
211 ASSERT_NE(nullptr, subWindow);
212 ASSERT_EQ(WMError::WM_OK, subWindow->Show());
216 ASSERT_EQ(WMError::WM_OK, subWindow->Hide());
222 subWindow->Destroy();
577 ASSERT_NE(nullptr, subWindow);
589 ASSERT_EQ(WMError::WM_OK, subWindow->Show(0, false, false));
[all …]
/ohos5.0/foundation/window/window_manager/wm/test/unittest/
H A Dwindow_scene_session_impl_test4.cpp607 ASSERT_NE(nullptr, subWindow);
681 ASSERT_NE(nullptr, subWindow);
756 ASSERT_NE(nullptr, subWindow);
975 ASSERT_NE(nullptr, subWindow);
1010 ASSERT_NE(nullptr, subWindow);
1087 subWindow->UpdateNewSize();
1093 subWindow->UpdateNewSize();
1096 subWindow->UpdateNewSize();
1101 subWindow->UpdateNewSize();
1106 subWindow->UpdateNewSize();
[all …]
H A Dwindow_impl_test3.cpp527 sptr<WindowImpl> subWindow = new WindowImpl(option); variable
642 sptr<WindowImpl> subWindow = new WindowImpl(option); variable
649 subWindow->state_ = WindowState::STATE_SHOWN;
650 subWindow->subWindowState_ = WindowState::STATE_SHOWN;
656 subWindow->state_ = WindowState::STATE_SHOWN;
661 subWindow->state_ = WindowState::STATE_HIDDEN;
685 sptr<WindowImpl> subWindow = new WindowImpl(option); variable
690 subWindow->UpdateWindowStateWhenHide();
693 subWindow->UpdateWindowStateWhenHide();
698 ASSERT_EQ(WMError::WM_OK, subWindow->Destroy());
[all …]
H A Dwindow_session_impl_test4.cpp1367 ASSERT_NE(subWindow, nullptr);
1368 ASSERT_NE(subWindow->property_, nullptr);
1369 subWindow->property_->SetPersistentId(2);
1373 subWindow->hostSession_ = subSession;
1374 subWindow->windowSystemConfig_.uiType_ = "pc";
1408 ASSERT_NE(subWindow, nullptr);
1409 ASSERT_NE(subWindow->property_, nullptr);
1410 subWindow->property_->SetPersistentId(2);
1414 subWindow->hostSession_ = subSession;
1415 subWindow->windowSystemConfig_.uiType_ = "pc";
[all …]
H A Dwindow_scene_session_impl_test3.cpp647 ASSERT_NE(nullptr, subWindow);
648 subWindow->SetWindowName("SetWindowLimits01");
793 ASSERT_NE(nullptr, subWindow);
794 ASSERT_NE(nullptr, subWindow->property_);
795 subWindow->property_->SetPersistentId(1002);
799 subWindow->hostSession_ = subSession;
801 subWindow->SetWindowType(WindowType::WINDOW_TYPE_PIP);
816 subWindow->property_->SetRequestRect(request);
818 ASSERT_EQ(WMError::WM_OK, subWindow->Resize(100, 100));
822 ASSERT_EQ(WMError::WM_OK, subWindow->Resize(100, 100));
[all …]
H A Dwindow_scene_session_impl_test2.cpp1201 sptr<WindowSceneSessionImpl> subWindow = new (std::nothrow) WindowSceneSessionImpl(subOption); variable
1202 ASSERT_NE(nullptr, subWindow);
1203 subWindow->property_->SetParentPersistentId(window->GetWindowId());
1207 ASSERT_EQ(defautDensity, subWindow->GetVirtualPixelRatio(displayInfo));
1242 sptr<WindowSceneSessionImpl> subWindow = new (std::nothrow) WindowSceneSessionImpl(subOption); variable
1243 ASSERT_NE(nullptr, subWindow);
1244 subWindow->property_->SetParentPersistentId(window->GetWindowId());
1248 ASSERT_EQ(density, subWindow->GetVirtualPixelRatio(displayInfo));
H A Dwindow_session_impl_test.cpp1854 sptr<WindowSessionImpl> subWindow = new (std::nothrow) WindowSessionImpl(option); variable
1855 ASSERT_NE(nullptr, subWindow);
1857 subWindow->property_->SetParentPersistentId(1);
1858 subWindow->Hide();
1859 retCode = subWindow->SetRaiseByClickEnabled(true);
1862 subWindow->state_ = WindowState::STATE_SHOWN;
1863 retCode = subWindow->SetRaiseByClickEnabled(true);
1866 subWindow->property_->SetParentPersistentId(2);
1867 subWindow->SetRaiseByClickEnabled(true);
1868 ASSERT_EQ(subWindow->property_->GetRaiseEnabled(), true);
/ohos5.0/base/notification/distributed_notification_service/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/ServiceExtAbility/
H A DNotificationServiceExtAbility.ts92 subWindow: window.Window;
152 this.subWindow = subWindow;
156 await subWindow.moveWindowTo(windowRect?.left, windowRect?.top);
157 await subWindow.resize(windowRect?.width, windowRect?.height);
158 await subWindow.loadContent(path, this.storage);
160 await subWindow.hideNonSystemFloatingWindows(true);
165 await subWindow.showWindow();
262 if (dialog?.subWindow !== undefined) {
264 dialog?.subWindow?.hideNonSystemFloatingWindows(true);
281 if (dialog?.subWindow !== undefined) {
[all …]
/ohos5.0/foundation/window/window_manager/test/demo/
H A Ddemo_system_sub_window.cpp83 sptr<Window> subWindow = Window::Create("Demo_SSW_SubWindow", subWindowOp, nullptr); in main() local
84 subWindow->Show(); in main()
85 std::cout << "sub window id = " << subWindow->GetWindowId() << std::endl; in main()
98 subWindow->Hide(); in main()
101 subWindow->Destroy(); in main()
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/subwindow/
H A Dsubwindow_manager.cpp920 if (!IsSubwindowExist(subWindow)) { in ShowDialog()
922 CHECK_NULL_VOID(subWindow); in ShowDialog()
924 subWindow->InitContainer(); in ShowDialog()
926 AddSubwindow(containerId, subWindow); in ShowDialog()
992 CHECK_NULL_VOID(subWindow); in OpenCustomDialog()
997 if (!IsSubwindowExist(subWindow)) { in OpenCustomDialog()
999 CHECK_NULL_VOID(subWindow); in OpenCustomDialog()
1001 subWindow->InitContainer(); in OpenCustomDialog()
1003 AddSubwindow(containerId, subWindow); in OpenCustomDialog()
1207 CHECK_NULL_RETURN(subWindow, false); in IsFreeMultiWindow()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/wrapper/
H A Dmenu_wrapper_layout_algorithm.cpp40 auto subWindow = SubwindowManager::GetInstance()->GetSubwindow(parentContainerId); in CheckLayoutConstraint() local
41 CHECK_NULL_VOID(subWindow); in CheckLayoutConstraint()
42 auto subwindowRect = subWindow->GetRect(); in CheckLayoutConstraint()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/
H A Djs-apis-arkui-uiExtension.md386 .then((subWindow: window.Window) => {
387 subWindow.setUIContent('pages/Index', (err, data) =>{
391 subWindow?.resize(300, 300, (err, data)=>{
395 subWindow?.moveWindowTo(100, 100, (err, data)=>{
399 subWindow?.showWindow((err, data) => {
551 private subWindow: window.Window | undefined = undefined;
590 .then((subWindow: window.Window) => {
591 this.subWindow = subWindow;
596 this.subWindow?.resize(300, 300, (err, data)=>{
600 this.subWindow?.moveWindowTo(100, 100, (err, data)=>{
[all …]
H A Djs-apis-uiExtensionHost-sys.md360 .then((subWindow: window.Window) => {
361 subWindow.loadContent('pages/Index', (err, data) =>{
365 subWindow?.resize(300, 300, (err, data)=>{
369 subWindow?.moveWindowTo(100, 100, (err, data)=>{
373 subWindow?.showWindow((err, data) => {
605 private subWindow: window.Window | undefined = undefined;
657 .then((subWindow: window.Window) => {
658 this.subWindow = subWindow;
663 this.subWindow?.resize(300, 300, (err, data)=>{
667 this.subWindow?.moveWindowTo(100, 100, (err, data)=>{
[all …]
H A Djs-apis-window-sys.md2601 let subWindow = windowStage.createSubWindow("testSubWindow");
2602 subWindow.then((data) => {
2604 console.error("Failed to create the subWindow. Cause: The data is empty");
2614 …console.error(`Failed to raise the subWindow to target subWindow top. Cause code: ${err.code}, mes…
2617 console.info('Succeeded in raising the subWindow to target subWindow top.');
2677 let subWindow = windowStage.createSubWindow("testSubWindow");
2678 subWindow.then((data) => {
2690 console.info('Succeeded in raising the subWindow to target subWindow top.');
2692 …console.error(`Failed to raise the subWindow to target subWindow top. Cause code: ${err.code}, mes…
2749 let subWindow = windowStage.createSubWindow("testSubWindow");
[all …]
/ohos5.0/docs/zh-cn/application-dev/windowmanager/
H A Dapplication-window-fa.md66 let config: window.Configuration = { name: "subWindow", windowType: window.WindowType.TYPE_APP };
70 console.error('Failed to create the subWindow. Cause: ' + JSON.stringify(err));
73 console.info('Succeeded in creating subWindow. Data: ' + JSON.stringify(data));
78 windowClass = window.findWindow('subWindow');
183 console.error('Failed to get the subWindow. Cause: ' + JSON.stringify(err));
186 console.info('Succeeded in getting subWindow. Data: ' + JSON.stringify(data));
H A Dapplication-window-stage.md292 sub_windowClass.setUIContent("pages/subWindow", (err: BusinessError) => {
356 // subWindow.ets
360 @State message: string = 'Hello subWindow';
/ohos5.0/docs/en/application-dev/reference/apis-arkui/
H A Djs-apis-arkui-uiExtension.md274 .then((subWindow: window.Window) => {
275 subWindow.setUIContent('pages/Index', (err, data) =>{
279 subWindow?.resize(300, 300, (err, data)=>{
283 subWindow?.moveWindowTo(100, 100, (err, data)=>{
287 subWindow?.showWindow((err, data) => {
406 private subWindow: window.Window | undefined = undefined;
437 .then((subWindow: window.Window) => {
438 this.subWindow = subWindow;
443 this.subWindow?.resize(300, 300, (err, data)=>{
447 this.subWindow?.moveWindowTo(100, 100, (err, data)=>{
[all …]
H A Djs-apis-uiExtensionHost-sys.md360 .then((subWindow: window.Window) => {
361 subWindow.loadContent('pages/Index', (err, data) =>{
365 subWindow?.resize(300, 300, (err, data)=>{
369 subWindow?.moveWindowTo(100, 100, (err, data)=>{
373 subWindow?.showWindow((err, data) => {
550 private subWindow: window.Window | undefined = undefined;
597 .then((subWindow: window.Window) => {
598 this.subWindow = subWindow;
603 this.subWindow?.resize(300, 300, (err, data)=>{
607 this.subWindow?.moveWindowTo(100, 100, (err, data)=>{
[all …]
H A Djs-apis-window-sys.md2607 let subWindow = windowStage.createSubWindow("testSubWindow");
2608 subWindow.then((data) => {
2610 console.error("Failed to create the subWindow. Cause: The data is empty");
2620 …console.error(`Failed to raise the subWindow to target subWindow top. Cause code: ${err.code}, mes…
2623 console.info('Succeeded in raising the subWindow to target subWindow top.');
2683 let subWindow = windowStage.createSubWindow("testSubWindow");
2684 subWindow.then((data) => {
2696 console.info('Succeeded in raising the subWindow to target subWindow top.');
2698 …console.error(`Failed to raise the subWindow to target subWindow top. Cause code: ${err.code}, mes…
2755 let subWindow = windowStage.createSubWindow("testSubWindow");
[all …]
/ohos5.0/docs/zh-cn/third-party-cases/
H A Dsubwindow-mainwindow-communication.md97 private subWindow: window.Window
100 this.subWindow = window.findWindow("hiSubWindow")
104 this.subWindow.moveWindowTo(this.windowPosition.x, this.windowPosition.y);
369 private subWindow: window.Window
372 this.subWindow = window.findWindow("hiSubWindow")
376 this.subWindow.moveWindowTo(this.windowPosition.x, this.windowPosition.y);
/ohos5.0/docs/en/application-dev/windowmanager/
H A Dapplication-window-fa.md65 let config: window.Configuration = { name: "subWindow", windowType: window.WindowType.TYPE_APP };
69 console.error('Failed to create the subWindow. Cause: ' + JSON.stringify(err));
72 console.info('Succeeded in creating subWindow. Data: ' + JSON.stringify(data));
77 windowClass = window.findWindow('subWindow');
182 console.error('Failed to get the subWindow. Cause: ' + JSON.stringify(err));
185 console.info('Succeeded in getting subWindow. Data: ' + JSON.stringify(data));
/ohos5.0/base/notification/distributed_notification_service/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/pages/
H A DpcNotificationDialog.ets309 this.dialog?.subWindow?.moveWindowTo(windowRect?.left, windowRect?.top);
310 this.dialog?.subWindow?.resize(windowRect?.width, windowRect?.height);
326 await this.dialog?.subWindow?.destroyWindow();
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/dialog/
H A Ddialog_layout_algorithm.cpp568 auto subWindow = SubwindowManager::GetInstance()->GetSubwindow(subWindowId_); in Layout() local
569 CHECK_NULL_VOID(subWindow); in Layout()
570 auto subOverlayManager = subWindow->GetOverlayManager(); in Layout()

12