Commit Graph

14769 Commits

Author SHA1 Message Date
Evan Rosky
66b56829f0 Merge "Add a window dump for uiautomator" into rvc-dev am: bddd280556 am: d87824f3dc am: a55b5a7faf am: 6c0f286b4f
Change-Id: Ie585ea14c2315e161585897b5e4b36a891f24fbb
2020-05-15 20:54:58 +00:00
Evan Rosky
a55b5a7faf Merge "Add a window dump for uiautomator" into rvc-dev am: bddd280556 am: d87824f3dc
Change-Id: Icaa279b1c8107d6d0ffc1e62e7a0adeefcba269f
2020-05-15 18:30:01 +00:00
Evan Rosky
bddd280556 Merge "Add a window dump for uiautomator" into rvc-dev 2020-05-15 18:15:36 +00:00
TreeHugger Robot
4d6b7bdb91 Merge "Add tracing for Inset animations" into rvc-dev am: 5bf3f80f20 am: cddbb679a1 am: 898cc0b872 am: 579990057c
Change-Id: Ia016ff6c7b4be6b05e9500edf1d8d41b8dcd2046
2020-05-15 16:14:54 +00:00
Tiger Huang
b6490e62cd Merge "Do not dispatch system UI visibility during traversal" into rvc-dev am: 8fd8a538b8 am: 4f6a9e78cc am: 7c8ee3bc1b am: ecff7d34c3
Change-Id: I134aa60b20a1f6babd6e2ed1359d7a92eb56649f
2020-05-15 16:09:58 +00:00
Matt Casey
b5a44bf203 Merge "Allow WindowManager.TYPE_SCREENSHOT to be focusable" into rvc-dev am: d8aa60aa0d am: a75bd55a9b am: 3f5c9ac250 am: 19fe26ce8f
Change-Id: I8186e0f4ef448d21f9a7ac891ab240148c79236a
2020-05-15 16:08:22 +00:00
TreeHugger Robot
b612b67432 Merge "Revert "Finish input when the screen state is off"" into rvc-dev am: d99569f88a am: 4cec8e6ac0 am: a5aaa20360 am: 9e61e83605
Change-Id: I460c5e0c7f88988a374668f9782ad86c3b20f4f6
2020-05-15 16:06:59 +00:00
TreeHugger Robot
9b8510327e Merge "Pass window type to the InputWindowHandle of embedded window" into rvc-dev am: 0e58daf022 am: 64015d9f80 am: 2c6f9b7d6b am: 28013344c8
Change-Id: I1cd208e92579df9831a5aed083ce9bcd5f3fd57a
2020-05-15 16:05:16 +00:00
TreeHugger Robot
579990057c Merge "Add tracing for Inset animations" into rvc-dev am: 5bf3f80f20 am: cddbb679a1 am: 898cc0b872
Change-Id: I3988121b49799be3575a07003de5f39ab717f29d
2020-05-15 16:03:35 +00:00
TreeHugger Robot
ec463ead03 Merge "Remove divider view when exiting splitscreen" into rvc-dev am: 3a6ec37a71 am: 9da5177ac9 am: 1453c98f03 am: 79f1e50e2a
Change-Id: Ic6d26f278251a0eec16d026a264f9175fcd74836
2020-05-15 16:02:36 +00:00
TreeHugger Robot
e3aebe3709 Merge "Add tracing for Inset animations" into rvc-dev am: 5bf3f80f20 am: cddbb679a1
Change-Id: I2151bd4345ab53f18bb428de56b63c55311e3739
2020-05-15 15:53:58 +00:00
Tiger Huang
ecff7d34c3 Merge "Do not dispatch system UI visibility during traversal" into rvc-dev am: 8fd8a538b8 am: 4f6a9e78cc am: 7c8ee3bc1b
Change-Id: I5b88611240f1a6519226995586f1e8b4b280f9f0
2020-05-15 15:50:52 +00:00
Tiger Huang
b8db7b8768 Merge "Do not dispatch system UI visibility during traversal" into rvc-dev am: 8fd8a538b8 am: 4f6a9e78cc
Change-Id: Ib764bb8b6b843a98933c929dc81eda43977421ab
2020-05-15 15:50:11 +00:00
Matt Casey
19fe26ce8f Merge "Allow WindowManager.TYPE_SCREENSHOT to be focusable" into rvc-dev am: d8aa60aa0d am: a75bd55a9b am: 3f5c9ac250
Change-Id: I62349949eabcd6abb7bcbce1bcf82ecb7cf52079
2020-05-15 15:49:01 +00:00
Matt Casey
f59e2fda56 Merge "Allow WindowManager.TYPE_SCREENSHOT to be focusable" into rvc-dev am: d8aa60aa0d am: a75bd55a9b
Change-Id: Ib3006982e11ea0fca5d2330ccac95b4f2e75016e
2020-05-15 15:48:51 +00:00
TreeHugger Robot
9e61e83605 Merge "Revert "Finish input when the screen state is off"" into rvc-dev am: d99569f88a am: 4cec8e6ac0 am: a5aaa20360
Change-Id: I630ee1f24017ad1e4d17808be7c47beb723b0b17
2020-05-15 15:47:34 +00:00
TreeHugger Robot
ab73335768 Merge "Revert "Finish input when the screen state is off"" into rvc-dev am: d99569f88a am: 4cec8e6ac0
Change-Id: Ibadf82d7af568b31381b034d8445187ef8dc629d
2020-05-15 15:47:29 +00:00
TreeHugger Robot
28013344c8 Merge "Pass window type to the InputWindowHandle of embedded window" into rvc-dev am: 0e58daf022 am: 64015d9f80 am: 2c6f9b7d6b
Change-Id: I61f88b963ebd405f1e60dd9536a851519e3bf4b0
2020-05-15 15:45:52 +00:00
TreeHugger Robot
62e87de1e0 Merge "Pass window type to the InputWindowHandle of embedded window" into rvc-dev am: 0e58daf022 am: 64015d9f80
Change-Id: I053f742e310a02692cc8e6879f940a9c61ac34bb
2020-05-15 15:45:38 +00:00
TreeHugger Robot
79f1e50e2a Merge "Remove divider view when exiting splitscreen" into rvc-dev am: 3a6ec37a71 am: 9da5177ac9 am: 1453c98f03
Change-Id: I1c99b595c1025c986de7827b45e9d028173313a0
2020-05-15 15:44:11 +00:00
TreeHugger Robot
ead91cc145 Merge "Remove divider view when exiting splitscreen" into rvc-dev am: 3a6ec37a71 am: 9da5177ac9
Change-Id: I9e614f0fe63f6cf7da52e9ad762e45e717a2a4d6
2020-05-15 15:43:34 +00:00
TreeHugger Robot
5bf3f80f20 Merge "Add tracing for Inset animations" into rvc-dev 2020-05-14 22:16:23 +00:00
Tiger Huang
8fd8a538b8 Merge "Do not dispatch system UI visibility during traversal" into rvc-dev 2020-05-14 17:25:56 +00:00
Matt Casey
d8aa60aa0d Merge "Allow WindowManager.TYPE_SCREENSHOT to be focusable" into rvc-dev 2020-05-14 16:37:58 +00:00
Jorim Jaggi
cb28ae6d17 Add tracing for Inset animations
So we can understand better what's going on.

