Commit Graph

18685 Commits

Author SHA1 Message Date
Jeff Sharkey
31b83af7b5 Merge "Add OWNERS coverage for dump methods for public USB classes" am: 25976ab7be am: 48dff0549a am: 856c155f2a am: e7a55e880f am: 374c039af0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2063672

Change-Id: I167839d8dbb3468adb8828c73982564858db5b4e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-22 18:30:28 +00:00
Jeff Sharkey
374c039af0 Merge "Add OWNERS coverage for dump methods for public USB classes" am: 25976ab7be am: 48dff0549a am: 856c155f2a am: e7a55e880f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2063672

Change-Id: Ic6909760d74daaaa7eb794e37d8e655889720e4e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-22 18:02:32 +00:00
Jeff Sharkey
856c155f2a Merge "Add OWNERS coverage for dump methods for public USB classes" am: 25976ab7be am: 48dff0549a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2063672

Change-Id: Ic19b956a9111ccf3cac47bf500da619bd6167101
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-22 17:37:59 +00:00
Jeff Sharkey
48dff0549a Merge "Add OWNERS coverage for dump methods for public USB classes" am: 25976ab7be
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2063672

Change-Id: I7bb943bbbad96bae9f43bf03da417a56c4eece9b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-22 17:12:24 +00:00
Matt Casey
14d363d79b Merge "DeviceConfig for Chooser update-delay duration." into tm-dev am: 31cc9ddb59 am: d42a025aeb am: 278ad27b85
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17862572

Change-Id: I4e1c16345325df53716e6091cb2a250523a4537f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-22 16:58:05 +00:00
Matt Casey
31cc9ddb59 Merge "DeviceConfig for Chooser update-delay duration." into tm-dev 2022-04-22 16:03:38 +00:00
TreeHugger Robot
ac8f7285a4 Merge "Fix testGetSurroundingTextFailWithNegative{Before,After}LengthForA11y" into tm-dev am: a136110aa2 am: 4000d3d670
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17891640

Change-Id: Id118749dad27820e3b12edcea9a12c7e27c61bbc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-22 04:48:39 +00:00
TreeHugger Robot
c8ad6848f8 Merge "Fix testGetSurroundingTextFailWithNegative{Before,After}LengthForA11y" into tm-dev am: a136110aa2 am: 10992d4667
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17891640

Change-Id: Id7694e9478996d8b4975b28cbbe5f8073a4bc248
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-22 04:48:06 +00:00
TreeHugger Robot
a136110aa2 Merge "Fix testGetSurroundingTextFailWithNegative{Before,After}LengthForA11y" into tm-dev 2022-04-22 03:35:35 +00:00
TreeHugger Robot
e061670ad7 Merge "Block subdirs of Android for SAF and normalize the path" into tm-dev am: 26fa852fd6 am: 955278fffd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17809767

Change-Id: I73a6b279e8824b752dd8a905c5a54acd39b8ac37
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-22 03:05:03 +00:00
TreeHugger Robot
7badd17143 Merge "Collect the max number of successive missed frames metric." into tm-dev am: 692d9be97d am: b0ad9fafea
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17852730

Change-Id: Ie7c38c49e9b07e488447a00e311a0f0923313ba0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-22 03:02:20 +00:00
Kohsuke Yatoh
6c3da22979 Notify IMMS synchronously on IME insets hidden. am: 4844170377 am: bc4f7f283a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17877938

Change-Id: I7dab3e08d6e362c872f5657e952e66d66ef9cf4f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-22 02:37:50 +00:00
TreeHugger Robot
d56bb4c9dd Merge "Block subdirs of Android for SAF and normalize the path" into tm-dev am: 26fa852fd6 am: d4b4ce4d14
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17809767

Change-Id: I325b280009b51db64318a4562432434f4c083a5c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-22 02:37:03 +00:00
TreeHugger Robot
f87261c0d6 Merge "Collect the max number of successive missed frames metric." into tm-dev am: 692d9be97d am: 290b91d228
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17852730

Change-Id: If76c0bf48310a125d2c32677a6f47adb9651c9a4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-22 02:35:49 +00:00
Kohsuke Yatoh
bc4f7f283a Notify IMMS synchronously on IME insets hidden. am: 4844170377
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17877938

Change-Id: Idb1352095dcf59dadf2aea0d343b05257f9dd13b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-22 02:20:52 +00:00
Kohsuke Yatoh
37893c2046 Merge changes from topic "kyatoh-b221483132-tm-dev" into tm-dev
* changes:
  Do not cleanup IME window if show is requested.
  Notify IMMS synchronously on IME insets hidden.
