Commit Graph

16927 Commits

Author SHA1 Message Date
TreeHugger Robot
2760cb2d3c Merge "ContentCaptureEvent: Log composing and selection indices" into sc-dev am: 8f74aa34ee am: 805862b48d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14960922

Change-Id: Id4ccc3a68d131678a6065ed210bacdb8e7c3171e
2021-06-16 09:18:48 +00:00
TreeHugger Robot
8f74aa34ee Merge "ContentCaptureEvent: Log composing and selection indices" into sc-dev 2021-06-16 08:46:41 +00:00
TreeHugger Robot
5b2e3c2538 Merge "ContentCapture: DEBUG flag to log raw text" into sc-dev am: 949b4d2940 am: b8c160bd0f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14982209

Change-Id: Ibb5a962014606950d377c4c5b1be69521559acd9
2021-06-16 06:47:50 +00:00
TreeHugger Robot
949b4d2940 Merge "ContentCapture: DEBUG flag to log raw text" into sc-dev 2021-06-16 06:32:35 +00:00
Ahaan Ugale
d224da0ed4 ContentCaptureEvent: Log composing and selection indices
Bug: 184311217
Test: manual
Change-Id: I808021473fe55bf2f0676c005bc0c077146a6785
2021-06-15 22:21:26 -07:00
TreeHugger Robot
7b36f78bf6 Merge "Increase initial StringBuffer capacity in View.toString." 2021-06-15 22:17:56 +00:00
Siarhei Vishniakou
c664495196 Merge "Remove FLAG_INPUTFILTER_TRUSTED in MotionEventInjector" into sc-dev am: 5d552869af am: b637d6f106
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14676739

Change-Id: Ia3010b90e45eb9f2f19e76b0b6fa3e8c237b55c5
2021-06-15 22:11:20 +00:00
Siarhei Vishniakou
5d552869af Merge "Remove FLAG_INPUTFILTER_TRUSTED in MotionEventInjector" into sc-dev 2021-06-15 21:50:35 +00:00
TreeHugger Robot
7c73cc1f6e Merge "Make inline suggestions tooltip is not magnified" into sc-dev am: cac7ab9c5c am: 40c5c91871
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14514105

Change-Id: Ic5c75dcc71639e01c919e66cad134d339699b8ba
2021-06-15 21:33:54 +00:00
TreeHugger Robot
cac7ab9c5c Merge "Make inline suggestions tooltip is not magnified" into sc-dev 2021-06-15 21:22:09 +00:00
TreeHugger Robot
3343e5077b Merge "Make some NoCopySpans can pass to ContentCaptureService" into sc-dev am: 7063bae045 am: 1fdb34202f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14891918

Change-Id: I597a5107b3e71d25b7680e8cfd7f580729029b26
2021-06-15 19:14:33 +00:00
TYM Tsai
b8fe7ce3bb Make some NoCopySpans can pass to ContentCaptureService
The selection and composing spans are not parcelable. This patch makes
Content Capture can pass those metadata to the service.

Bug: 184311217
Test: atest CtsContentCaptureServiceTestCases
Test: atest FrameworksCoreTests:ContentCaptureEventTest
Change-Id: I455ee61998bfb19476f84c69b1a671113b6b6a98
2021-06-16 01:22:39 +08:00
Ahaan Ugale
0f163f5557 ContentCapture: DEBUG flag to log raw text
Bug: 184311217
Test: manual
Change-Id: I9a60bcf95574583c14f5962a3dde603abea85498
2021-06-15 09:05:16 -07:00
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
TYM Tsai
0a496a2aa0 Make inline suggestions tooltip is not magnified
Because the tooltip is part of suggestions on keyboard, it should be the
same as keyboard that is not magnified by the accessibility magnifier
when the magnifier is full screen mode.

Bug: 183462449
Test: Manual
Test: atest CtsAutoFillServiceTestCases
Change-Id: I3cfd84357b556a85c2788776d3966cf94d4a981d
2021-06-10 02:16:19 +08: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
Siarhei Vishniakou
1214444260 Remove FLAG_INPUTFILTER_TRUSTED in MotionEventInjector
All input events coming into inputfilter from
InputDispatcher will now have FLAG_INPUTFILTER_TRUSTED set by default.
It is now up to the inputfilter (a11y) to remove this flag when appropriate.
One such case is where an unknown a11y service is injecting the events.

From auditing the a11y code, the only such place is MotionEventInjector.

Therefore, label all events coming out of MotionEventInjector as
"untrusted" by removing this new flag INPUTFILTER_TRUSTED.

Separately, a11y should be distinguishable from regularly injected input
events. To tell apart the events injected by a11y, add a new flag,
FLAG_INJECTED_FROM_ACCESSIBILITY. This flag requests InputDispatcher to
apply the device id = -2 for the injected events.

Test: atest CtsInputTestCases:android.input.cts.GamepadWithAccessibilityTest
Test: atest MotionEventInjectorTest
Bug: 175069843
Change-Id: I12d4a7bd6fbab8af202f5ae88b6be97ff9e1754c
2021-06-04 21:15:43 +00:00