Bug: 156367695
Test: Systrace
Change-Id: Ic9dc2c963f70a3bb787121d33476b84bd3dc5798
2020-05-14 17:46:32 +02:00
TreeHugger Robot
d99569f88a Merge "Revert "Finish input when the screen state is off"" into rvc-dev 2020-05-14 14:21:39 +00:00
TreeHugger Robot
0e58daf022 Merge "Pass window type to the InputWindowHandle of embedded window" into rvc-dev 2020-05-14 08:32:00 +00:00
arthurhung
d3f17d7df7 Pass window type to the InputWindowHandle of embedded window
A windowless SurfaceControl could grant input via
IWindowSession.grantInputChannel, but other window may receive the
obscured events because of the type value of input window is always 0.

The obscured or partially obscured flag indicates that the window
received this motion event is wholly or partially obscured by another
visible window above it.

We have to filter out the trusted overlap so the motion event could
properly dispatch to the view if it is a security sensitive application.

Bug: 156063505
Test: enter split window mode and check the motion event
Change-Id: I10f63ea131a70ee8cc7d5c4b3e5ca4e5f06fdbad
2020-05-14 11:59:23 +08:00
TreeHugger Robot
3a6ec37a71 Merge "Remove divider view when exiting splitscreen" into rvc-dev 2020-05-14 02:25:24 +00:00
Ming-Shin Lu
2c6e80be12 Revert "Finish input when the screen state is off"
This reverts commit 0df8812486.

