Commit Graph

19603 Commits

Author SHA1 Message Date
Arthur Hung
7f1b6e61ad Merge "Fix potential stuck when enabled pointer location" 2022-09-16 01:35:06 +00:00
Taran Singh
0046013807 Merge "Introduce Scribe Select/DeleteRangeGesture" 2022-09-15 18:00:37 +00:00
Arthur Hung
828907a179 Fix potential stuck when enabled pointer location
Replace ArrayList by SparseArray to track each pointer by pointer id, so
we could avoid generating lots redundant PointerStates if the event has
an unexpected pointer id value (such as 0xFFFFFFFF).

This also fix text size and path width when the density has changed.

Bug: 243548346
Test: enabled pointer location
Change-Id: I0a5b04b3034f02c3b06803a90d9b97561afdd9e0
2022-09-15 04:24:55 +00:00
TreeHugger Robot
ac5cbb5ebe Merge "Add LongArrayMultiStateCounter.combineValues" 2022-09-15 02:29:34 +00:00
Mythri Alle
40e793c8f6 Merge "Revert "Don't enable jdwp by default on userdebug builds"" am: e6a7509dbc am: a9cc544dbf am: 7d4c0fec93 am: 38333df066 am: 9b60a6d16d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2216445

Change-Id: I1360a4a173047de833c28498c6cd964fc6295673
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-15 01:48:24 +00:00
Taran Singh
85a57bc143 Introduce Scribe Select/DeleteRangeGesture
Add new APIs for select and delete with two rectangles.

Test: atest InputConnectionEndToEndTest
Test: atest StylusHandwritingest
Bug: 239783077

Change-Id: Ia7240d3eaac8610c774c3a4aad074a4b84b71521
2022-09-15 00:36:40 +00:00
Dmitri Plotnikov
bb76e0fe02 Add LongArrayMultiStateCounter.combineValues
This method combines values into a smaller array
by using an index map.

Bug: 244623253
Test: atest com.android.internal.os.LongArrayMultiStateCounterTest
Change-Id: Ic35d30cc1f8765cd4e21366943da8291355a0047
2022-09-14 16:59:31 -07:00
Mythri Alle
9b60a6d16d Merge "Revert "Don't enable jdwp by default on userdebug builds"" am: e6a7509dbc am: a9cc544dbf am: 7d4c0fec93 am: 38333df066
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2216445

Change-Id: Ifff7c4493145d6e4c283b5e5df1a14d2b2b516b1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-14 17:15:49 +00:00
Mythri Alle
7d4c0fec93 Merge "Revert "Don't enable jdwp by default on userdebug builds"" am: e6a7509dbc am: a9cc544dbf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2216445

Change-Id: I47e373c97837014c838c6b13d4027965baeffb06
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-14 16:20:27 +00:00
Pascal Muetschard
09055e3d4d Fixes a NPE in the DisplayResolutionTracker.
Bug: 246761682
Change-Id: I18f41166e2db92e9330c283600a492a3031b320f
2022-09-14 16:38:01 +02:00
Mythri Alle
50c258ca37 Revert "Don't enable jdwp by default on userdebug builds"
This reverts commit 1b989de3d7.

Reason for revert: Test failures:
https://b.corp.google.com/issues/246707198
https://buganizer.corp.google.com/issues/246616689

Change-Id: Ibeb5a92bcfe129df01f94bec2a41fea57303e53e
2022-09-14 09:57:03 +00:00
Pascal Mütschard
7d3ae07e6c Merge "Include the display's resolution in the Jank reports." 2022-09-14 09:54:03 +00:00
Wu Ahan
5c828a8a2d Merge "Revert "Enable presubmit for com.android.internal.jank"" 2022-09-14 08:57:38 +00:00
Wu Ahan
11d9c54709 Revert "Enable presubmit for com.android.internal.jank"
Revert "Update the class name of jank related atoms"

Revert "Add TEST_MAPPING file for checking jank atoms"

