Commit Graph

17086 Commits

Author SHA1 Message Date
Evan Rosky
38fd37d465 Merge "Hook up split-launch to legacy transition system" into sc-v2-dev am: 5b003d97e8 am: 884bd51e3a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15138014

Change-Id: Iac1f788b593b94b552049575d8e5811c8e75a40c
2021-07-08 18:29:07 +00:00
Evan Rosky
5b003d97e8 Merge "Hook up split-launch to legacy transition system" into sc-v2-dev 2021-07-08 18:10:40 +00:00
Vishnu Nair
9cb7227cb4 Merge "SurfaceControl: Query native object for transform hint" into sc-dev am: 07576112d9 am: 022db9f377
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15191721

Change-Id: I157a45b4c55da00014efaaf3a1df48784da83f90
2021-07-08 16:05:25 +00:00
Evan Rosky
5ca3820ae6 Hook up split-launch to legacy transition system
Part 1 of hooking up stage-split to legacy stuff. This
actually routes the legacy remoteAnimation through shell
in order to gather the dividerbar and interract with the
WindowProcessController

Bug: 192279476
Test: atest WindowOrganizerTests.
      use SPLIT_SELECT to launch 2 apps in split and observe.
Change-Id: I4f8802e6eb33f068fae0e4b3c12942bea76e332b
2021-07-08 09:02:59 -07:00
Vishnu Nair
682565243f Merge "SurfaceControl: Query native object for transform hint" into sc-dev am: 07576112d9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15191721

Change-Id: I5830ac71715a1b5c6a32033a2641ca91323be20d
2021-07-08 15:57:11 +00:00
Vishnu Nair
07576112d9 Merge "SurfaceControl: Query native object for transform hint" into sc-dev 2021-07-08 15:45:31 +00:00
John Reck
cef93afaf1 Merge "Reduce number of weakrefs per frame" into sc-dev am: a8bb119574 am: fda098eade
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15226230

Change-Id: I07f4fe656f57204c99ff0a3179e57f7143da0aa4
2021-07-08 15:35:51 +00:00
John Reck
c2697f38cc Merge "Reduce number of weakrefs per frame" into sc-dev am: a8bb119574
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15226230

Change-Id: Id8a534f1b04e1e09eb6ebd3f1d4170ddaab7115f
2021-07-08 15:23:15 +00:00
Joanne Chung
044c1bc50d Update deprecated Preconditions.checkNotNull with Objects.requireNonNull.
Bug: 179352338
Test: manual
Test: atest CtsAutoFillServiceTestCases
Test: atest CtsVoiceInteractionTestCases
Test: atest CtsTextClassifierTestCases
Test: atest CtsContentCaptureServiceTestCases

Change-Id: Id66bacddad4b9f9178326fd97d0cadc3f23a594c
2021-07-07 23:49:45 +00:00
John Reck
b7039c6aa5 Reduce number of weakrefs per frame
Disable end-to-end input latency metric to reduce the
number of JNI WeakGlobalRef acquires per-frame.

Bug: 189738006
Test: Observe trace section no longer appears in calculator
Change-Id: I062dad8e7cec93cca5599e51d2b0b1a1b6e39a07
2021-07-07 19:18:34 -04:00
Yinglei Wang
b307d06233 Merge "Allow app usage of AccessibilityInteractionClient#getInstance and clearCache before T" into sc-dev am: 69d877992b am: 08f347af5e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15181867

Change-Id: I2ef95de269691c67a0cfc1b5abee4bd6969768ad
2021-07-02 21:27:49 +00:00
Yinglei Wang
1943d7c240 Merge "Allow app usage of AccessibilityInteractionClient#getInstance and clearCache before T" into sc-dev am: 69d877992b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15181867

Change-Id: I9dbabae9045f67d595836608de23065030ee17ba
2021-07-02 21:27:43 +00:00
Yinglei Wang
69d877992b Merge "Allow app usage of AccessibilityInteractionClient#getInstance and clearCache before T" into sc-dev 2021-07-02 21:21:33 +00:00
Vishnu Nair
f4cc95956c SurfaceControl: Query native object for transform hint
When a new SurfaceControl was created, the java object's transform
hint was not updated. This created a mismatch between the java and
native objects resulting in the client getting an incorrect transform
hint. Fix this by making the native object the source of truth for
transform hints.

Test: in landscape mode, dismiss apps and check launcher does not reject buffers
Bug: 191841127

