Commit Graph

17678 Commits

Author SHA1 Message Date
Leon Scroggins
f96aa9e82b Merge changes from topics "GL_screen_decor", "VK_screen_decor"
* changes:
  Plumb support for rendering A8 in Vulkan
  Plumb through A8 for GL/EGL
  Add COLOR_MODE_A8/ColorMode::A8
  Treat AHARDWAREBUFFER_FORMAT_R8_UNORM as kAlpha_8_SkAlphaType
2021-12-10 13:49:39 +00:00
Joanne Chung
4e43e66a9b Merge "Fix NPE if no AutofillId when traversing the view tree." 2021-12-10 09:33:07 +00:00
Chavi Weingarten
157d6623d3 Merge "Fix some blast sync issues in VRI" 2021-12-09 18:29:39 +00:00
Leon Scroggins III
cbdbb66d8f Add COLOR_MODE_A8/ColorMode::A8
Currently unused. This will allow rending into A8 with HWUI

Bug: 193170859
Test: TODO
Change-Id: Ic1e1cb94dfa3dc08cbb174f0a38345d724570372
2021-12-09 12:12:26 -05:00
chaviw
10c60e45e8 Fix some blast sync issues in VRI
1. If a relayout requested blast sync but we canceled the draw and
schedule it for later, the next draw won't use blast sync. This change
makes sure we use blast sync on the next performTraversal

2. Remove mReportDrawToWm and always send transaction to WMS to apply.
This is because there could be multiple report draws in a row and we'd
unset the flag after the first and not send the other transactions to
WMS

Test: Screen rotation no flicker with rounded corners
Change-Id: I8bf3881dfcdd2e54f0ec78f9fb695c76385f4228
2021-12-09 09:52:14 -06:00
Joanne Chung
7ebd5f7c3b Fix NPE if no AutofillId when traversing the view tree.
Bug: 415172066
Test: atest CtsTranslationTestCases
Change-Id: Ic4d7fac7348199d4752c622036d6b57c186816e5
2021-12-09 14:12:59 +08:00
Kaiqiang Wang
cee2a3a6d5 Merge "Rename the AudioDescriptionRequestListener to match the isAudioDescriptionRequest()." 2021-12-08 17:26:38 +00:00
Vishnu Nair
db018e12e1 Merge "SurfaceView: Synchronize initial destframe change from BBQ" 2021-12-08 16:55:16 +00:00
Kaiqiang Wang
183ebfbcc8 Rename the AudioDescriptionRequestListener to match the
isAudioDescriptionRequest().

Test: atest AccessibilityManagerTest
Bug: 160823970
Bug: 209687728
Change-Id: I9acd72723af0fa29e04bd253fee1aa953c9bc788
2021-12-08 10:41:54 +01:00
Vishnu Nair
87d71d6d3f SurfaceView: Synchronize initial destframe change from BBQ
Fixes a case where the SurfaceView is stuck with a wrong
scale.

Destination frame scales the buffer to the SurfaceView
fixed size. Currently the initial destination frame is
applied when the first buffer is acquired by BBQ. The
transaction is sent via the BBQ apply token.

Meanwhile if the client updates the SurfaceView fixed
size, the SurfaceView will apply the transaction via
the SCC apply token.

This can cause destframe changes to be applied out of
order causing the app to be stuck with the wrong
scale.

Bug: 195443440
Test: atest BLASTBufferQueueTest
Test: repro steps from bug

Change-Id: Ibf53a0efdebb87291d081e48633c373a98d347b1
2021-12-07 17:31:51 -08:00
Kaiqiang Wang
6f0493a366 Merge "Add APIs to add and to remove listeners for AudioDescriptionStateChange." 2021-12-07 18:19:41 +00:00
James.cf Lin
9a45178ff4 Add the new Text input type TYPE_TEXT_FLAG_ENABLE_TEXT_CONVERSION_SUGGESTIONS
Add the new input type to indicate that the text conversion suggestions are required by the application. IME should provide the TextAttribute with the text conversion suggestions.