Revert submission 19784398-jank_presubmit

Reason for revert: see b/246684475
Reverted Changes: 
I3880fa2bb:Enable presubmit for com.android.internal.jank
Ia1c4e3214:Add TEST_MAPPING file for checking jank atoms
If8a041770:Update the class name of jank related atoms

Change-Id: I7ab08b691f15647ca026e55e3cf115c9edcd9160
2022-09-14 08:43:17 +00:00
Wu Ahan
79324138a6 Merge "Enable presubmit for com.android.internal.jank" 2022-09-14 02:35:50 +00:00
Justin Ghan
e4c0e42c12 Merge "APIs for remove space gesture, and join or split gesture" 2022-09-13 22:35:33 +00:00
Andrey Epin
3f3ec78227 Merge "Add null-safety checks" into tm-qpr-dev am: 4c31889176 am: abd9f84919
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19931025

Change-Id: Ifeb1593ff09598b1b6885b5efe6dd50dc14594fd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-13 17:13:35 +00:00
Andrey Epin
abd9f84919 Merge "Add null-safety checks" into tm-qpr-dev am: 4c31889176
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19931025

Change-Id: I9418d28956ffa3776949e108ec78f6c3fa831a69
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-13 16:43:29 +00:00
Andrey Epin
4c31889176 Merge "Add null-safety checks" into tm-qpr-dev 2022-09-13 15:48:37 +00:00
Mythri Alle
4653017c14 Merge "Don't enable jdwp by default on userdebug builds" am: 3ade15d233 am: 391e8ca76a am: 251978e0da am: 97e39b881d am: 209f25aff5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2215481

Change-Id: I3b8d09585411c4da3aabdd501e9301ed293b03ff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-13 14:18:35 +00:00
Mythri Alle
209f25aff5 Merge "Don't enable jdwp by default on userdebug builds" am: 3ade15d233 am: 391e8ca76a am: 251978e0da am: 97e39b881d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2215481

Change-Id: I6744c85c6311ea61c88b3d1158db55465f8b3100
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-13 14:03:40 +00:00
Mythri Alle
251978e0da Merge "Don't enable jdwp by default on userdebug builds" am: 3ade15d233 am: 391e8ca76a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2215481

Change-Id: Ic1481a6d93e546eb0db1d7c8827e2529a055fdce
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-13 13:08:26 +00:00
TreeHugger Robot
e5038d35e6 Merge "Hide soft-keyboard when no editor is focused" 2022-09-13 10:38:39 +00:00
Ming-Shin Lu
a201f2123d Hide soft-keyboard when no editor is focused
In case seeing the unexpected fallback keyboard layout when focusing to
the window without an editor from the app has shown the IME.

Note that this behaviour change affects when the IME focus switching to
the next window with following configurations from an IME shown window:
  1) SOFT_INPUT_STATE_UNCHANGED state without an editor
  2) SOFT_INPUT_STATE_VISIBLE state without an editor
  3) SOFT_INPUT_STATE_ALWAYS_VISIBLE state without an editor

Also, we guarded this platform behavior with DeviceConfig platform flag
in input method manager namespace.

Fix: 240701729
Bug: 243897178
Test: manual as issue steps
  1) In Launcher, swiping up to enter all apps page.
  2) Tap the search bar to show IME
  3) Type "Keep" to show Keeps app's shortcut
  4) Tap Keeps app's shortcut
  5) Verify IME won't be shown on top of Keeps app's activity
     (As the app set SOFT_INPUT_STATE_UNCHANGED without focusing an
      editor by default)
Test: atest KeyboardVisbilityControltest#\
         ImeInvisible_softInputAdjustNothingFromImeShownApp
