| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
多模输入IDL化 Signed-off-by: 15349246236 <longchao17@h-partners.com> | 1 年前 | |
Signed-off-by:xueyuanzhao<zhaoxueyuan@huawei.com> Change-Id: Ifc2886d5db9782919b33fd1b8b708dc1fd7f3e2d Signed-off-by: xueyuanzhao <zhaoxueyuan@huawei.com> | 3 个月前 | |
Specification Modifications Signed-off-by: wang_gang <wanggang323@huawei.com> Change-Id: Iaa1d6118da28ff663ecc72a67c2fe208dacaabfe | 2 年前 | |
feat: add inputDevice.bindToDisplay API for binding input devices to displays Add the bindToDisplay API that allows system applications to bind external input devices (USB/Bluetooth) to specific displays. The bound device's events (key and pointer) are routed to the target display. Also improve error codes for SetDisplayBind to return specific codes for display-not-found, device-not-found, and unsupported-device scenarios. The displayId parameter uses int (i32) to match the underlying IPC type. Event dispatch binding is applied via a common ApplyBoundDisplayId function called at each device entry point (mouse/touchpad/joystick/keyboard) before displayId is used for business logic, associating events with the display group of the bound display. Co-Authored-By: Agent 🤖 AI[14%] 🔧 Human Fixed[0%] 🧑 Human[86%] 👌 AI Adopted[100%] Change-Id: I65239653d5a4611fd949587f60b58d3e48f13cc7 Signed-off-by: xueyuanzhao <zhaoxueyuan@huawei.com> Signed-off-by: zhaoxueyuan <zhaoxueyuan@huawei.com> | 1 天前 | |
多模输入IDL化 Signed-off-by: 15349246236 <longchao17@h-partners.com> | 1 年前 | |
fix: allow injection under lockscreen only into marked windows Previously NativeInjectCheck rejected all native injections when the screen was locked, before the CONTROL_DEVICE permission check. This blocked system-permission apps (e.g. remote control) from injecting on lockscreen. Rework the policy so system-permission injection is permitted to enter the dispatch pipeline, but is dropped unless it hits a window marked FLAG_INJECTABLE_UNDER_LOCK. - Add FLAG_INJECTABLE_UNDER_LOCK (WindowInputPolicy, bit 12), the flag agreed with the lockscreen side for windows allowed to receive injected events while locked. - Add EVENT_FLAG_INJECT_UNDER_LOCK (InputEvent, 0x00800000) as an internal bridge tagged on the OnInject* entrypoints while the screen is locked. - Rework NativeInjectCheck: move the CONTROL_DEVICE check ahead of the lockscreen gate; non-system-permission injection is still rejected on lockscreen. - Drop injected pointer/touch/key events in the dispatch path (HandlePointerEvent/HandleTouchEvent/UpdateKeyEventHandlerChain) after target selection unless the target window is marked FLAG_INJECTABLE_UNDER_LOCK. Local injection and real-device events are untouched. - Add IsWindowInjectableUnderLock helper and a basic unit test. Co-Authored-By: Agent Signed-off-by: athends <huwanyong1@huawei.com> | 28 天前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 年前 | ||
| 3 个月前 | ||
| 2 年前 | ||
| 1 天前 | ||
| 1 年前 | ||
| 28 天前 |