Commit Graph

16884 Commits

Author SHA1 Message Date
Joanne Chung
1880c71008 Merge "Dump the last Activity information when dumpsys translation" into sc-dev am: 1e5e988de4 am: d40ad3a5fc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14782677

Change-Id: I50a1f5959c6d47937009ba21818928f70426a16f
2021-06-08 13:39:14 +00:00
Joanne Chung
1e5e988de4 Merge "Dump the last Activity information when dumpsys translation" into sc-dev 2021-06-08 13:11:29 +00:00
Joanne Chung
94b6e6515c Dump the last Activity information when dumpsys translation
When bugreport dumps Activity information, it will dump translation
related information. But it adds -v parameter, the bugreport will
only dump visible task's top Activity. If message apps go to the
background, we cannot find our expected information. We try to let
translation dumpsys to dump the last Activity information if the
Activity isn't destroyed yet, e.g. go to background.

Bug: 187889345
Test: open chat app and back home then dumpsys translation. Let
Activity destroyed and make sure no Activity dump.

Change-Id: Ie5b935696a74ca3f298c5e6e5994fa659389e198
2021-06-08 12:17:27 +08:00
Lucas Dupin
afb924f4df Merge "Deal with blur sysprop as a boolean" into sc-dev am: 0e92d34215 am: 23d6a4fec2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14832885

Change-Id: I4158dc637d16178ba24e662c4e6232aa81850fcf
2021-06-08 00:03:23 +00:00
Lucas Dupin
0e92d34215 Merge "Deal with blur sysprop as a boolean" into sc-dev 2021-06-07 23:51:32 +00:00
Sally Yuen
510517a360 Merge "Add AccessibilityManager#removeClient" into sc-dev am: 00d32f2d61 am: eb1dadc9e1 am: 889f69bc11
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14804058

Change-Id: I7f87ca9089b226a6ea1d204d275f8d22117adcb3
2021-06-04 23:29:31 +00:00
Sally Yuen
eb1dadc9e1 Merge "Add AccessibilityManager#removeClient" into sc-dev am: 00d32f2d61
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14804058

Change-Id: I2247895c1fb90fba155ffd70b80dddf61d73eb57
2021-06-04 22:50:08 +00:00
Sally Yuen
00d32f2d61 Merge "Add AccessibilityManager#removeClient" into sc-dev 2021-06-04 22:33:10 +00:00
Sally
4a41eca71b Add AccessibilityManager#removeClient
Whenever an app makes a Text toast, this gets routed through systemUI
starting from R. Two A11yManagerClients are registered with
A11yManagerService for every toast. Since clients aren't removed until
the process is killed, there are a bunch of clients from systemui
hanging around and potentially cause the system to crash.

We add a way here to explicitly unregister a client

Test: build and flash,
atest android.view.accessibility.AccessibilityManagerTest
Bug: 189010828

Change-Id: I3f71bac475b4539c7be5b328adeb0be35a0b5543
2021-06-04 20:28:26 +00:00
Lucas Dupin
315faf1258 Deal with blur sysprop as a boolean
Bug: 185580298
Test: manual
Change-Id: I828a582d4a63c32172d4954ea4b8d070ec1441c7
2021-06-03 19:35:31 -07:00
Antonio Kantek
99ca9c02c0 Merge "Deleting DisplayContent#reparentDisplayContent and related code" into sc-dev am: 1de80b1d70
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14740040

Change-Id: I21af7b134a92c6c4b14b96056d06cc393c87b0ce
2021-06-03 07:19:42 +00:00
Adithya Srinivasan
5179933d6a Merge "Add TaskSurfaceHelper/Controller in WMShell to plumb game mode to SF" into sc-dev am: c6273f7f15
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14687471

Change-Id: I78361faa7f6726a4540e5d2d0114cc3bdd48bd12
2021-06-03 07:06:40 +00:00
TreeHugger Robot
2087be9526 Merge "ViewRootImpl: Correct opaque flag usage" into sc-dev am: a731c9f3f9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14724164

