Commit Graph

748985 Commits

Author SHA1 Message Date
mincheli
f04786ea0e Waits for windowMagnification connection set when requesting enableWindowMagnification
It fixes the low quality CTS test, AccessibilityMagnificationTest.
And this fix also makes enableWindowMagnification() a robust API
that can be called frequently when the connection is toggled.

CL comments and discussion are at ag/16785609

Root cause:
1. when the test cases run iteratively, the test a11y service would be
enabled and disabled repeatedly so the windowMagnification
connection would also be connected and disconnected repeatedly.
And when the test a11y service is enabled in a short time, the
connection may not be ready to be established.

Solution:
1. So we add a wait lock and notify to unclock after the connection
is established. And prevent the duplicated connection request.

Bug: 2147470987
Test: atest AccessibilityMagnificationTest --iterations,
    atest com.android.server.accessibility
Change-Id: I6ec22e66796aaf565c10b0fedcd4de359ce5fc7b
2022-03-01 03:56:37 +00:00
Shawn Lin
fba1133504 Merge "ScreenDecorHwcLayer: request and report transparent regions" into tm-dev 2022-02-24 06:41:44 +00:00
Yi Jiang
5551c13e7a Merge "Fixes NPE from resolveRotation()" into tm-dev 2022-02-24 06:40:15 +00:00
Nadav Bar
8fbe5b0fdb Merge "Integrate captions volume button with new CaptioningManager API" into tm-dev 2022-02-24 06:33:21 +00:00
Winson Chung
72d2d550e9 Merge "Skip updating nav bar if it was destroyed" into tm-dev 2022-02-24 06:23:55 +00:00
TreeHugger Robot
690aa5d521 Merge "Do not finish activity if with taskOverlay" into tm-dev 2022-02-24 06:09:32 +00:00
TreeHugger Robot
0c7a25a9a8 Merge "Always show virtual keyboard in test." into tm-dev 2022-02-24 05:51:08 +00:00
George Burgess
6ed5d640fe Merge "bit: avoid calling strdup(NULL)" am: 589f3e4871 am: 96c1b4bd0e am: 5fdccc4578
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1995590

Change-Id: I0afc27ac42bd9c2a1d604a5f6915159bdcad9c99
2022-02-24 04:58:49 +00:00
George Burgess
5fdccc4578 Merge "bit: avoid calling strdup(NULL)" am: 589f3e4871 am: 96c1b4bd0e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1995590

Change-Id: Ia9ce5f63427a3ec9fdf92be93bd54b1f6be5f14f
2022-02-24 04:24:56 +00:00
Sudheer Shanka
17a66a2236 Merge "Remove flaky tests from presubmit." into tm-dev 2022-02-24 04:07:33 +00:00
George Burgess
96c1b4bd0e Merge "bit: avoid calling strdup(NULL)" am: 589f3e4871
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1995590

Change-Id: I5524e43b77097f1bf2c7ac34c877a961cf61b5ad
2022-02-24 04:01:27 +00:00
George Burgess
589f3e4871 Merge "bit: avoid calling strdup(NULL)" 2022-02-24 03:27:26 +00:00
Leon Scroggins III
9382674db2 ScreenDecorHwcLayer: request and report transparent regions
I6c5d29614dc8d65d8481150ce717a440192083a0 plumbs the transparent region
to the HAL blocking region for DISPLAY_DECORATION layers. Make
ScreenDecorHwcLayer call requestTransparentRegion, which will make the
ViewRootImpl compute the transparent region. Then override
gatherTransparentRegion to remove sections where it draws.