Change-Id: Icc87b8cf8158eedb87eea886392a0460a76c6443
2021-07-02 13:08:33 -07:00
Mark Renouf
6845b83335 Merge "Revert "Revert "Fix mPositionInWindow to not use global coords""" into sc-dev am: 2fe11f121d am: 098aa09607
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15172668

Change-Id: I8274b290e6271a0d418ef4e59b31f0d2a736ad90
2021-07-02 19:22:27 +00:00
Mark Renouf
f5ff9a0425 Merge "Revert "Revert "Fix mPositionInWindow to not use global coords""" into sc-dev am: 2fe11f121d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15172668

Change-Id: I4dcb7a6bca2038484f5399dc4d3871aff2fb5352
2021-07-02 19:06:15 +00:00
Mark Renouf
2fe11f121d Merge "Revert "Revert "Fix mPositionInWindow to not use global coords""" into sc-dev 2021-07-02 18:54:07 +00:00
yingleiw
81f366110d Allow app usage of AccessibilityInteractionClient#getInstance and clearCache before T
These are needed to have a workaround fix for a11y cache filled with
stale data before android T.

NoNonSdkCheck: set maxTargetSdk to S in UnsupportedAppUsage is not allowed yet.

Bug: b/192110374

Test: it builds fine.
Change-Id: Iaa0f68b2b8e4702f6b638cb3060714a22850af7e
2021-07-02 16:58:59 +00:00
TreeHugger Robot
3760ff5953 Merge "Switch back to sync IInputMethodManager" into sc-dev am: 4e944d4634
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15176334

Change-Id: I98fc3154d5384ac6c0d75428c059d6fe8e4c7b68
2021-07-02 15:37:19 +00:00
TreeHugger Robot
4e944d4634 Merge "Switch back to sync IInputMethodManager" into sc-dev 2021-07-02 15:22:21 +00:00
Yohei Yukawa
4f904fac9d Merge "Switch back to sync IInputMethodManager" 2021-07-02 14:28:49 +00:00
Yohei Yukawa
9dde701446 Switch back to sync IInputMethodManager
This CL logically reverts recent CLs [1][2][3][4][5][6][7][8][9] to
switch back to the previous sync IPC approach in IInputMethodManager
except for the following two IPCs.

 * reportPerceptibleAsync
 * removeImeSurfaceFromWindowAsync

Reason for revert:
We need more time to understand its performance implications.

 [1]: If4b40244a2e0e3b11c38c1da9340ba8e5166ad64
      b9590fa1e1
 [2]: If79e063641a01b325c63eb9f871f5b992d7c0b72
      5a5648dcb5
 [3]: I1547b98b2aacf764e33aadc9ab784f2013f58f2f
      d833f0dab4
 [4]: I646ef4ae0570aae1812ea267f309441fdec6938d
      38fd020616
 [5]: Iaa63e01453da4ff0e3f446eac036b3be3180cb73
      4a820ccc41
 [6]: Id516fd1c961f43ac3e139c88d7ed004c188d458b
      0a32fd21ef
 [7]: Icb396ae5d74060af69c4ecb16723b2e37b9f2067
      c4663ba6a9
 [8]: I3eafbc28ed3acf3ba859885bf201cb06b3149b94
      f226a79fee
 [9]: Ic584203c1221fbae17f5e2d8f09e3992df061646
      5e2d9f271d

Bug: 163453493
Bug: 174892351
Fix: 190486491
Test: atest CtsInputMethodTestCases
Change-Id: If16ac0de536d9089eb04f6e07b1ee47378124658
Merged-In: If16ac0de536d9089eb04f6e07b1ee47378124658
2021-07-02 07:06:07 +00:00
Yohei Yukawa
662b48b72d Switch back to sync IInputMethodManager
This CL logically reverts recent CLs [1][2][3][4][5][6][7][8][9] to
switch back to the previous sync IPC approach in IInputMethodManager
except for the following two IPCs.

 * reportPerceptibleAsync
 * removeImeSurfaceFromWindowAsync

