Commit Graph

15802 Commits

Author SHA1 Message Date
Adam Wright
68e25d8da0 Merge "Revert "Prefetching can be interupted by other service requests."" 2020-12-23 13:48:53 +00:00
TreeHugger Robot
a52a79f7dd Merge "Make IInputMethodManager to oneway (7/N)" 2020-12-23 04:40:21 +00:00
TreeHugger Robot
9df82ca4cc Merge "Make IInputMethodManager to oneway (6/N)" 2020-12-23 03:52:54 +00:00
Wilson Wu
4a820ccc41 Make IInputMethodManager to oneway (7/N)
1. Create InputMethodInfoList result callback and apply it to :
   -. getInputMethodList
   -. getEnabledInputMethodList

2. Apply IntResultCallback to getInputMethodWindowVisibleHeight

Bug: 163453493
Test: Manual test with keyboard
Test: atest CtsInputMethodTestCases
Change-Id: Iaa63e01453da4ff0e3f446eac036b3be3180cb73
2020-12-23 10:27:05 +08:00
Adam Wright
c3060eae38 Revert "Prefetching can be interupted by other service requests."
This reverts commit 103dd32a74.

Reason for revert: Looking for culprits for b/176078134

Change-Id: I1e2524411fcc91a2c212d4ee5a0f5b74cac0bda4
2020-12-22 16:06:09 +00:00
Wilson Wu
38fd020616 Make IInputMethodManager to oneway (6/N)
Create InputMethodSubtype and InputMethodSubtypeList
result callback and apply it to :

-. getLastInputMethodSubtype
-. getCurrentInputMethodSubtype
-. getEnabledInputMethodSubtypeList

Bug: 163453493
Test: Manual test with keyboard
Test: atest CtsInputMethodTestCases
Change-Id: I646ef4ae0570aae1812ea267f309441fdec6938d
2020-12-22 10:56:18 +08:00
Taran Singh
dc211bfac3 Prevent Fullscreen IME when app is in portrait.
When an app is running in portrait orientation, regardless of
what orientation display is in, IME shouldn't use fullscreen-mode.

Setting IME_FLAG_NO_FULLSCREEN in EditorInfo makes sure IME doesn't go
fullscreen.

Bug: 157870379
Test: Manually using steps in bug
Change-Id: I5a5e73e1dec776665f28a7e2eb091b555198001b
2020-12-21 05:57:47 -08:00
Kohsuke Yatoh
7bcdf29c37 Merge "Add RESULT_ATTR_DONT_SHOW_UI_FOR_SUGGESTIONS." 2020-12-18 04:15:37 +00:00
Vishnu Nair
81585a2419 Merge "Revert^4 Flip BLAST for SurfaceView" 2020-12-18 01:02:49 +00:00
TreeHugger Robot
6656f0fc5c Merge changes from topic "SensorManager"
* changes:
  Add feature for inputdevice sensor manager.
  Add motion sensor configuration for Sony DS4.
2020-12-17 20:26:17 +00:00
Vishnu Nair
0cbbd54be7 Revert^4 Flip BLAST for SurfaceView
Enable buffers to go through BLASTBufferQueue
in SurfaceView.

Bug: 168917217
Change-Id: If64f5232d5f92d19eff5099b634ee3356087dff8
Test: presubmit tests now include wm cts tests
Test: manual virtual display tests
Test: atest SurfaceViewBufferTests & manual tests
Test: GtsMediaTestCases CtsMediaTestCases CtsCameraTestCases
2020-12-17 18:29:03 +00:00
TreeHugger Robot
25d4114431 Merge "SyncPointerCapture (7/n): Clean up unused code from old Pointer Capture" 2020-12-17 18:06:02 +00:00
Mark Renouf
096eeb8983 Merge "Fixes use of elapsedRealtime vs uptimeMillis" 2020-12-17 17:20:37 +00:00
TreeHugger Robot
25c0d56368 Merge "Compare supported modes in DisplayInfo.equals()" 2020-12-17 14:19:11 +00:00
Vishnu Nair
eac041f608 Merge "Separate blast sync for surface view from blast adapter" 2020-12-17 01:22:59 +00:00
Vishnu Nair
be43f4ebf6 Separate blast sync for surface view from blast adapter
Allow enabling blast adapter for surfaceview without enabling
blast sync.

Bug: 175594838
Test: open bubbles with sv blast adapater enabled
Change-Id: I6bd95651c087d3ae38d5b14ac1011a9b87639223
2020-12-17 01:22:09 +00:00
Kohsuke Yatoh
e5f12abfec Add RESULT_ATTR_DONT_SHOW_UI_FOR_SUGGESTIONS.
Bug: 166304720
Test: atest CtsInputMethodTestCases:SpellCheckerTest
Change-Id: I2f5796d899c79ea1cd6795c16f2011389ae7afea
2020-12-17 00:16:36 +00:00
Chris Ye
1d29b4c087 Add feature for inputdevice sensor manager.
Add support of sensor manager in InputDevice and allow user to obtain
SensorManager object to query supported sensor types and register sensor
event listeners.

Bug: 161634265
Test: atest InputDeviceSensorManagerTest

Change-Id: Ia7a04a0fcf7e026c49a4fb1a9009b132ff84cf7c
2020-12-16 15:41:32 -08:00
Qasid Sadiq
0bae984c08 Merge "Prefetching can be interupted by other service requests." 2020-12-16 20:27:40 +00:00
Prabir Pradhan
a26dd05602 SyncPointerCapture (7/n): Clean up unused code from old Pointer Capture
After the pipeline changes to Pointer Capture, this CL cleans up the
following:
- The old way of notifying windows of Pointer Capture
(IWindow::dispatchPointerCaptureChanged) is removed.
- Tracking Pointer Capture in WindowManagerService is removed.

Bug: 141749603
Test: manual, flash crosshatch, pointer capture works.
Change-Id: I5bbcef42fe8d0d93a64a4a411b1d493fcb800f92
2020-12-16 19:34:07 +00:00
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
Qasid Ahmad Sadiq
103dd32a74 Prefetching can be interupted by other service requests.
Slow prefetch requests would block user interactive requests, creating
noticeable sluggishness and unresponsiveness in accessibility services,
especially on the web.

Let's make it so a user interactive requests stops prefetching.
We can't interupt an API call, but we can stop in between API calls.

On the service side, we have to seprate the prefetch callbacks from the
find callback. And we have to make it asynchrnous. It does dispatch into
the main thread, so the AccessibilityCache can remain single threaded.

When the calls are interupted on the application side, returnPendingFindAccessibilityNodeInfosInPrefetch checks the find requests that are waiting in the queue, to see if they can be addressed by the prefetch results. If they can be, we don't have to call into potentially imperformance application code.

Bug:30969887
Test: Performance measurements, tried it out by hand to see if their are any bugs. CTSAccessibility*

Change-Id: Ia8f1152afa3987f262f37ed4583775acdd32db43
2020-12-16 00:13:55 -08:00
Mark Renouf
f2c137464f Fixes use of elapsedRealtime vs uptimeMillis
This was breaking timeouts in most cases.

Test: atest ScrollCaptureTargetResolverTest
Bug: 148131831
Change-Id: I212039e6d98c77528346405b1003aa295e96f957
2020-12-16 02:09:03 -05: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
Marin Shalamanov
8b65d62d83 Compare supported modes in DisplayInfo.equals()
Bug: 175573189
Test: manual
Change-Id: I6e1720763b2276ba6d237eb4db5154718838db0e
2020-12-14 15:58:22 +00: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