Commit Graph

15779 Commits

Author SHA1 Message Date
Ana Krulec
dd34a21bb4 Merge "Plumbing through GPU context priority" 2020-12-16 19:28:03 +00:00
Prabir Pradhan
a90ec162c9 Merge "SyncPointerCapture (6/n): Move Pointer Capture to InputDispatcher" 2020-12-16 18:37:01 +00:00
Adrian Roos
4f8b633dda Merge "IME: Add IME owners to View(RootImpl)" am: aa8d926fbb am: f98a40b6f3 am: 7304f79c51
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1531631

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id4873ce6ba1a9e1c0f4daebf266707b0f0c0c5ff
2020-12-16 17:54:03 +00:00
Nikita Dubrovsky
9d3615f71d Merge "Hide ContentInfo.partition from the public API" 2020-12-16 17:41:41 +00:00
Adrian Roos
7304f79c51 Merge "IME: Add IME owners to View(RootImpl)" am: aa8d926fbb am: f98a40b6f3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1531631

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1185e6d0268f44c40758fbbd1cb15e0bbe9c904c
2020-12-16 17:23:58 +00:00
TreeHugger Robot
71a741594f Merge "Add InputConnection#performSpellCheck()." 2020-12-16 10:54:27 +00:00
Wilson Wu
0e75d9e4dd Merge "Make IInputMethodManager to oneway (5/N)" 2020-12-16 09:33:42 +00:00
Adrian Roos
7a4c6ec802 IME: Add IME owners to View(RootImpl)
Change-Id: Iedffc821be5eea3159a5c13014d0d30803a46c7d
2020-12-16 09:21:40 +00:00
Ming-Shin Lu
460e9b6bce Merge "Move TaskSnapshot into android.window package" 2020-12-16 05:48:03 +00:00
Qasid Sadiq
88f2c35b55 Merge "Remove recycling magnificationSpec and region." 2020-12-16 00:21:33 +00:00
Ana Krulec
f85b559a7f Plumbing through GPU context priority
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
2020-12-15 16:19:13 -08:00
Prabir Pradhan
eb90ca88b3 SyncPointerCapture (6/n): Move Pointer Capture to InputDispatcher
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
2020-12-15 15:47:10 -08:00
Kohsuke Yatoh
e751e1036a Add InputConnection#performSpellCheck().
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
2020-12-15 22:48:47 +00:00
Nader Jawad
b1ecff76c8 Merge "Added View#setRenderEffect API" 2020-12-15 18:37:04 +00:00
Wale Ogunwale
fe982c0bef Merge "Added support for RootTaskDisplayAreaOrganizer" 2020-12-15 14:15:21 +00:00
TreeHugger Robot
32991a95e0 Merge "Support tappable elements on left/right sides" 2020-12-15 09:31:08 +00:00
Nikita Dubrovsky
c9f90b56df Hide ContentInfo.partition from the public API
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
2020-12-14 22:04:57 -08:00
Yunfan Chen
f60bfae886 Support tappable elements on left/right sides
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
2020-12-15 14:21:07 +09:00
Qasid Ahmad Sadiq
179a6b0683 Remove recycling magnificationSpec and region.
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
2020-12-14 18:35:45 -08:00
TreeHugger Robot
ef691ab2ff Merge "Add attachinfo information to ViewRootImpl dump" 2020-12-14 21:42:09 +00:00
Wale Ogunwale
1bf5680b38 Added support for RootTaskDisplayAreaOrganizer
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
2020-12-14 11:36:44 -08:00
Shawn Lin
31b71a0c7d Merge "Add a new method to notify system to detach the nav bar" 2020-12-14 05:29:33 +00:00
Ming-Shin Lu
b6c4b82ebf Move TaskSnapshot into android.window package
Bug: 166736352
Test: build pass
Test: atest CtsWindowManagerDeviceTests
Change-Id: I7f03524f018ceb64c109fd9d78abeb0ea98b6ea5
2020-12-13 15:28:56 +00:00
Siarhei Vishniakou
ce0f9518a8 Add attachinfo information to ViewRootImpl dump
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
2020-12-12 00:05:50 -10:00
Treehugger Robot
431139218a Merge "Add missing IMF OWNERS" am: 4e3959e571 am: 30497d0911 am: 03ced7e52e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1525813

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5896f244b5d601ceec3da6d25cc2a1b633ff4f55
2020-12-12 02:54:04 +00:00
Treehugger Robot
03ced7e52e Merge "Add missing IMF OWNERS" am: 4e3959e571 am: 30497d0911
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1525813

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3534455778648e6be10ffedbd2d692656d88d318
2020-12-12 02:14:04 +00:00
Nader Jawad
8b5c9c6061 Added View#setRenderEffect API
Added View API to configure RenderEffect on the underlying
RenderNode

