Lines Matching refs:Pointer
1 # Pointer Capture in InputFlinger
5 …Pointer Capture](https://developer.android.com/training/gestures/movement#pointer-capture) is a fe…
7 - The position of the mouse cursor is fixed to its location before Pointer Capture was enabled.
14 …InputWindow`s can only gain Pointer Capture if they have window focus. If a window with Pointer Ca…
16 ## Pointer Capture pipeline in InputFlinger
18 …le for controlling the state of Pointer Capture. Since the feature requires changes to how events …
20 We use a sequence number to synchronize different requests to enable Pointer Capture between InputR…
22 ### Enabling Pointer Capture
24 There are four key steps that take place when Pointer Capture is enabled:
26 1. Requests to enable Pointer Capture are forwarded from `InputManagerService` to `InputDispatcher`.
27 2. If the window that makes the request has focus, `InputDispatcher` enables the Pointer Capture st…
29 4. `InputDispatcher` then notifies the `InputWindow` that Pointer Capture has been enabled by sendi…
31 ### Disabling Pointer Capture
33 Pointer Capture can be disabled in two ways: by a request through `InputManagerService`, and as a r…
35 When Pointer Capture is disabled by a request from the application, it follows the same pipeline as…
37 #### Window loses Pointer Capture when it loses focus
39 When an `InputWindow` with Pointer Capture loses focus, Pointer Capture is disabled immediately. Th…
41 ## Pointer Capture in `InputDispatcher`
43 `InputDispatcher` tracks two pieces of state information regarding Pointer Capture:
45 …equence number of the current Pointer Capture request. This request is enabled iff the focused win…
46 … Pointer Capture. This is only updated during the dispatch cycle. If it is not `nullptr`, it signi…