Change-Id: I0c502bec5c5e21dabde08d610a9a1969c1229b08
2022-09-13 10:33:40 +00:00
Mythri Alle
1b989de3d7 Don't enable jdwp by default on userdebug builds
We would like to have userdebug builds as close to user builds as
possible so don't enable jdwp by default on userdebug builds. This
means that we won't be able to attach a debugger to non-debuggable
builds in userdebug builds by default. However, this support can
be enabled by setting persist.debuggable.dalvik.vm.jdwp.enabled
property. Eng builds still enable jdwp by default.

Bug: 240410400
Test: System boots
Change-Id: Iad52254be9b9bc8c9deac8b3ad46e9db1b610160
2022-09-13 09:11:21 +00:00
Dmitri Plotnikov
f8826f098b Merge "Add CPU power brackets to PowerProfile" 2022-09-12 23:19:40 +00:00
Andrey Epin
78c90b7039 Merge "Fix direct share target cells's visibility" into tm-qpr-dev am: 957aa20906 am: 08c01ae19c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19806051

Change-Id: I9a94ba4493d4030f577183c573ffb63ccb672b01
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-12 21:28:50 +00:00
Andrey Epin
08c01ae19c Merge "Fix direct share target cells's visibility" into tm-qpr-dev am: 957aa20906
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19806051

Change-Id: I3bfafe04086b0727d1e0098a1eb4d661b0c05959
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-12 20:39:46 +00:00
Andrey Epin
957aa20906 Merge "Fix direct share target cells's visibility" into tm-qpr-dev 2022-09-12 20:18:38 +00:00
Justin Ghan
d12fdde387 APIs for remove space gesture, and join or split gesture
Bug: 240436909
Test: atest InputConnectionEndToEndTest
Change-Id: I2f8c511748c9de3a25bd6a17fcf33cc5017dd0e8
2022-09-12 11:13:11 -07:00
Andrey Epin
2912adc6dd Add null-safety checks
Add nullability annotations and checks to avoid NPE crashes.

Test: manual Chooser-to-Markup transition test
Fix: 246345027
Change-Id: If9582047de7d943e39c5f318050ab3558f062932
2022-09-12 11:08:38 -07:00
Pascal Muetschard
0e2ac808cc Include the display's resolution in the Jank reports.
Tracks the resolutions of the displays and includes the appropriate
resolution in the tracked stats.

Bug: 241174561
Test: atest com.android.internal.jank
Change-Id: I57d9d02f2b9bd9cf451ee4466f3c65b1bb1cf7b4
2022-09-12 11:48:46 +02:00
Yeabkal Wubshit
4a8abca2d8 Merge "Reland "Conform to 1D VelocityTracker" (--try 2)" 2022-09-10 04:24:20 +00:00
Dmitri Plotnikov
ec82dbfdb5 Add CPU power brackets to PowerProfile
Bug: 244623253
Test: atest com.android.internal.os.PowerProfileTest

Change-Id: I9757577fa526c40fc09af073a2d6eb0aa1db9501
2022-09-09 16:57:48 -07:00
Yeabkal Wubshit
8fa896d098 Reland "Conform to 1D VelocityTracker" (--try 2)
b7977568d0

Topic for the revert which is being rolled-forward: https://googleplex-android-review.git.corp.google.com/q/topic:revert-19762050-generic_vt-XWGGUQUHYR

Bug: 32830165
Test: android.view.cts.VelocityTrackerTest unaffected; touch fling works

Change-Id: Ifc1e5c3efa06656609ea2021b93706026165af8e
2022-09-09 22:07:35 +00:00
Ryan Zuklie
0563fe8128 Merge "Export BatteryStats state bitmaps to ATrace" 2022-09-09 21:29:00 +00:00
TreeHugger Robot
1934e1a953 Merge "Fix the order of talkback focus for ConversationLayout when expanded" into tm-qpr-dev am: f4643c773b am: 2211c16334
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19904008

Change-Id: Ic0b348f9d5427f66692458aa1dd3ba0ac3b75941
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 19:09:31 +00:00
TreeHugger Robot
2211c16334 Merge "Fix the order of talkback focus for ConversationLayout when expanded" into tm-qpr-dev am: f4643c773b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19904008