The original CL is trying to reduce the dependency of PownerManager to
finish input when screen off by using display state.

However, it doesn't fully fix the original Bug 26851566 since we only
finish input connection but didn't callback onFinishInput callback for
IME client.

Also, for some scenarios, the window / view focus may not change
during screen turns off / on:
  - Focusing timing when disable keyguard, then quickly screen off / on.
  - Using P-sensor to turning screen off / on.

When the above scenario happens, makes input connection cannot re-start
and soft-keyboard can't be shown.
(The recovery is manually focus on next window or activity.)

As the above reason, we need to re-consider the lifecycle of
input connection, window / view focus when not only screen state but also
device inactive state when always-on-display.

Fix: 156045961
Fix: 154605805
Bug: 26851566
Bug: 156215187
Test: atest CtsInputMethodTestCases
Change-Id: If06daf71160aa44a4254ac125561974ecbdef4f2
2020-05-14 08:29:18 +08:00
TreeHugger Robot
8c510436bb Merge "SurfaceView: positionLost locking fix" into rvc-dev am: bff3812e82 am: f19bd92daf am: 32cdfa7563 am: 6a9370151a
Change-Id: I8348ac9835bded022092cd098ec824ba0d8dddba
2020-05-13 23:12:59 +00:00
TreeHugger Robot
6a9370151a Merge "SurfaceView: positionLost locking fix" into rvc-dev am: bff3812e82 am: f19bd92daf am: 32cdfa7563
Change-Id: I286e82ba4fed89034d5c503cc972b7b93d8dd0a8
2020-05-13 22:50:11 +00:00
TreeHugger Robot
307822164f Merge "SurfaceView: positionLost locking fix" into rvc-dev am: bff3812e82
Change-Id: Ib8d633718cbbef9b8bf49e8afd4c77e57e8ebf9c
2020-05-13 22:15:34 +00:00
TreeHugger Robot
bff3812e82 Merge "SurfaceView: positionLost locking fix" into rvc-dev 2020-05-13 22:04:58 +00:00
TreeHugger Robot
d1e91dda51 Merge "Fix inline suggestion ref counting to not over-count" into rvc-dev am: 730fb0d97d am: 7c30f15869 am: 3890fc3bef am: 4f3e3795f0
Change-Id: Id9a1526e777cf0d0c4a0ee00db367cfac331b23a
2020-05-13 21:52:38 +00:00
TreeHugger Robot
3890fc3bef Merge "Fix inline suggestion ref counting to not over-count" into rvc-dev am: 730fb0d97d am: 7c30f15869
Change-Id: I38518dc99f8315ab43b2d03f0a000d6c3376b2e0
2020-05-13 21:12:00 +00:00
TreeHugger Robot
33e9151041 Merge "Fix inline suggestion ref counting to not over-count" into rvc-dev am: 730fb0d97d
Change-Id: Ie26fb4be5a80161540f0a0010067c8ee52d682dd
2020-05-13 21:04:09 +00:00
TreeHugger Robot
730fb0d97d Merge "Fix inline suggestion ref counting to not over-count" into rvc-dev 2020-05-13 20:58:15 +00:00
Feng Cao
723ba2e82b Fix inline suggestion ref counting to not over-count
* Imagine this event sequence:
  1) the IME tries to re-attach an inline suggestion view to the
  window (e.g. because IME layout changes), it calls into the system
  server which causes recreating the backing view because it was
  destroyed earlier due to 0 ref-count (this happens under the hood
  without IME knowing it happens, so the view is still attached to
  the window).
  2) the IME receives a new inline suggestion pointing to the same
  backing view (perhaps due to filtering kicks in).
  3) the recreation from step 1 finishes, but now it will callback
  to the new inline suggestion, therefore the old view doesn't receive
  the new SurfacePackage. See RemoteInlineSuggestionUi for why.
  4) the view in step 1 is detached from window, since it never
  receives a SurfacePackage from the remote view, its detach shouldn't
  cause a reference count down on the remote view.