Bug: 194878427
Test: atest android.widget.cts.EditTextTest
Change-Id: Ib37a9816bbf594a5405ea6cd8943fd92491c005b
2021-12-07 14:09:07 +08:00
Chris Li
d206f4b3a3 Merge "Do not use prefixOrderIndex for animation layer" into sc-v2-dev am: af715328d3 am: 2f7bdbc104
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16379907

Change-Id: I16eb1a80291217f66ae318391cd7cbe6f08241fb
2021-12-04 05:37:07 +00:00
Chris Li
2f7bdbc104 Merge "Do not use prefixOrderIndex for animation layer" into sc-v2-dev am: af715328d3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16379907

Change-Id: I0d219b0d1eda1a258d08c60fe603eaccba0470cc
2021-12-04 05:20:18 +00:00
Yinglei Wang
8c0d172d51 Merge "Add AccessibilityAction ACTION_SHOW_SUGGESTIONS" 2021-12-03 23:28:51 +00:00
Treehugger Robot
ce8f531d6b Merge "ANDROID: Fix EventLog string class problem in ViewRootImpl#enqueueInputEvent()" am: 808e0a5e7a am: d3b9a7f1b2 am: bb269bc6e4 am: 0b897fd62f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1909899

Change-Id: I199b4c76e62a7073954d0ca8b9766c25c6d59d94
2021-12-03 23:06:03 +00:00
Treehugger Robot
0b897fd62f Merge "ANDROID: Fix EventLog string class problem in ViewRootImpl#enqueueInputEvent()" am: 808e0a5e7a am: d3b9a7f1b2 am: bb269bc6e4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1909899

Change-Id: I718e10a27a823cd46c6c6751acca5bbe7b701290
2021-12-03 22:42:10 +00:00
Treehugger Robot
bb269bc6e4 Merge "ANDROID: Fix EventLog string class problem in ViewRootImpl#enqueueInputEvent()" am: 808e0a5e7a am: d3b9a7f1b2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1909899

Change-Id: I112425b087412ffd10ba7ab8bd38a0477c5d1388
2021-12-03 22:27:51 +00:00
Treehugger Robot
d3b9a7f1b2 Merge "ANDROID: Fix EventLog string class problem in ViewRootImpl#enqueueInputEvent()" am: 808e0a5e7a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1909899

Change-Id: I1bc36b94f27ec90d484df3a468c1984d1ece8277
2021-12-03 22:21:12 +00:00
Kaiqiang Wang
da65c30449 Add APIs to add and to remove listeners for
AudioDescriptionStateChange.

Test: atest AccessibilityManagerTest
Bug: 160823970
Change-Id: Ifd5cc3366b4d19b8be20c3fa1ef83437b422bf4b
2021-12-03 23:19:15 +01:00
Chris Li
91010a79de Do not use prefixOrderIndex for animation layer
We may set a z-order different from the prefix order, for example
TaskDisplayArea#adjustRootTaskLayer. As a result, we should no longer
set animation leash layer based on the prefix order.

Fix: 208793409
Test: manually test launching activity over another
Change-Id: If8d545ca7a9ac42162262ad3a8f95b4ac9f65585
2021-12-03 20:50:00 +08:00
chenchaoli
beb8f3f4b3 ANDROID: Fix EventLog string class problem in ViewRootImpl#enqueueInputEvent()
EventLog function can handle string,integer class and long class. (in android_util_EventLog.cpp)
    If menu title string are used bold tag(like <b>test</b>), it'll be android.text.SpannedString.
    therefore any android activity using tag menu string(like <b></b>) can be crashed by IllegalArgumentException.

    Bug: 208862322

Change-Id: I2432b0cd28c8f5fcb07cdf3e29560bf6b6c0f7b6
Signed-off-by: chenchaoli <chenchaoli@xiaomi.com>
2021-12-03 05:52:33 +00:00
yingleiw
fbfd734049 Add AccessibilityAction ACTION_SHOW_SUGGESTIONS
And implement it for editable text to show the popup
window for typo correction.