Bug: 212736475
Test: atest ScreenDecorHwcLayerTest
Change-Id: I0debc8a96dea34ff03ec089233523fe279ecbb00
2022-02-24 11:26:51 +08:00
Sudheer Shanka
d6904c7f41 Merge "Update javadoc for recordResponseEventWhileInBackground()." into tm-dev 2022-02-24 03:15:03 +00:00
Automerger Merge Worker
629b694663 Merge changes from topic "am-4c5f537596ec4c2880fcaaf62e125f68" into tm-dev
* changes:
  [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev am: 7dab4a6ffc -s ours am: eea0986ff5 -s ours
  [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 95a1ea0a49 -s ours am: 6791de1e2f -s ours
2022-02-24 02:53:26 +00:00
Lucas Silva
31e2d988aa Merge changes I5fa9eed5,I93f6dd4b into tm-dev
* changes:
  Hide smartspace dream complication in preview mode.
  Create dream preview complication
2022-02-24 02:52:57 +00:00
Bill Yi
fd6887d1f6 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev am: 7dab4a6ffc -s ours am: eea0986ff5 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16981003

Change-Id: I255e83ed7b67e7fd9485513d3efbfbfddfc2dc1b
2022-02-24 02:52:43 +00:00
Bill Yi
f178e569b5 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 95a1ea0a49 -s ours am: 6791de1e2f -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16981003

Change-Id: Ia46701f941a41c579ba8f227f2f85d6e87e4c641
2022-02-24 02:52:31 +00:00
Matt Casey
08a5d6d84d Merge "Remove system call to "headless" unbundled chooser" into tm-dev 2022-02-24 02:43:31 +00:00
TreeHugger Robot
822a94bcdb Merge "Fix a redundant assignRelativeLayerForIme case" into tm-dev 2022-02-24 02:30:10 +00:00
Bill Yi
eea0986ff5 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev am: 7dab4a6ffc -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16981003

Change-Id: I2712781dd92aefa62ac36ece04e361f2fced73c7
2022-02-24 02:29:58 +00:00
Bill Yi
6791de1e2f [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 95a1ea0a49 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16981003

Change-Id: Ibec93874a113449f42ca8a60aa9afade3427b48c
2022-02-24 02:29:49 +00:00
TreeHugger Robot
2bb1846570 Merge "Added --user option to 'dumpsys activity $ActivityName'." into tm-dev 2022-02-24 02:22:15 +00:00
Vincent Wang
e96ffa7cba Merge "Replace BitmapRegionDecoder with ImageDecoder" into tm-dev 2022-02-24 02:16:58 +00:00
Bill Yi
7dab4a6ffc Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2022-02-24 02:03:55 +00:00
Cecilia Hong
77f82a27cf Merge "[DO NOT MERGE] Address the Smartspace UI templates APIs review comments." into tm-dev 2022-02-24 01:36:55 +00:00
Mady Mellor
cdc7d70d4f Merge "Only collapse bubbles when its from gesture nav" into tm-dev 2022-02-24 01:30:11 +00:00
TreeHugger Robot
431a79bb11 Merge "Fix fgs_footer gravity" into tm-dev 2022-02-24 01:26:07 +00:00
Mark Renouf
cac9e4e7e3 Merge "Remove SysUI Chooser" into tm-dev 2022-02-24 01:08:35 +00:00
Chris Li
1e9ff8eea6 Merge "Fix SetRequestedOrientationWhilePinnedTest with Shell transition" into tm-dev 2022-02-24 00:59:34 +00:00
TreeHugger Robot
199d49a834 Merge "Add documentation about permission in Nearby streaming policies" into tm-dev 2022-02-24 00:41:03 +00:00
Sudheer Shanka
34b594d20a Remove flaky tests from presubmit.
Bug: 217733309
Test: treehugger
Change-Id: I14b4636e27566e528233a1acbd7239434249b78a
2022-02-23 16:34:34 -08:00
TreeHugger Robot
5f902c6439 Merge "Camera: Allow clients to query for extra profile latency" into tm-dev 2022-02-24 00:27:29 +00:00
Robert Wu
85b0f4f199 Merge "MIDI: don't create two of the same device" into tm-dev 2022-02-24 00:25:28 +00:00
TreeHugger Robot
57da9a6e4f Merge "Make executor @Nullable in createVirtualDisplay" into tm-dev 2022-02-24 00:00:47 +00:00
TreeHugger Robot
bb8c65ed14 [automerger skipped] Merge changes from topic "presubmit-am-5482901e1a9f43f99964b507e3ad4959" into sc-v2-dev-plus-aosp am: 3424369d35 -s ours
am skip reason: Merged-In I9881453ba14cba4f219861ec4449f2baa8058b57 with SHA-1 da737e7149 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16988727

Change-Id: Ia835fac19654640e42250a6ba97b011473516317
2022-02-23 23:22:23 +00:00
Pablo Gamito
328c0a75ce [automerger skipped] [automerged blank] Don't set background color if TDA doesn't have a valid surface 2p: 62f69423c5 am: a094a8146b -s ours
am skip reason: Merged-In I9881453ba14cba4f219861ec4449f2baa8058b57 with SHA-1 da737e7149 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16988727

Change-Id: I859e938f4223e64cb670a6ecaee2475a834885d8
2022-02-23 23:22:04 +00:00
TreeHugger Robot
f656273088 [automerger skipped] Merge changes from topic "presubmit-am-34a8ba0b26b74d1daf2868b91d148909" into sc-v2-dev-plus-aosp am: 84603031f6 -s ours
am skip reason: Merged-In I57fa88c6f45adca9e3301b39e868bd127644b76f with SHA-1 975e9ab45b is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16182190

Change-Id: I8117c560b230cae953847dd8ad400e592a8346f3
2022-02-23 23:21:38 +00:00
Presubmit Automerger Backend
933e19e302 [automerger skipped] [automerged blank] Use TDA for background color instead of new color layer 2p: dc4296e335 am: 38bb1b2fcd -s ours
am skip reason: Merged-In I57fa88c6f45adca9e3301b39e868bd127644b76f with SHA-1 975e9ab45b is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16182190

Change-Id: I794be621ec1317986971ea26754e104cede049cb
2022-02-23 23:21:19 +00:00
TreeHugger Robot
12dd1d6747 Merge "Cache quickPickupEnabled state" into tm-dev 2022-02-23 22:51:08 +00:00
TreeHugger Robot
3424369d35 Merge changes from topic "presubmit-am-5482901e1a9f43f99964b507e3ad4959" into sc-v2-dev-plus-aosp
* changes:
  [automerged blank] Don't set background color if TDA doesn't have a valid surface 2p: 62f69423c5
  Don't set background color if TDA doesn't have a valid surface
2022-02-23 22:50:27 +00:00
TreeHugger Robot
84603031f6 Merge changes from topic "presubmit-am-34a8ba0b26b74d1daf2868b91d148909" into sc-v2-dev-plus-aosp
* changes:
  [automerged blank] Use TDA for background color instead of new color layer 2p: dc4296e335
  Use TDA for background color instead of new color layer
2022-02-23 22:50:27 +00:00
TreeHugger Robot
22c4239c9d Merge "Revert "Disable per-process app class to investigate"" into tm-dev 2022-02-23 22:49:52 +00:00
TreeHugger Robot
88926406a2 Merge "Map SurfaceFlinger display mode ids to Display.Mode ids" into tm-dev 2022-02-23 22:36:11 +00:00
TreeHugger Robot
676c373409 Merge "Bouncer is never showing in AOD" into tm-dev 2022-02-23 22:35:51 +00:00
Dave Mankoff
4ed3ca29a1 Merge "Add support for SystemProperty flags to SysUI." into tm-dev 2022-02-23 22:20:48 +00:00
Robert Wu
a30d971324 MIDI: don't create two of the same device
Devices got created twice because I forgot to remove a
debugging statement

Bug: 220168245
Test: MidiKeyboard and MidiScope
Change-Id: I2bd7b28bec3025e62dce39fcd500350a9ca6de8d
Merged-In: I2bd7b28bec3025e62dce39fcd500350a9ca6de8d
2022-02-23 22:16:07 +00:00
TreeHugger Robot
7f9d05c6d2 Merge "Change supervisor settings constants to int." into tm-dev 2022-02-23 22:08:11 +00:00
Jorim Jaggi
35efedc9a2 Merge "Get rid of double measure" into tm-dev 2022-02-23 22:00:20 +00:00
Jorim Jaggi
4234e6cea8 Get rid of double measure
We first need to dispatch insets, then we can measure so we don't
need to immediately measure again.

Fixes: 210881360
Bug: 190379081
Test: Presubmit, Boots
Change-Id: Id40a083dd2e122ca71a96213e94b5bbbb45d596d
2022-02-23 21:59:18 +00:00