Change-Id: I72539dbca5334cfb1f3f04226a71eabdfdedabe6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 18:39:37 +00:00
TreeHugger Robot
f4643c773b Merge "Fix the order of talkback focus for ConversationLayout when expanded" into tm-qpr-dev 2022-09-09 18:05:51 +00:00
Yeabkal Wubshit
ab2c164250 Merge "Revert "Conform to 1D VelocityTracker"" 2022-09-09 16:30:16 +00:00
Olivier Gaillard
a59a77313e Merge "Reduce WRAPPED_PID_TIMEOUT_MILLIS to 20s." 2022-09-09 08:51:13 +00:00
Olivier Gaillard
4176fe962a Reduce WRAPPED_PID_TIMEOUT_MILLIS to 20s.
It will allow us to reduce the system server watchdog to 20s.

Test: manual
Bug: 209932320
Change-Id: Ifea5529cea8344141cfd19b53c3b3723d51134dc
2022-09-09 08:50:45 +00:00
Sam Dubey
b7977568d0 Revert "Conform to 1D VelocityTracker"
Revert submission 19762050-generic_vt

Reason for revert: b/245842062
Reverted Changes:
I181af7a03:Make VelocityTracker 1D
Ib0be0fc38:Conform to 1D VelocityTracker

Change-Id: Ic669d9988a4807751554e3c57520b33698716fc3
2022-09-09 05:09:34 +00:00
Andrey Epin
eca3ff94c6 Merge "Revert "Load direct-share icons asynchronously"" into tm-qpr-dev am: abe2a224f9 am: 22d7790c41
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19902145

Change-Id: Ie392a5919fd3679b8265a848aca9a8287f800c4a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 00:03:52 +00:00
Yeabkal Wubshit
77d9c13f08 Merge "Conform to 1D VelocityTracker" 2022-09-08 23:35:04 +00:00
Andrey Epin
22d7790c41 Merge "Revert "Load direct-share icons asynchronously"" into tm-qpr-dev am: abe2a224f9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19902145

Change-Id: Ie3b7c961302f78fff18cb745d55794205ade9280
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-08 23:18:12 +00:00
Andrey Epin
abe2a224f9 Merge "Revert "Load direct-share icons asynchronously"" into tm-qpr-dev 2022-09-08 23:01:48 +00:00
Yining Liu
ffc4bc77b8 Fix the order of talkback focus for ConversationLayout when expanded
Talkback can now correctly focus the collapse button before going to the action list when expanded. To know why mExpandButton is dynamically placed, check commit: 54fe9ad2dc

Bug: 237505828
Test: Visual, see the STEPS TO REPRODUCE section of bug 237505828, the focus order of talkback should be collapse button then actions.
Change-Id: Id0cf8730b00e0e7636a163fb5d51e37e8e0a3e84
2022-09-08 21:35:04 +00:00
Yeabkal Wubshit
67c8fa68a6 Conform to 1D VelocityTracker
The native VelocityTracker has been refactored to allow support of axes
beyond X and Y axes. To conform to this change, we are updating calls to
the native VelocityTracker. Furthermore, to support independent velocity
tracking for separate axes, we are updating the native/JNI methods
accordingly. With these changes, supporting new axes for velocity
tracking would only require changes at the native VelocityTracker level
only (besides creating a public API for our clients).

Bug: 32830165
Test: android.view.cts.VelocityTrackerTest unaffected; touch fling works

Change-Id: Ib0be0fc38c315ade2475cd53597a846e58016d14
2022-09-08 18:21:39 +00:00
Andrey Epin
70a4601f62 Revert "Load direct-share icons asynchronously"
This reverts commit 5650e0c3c8.

Reason for revert: broken functionality b/245681929

Fix: 245681929

Change-Id: I50fce5cca55ee40e66c0915759bfa930848588b9
2022-09-08 17:33:47 +00:00