If the SF's RE priority is set to REALTIME, then SysUI set's it's
ThreadedRendererCompat priority to EGL_CONTEXT_PRIORITY_HIGH_IMG.
Test: Compile and observe logcat.
Bug: 168740533
Change-Id: Ib2fdac90c22b357d8b9f5c80c03a3d9c4e1a515d
This CL relays requests to enable or disable Pointer Capture in
InputManagerService to InputDispatcher.
Windows now request Pointer Capture using their InputChannel token
instead of their IWindow tokens.
Bug: 141749603
Test: manual: flash crosshatch, test pointer capture.
Change-Id: Ic6fc01eae0068dfbba496051d988a71bcabcd0b3
IME can use this method to redo spell checking after it has learned a
new user dictionary word.
Bug: 166304720
Test: atest CtsInputMethodTestCases:SpellCheckerTest
Change-Id: I956cd46f25bb77b7e1a6a3e1478c0d7efa1a056a
Per API Council feedback, this method will not be exposed in the public
API. App developers will instead use the support library for this.
Rather than removing the method completely, it is marked with @hide so
that it can still be used in system code (e.g. RemoteInputView).
Bug: 174125311
Test: atest CtsViewTestCases:ContentInfoTest
Change-Id: I83b55bea38c0d2b3dc60a16658616e46ebe4cb48
This is to let window provide tappable elements on left or right side.
This is useful when there's a task bar. The task bar needs to provide
tappable elements insets on the side where the bar is, and it may not be
the top or bottom side.
Bug: 172289399
Test: atest InsetsStateTest
Test: go/wm-smoke
Change-Id: I5bc8d010f4ad212acb779265aff1d2622f5e2da4
It doesn't seem like this would add a performance bump, but it does make
code quite ab it more complex (especially the prefetching CL).
Let's remove it to avoid bugs.
Test: CTSAccessibility* Tried it by hand.
Bug: 30969887
Change-Id: Ibc2fb856dbb1a0f7786882d4b89d71bbcb7e5af2
Allows shell to have information on the parent container for tasks so it
can do things like attach other surfaces to it. E.g. split-screen
divider.
Also, have DisplayAreaOrganizer ctor take an executor so incoming calls
from the binder threads can be posted to the main thread.
Bug: 175416931
Test: They pass!
Change-Id: Ia3d0b978cf43badd8c495b75708aa027fe9a2aa1
Currently, we are dumping information on ViewRootImpl, but it doesn't
include some of the critical pieces. Add attachinfo information. Also,
attach a dump of a variable that determines whether the input events
will be dropped.
Example of newly added piece of dumpsys:
mPausedForTransition=false
...
mAttachInfo= AttachInfo:
mHasWindowFocus=true
mWindowVisibility=0
mInTouchMode=true
mUnbufferedDispatchRequested=false
Bug: 173675649
Test: adb shell dumpsys activity -v all
Change-Id: I7b8801436f74a123bf96735de30b238146413545
Added View API to configure RenderEffect on the underlying
RenderNode
Bug: 159712515
Test: Added CtsUiRenderingTestCase
Change-Id: Ic64009ac79927d61c7c1f63306ced3da18fce1da
Create Boolean result callback and apply it to :
-. showSoftInput
-. hideSoftInput
-. isInputMethodPickerShownForTest
-. isImeTraceEnabled
Bug: 163453493
Test: Manual test with keyboard
Test: atest CtsInputMethodTestCases
Change-Id: I1547b98b2aacf764e33aadc9ab784f2013f58f2f
Some stuff changed underneath, so we can do a little bit
of housekeeping
Bug: 169035082
Test: nothing changed
Change-Id: I70c668d5760cd6fb9ddfd56720e0b712bd7520fc
Some apps still use these fields. Remove them can make the app's
behavior unexpected. Although they shouldn't use these hidden APIs, it
won't cause any trouble if we bring the fields back. The user experiance
can keep the same.
NoNonSdkCheck: Revert Non-SDK API change
Fix: 174657478
Test: Steps in the bug.
Change-Id: I8da15ba3f66d20b4ac599db32539acb76d279978
SAW permission is added to the shell to allow it to create
TYPE_APPLICATION_OVERLAY windows during testing.
Test: atest CtsWindowManagerDeviceTestCases:HideOverlayWindowsTest
Bug: 159616727
Change-Id: I503cd8da24ff4d2b928f930ac61090e6782c1546
Currently, inputflinger would send an ACTION_POINTER_UP event with
AKEY_EVENT_FLAG_CANCELED when we have at least 2 pointers down and
one becomes the accidental touch.
In ViewGroup, if we have FLAG_SPLIT_MOTION_EVENTS, it may split a
multi touch event into some single touch events to the target childs,
so we should also check the cancel flag in order to prevent it trigger
the accidental click on the child view.
Bug: 161655782
Test: enable twoshay, test accidental touch on RecyclerView
Change-Id: Iba864361ca3361e4a720dbe0eb0b39d42a6dc5b2
For the attaching the nav bar to the app during quick switch, we
reparent the leash of the nav bar to the app the user swipes from and
restore it back when the quick switch gesture is finished.
There is a callback IRecentsAnimationController.finish() which seems to
be a good timing to restore the nav bar. However, it doesn't work well
in the live tile mode.
In the live tile mode, the overview won't call
IRecentsAnimationController.finish() until a new task is started and
this is why we need to add this API.
Bug: 139273001
Test: make
Change-Id: Iabea2fb222a2dacd57207b74d1778f93237268ea