Huihong Luo
6c45653f0f
Merge "Fix NullPointerException on ThreadedRenderer" into sc-dev am: eee7cc8764 am: 2d355922ca
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14947021
Change-Id: I4aace23bee4258ce44837a6594ce517f6f251535
2021-06-14 16:52:14 +00:00
Huihong Luo
eee7cc8764
Merge "Fix NullPointerException on ThreadedRenderer" into sc-dev
2021-06-14 16:48:31 +00:00
TreeHugger Robot
5c85d4f044
Merge "Clear the ViewTranslationResponse on finishing UiTranslation." into sc-dev am: 2828678bd4 am: fe2cee843f
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14922772
Change-Id: I547fe45870b4239d95e5a00d05e68479a21c4504
2021-06-14 01:38:52 +00:00
TreeHugger Robot
2828678bd4
Merge "Clear the ViewTranslationResponse on finishing UiTranslation." into sc-dev
2021-06-14 01:12:59 +00:00
John Reck
c65ea76a62
Merge "Improve picture capture debug path" into sc-dev am: b99e72f722 am: c44920c3cd
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14928133
Change-Id: I5cf8350049c3e8d102cb385f0a02401c0d5eab1b
2021-06-11 18:39:11 +00:00
Huihong Luo
1c3d52c130
Fix NullPointerException on ThreadedRenderer
...
The variable, mAttachInfo.mThreadedRenderer, might be null.
Bug: 188614814
Test: run x86_64 cts test: CtsInputMethodTestCases
Change-Id: I5c441d8948dd357992ad5ef94d03deff547baa37
2021-06-11 11:20:32 -07:00
John Reck
760051854e
Improve picture capture debug path
...
* Fixes hardware bitmap capture
* Fixes mutable bitmap capture (no flickering)
* Adds basic single-frame LRU cache to avoid
repeated readbacks of GPU resources
* Does up-front readback of GPU resources
* Moves serialization off RenderThread again thanks
to up-front readback avoiding needing GPU access
off-thread
* Reduces RAM usage & improves performance by serializing
directly to output stream instead of first copying to
a byte[]
Bug: 174223722
Test: PictureCaptureDemo mirrors the content
Change-Id: If7ec208b61d5b917e82087cc312880fc5a38c943
2021-06-11 01:52:14 +00:00
Tiger Huang
0667ac5b91
Merge "Defer dispatching insets to app if its window frame will be changed soon" into sc-dev am: 50ae7cbf1b am: d0c6024002
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14881021
Change-Id: Ie99d5ce746f009423f0e84c375dc801f34fb8b6d
2021-06-10 08:26:00 +00:00
Tiger Huang
50ae7cbf1b
Merge "Defer dispatching insets to app if its window frame will be changed soon" into sc-dev
2021-06-10 07:55:53 +00:00
Ahaan Ugale
f922300a2d
Clear the ViewTranslationResponse on finishing UiTranslation.
...
Stored state should be cleared here.
This fixes a bug where the views cannot be re-translated after
UiTranslationManager#finishTranslation was called. Some of the state was
cleared, so the translations cannot be re-shown. And that state cannot
be recreated because we find the same ViewTranslationResponse stored and
do not recreate the other state.
Fix: 189892928
Test: manual - translate an app, go to the home screen (triggers
finish), go back to the app and re-translate
Test: atest CtsTranslationTestCases
Change-Id: Ic81fbce7ee09eb72352071c8bdd94a2731826009
2021-06-09 13:53:38 -07:00
TreeHugger Robot
6f386fd1af
Merge "Remove tracing for notifyContentCapture" into sc-dev am: 789fe38968 am: 38c190df2b
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14904360
Change-Id: I9fb66e57eef3d99a514d0f316a6626c81c6140cc
2021-06-09 19:36:20 +00:00
TreeHugger Robot
789fe38968
Merge "Remove tracing for notifyContentCapture" into sc-dev
2021-06-09 19:14:05 +00:00
TreeHugger Robot
b2d0f8e95e
Merge "Make ContentCapture event contains parcelable span" into sc-dev am: 3009984d65 am: 15b3bbcfc3
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14819344
Change-Id: Ie4e86f8acd317a407bd902a1288f01b3cf4faa80
2021-06-09 17:21:28 +00:00
Mark Renouf
e23d604095
ScrollCaptureTarget: enforce argument nullability in ctor am: 886b1a3d7c am: b65f47c918
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14846764
Change-Id: I689d6b806aa14d8004f4c79332e8a955cc43af5b
2021-06-09 17:21:10 +00:00
TreeHugger Robot
3009984d65
Merge "Make ContentCapture event contains parcelable span" into sc-dev
2021-06-09 16:48:55 +00:00
Mark Renouf
886b1a3d7c
ScrollCaptureTarget: enforce argument nullability in ctor
...
Bug: 180419562
Test: atest ScrollCaptureTargetTest
Change-Id: I390269c8cfc0ce57c5cf9b58ad0cbf75a0281b00
2021-06-09 16:48:26 +00:00
TYM Tsai
b8fc743699
Make ContentCapture event contains parcelable span
...
The spans were removed by ag/13819626. Adds them back into the
ContentCaptureEvent. And removes unnecessary Map data because we
can get it via travel events. The total of events is not large.
Bug: 190035037
Bug: 184311217
Test: atest CtsContentCaptureServiceTestCases
Test: atest FrameworksCoreTests:ContentCaptureEventTest
Change-Id: I5fa1f7a6b51fd050a63731543cca98972c294b22
2021-06-09 16:48:23 +00:00
Tiger Huang
7be2a4c964
Defer dispatching insets to app if its window frame will be changed soon
...
If the frames of insets source window and the frame of an app window
are changed in the same layout pass, we should dispatch the insets
calculated from the new insets source frames and the new app window
frame. So when the app frame is not up-to-date, we defer dispatching
insets to the app.
Fix: 160732586
Test: Add logs to check if we dispatch the correct insets to apps while
rotating the display.
Change-Id: Ic9e71d8eabde51067b740b35404ae7c9b68228d7
2021-06-09 15:52:39 +08:00
Shawn Lin
3eaf07e60f
Merge "Add a method in RecentsAnimationController to animate the nav bar" into sc-dev am: ecb653c2bb am: de305fa83e
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14879195
Change-Id: Ifddb617299bc9e125c5e12c37dd7540f06ecb9bb
2021-06-09 02:25:06 +00:00
Shawn Lin
ecb653c2bb
Merge "Add a method in RecentsAnimationController to animate the nav bar" into sc-dev
2021-06-09 01:39:49 +00:00
Philip Cuadra
ef671105e1
Remove tracing for notifyContentCapture
...
These traces get expensive in aggregate due to an increased number of
notifyContentCapture events. Remove them.
Bug 188836620
Test: Confirmed no notifyContentCapture trace points in systrace
Change-Id: I5d77bd9048b2e8cd267187f866dc095792a3f455
2021-06-08 13:34:21 -07:00
TreeHugger Robot
b04ee60f5b
Merge "Synchronize WCT for TaskView with SurfaceControl.Transaction." into sc-v2-dev am: 16eeb2c5a3 am: fc2de1ae39
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14690649
Change-Id: I632de9b8b029c9d7a332df48ee6d20f51d6db065
2021-06-08 18:41:04 +00:00
TreeHugger Robot
16eeb2c5a3
Merge "Synchronize WCT for TaskView with SurfaceControl.Transaction." into sc-v2-dev
2021-06-08 18:21:32 +00:00
shawnlin
7d77609543
Add a method in RecentsAnimationController to animate the nav bar
...
There is no transition for app launch from recent in live tile so we
have to add a method for Launcher to trigger the nav bar animation for
this case.
Bug: 189278432
Test: manual - launch app from recent in live tile mode
Change-Id: Ia63964491449e6f634350cbc8599cdec42d76d06
2021-06-08 21:44:12 +08:00
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
c9bddb2daa
Merge "Dump the last Activity information when dumpsys translation" into sc-dev am: 1e5e988de4
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14782677
Change-Id: Ia056053022579fd3bb24bdb0215aa31ddd52a433
2021-06-08 13:26:23 +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
2afcc28fb8
Merge "Deal with blur sysprop as a boolean" into sc-dev am: 0e92d34215
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14832885
Change-Id: Ia0caa4ad01f52b2ce19e194ddd0c94b408dfaffb
2021-06-07 23:57:36 +00:00
Lucas Dupin
0e92d34215
Merge "Deal with blur sysprop as a boolean" into sc-dev
2021-06-07 23:51:32 +00:00
Yuncheol Heo
60b68fcbbe
Synchronize WCT for TaskView with SurfaceControl.Transaction.
...
- Introduces SyncTransactionQueue to TaskView.
- Synchronizes the visibility, location, size changes of the window with
Surface transaction.
Bug: 151449487
Test: atest TaskViewTest BubblesTest NewNotifPipelineBubblesTest
Change-Id: I13df32bb41e83bfb512be503218fcd6b44a144b3
2021-06-07 16:40:50 +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