Change-Id: I8d17d2547828e3dfcbc382accefcad3e50d789c3
2021-06-03 06:49:39 +00:00
Winson Chung
78aeb536c6 Merge "Always copy provided gesture exclusion rects" into sc-dev am: 69660aaf86
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14729093

Change-Id: I66bf54c5bed5d7a50efdd533d2d623756e674084
2021-06-03 06:21:43 +00:00
Antonio Kantek
f028c86570 Merge "Deleting DisplayContent#reparentDisplayContent and related code" into sc-dev am: 1de80b1d70 am: 505d6a9fef am: f11f2d2d20
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14740040

Change-Id: I992c870cd0122439254bc3c9c24153154335a224
2021-06-03 00:26:13 +00:00
Antonio Kantek
f11f2d2d20 Merge "Deleting DisplayContent#reparentDisplayContent and related code" into sc-dev am: 1de80b1d70 am: 505d6a9fef
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14740040

Change-Id: I4abb8a4ecf48fafe1d6be659b73e4d6087707621
2021-06-03 00:04:22 +00:00
Antonio Kantek
1de80b1d70 Merge "Deleting DisplayContent#reparentDisplayContent and related code" into sc-dev 2021-06-02 23:23:41 +00:00
Jacky Kao
e10e9e587f Merge "Adds the display Id into the A11y event" 2021-06-02 22:55:55 +00:00
Adithya Srinivasan
0099c0b7d6 Merge "Add TaskSurfaceHelper/Controller in WMShell to plumb game mode to SF" into sc-dev am: c6273f7f15 am: ef3378bcea am: e79bf55181
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14687471

Change-Id: I94e56e59305e5766ee7f080178e5ef34f3b7bc1d
2021-06-02 22:41:05 +00:00
Adithya Srinivasan
e79bf55181 Merge "Add TaskSurfaceHelper/Controller in WMShell to plumb game mode to SF" into sc-dev am: c6273f7f15 am: ef3378bcea
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14687471

Change-Id: Ie183002c5df4ae0499e640b23ee06f0119cccfc1
2021-06-02 22:20:50 +00:00
Adithya Srinivasan
c6273f7f15 Merge "Add TaskSurfaceHelper/Controller in WMShell to plumb game mode to SF" into sc-dev 2021-06-02 22:00:09 +00:00
TreeHugger Robot
138f801a71 Merge "ViewRootImpl: Correct opaque flag usage" into sc-dev am: a731c9f3f9 am: 0c7c150922 am: 1b0b9a026d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14724164

Change-Id: Ifc7214df8aae02f7a367a8bb3be21e667476a314
2021-06-02 10:40:08 +00:00
TreeHugger Robot
1b0b9a026d Merge "ViewRootImpl: Correct opaque flag usage" into sc-dev am: a731c9f3f9 am: 0c7c150922
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14724164

Change-Id: Ic8df8d27c2d0d17a16b05cfc94bc080f8c773076
2021-06-02 10:23:31 +00:00
TreeHugger Robot
a731c9f3f9 Merge "ViewRootImpl: Correct opaque flag usage" into sc-dev 2021-06-02 09:28:33 +00:00
Evan Rosky
01465be4be Merge "Inform SurfaceFlinger about displays which receive input" into sc-v2-dev am: d4fcf3ac04 am: d616fbe94a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14669172

Change-Id: I4570fe1b786731f26b715883a46b3bd6f1931f2b
2021-06-01 21:41:11 +00:00
Evan Rosky
d616fbe94a Merge "Inform SurfaceFlinger about displays which receive input" into sc-v2-dev am: d4fcf3ac04
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14669172

Change-Id: Ie21a5a6dfb9ff66ee9eb349f166d1fcccd87dcbe
2021-06-01 21:40:00 +00:00
Winson Chung
196af8e47c Merge "Always copy provided gesture exclusion rects" into sc-dev am: 69660aaf86 am: 98e54ebdba am: 55f6179386
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14729093

Change-Id: I6b6aae12cdf43f79208de515e287573ec403c777
2021-06-01 21:00:10 +00:00
Winson Chung
55f6179386 Merge "Always copy provided gesture exclusion rects" into sc-dev am: 69660aaf86 am: 98e54ebdba
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14729093