Test: atest android.autofillservice.cts.inline (sanity test)
Bug: 154683107

Change-Id: I2e6814ef3889de603f6e170efcb795b69ec9febe
2020-05-13 11:55:58 -07:00
Robert Carr
ebaaca1a46 SurfaceView: positionLost locking fix
positionLost can be called from CanvasContext::destroyHardwareResources
which runs asynchronously to the UI thread. This means we could be
simultaneously executing releaseSurfaces on the UI thread. We need
to expand the scope of mSurfaceControl lock in positionLost. While
we are here we add a block comment explaining the previously
undocumented locking strategy.

Bug: 156264048
Test: Existing tests pass
Change-Id: I9cdb6a0f7aeffd878f1755f240e8896f0fb8bf01
2020-05-13 18:29:59 +00:00
Matt Casey
834c0f8ea4 Allow WindowManager.TYPE_SCREENSHOT to be focusable
Pre-R, the screenshot window was used just for screenshot animation. In
R, the window is also hosting tappable screenshot actions, which require
focus.

This change modifies TYPE_SCREENSHOT to no longer force it to be
unfocusable.

Test: Verify that screenshot window UI elements can work with talkback
    and accessibility scanner.
Bug: 153517161
Bug: 152583784
Change-Id: If81d9f94dff801c3483a2d834e692b4c77d80d7b
2020-05-13 14:01:41 -04:00
TreeHugger Robot
bce80d78fa Merge "Increase content capture buffer size to 500 Anecdotally this should cover typical messaging first screens whereas 100 events seems to be small." into rvc-dev am: 8ae0cfe36b am: b22a5298d7 am: 561eadaeca am: 513faa3609
Change-Id: I6af17cc24bcd3a0258e699d4e69bb5b2ce0e9afc
2020-05-13 02:46:47 +00:00
TreeHugger Robot
b22a5298d7 Merge "Increase content capture buffer size to 500 Anecdotally this should cover typical messaging first screens whereas 100 events seems to be small." into rvc-dev am: 8ae0cfe36b
Change-Id: Iddd15ad16e66e04674dd9a41a0c5236571ad18b9
2020-05-13 02:03:03 +00:00
TreeHugger Robot
8ae0cfe36b Merge "Increase content capture buffer size to 500 Anecdotally this should cover typical messaging first screens whereas 100 events seems to be small." into rvc-dev 2020-05-13 01:57:06 +00:00
Treehugger Robot
208b8afff0 Merge "Fix 'associated' javadoc typos" am: 3fd2c5c435 am: 2e789841a4 am: 67efc10f9d am: 881fcd8caa am: f7ec34e017
Change-Id: Ic06f8e3251b7916a66725c1b6fe1da311fe5e20d
2020-05-13 00:00:32 +00:00
Treehugger Robot
67efc10f9d Merge "Fix 'associated' javadoc typos" am: 3fd2c5c435 am: 2e789841a4
Change-Id: Iddb5675dced31eacb2cbffb76377eb6e3097655f
2020-05-12 23:07:26 +00:00
Julian Odell
82c92bcf3c Increase content capture buffer size to 500
Anecdotally this should cover typical messaging first screens
     whereas 100 events seems to be small.

Test: make -j
Test: Manually start WhatsApp - check for lost events
Bug: 154777879
Change-Id: I3090584ec03714656948045189e0e0c068740c82
2020-05-12 23:02:55 +00:00
Treehugger Robot
2e789841a4 Merge "Fix 'associated' javadoc typos" am: 3fd2c5c435
Change-Id: I2d94f1a8a7a2a9d811c122123012273900857c47
2020-05-12 22:52:35 +00:00
TreeHugger Robot
51822d01df Merge "Add OWNERS for display, haptics, input and power" into rvc-dev am: f30c225fcb am: 1e3fe956cf am: 689486059f am: 4623e80530
Change-Id: I80f338fc23ef80f544bc33d169f262346ab17786
2020-05-12 22:31:13 +00:00
TreeHugger Robot
f30c225fcb Merge "Add OWNERS for display, haptics, input and power" into rvc-dev 2020-05-12 20:17:39 +00:00