Reason for revert:
We need more time to understand its performance implications.

 [1]: If4b40244a2e0e3b11c38c1da9340ba8e5166ad64
      b9590fa1e1
 [2]: If79e063641a01b325c63eb9f871f5b992d7c0b72
      5a5648dcb5
 [3]: I1547b98b2aacf764e33aadc9ab784f2013f58f2f
      d833f0dab4
 [4]: I646ef4ae0570aae1812ea267f309441fdec6938d
      38fd020616
 [5]: Iaa63e01453da4ff0e3f446eac036b3be3180cb73
      4a820ccc41
 [6]: Id516fd1c961f43ac3e139c88d7ed004c188d458b
      0a32fd21ef
 [7]: Icb396ae5d74060af69c4ecb16723b2e37b9f2067
      c4663ba6a9
 [8]: I3eafbc28ed3acf3ba859885bf201cb06b3149b94
      f226a79fee
 [9]: Ic584203c1221fbae17f5e2d8f09e3992df061646
      5e2d9f271d

Bug: 163453493
Bug: 174892351
Fix: 190486491
Test: atest CtsInputMethodTestCases
Change-Id: If16ac0de536d9089eb04f6e07b1ee47378124658
2021-07-02 07:05:45 +00:00
Joanne Chung
12e3576e13 Merge "Fix translation reference gone problem." into sc-dev am: 3d088cbb09 am: be58916c53
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15172174

Change-Id: I2897d98c52076e5010ce9545a4d164a380cfbfaa
2021-07-02 04:23:52 +00:00
Joanne Chung
da14b09d4b Merge "Fix translation reference gone problem." into sc-dev am: 3d088cbb09
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15172174

Change-Id: If5e44d08cf649d90380a7ccb14ed833f17d42b14
2021-07-02 04:11:13 +00:00
Joanne Chung
3d088cbb09 Merge "Fix translation reference gone problem." into sc-dev 2021-07-02 03:58:36 +00:00
Charles Chen
73c59237fe Merge "Remove updateImeDisplayId" into sc-v2-dev am: 56e17bfcd8 am: ebf2e81d46
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15065650

Change-Id: I15b4412061117df48156736a4536bb7d43ddd3f6
2021-07-02 03:52:03 +00:00
Charles Chen
56e17bfcd8 Merge "Remove updateImeDisplayId" into sc-v2-dev 2021-07-02 03:20:32 +00:00
TreeHugger Robot
e690168c26 Merge "[DO NOT MERGE] Remove the Client Suggestions APIs" into sc-v2-dev 2021-07-02 03:00:50 +00:00
Joanne Chung
844cc85ddf Fix translation reference gone problem.
1. We save Translator WeakReference in ServiceBinderReceiver.
It has a chance the reference is gone even the session is still
alive. Save Translator instead of WeakReference.
2. Fix not access TranslationManager mTranslators, mTranslatorIds in
the lock.
3. Fix protential NPE of resultData access in ServiceBinderReceiver.

Bug: 192205945
Test: manual. The function works.
Test: atest CtsTranslationTestCases

Change-Id: I158901db4bbcd76203c705ab2a34f1e0b37c7565
2021-07-02 10:12:32 +08:00
Joanne Chung
f6420f4d56 Merge "Disable log default dumps in debug ROM" into sc-dev am: 559b8dd078 am: ee7d107514
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15048193

Change-Id: I114b2bfdb9f5c79eb5293ece33937812cf95df9c
2021-07-02 00:25:45 +00:00
Joanne Chung
78878ae91f Merge "Disable log default dumps in debug ROM" into sc-dev am: 559b8dd078
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15048193

Change-Id: I24d502877c3bb160cfe16054c309087b4332dc7d
2021-07-02 00:14:53 +00:00
Joanne Chung
559b8dd078 Merge "Disable log default dumps in debug ROM" into sc-dev 2021-07-02 00:10:57 +00:00
Adam He
9a1ccd51a5 Merge "Remove activity name from autofill metrics logger." into sc-dev am: c254f87c57 am: 8009df38cf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15147190

Change-Id: If20dd5648b9cacd6232603aeaacb84586f298496
2021-07-01 19:08:49 +00:00
Adam He
ff043d6c94 Merge "Remove activity name from autofill metrics logger." into sc-dev am: c254f87c57
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15147190

Change-Id: I05bc950285f84a833bbceef3dcdb5c8855cbd1f4
2021-07-01 18:49:51 +00:00
Adam He
c254f87c57 Merge "Remove activity name from autofill metrics logger." into sc-dev 2021-07-01 18:38:06 +00:00
Ady Abraham
321410bd4f Merge "Add preferredMinDisplayRefreshRate" into sc-dev am: ac57d157da am: f93779e6b4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15141394