Bug: b/143378480

Test: tested with modified talkback.
Change-Id: I8bb1ec87f6bb2177fb4b8fb9a88bfbe10b374173
2021-12-02 12:04:52 -08:00
TreeHugger Robot
a7e38d482b Merge "Add getSurfaceRotation API to MotionEvent" 2021-12-01 23:46:40 +00:00
Chavi Weingarten
354d65eec7 Merge "Synchronize SV buffers with main window when config changes" 2021-12-01 17:20:44 +00:00
chaviw
1602deb674 Synchronize SV buffers with main window when config changes
When the main window gets a configuration change, the new buffer for the
SV will get applied in the same transaction as the main window. This
will allow apps to implement seamless rotation without a frame or more
of black where the SV was resized, but the buffer was not yet updated.

This also includes an optimization where if only SV change occurs, but
there was no request from WMS to report drawing, VRI can apply the
transaction immediately without reporting to WMS.

Test: SV with seamless rotation enabled
Bug: 200284684
Change-Id: I5569d815eef92acf3bf9d7f753bd5ab94a332cfe
2021-12-01 17:17:55 +00:00
Antony Sargent
fead48301a Merge "Add a flag for allowing always unlocked virtual displays" 2021-12-01 17:12:48 +00:00
TreeHugger Robot
99d84d42cd Merge "Add IMM#invalidateInput()" 2021-12-01 16:18:05 +00:00
Adrian Roos
38c7256861 Merge "ViewRootImpl: peek IME source instead of creating it" into sc-v2-dev am: 3f7eca5695 am: 712c609507
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16358839

Change-Id: I070d043279efb139bd79bca361aa0e4fbf827707
2021-12-01 15:36:54 +00:00
Adrian Roos
712c609507 Merge "ViewRootImpl: peek IME source instead of creating it" into sc-v2-dev am: 3f7eca5695
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16358839

Change-Id: Ib6990fc82d4d68b1d6a650249a9735ce79970515
2021-12-01 15:25:12 +00:00
Adrian Roos
3f7eca5695 Merge "ViewRootImpl: peek IME source instead of creating it" into sc-v2-dev 2021-12-01 15:09:27 +00:00
Naomi Musgrave
4987d076b0 [DO NOT MERGE] Revert "Temporary flag for Launcher to debug their usage of sandboxed display APIs" am: 608a679783
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16273554

Change-Id: I44d5d6796ebefb4f6920a8f98296f2d52f865869
2021-12-01 14:15:40 +00:00
Prabir Pradhan
3914e57d8b Add getSurfaceRotation API to MotionEvent
Add an API to get the current rotation value of the transform of the
MotionEvent.

Bug: 207771136
Test: atest MotionEventTest
Change-Id: I5ee11e7a0311bdbeefbb37251098ce63b7d22730
2021-12-01 06:05:16 -08:00
Joanne Chung
5091adef7f Merge "Add ActivityId in TranslationContext." 2021-12-01 13:43:11 +00:00
Naomi Musgrave
a9a8c94b5f [DO NOT MERGE] Revert "[1/n] Introduce API for all available max WindowMetrics" am: 49381ee746
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16273544

Change-Id: Ide372fdcfdfd7f2d25e74e18c4ab5f182a61373d
2021-12-01 10:06:21 +00:00
Naomi Musgrave
608a679783 [DO NOT MERGE] Revert "Temporary flag for Launcher to debug their usage of sandboxed display APIs"
This reverts commit 253696fea3.

Reason for revert: remove from sc-v2
Bug: 206649452

Change-Id: I013f08dfba89eb89e7713dddc1f4f894e335df62
2021-12-01 09:57:48 +00:00
Naomi Musgrave
c5bdc9bcb7 Merge "[DO NOT MERGE] Revert "[1/n] Introduce API for all available max WindowMetrics"" into sc-v2-dev 2021-12-01 09:57:24 +00:00
Joanne Chung
be69a9d6a6 Add ActivityId in TranslationContext.
We add ActivityId in the TranslationContext to let TranslationService
can also implements the ContentCaptureService can use this ActivityId
to associate the Translationrequest with a particular
ContentCaptureSession.