Change-Id: Iab73d072ec2251a939fca5f3b8f4926a90ed1d6f
2021-06-01 20:41:27 +00:00
Evan Rosky
3c85ed5080 Inform SurfaceFlinger about displays which receive input
Right now, multiple display devices can share a layerstack.
This means that when constructing InputWindowInfo, its
impossible to know which display transform matches the
display viewport that inputflinger dispatches against. To
remedy this, have displaymanager inform surfaceflinger
which displays "receiveInput" using the same logic that
controls which display viewport it sends to inputflinger.

Bug: 179274888
Test: atest SetDisplayStateLockedTest
Change-Id: I85f1d0ac6fcf9c37a523eb80ed02afeff555c93d
2021-06-01 11:58:34 -07:00
Winson Chung
69660aaf86 Merge "Always copy provided gesture exclusion rects" into sc-dev 2021-06-01 18:49:41 +00:00
Antonio Kantek
42a60dc25c Deleting DisplayContent#reparentDisplayContent and related code
This code was used by ActivityView (which was deleted) only.

Test: manual (seahawk)
Bug: 179161778
Change-Id: I65544daac3bc2a280239bdcbd54dc726d604165f
2021-05-31 20:46:08 -07:00
Tiger Huang
ff64ee23a2 Merge "Update the surface position of each control in insets animation" into sc-dev am: 178d98e23b am: 6b8f441dd5 am: 0af82e9a73
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14776096

Change-Id: Ifefe6b7e5a7e29f1805bd7bab79363039ef2bca5
2021-05-31 15:09:56 +00:00
Tiger Huang
0af82e9a73 Merge "Update the surface position of each control in insets animation" into sc-dev am: 178d98e23b am: 6b8f441dd5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14776096

Change-Id: I19d55269ee858ef024217f94fbd6f9e63d0a2e61
2021-05-31 14:48:04 +00:00
Tiger Huang
0959847e8e Merge "Update the surface position of each control in insets animation" into sc-dev am: 178d98e23b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14776096

Change-Id: Ia684edc90014e6037fda9ebe77e7325e18f3981d
2021-05-31 14:36:26 +00:00
Tiger Huang
fa6f73429d Update the surface position of each control in insets animation
If the surface position is changed during the insets animation,
the surface position of the controls in the animation should be updated.
Otherwise, the cached position in the animation will overwrite the
newly-updated leash position.

Fix: 177925500
Test: Steps in the bug.
Test: 1. Open Window Insets Tests -> Window Insets Controller.
      2. Click on the [IME INVISIBLE] button.
      3. Click on the [STATUS BARS VISIBLE] button during IME animation.
      See if the position of IME (Gborad) is correct.
Change-Id: I7441426a41019996651220e86ca90dd416ef9498
2021-05-31 18:08:31 +08:00
Hongming Jin
37efce9ef6 Merge "Add features to allow filtering logging based on interfaces." into sc-v2-dev am: d6cc13a99c am: 99613fbfa6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14703957

Change-Id: I0505a2eb382950fbb06a0cc0a2ad998b71be8b9c
2021-05-28 16:45:18 +00:00
Hongming Jin
99613fbfa6 Merge "Add features to allow filtering logging based on interfaces." into sc-v2-dev am: d6cc13a99c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14703957

Change-Id: Ie4ee53a44fd26de19867252d81c222e1654f9db1
2021-05-28 16:11:36 +00:00
Ahaan Ugale
d6f1da05ce Merge changes from topic "tr-anim" into sc-dev am: 27008c1123 am: 565c15a8d6 am: 2af2705bed
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14661091

Change-Id: I396b6f349e72410c10890e1814866805bc239933
2021-05-28 03:30:19 +00:00
Ahaan Ugale
ad0cc558fb Translate: Ignore duplicate translations. am: 02fe90bb42 am: 1f26c6eac8 am: 86163fc07c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14661090

Change-Id: I244fb274cd1e6f9ce9ea4dd5170d4543dd1300eb
2021-05-28 03:30:15 +00:00
TreeHugger Robot
f9f5d9b1b8 Merge "TranslationResponseValue: Override equals() behaviour for Extras." into sc-dev am: e5f65a20f1 am: 7ce63c3ad7 am: 754708957f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14722064

