• Home
Name Date Size #Lines LOC

..--

AppDemo/window/immersive/22-Oct-2025-228210

dm/22-Oct-2025-19,44714,204

dm_lite/22-Oct-2025-6,4395,082

dmserver/22-Oct-2025-18,85213,852

edidparse/22-Oct-2025-239192

etc/22-Oct-2025-8474

extension/22-Oct-2025-3,3542,410

figures/22-Oct-2025-

interfaces/22-Oct-2025-84,59566,477

previewer/22-Oct-2025-8,4605,878

resources/22-Oct-2025-861734

sa_profile/22-Oct-2025-6562

setresolution/22-Oct-2025-237161

snapshot/22-Oct-2025-1,6981,268

test/22-Oct-2025-42,10430,135

utils/22-Oct-2025-18,56313,530

window_scene/22-Oct-2025-308,725241,258

wm/22-Oct-2025-102,54078,028

wmserver/22-Oct-2025-45,87535,489

.clang-formatD22-Oct-20256.6 KiB160160

LICENSED22-Oct-20259.9 KiB177150

OAT.xmlD22-Oct-20254.4 KiB7116

README.mdD22-Oct-20252.5 KiB6039

README_zh.mdD22-Oct-20254.9 KiB10789

bundle.jsonD22-Oct-202520.1 KiB529528

hisysevent.yamlD22-Oct-20259.1 KiB203135

scene_board_enable.gniD22-Oct-2025692 1714

windowmanager_aafwk.gniD22-Oct-20252.6 KiB6557

README.md

1# Window Manager
2
3## Introduction
4
5The Window Manager subsystem provides basic capabilities of window and display management. It is the basis for UI display. The following figure shows the architecture of the Window Manager subsystem.
6
7**Figure 1** Architecture of the Window Manager subsystem
8
9![WindowManager-subsystem-architecture](./figures/WindowManager_EN.png)
10
11- **Window Manager Client**
12
13    Provides window object abstraction and window management interfaces, and connects to the ability and UI framework.
14
15- **Display Manager Client**
16
17    Provides display information abstraction and display management interfaces.
18
19- **Window Manager Server**
20
21    Provides capabilities such as window layout, Z-order control, window tree structure, window dragging, and window snapshot, and offers the window layout and focus window for multimodal input.
22
23- **Display Manager Server**
24
25    Provides display information, screenshot, screen on/off, and brightness processing control, and processes the mapping between the display and screen.
26
27## Directory Structure
28
29```text
30foundation/window/window_manager/
31├── dm                      # Stores Display Manager Client implementation code
32├── dmserver                # Stores Display Manager Server implementation code
33├── interfaces              # Stores external APIs
34│   ├── innerkits           # Stores native APIs
35│   └── kits                # Stores JS APIs and native APIs
36├── resources               # Stores resource files used by the framework
37├── sa_profile              # Stores system service configuration files
38├── snapshot                # Stores implementation code of the screenshot command line tool
39├── utils                   # Stores tools
40├── wm                      # Stores Window Manager Client implementation code
41├── wmserver                # Stores Window Manager Server implementation code
42```
43
44## Constraints
45
46- Programming language version
47  - C++ 11 or later
48
49## Available APIs
50
51- [Window](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-window.md)
52- [Display](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-display.md)
53
54## Repositories Involved
55
56- [graphic_graphic_2d](https://gitee.com/openharmony/graphic_graphic_2d)
57- [arkui_ace_engine](https://gitee.com/openharmony/arkui_ace_engine)
58- [ability_ability_runtime](https://gitee.com/openharmony/ability_ability_runtime)
59- [multimodalinput_input](https://gitee.com/openharmony/multimodalinput_input)
60

README_zh.md

1# window_manager
2
3-   [简介](#简介)
4-   [目录](#目录)
5-   [约束](#约束)
6-   [接口说明](#接口说明)
7-   [相关仓](#相关仓)
8
9## 简介
10
11**窗口子系统** 提供窗口管理和Display管理的基础能力,是系统图形界面显示所需的基础子系统
12
13其主要的结构如下图所示:
14
15![窗口子系统架构图](./figures/WindowManager.png)
16
17- **Window Manager Client**
18
19    应用进程窗口管理接口层,提供窗口对对象抽象和窗口管理接口,对接原能力和UI框架。
20
21- **Display Manager Client**
22
23    应用进程Display管理接口层,提供Display信息抽象和Display管理接口。
24
25- **Window Manager Server**
26
27    窗口管理服务,提供窗口布局、Z序控制、窗口树结构、窗口拖拽、窗口快照等能力,并提供窗口布局和焦点窗口给多模输入
28
29- **Display Manager Server**
30
31    Display管理服务,提供Display信息、屏幕截图、屏幕亮灭和亮度处理控制,并处理Display与Screen映射关系
32
33## 目录
34```
35foundation/window/window_manager/
36├── dm                              # Dislplay Manager Client实现代码
37│   ├── BUILD.gn
38│   ├── include
39│   ├── src
40│   └── test
41├── dmserver                        # Dislplay Manager Service实现代码
42│   ├── BUILD.gn
43│   ├── include
44│   ├── src
45│   └── test
46├── extension                       # Ability Component 窗口相关代码实现目录
47│   ├── extension_connection        # Ability Component 嵌入部分
48│   └── window_extension            # Ability Component 被嵌入部分
49├── interfaces                      # 对外接口存放目录
50│   ├── innerkits                   # native接口存放目录
51│   └── kits                        # js/napi接口存放目录
52├── previewer                       # IDE轻量模拟器窗口代码实现目录
53│   ├── BUILD.gn
54│   ├── include
55│   ├── mock
56│   └── src
57├── resources                       # 框架使用资源文件存放目录
58│   ├── BUILD.gn
59│   ├── config
60│   ├── dialog_ui
61│   └── media
62├── sa_profile                      # 系统服务配置文件
63│   ├── 4606.xml
64│   ├── 4607.xml
65│   └── BUILD.gn
66├── snapshot                        # 截屏命令行工具实现代码
67│   ├── BUILD.gn
68│   ├── include
69│   ├── src
70│   └── test
71├── test                            # Fuzz测试和系统测试用例存放目录
72│   ├── BUILD.gn
73│   ├── common
74│   ├── demo
75│   ├── fuzztest
76│   └── systemtest
77├── utils                           # 工具类存放目录
78│   ├── BUILD.gn
79│   ├── include
80│   ├── src
81│   └── test
82├── wm                              # Window Manager Client实现代码
83│   ├── BUILD.gn
84│   ├── include
85│   ├── src
86│   └── test
87└── wmserver                        # Window Manager Service实现代码
88    ├── BUILD.gn
89    ├── include
90    ├── src
91    └── test
92```
93
94## 约束
95- 语言版本
96    - C++11或以上
97
98## 接口说明
99
100- [Window](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-arkui/js-apis-window.md)
101- [Display](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-arkui/js-apis-display.md)
102
103## 相关仓
104- [graphic_graphic_2d](https://gitee.com/openharmony/graphic_graphic_2d)
105- [arkui_ace_engine](https://gitee.com/openharmony/arkui_ace_engine)
106- [ability_ability_runtime](https://gitee.com/openharmony/ability_ability_runtime)
107- [multimodalinput_input](https://gitee.com/openharmony/multimodalinput_input)