Bug: 194376786
Test: atest CtsTranslationTestCases

Change-Id: If6d9cd9429690534e8b48f76a9f97af701324882
2021-12-01 16:59:39 +08:00
TreeHugger Robot
cb1bd57008 Merge "Update Contenet Capture API discription" into sc-v2-dev am: 8528d07450 am: b46414f27b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16345097

Change-Id: I224811defcba760eeeb85aee69ac178c69b2fa34
2021-12-01 03:24:24 +00:00
TreeHugger Robot
b46414f27b Merge "Update Contenet Capture API discription" into sc-v2-dev am: 8528d07450
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16345097

Change-Id: I80a03e94f49cb7c3b8c86081929e9f99ac275a70
2021-12-01 03:14:15 +00:00
Antony Sargent
e5058b0cc3 Add a flag for allowing always unlocked virtual displays
Bug: 201555593
Test: atest ActivityTaskManagerServiceTests DisplayManagerServiceTest
Change-Id: I23ae346b0413603582d2543c576d2542244421f6
2021-11-30 17:48:58 -08:00
TYM Tsai
7d888cbc2f Update Contenet Capture API discription
There are missing API description at getServiceComponentName in
ContentCaptureManager. Some errors may occur and an exception may be
thrown. So update the javadoc to remind user to handle.

Fixes: 203368373
Test: make
Change-Id: I979c81c74cda4e50627dc0c83ae7c33b333b9255
2021-12-01 09:12:14 +08:00
Naomi Musgrave
49381ee746 [DO NOT MERGE] Revert "[1/n] Introduce API for all available max WindowMetrics"
This reverts commit f70f8ecefc.

Reason for revert: remove from sc-v2
Test: manual
Bug: 206649452

Change-Id: If5f38307dd9ce38316c3b918d692f8b921f40832
2021-11-30 17:19:46 +00:00
Naomi Musgrave
98f8b55975 [DO NOT MERGE] Revert "[2/n] Display stack provides DisplayInfos" am: 4dfa01a86e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16273545

Change-Id: Ide06de4f8466790e47fd7e99b29cb55ce70b2add
2021-11-30 16:54:01 +00:00
Adrian Roos
bf551fe111 ViewRootImpl: peek IME source instead of creating it
Fixes an issue where getting the IME source to check its
visibility unintentionally lazily created it.

Fixes: 208200189
Test: manual
Change-Id: Ib36082b393215fc59e299dea30d3315f3748ca02
2021-11-30 15:06:06 +01:00
Naomi Musgrave
4dfa01a86e [DO NOT MERGE] Revert "[2/n] Display stack provides DisplayInfos"
This reverts commit aca03a172c.

Reason for revert: remove from sc-v2
Test: manual
Bug: 206649452

Change-Id: I1ce3c567eb1203edc7f22c568eeb15e85c643134
2021-11-30 13:32:08 +00:00
Philip Junker
51f6e1fc97 Merge "Simplify javadocs of KeyCharacterMap#hasKeys() and InputManager#hasKeys()" 2021-11-30 09:22:44 +00:00
Daniel Hsieh
cde124acef Merge "Support triple-tap and hold for window magnification." 2021-11-30 02:53:05 +00:00
Naomi Musgrave
4d4c7bfafa [DO NOT MERGE] Revert "PossibleMaximumWindowMetrics reports physical display insets for each" am: f1012018bf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16273546

Change-Id: I37f3161473af8dcbc0ef98ae2c8c160a36a30f45
2021-11-29 21:45:42 +00:00
Sanguk Jeon
13c5549834 Guard against NPE in ThreadedRenderer
Bug: b/168319139
Test: compile & verify basic functions working

Change-Id: Iaa2a6b7362d31f3501b3dd67f5af790ba3aebd24
2021-11-29 13:43:45 -08:00