Commit Graph

16734 Commits

Author SHA1 Message Date
Tiger Huang
69ea93aea0 Merge "Defer dispatching insets to app if its window frame will be changed soon" into sc-dev am: 50ae7cbf1b am: 4586f92923
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14881021

Change-Id: Id063a13b6f41715e0e5256c2122dcc9820c34603
2021-06-10 08:27:18 +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
TreeHugger Robot
49cfb97ac0 Merge "Remove tracing for notifyContentCapture" into sc-dev am: 789fe38968
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14904360

Change-Id: Ide3b5000b8dd695adda3ef84271de5cc11b713ab
2021-06-09 19:30:27 +00:00
TreeHugger Robot
789fe38968 Merge "Remove tracing for notifyContentCapture" into sc-dev 2021-06-09 19:14:05 +00:00
TreeHugger Robot
17dddb1b96 Merge "Make ContentCapture event contains parcelable span" into sc-dev am: 3009984d65
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14819344

Change-Id: I4693e6fdb51ba4b01e1de837df3be9dec7f5d08e
2021-06-09 17:07:03 +00:00
Mark Renouf
78060a53a2 ScrollCaptureTarget: enforce argument nullability in ctor am: 886b1a3d7c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14846764

Change-Id: I1c75e3d83f41733ea50a2d3dc73e7afc0b2df3c8
2021-06-09 17:06:56 +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
ecf1620175 Merge "Add a method in RecentsAnimationController to animate the nav bar" into sc-dev am: ecb653c2bb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14879195

Change-Id: Ie28aaaf189dd9c36d912dca46b3da64ed8d322d9
2021-06-09 02:05:26 +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
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
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
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
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
1de80b1d70 Merge "Deleting DisplayContent#reparentDisplayContent and related code" into sc-dev 2021-06-02 23:23:41 +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
a731c9f3f9 Merge "ViewRootImpl: Correct opaque flag usage" into sc-dev 2021-06-02 09:28:33 +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
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
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
Ahaan Ugale
02fe90bb42 Translate: Ignore duplicate translations.
This can happen if UiTranslationManager#startTranslation is called more
than once for the same view. If the same TranslationResponse is
returned, it can simply be ignored.

This is preferable to ignoring duplicate ViewTranslationRequests, since
the Response is already cached. The TranslationService can cache
translations, so duplicate requests isn't an issue.

Ideally, the platform intelligence shouldn't issue multiple requests for
the same view.

Bug: 144292180
Test: atest CtsTranslationTestCases
Change-Id: I0bba4a19284a61a9c7a5b79c71b4f42ddffe4e32
2021-05-27 09:33:49 -07:00
Ahaan Ugale
4df6d70e4c TranslationResponseValue: Override equals() behaviour for Extras.
Bundle doesn't override equals(). In TranslationResponseValue, the
Extras is used as a simple value type, so contents can be compared.

Bundle.kindofEquals probably works here, but this change just makes it
work for empty bundles for now, to fix a bug in animation.

Bug: 144292180
Test: atest CtsTranslationTestCases
Change-Id: I68daac8cafceb1aa446ee89ba1405595b22e6213
2021-05-27 09:31:58 -07:00
Ahaan Ugale
39631823d8 Merge "Force to notify ContentCapture event even view is not laid out" into sc-dev am: 75d63c116c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14683430

Change-Id: I2f7a064416c1f82de756084cc87758f2de77432c
2021-05-27 00:51:19 +00:00
Ahaan Ugale
75d63c116c Merge "Force to notify ContentCapture event even view is not laid out" into sc-dev 2021-05-27 00:35:19 +00:00
Hongming Jin
a0f9d36647 Add features to allow filtering logging based
on interfaces.

Bug: 157601519
Test: adb shell cmd accessibility start-trace -t IAccessibilityServiceConnection IAccessibilityServiceClient IAccessibilityManager
      adb shell cmd accessibility stop-trace
Change-Id: Iab5ec5ae3d77c893a646cf1ae106ff5fa50d9281
2021-05-26 13:36:55 -07:00
Winson Chung
36f8ff7f85 Always copy provided gesture exclusion rects
- Disallow callers from concurrently modifying the exclusion rects
  list after it's set by making a copy.

Bug: 166594759
Test: atest android.view.cts.SystemGestureExclusionRectsTest
Change-Id: I80183cf85d16ac669320cfda9ec9deed9e348e33
2021-05-26 16:57:49 +00:00
TYM Tsai
1d0ad76872 Force to notify ContentCapture event even view is not laid out
Some recycled views cached its layout and a relayout is unnecessary.
In this case,  system still needs to notify content capture the view
appeared.

Bug: 177687849
Test: atest CtsContentCaptureServiceTestCases
Test: atest ContentCapturePerfTests
Change-Id: I480436c4fc3508b9eed485421a1cc778d55d5dde
2021-05-27 00:52:50 +08:00
Joanne Chung
c9a1329a73 Merge "Added documentation for TResponseValue bundle on how to use and example structure." into sc-dev am: ba76d446ee
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14669189

Change-Id: I3f405fa834ce18a1de9dda3e5f957cd884216268
2021-05-26 06:33:49 +00:00