Change-Id: I2c92530dbfc27c3e1a547adbb8d480f6de78189b
2021-07-01 18:32:44 +00:00
Ady Abraham
d66543b1dd Merge "Add preferredMinDisplayRefreshRate" into sc-dev am: ac57d157da
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15141394

Change-Id: Ib7bb870db677036646aa32aaab8caee6695ddecf
2021-07-01 18:01:11 +00:00
Ady Abraham
ac57d157da Merge "Add preferredMinDisplayRefreshRate" into sc-dev 2021-07-01 17:58:23 +00:00
Mark Renouf
5f1b817783 Revert "Revert "Fix mPositionInWindow to not use global coords""
This reverts commit f3cda71966.

Reason for revert: Rolling forward with updated test.

Fix is in CTS test:
https://googleplex-android-review.git.corp.google.com/q/topic:screenshot_cts

Bug: 191877447
Change-Id: I058951ce761dc22e8cd1f684ea3f2a98fcf8a8eb
2021-07-01 14:43:49 +00:00
Joanne Chung
06e41142d0 Merge "Notify onFinished when activity is destroyed." into sc-dev am: d78977a7aa am: 1770b846f9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15125592

Change-Id: I1ea6a1f50e137426b2a1ee32f8b481f5c3c75350
2021-07-01 14:24:29 +00:00
TreeHugger Robot
841b41e53b Merge "Add FLAG_IS_ACCESSIBILITY_EVENT to KeyEvent and MotionEvent" into sc-dev am: 24b5ca6b4b am: bb34b1fffb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15021525

Change-Id: I96e5bf093412a43e626a230ad9c4237e939c713f
2021-07-01 14:07:32 +00:00
Huihong Luo
564cd21a12 Merge "Add a sys prop to control WebView Overlays support" into sc-dev am: faa7a4383e am: 65837e6738
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15158764

Change-Id: I88e03660fb50dd785d7686b0014866675ae5baaf
2021-07-01 13:57:32 +00:00
Joanne Chung
192818d7a5 Merge "Notify onFinished when activity is destroyed." into sc-dev am: d78977a7aa
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15125592

Change-Id: I4d089a39da9a05e94bfd7d40680eccb69980ab66
2021-07-01 13:34:18 +00:00
Joanne Chung
d78977a7aa Merge "Notify onFinished when activity is destroyed." into sc-dev 2021-07-01 13:29:21 +00:00
Joanne Chung
bb612abccd Notify onFinished when activity is destroyed.
Bug: 184901144
Test: manual
Test: atest UiTranslationManagerTest

Change-Id: Ife6883b6e4b84ad3994b83683b9dfe3af6df91af
2021-07-01 13:14:54 +08:00
TreeHugger Robot
a2ac47278c Merge "Add FLAG_IS_ACCESSIBILITY_EVENT to KeyEvent and MotionEvent" into sc-dev am: 24b5ca6b4b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15021525

Change-Id: I6d72e36bb129e093bde0013c060a0eda61f16264
2021-07-01 03:43:03 +00:00
TreeHugger Robot
24b5ca6b4b Merge "Add FLAG_IS_ACCESSIBILITY_EVENT to KeyEvent and MotionEvent" into sc-dev 2021-07-01 03:37:28 +00:00
Huihong Luo
90f63c74c4 Merge "Add a sys prop to control WebView Overlays support" into sc-dev am: faa7a4383e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15158764

Change-Id: I66925c99bfd1541a1e1b32350cfb948a1af0babb
2021-06-30 23:27:21 +00:00
Siarhei Vishniakou
b42785efdf Add FLAG_IS_ACCESSIBILITY_EVENT to KeyEvent and MotionEvent
This flag indicates that the event was modified or generated by an
accessibility service.
It allows apps to tell apart real hardware events, events that are
injected (device id == -1), and events coming from accessibility (has
flag is_accessibility_event).

Events that have gone into accessibility, and got reinjected without
being modified will not be distinguishable from real hardware events.

In the next release, we will make FLAG_IS_ACCESSIBILITY_EVENT public
api. Until then, applications will have to hard-code its value (0x800)
to use it. The value is the same for both KeyEvents and MotionEvents for
convenience.

Bug: 175069843
Bug: 152399927
Test: atest VerifiedMotionEventTest VerifiedKeyEventTest
Test: atest AccessibilityGestureDispatchTest
Test: atest inputflinger_tests libinput_tests GamepadWithAccessibilityTest
Change-Id: I38ac2ab8e19e32cad927742c623f14f43ea0c588
2021-06-30 21:07:38 +00:00