Change-Id: I35a2a9f32eda0230a0a5e18d661cd854ac4f5d49
2021-05-28 03:21:19 +00:00
Ahaan Ugale
2af2705bed Merge changes from topic "tr-anim" into sc-dev am: 27008c1123 am: 565c15a8d6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14661091

Change-Id: Ibcfc48257be24c2c7e7ea287a01c5a3bae3ced19
2021-05-28 03:16:52 +00:00
Ahaan Ugale
86163fc07c Translate: Ignore duplicate translations. am: 02fe90bb42 am: 1f26c6eac8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14661090

Change-Id: Ie9ec698d0e7d1df4421dffa783bc83b0465a5cc1
2021-05-28 03:16:50 +00:00
TreeHugger Robot
754708957f Merge "TranslationResponseValue: Override equals() behaviour for Extras." into sc-dev am: e5f65a20f1 am: 7ce63c3ad7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14722064

Change-Id: Ic20af1c125d94f83bb2f61dc1c1e98a0321972b7
2021-05-28 03:08:08 +00:00
Ahaan Ugale
1e8894e42b Merge "Force to notify ContentCapture event even view is not laid out" into sc-dev am: 75d63c116c am: 9c8598f451 am: d423928e99
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14683430

Change-Id: I64a00a1c359127ec455ee1e1573d068bad5d374b
2021-05-28 03:00:21 +00:00
Ahaan Ugale
d423928e99 Merge "Force to notify ContentCapture event even view is not laid out" into sc-dev am: 75d63c116c am: 9c8598f451
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14683430

Change-Id: Ied5fe2684e8997d9fa65f6e273704f4213846876
2021-05-28 02:50:03 +00:00
Ahaan Ugale
7993e317bf Merge changes from topic "tr-anim" into sc-dev am: 27008c1123
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14661091

Change-Id: I09652536d90edf3c5f378159ccd89db6bca28909
2021-05-28 02:11:10 +00:00
TreeHugger Robot
6ba0a39b7b Merge "TranslationResponseValue: Override equals() behaviour for Extras." into sc-dev am: e5f65a20f1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14722064

Change-Id: I5ca80ff409ebaa5ba00c2c7e2b2a0bf6007fe1ea
2021-05-27 22:31:05 +00:00
Adithya Srinivasan
4e8a1a05b1 Add TaskSurfaceHelper/Controller in WMShell to plumb game mode to SF
TaskSurfaceHelper(Controller) will be used as an interface to communicate
with the SurfaceControl of the underlying Task. This change adds a function
to set the game mode metadata for the task layer.

Bug: 186025682
Test: atest TaskSurfaceControllerTest
Change-Id: I136b65636b98e1883eaf9e4f4f0b34c61350d4e4
2021-05-27 20:12:08 +00:00
Hongming Jin
d6cc13a99c Merge "Add features to allow filtering logging based on interfaces." into sc-v2-dev 2021-05-27 19:34:09 +00:00
Ahaan Ugale
df75689d4d Translate: Text alpha animation on toggling translated state.
Apply a simple text alpha animation when toggling between original and
translated text. The text is fully faded out, then swapped to the new
text, then the fading is reversed.

Quick toggles are handled by ending the previous animation (which resets
the alpha value) when starting a new one. If the toggle is extremely
fast (<250ms for the currently defined animation duration), the text
stays in it's original state instead of swapping back-and-forth. This is
arguably not ideal, but anyway not worth the complexity for fixing.

There is an unhandled edge case where if the color is changed by the app
during the animation, the app's change would get overridden. It should
be rare and doesn't seem very important to fix.

Bug: 178651829
Test: atest CtsTranslationTestCases
Test: manual - across several apps, while scrolling, concurrently
 interacting with the app, concurrently closing the app, selecting text
 during the animation (with animation speed slowed down to see the
 effect).
Change-Id: I08a26de2253bb345f01186a6748b2d0ff6c2a419
2021-05-27 09:34:18 -07:00