2022-04-22 02:14:55 +00:00
TreeHugger Robot
26fa852fd6 Merge "Block subdirs of Android for SAF and normalize the path" into tm-dev 2022-04-22 02:02:16 +00:00
TreeHugger Robot
692d9be97d Merge "Collect the max number of successive missed frames metric." into tm-dev 2022-04-22 01:10:45 +00:00
Kohsuke Yatoh
4844170377 Notify IMMS synchronously on IME insets hidden.
Currently, IMMS will be notified asynchronously when an IME hide
animation finishes, via message dispatching through IMS
(IMM#notifyImeHidden -> IMS#notifyImeHidden -> IMMS#hideMySoftInput).
This creates a race condition when IMM#showSoftInput or WIC#show is
called around the end of hide animation.

This CL fixes the race condition by synchronously and directly
calling IMMS#hideSoftInput from IMM#notifyImeHidden.

Note that there is still another race condition for IMM#showSoftInput
(not WIC#show) if it's called during an IME hide animation;
IMM#showSoftInput ended up calling WIC#show asynchronously, but at that
time the running IME hide animation may have already been finished
successfully and WIC#show may fail to cancel the hide animation
(then the cleanup IMM#notifyImeHidden hides the IME again disruptively).
I will fix the latter issue in a separate CL.

Bug: 221483132
Bug: 225674038
Test: atest InputMethodStressTest
Test: atest CtsInputMethodTestCases
Test: atest WindowInsetsAnimationControllerTests
Change-Id: I7c71dc5a1d6b61aa79d1666f0e257e6401e4adb2
(cherry picked from commit 9065310f81)
Merged-In: I7c71dc5a1d6b61aa79d1666f0e257e6401e4adb2
2022-04-21 21:34:24 +00:00
Yohei Yukawa
445ee3c0f1 Fix testGetSurroundingTextFailWithNegative{Before,After}LengthForA11y
This is a follow up CL to my previous CLs[1][2], which are submitted
almost at the same time but not compatible with each other.

The first CL [1] introduced a new behavior that negative indices
passed to

  AccessibilityInputConnection#getSurroundingText(int, int, int)

result in IllegalArgumentException, which is a different behavior than
what's observed from IMEs.

The second CL [2] assumed that negative indices passed to that API
result in just receiving null result like what's observed from IMEs.

This CL effectively reverts the new behavior introduced in the first
CL [1] to keep two observable behaviors consistent.

Note that negative indices passed to getSurroundingText() are already
handled in

  RemoteInputConnectionImpl#getSurroundingText()

in a graceful manner [3], which guarantees that the IME client process
will not see such an irregular parameter (Bug 169114026) with keeping
the InputConnection commands order (Bug 194110780).

 [1]: I5ff2e804cbcf90828370a0612ff54111130bdff4
      c60176c1f3
 [2]: I62b80916369bdac981dc93c14dcaedc1f2b6e95f
      495ac0f55cbcc976995e8c73fdc89babfbdce902
 [3]: Ie0c18d0c9b8bf8f02f2fcdca5aac7e580c6bf2cd
      8821afef81

Bug: 215633021
Fix: 229981360
Test: atest CtsInputMethodTestCases:InputConnectionEndToEndTest
Change-Id: I16a0185343c7c7c3e0947aab2c398714a1077b97
2022-04-21 11:38:51 -07:00
Jernej Virag
9f4ba5ba83 Merge "Prevent LocalImageResolver from upscaling images" into tm-dev am: e02f9e390d am: 0b7126435e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17884323

Change-Id: I2a350f75ed8c388f34cb2a6acdd31f58eb54e15c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 14:55:53 +00:00
Jernej Virag
f94c11a9b2 Merge "Prevent LocalImageResolver from upscaling images" into tm-dev am: e02f9e390d am: ba1c2d3b45
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17884323

Change-Id: I0addd0f70406930d50bb34fb1f01ecd2ef5b657e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 14:53:27 +00:00
Joshua Trask
944c5af2d6 DeviceConfig for Chooser update-delay duration.
For more information, see go/sharesheet-list-view-update-delay.

Bug: 224816815
Test: `atest ChooserActivityTest`. The duration can be manually
configured by `adb shell device_config put systemui
sharesheet_list_view_update_delay n` to set a delay of n milliseconds.
With a timeout of 250 (as it was before this change), all the tests
still pass. With a timeout of 0, all tests pass but one (as described in
the doc linked above) -- a potential fix for that test will follow in a
subsequent CL.

Change-Id: Ia5edfe391b135659d2fd8126069c5cd6ce15653b
Merged-In: Ia5edfe391b135659d2fd8126069c5cd6ce15653b
2022-04-21 14:46:03 +00:00
Kohsuke Yatoh
c801c99c6c Merge changes from topic "kyatoh-b221483132"
* changes:
  Do not cleanup IME window if show is requested.
  Notify IMMS synchronously on IME insets hidden.
2022-04-21 14:34:50 +00:00
Jernej Virag
e02f9e390d Merge "Prevent LocalImageResolver from upscaling images" into tm-dev 2022-04-21 14:19:41 +00:00
Tony Huang
6ebe572217 Merge "Add jank instrument support for split screen enter and exit transition" into tm-dev am: 64202a268d am: ef3ee7afd4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17518067

Change-Id: I168e8b069a658f09de7d85c4c295eddfc01fcb8f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 12:09:32 +00:00
Tony Huang
5d837618a3 Merge "Add jank instrument support for split screen enter and exit transition" into tm-dev am: 64202a268d am: 9b03025e83
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17518067

Change-Id: If92e6c04afc94a6a302ffd5ff7ac730cc37bc496
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 12:09:23 +00:00
Tony Huang
64202a268d Merge "Add jank instrument support for split screen enter and exit transition" into tm-dev 2022-04-21 11:31:22 +00:00
TreeHugger Robot
baaed7e176 Merge "Auto finish composing text when A11yIME commits text" into tm-dev am: 54a8dee16d am: 28a52285a5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17775484

Change-Id: Ifa5b3e86bad19286407d5961598ae7918ac9bab6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 10:40:47 +00:00
TreeHugger Robot
d0b7f58ea7 Merge "Auto finish composing text when A11yIME commits text" into tm-dev am: 54a8dee16d am: a34101f961
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17775484

Change-Id: I47b536dafa84e11808b47a72da637e3ce9742bc5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 10:40:07 +00:00
TreeHugger Robot
54a8dee16d Merge "Auto finish composing text when A11yIME commits text" into tm-dev 2022-04-21 09:58:58 +00:00
TreeHugger Robot
11c4495a4f Merge "Remove unused ChooserUtil.java" into tm-dev am: c9026ad656 am: 6b2852d32a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17869728

Change-Id: I9df4bcac368dfc4d28cb6fa4fb712670d89617c3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 09:09:57 +00:00
Ahan Wu
675cc35c05 Collect the max number of successive missed frames metric.
Bug: 229226106
Test: check the trace in the bug
Test: atest InteractionJankMonitor FrameTrackerTest
Change-Id: If3e496b0178eca0555d14ce99bc462365805c4e1
2022-04-21 08:57:26 +00:00
Jernej Virag
dd397eac49 Prevent LocalImageResolver from upscaling images
LocalImageResolver should not upscale the image if it's already smaller than the maximum width.

Bug: 228719813
Test: atest LocalImageResolverTest
      New test failed before change / passed after change
Change-Id: I4fc09d1955fe94159cf0e2e8125044712f3c3134
2022-04-21 08:05:51 +00:00
TreeHugger Robot
c9026ad656 Merge "Remove unused ChooserUtil.java" into tm-dev 2022-04-21 07:22:32 +00:00
Ivan Chiang
8b55dd05ce Block subdirs of Android for SAF and normalize the path
- When the Apps launch SAF, they can set initial uri to launch the
  specific directory. Block the access for data/obb/sandbox
  directories of Android
- Normalize path (E.g. the path includes . or ..) to avoid
  unexpected behavior

Bug: 200034476
Bug: 220066255
Test: atest ExternalStorageProviderTest
Test: atest DocumentsTest
Change-Id: I226a9c25710fcf78d14d775eb3270bfd3b491dd3
2022-04-21 07:00:34 +00:00
TreeHugger Robot
3a8183eb63 Merge "Update Chooser shadows to match Launcher." into tm-dev am: bf068a0636 am: e349703e3e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17869613

Change-Id: I964365546beabf58aeb79bbc0ab6111fdd882e3a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 00:38:35 +00:00
Song Hu
8967201551 Merge "Open dialog panel after long pressing a direct share target to allow pin/unpin the target. Communicate with ShortcutManager/Launcherapps to store pin info in ShortcutService." into tm-dev am: a9012710e0 am: e209c6ba68
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17871086

Change-Id: I3ba262a6f7eb7b05ecb53390a7162991ff253d66
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 00:36:09 +00:00
Albert Wang
cf8d3b0789 Add OWNERS coverage for dump methods for public USB classes
Bug: 229706413
Test: manual

Signed-off-by: Albert Wang <albertccwang@google.com>
Change-Id: I25c6c649f8fa42fe6a0d3062aa3ab75a4310df37
2022-04-21 08:32:15 +08:00
TreeHugger Robot
bf068a0636 Merge "Update Chooser shadows to match Launcher." into tm-dev 2022-04-21 00:22:20 +00:00
Kohsuke Yatoh
9065310f81 Notify IMMS synchronously on IME insets hidden.
Currently, IMMS will be notified asynchronously when an IME hide
animation finishes, via message dispatching through IMS
(IMM#notifyImeHidden -> IMS#notifyImeHidden -> IMMS#hideMySoftInput).
This creates a race condition when IMM#showSoftInput or WIC#show is
called around the end of hide animation.

This CL fixes the race condition by synchronously and directly
calling IMMS#hideSoftInput from IMM#notifyImeHidden.

Note that there is still another race condition for IMM#showSoftInput
(not WIC#show) if it's called during an IME hide animation;
IMM#showSoftInput ended up calling WIC#show asynchronously, but at that
time the running IME hide animation may have already been finished
successfully and WIC#show may fail to cancel the hide animation
(then the cleanup IMM#notifyImeHidden hides the IME again disruptively).
I will fix the latter issue in a separate CL.

Bug: 221483132
Bug: 225674038
Test: atest InputMethodStressTest
Test: atest CtsInputMethodTestCases
Test: atest WindowInsetsAnimationControllerTests
Change-Id: I7c71dc5a1d6b61aa79d1666f0e257e6401e4adb2
2022-04-20 15:13:55 -07:00
Song Hu
59b5e8bf29 Open dialog panel after long pressing a direct share target to allow pin/unpin the target. Communicate with ShortcutManager/Launcherapps to store pin info in ShortcutService.
Bug: 210453009
Test: manual test on local phone
Test: atest ChooserActivityTest
Change-Id: Ibcc83037ca801ee0ecf2306eae954677529fa849
(cherry picked from commit 6393225873)
Merged-In: Ibcc83037ca801ee0ecf2306eae954677529fa849
2022-04-20 20:10:52 +00:00
Joshua Trask
66a423e79c Remove unused ChooserUtil.java
The helper methods provided by this class have been unused
since ag/13807667 (part of removing the old ChooserTargetService
functionality).

Test: http://cs/search?q=chooserutil&sq=package:android-internal
Bug: 148416928
Change-Id: I0aaaa5f597ef72097f1847a3187b335791287a60
Merged-In: I0aaaa5f597ef72097f1847a3187b335791287a60
2022-04-20 19:07:53 +00:00
Joshua Trask
e5b168ac27 Update Chooser shadows to match Launcher.
This just requires a few parameter changes to align with Launcher
(iconloaderlib), as proposed by digman@ in b/196631965.

Bug: 196631965
Test: asked digman@ to approve a screenshot.
Change-Id: Icca36fe8c5771041bea960478c2be85f0679dc8d
Merged-In: Icca36fe8c5771041bea960478c2be85f0679dc8d
2022-04-20 19:06:53 +00:00
Yohei Yukawa
4244bb98c4 Merge "Let A11yIME use its own IPC definitions" into tm-dev am: 538f36937d am: 1cd2dc5be4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17773213

Change-Id: Icc048070661b4fe149dcf2d2c636328a41f6def0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-20 18:42:56 +00:00
Yohei Yukawa
a3cad01b97 Merge "Let A11yIME use its own IPC definitions" into tm-dev am: 538f36937d am: 7502c8e9ef
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17773213

Change-Id: I7219f342c5efbc6c94cca1f9534debf224b016bf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-20 18:39:17 +00:00
Yohei Yukawa
538f36937d Merge "Let A11yIME use its own IPC definitions" into tm-dev 2022-04-20 17:42:55 +00:00
Jerry Chang
1a14fc4a5e Add jank instrument support for split screen enter and exit transition
Bug: 203439850
Test: build passed
Test: verified with systrace dump
Change-Id: I9c4464126af2d7631f49d0b001307782d4c01787
2022-04-20 16:36:53 +08:00
Song Hu
31f4460d2f Merge "Open dialog panel after long pressing a direct share target to allow pin/unpin the target. Communicate with ShortcutManager/Launcherapps to store pin info in ShortcutService." 2022-04-19 17:31:49 +00:00
Song Hu
6393225873 Open dialog panel after long pressing a direct share target to allow pin/unpin the target. Communicate with ShortcutManager/Launcherapps to store pin info in ShortcutService.
Bug: 210453009
Test: manual test on local phone
Test: atest ChooserActivityTest
Change-Id: Ibcc83037ca801ee0ecf2306eae954677529fa849
2022-04-19 07:13:34 -07:00