Bug: 159712515
Test: Added CtsUiRenderingTestCase
Change-Id: Ic64009ac79927d61c7c1f63306ced3da18fce1da
2020-12-11 17:55:17 -08:00
Treehugger Robot
4e3959e571 Merge "Add missing IMF OWNERS" 2020-12-12 01:20:23 +00:00
TreeHugger Robot
f202279b2d Merge "Do not merge two consecutive text change content capture events if one of them clears the text" 2020-12-12 00:01:35 +00:00
Vishnu Nair
31ec9ecb8d Merge "Revert^3 Flip BLAST for SurfaceView"" 2020-12-11 23:15:26 +00:00
Vishnu Nair
379f1eb654 Revert^3 Flip BLAST for SurfaceView"
This reverts commit 2b5f28a558.

Reason for revert: breaks youtube presubmit tests.

Bug: 175396534
Change-Id: I0f79570bb9fbc4ba21068902285e6263491b506e
2020-12-11 19:47:32 +00:00
Jorim Jaggi
a285aff417 Merge "Provide vsync id for all animation transactions (except PIP)" 2020-12-11 18:28:23 +00:00
Wale Ogunwale
c27f0525b7 Merge "Add more OWNERS coverages" am: 32ff0144bf am: 60f676c7d6 am: 926aa8da2c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519794

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib3dd38c02eb596d1223ecfae9b383931e985fe6d
2020-12-11 17:15:02 +00:00
Wale Ogunwale
926aa8da2c Merge "Add more OWNERS coverages" am: 32ff0144bf am: 60f676c7d6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519794

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I32e5f8566ba916c892898f3f521a5a4309646142
2020-12-11 16:58:45 +00:00
Adrian Roos
bb4c35d0d2 Add missing IMF OWNERS
Test: n/a
Change-Id: Ib1ec672f872a3b1faf65c3583e300f473bac8f0c
2020-12-11 17:02:19 +01:00
Linus Tufvesson
016f891c25 Merge "Allow 3p apps to hide non system overlay windows" 2020-12-11 14:37:32 +00:00
Charles Chen
09f4e85ac2 Add more OWNERS coverages
Test: manual
Bug: 174932174
Change-Id: Ia798bdbce8516a3d675c55028ab637ad7f0695cf
2020-12-11 19:16:38 +08:00
Wilson Wu
d833f0dab4 Make IInputMethodManager to oneway (5/N)
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
2020-12-11 17:56:26 +08:00
TreeHugger Robot
684aa6edc0 Merge "Revert^2 Flip BLAST for SurfaceView" 2020-12-10 23:36:26 +00:00
Chavi Weingarten
98434ff911 Merge changes I91762453,Ic1abc3c0
* changes:
  Clean up code in WSA and WS
  Send transaction when possible for WSA
2020-12-10 21:31:46 +00:00
Evan Rosky
cf45363705 Merge "Some cleanup/rearrangement of shell transitions things" 2020-12-10 20:37:51 +00:00
Evan Rosky
b6569a04c3 Merge "Handle keyguard occlude/unocclude in shell transitions" 2020-12-10 20:02:14 +00:00
Evan Rosky
c5b5c7611f Some cleanup/rearrangement of shell transitions things
Some stuff changed underneath, so we can do a little bit
of housekeeping

Bug: 169035082
Test: nothing changed
Change-Id: I70c668d5760cd6fb9ddfd56720e0b712bd7520fc
2020-12-10 10:36:45 -08:00
Jorim Jaggi
3f7ed056ed Merge "Add Shared timeline jank classification listener (2/2)" 2020-12-10 17:25:47 +00:00
Tiger Huang
a02ab70564 Merge "Bring insets fields back to AttachInfo" 2020-12-10 14:26:30 +00:00
Tiger Huang
cbfa72a4b6 Bring insets fields back to AttachInfo
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
2020-12-10 14:23:32 +00:00
Linus Tufvesson
f57a88f03b Allow 3p apps to hide non system overlay windows
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
2020-12-10 10:47:48 +00:00
arthurhung
2243b67122 Prevent accidentally click on RecyclerView
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
2020-12-10 16:41:27 +08:00
shawnlin
15900d8a35 Add a new method to notify system to detach the nav bar
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
2020-12-10 15:55:15 +08:00
Vishnu Nair
2b5f28a558 Revert^2 Flip BLAST for SurfaceView
Enable buffers to go through BLASTBufferQueue
in SurfaceView.

Bug: 168917217
Test: presubmit tests now include wm cts tests
Test: manual virtual display tests
Test: atest SurfaceViewBufferTests & manual tests
Change-Id: I2096da3d39fe5160629795fe648c5b63ebf4c620
2020-12-10 00:56:54 +00:00