Commit Graph

19739 Commits

Author SHA1 Message Date
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
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
Ryan Zuklie
f3f3f517fd Export BatteryStats state bitmaps to ATrace
This uses logic similar to printBitDescriptions to parse the state
bitmask along with the BitDescriptions to report the information as
a trace counter.

Due to current tracing limitations, values are not remembered outside of
or between tracing. For slow moving things (like wifi enabled/disabled),
we would miss the counter in most traces if using `traceCounter` alone.
The Perfetto team's current solution is to read system properties when
the trace starts in order to fill in the initial value. To limit the
impact of this, this aspect is only enabled in userdebug.

Bug: 245749764
Test: presubmit and local perfetto tracing
Change-Id: Iaae4e9796a44be3ffdaee31b956bbb3e87735ead
2022-09-08 10:30:51 -07:00
TreeHugger Robot
284aecda62 Merge "Move dumpViewInfo from InputMethodManager to InputMethodDebug" 2022-09-08 05:08:49 +00:00
Tony Huang
262253f95a Merge "Fix divider dismiss position wrong on potrait" into tm-qpr-dev am: d36b472cd3 am: 3770554346
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19882684

Change-Id: Iacb921e7fbace64eddadeb7123c8f5113d151a75
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-08 03:45:09 +00:00
Tony Huang
3770554346 Merge "Fix divider dismiss position wrong on potrait" into tm-qpr-dev am: d36b472cd3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19882684

Change-Id: Ia94f94530d7ae69aad8a1ab7824ef206f47f1292
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-08 03:14:50 +00:00
Tony Huang
5112e20135 Fix divider dismiss position wrong on potrait
When we calculate dismiss target, it will deduce nav bar size from
total height. Remove this rule to make divider always move to end
of screen.

Fix: 232858513
Test: manual
Test: pass existing tests
Change-Id: I34cf12f242daa31bd4dd7d4b202fc43ac0d752b4
2022-09-07 15:21:39 +08:00
Andrey Epin
e33f3f093f Merge "Load direct-share icons asynchronously" into tm-qpr-dev am: 1809ffcf0e am: bb1a6ee1c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18973259

Change-Id: I97c84130642975bc7913b36b27332eedbf484137
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-07 03:38:57 +00:00
Ming-Shin Lu
9f3c04e5af Move dumpViewInfo from InputMethodManager to InputMethodDebug
This a preperation CL before refactoring ImeFocusController.

To make dumpviewInfo can also be used in other IME related files
like ImeFocusController.

Also, removed unused method InputMethodDebug#objectToString.

This is just a mechanical refactoring and should not have any behavior
change.

Bug: 244504062
Test: build
Change-Id: I9d1a0c2b06e676e40b0e844edb18e8422a67b0ad
2022-09-07 03:33:39 +00:00
Andrey Epin
bb1a6ee1c8 Merge "Load direct-share icons asynchronously" into tm-qpr-dev am: 1809ffcf0e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18973259

Change-Id: If4991c79dae30982c27ad0f3f75654b21ea3d5ba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-07 03:10:28 +00:00
Andrey Epin
1809ffcf0e Merge "Load direct-share icons asynchronously" into tm-qpr-dev 2022-09-07 02:44:24 +00:00
Nick Chameyev
d0670cacba Merge changes from topic "pss-app-selector-screenshot" into tm-qpr-dev am: 47c21d1216 am: ea0153c0fc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19536771

Change-Id: I564154cc33172568868446a04202cfc4a432b867
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-06 14:03:47 +00:00
Nick Chameyev
807b84b1f3 [Partial Screensharing] Update app selector (ChooserActivity) header am: 2d2b24f09d am: 21ceb39058
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19537653

Change-Id: Iac3673d9720a28cf07bcf069cc6f4c20eab21dba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-06 14:03:04 +00:00
Nick Chameyev
ea0153c0fc Merge changes from topic "pss-app-selector-screenshot" into tm-qpr-dev am: 47c21d1216
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19536771

Change-Id: I3abe0699529a84f05e57bee59eacf2cc60a4dc22
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-06 13:31:52 +00:00
Nick Chameyev
21ceb39058 [Partial Screensharing] Update app selector (ChooserActivity) header am: 2d2b24f09d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19537653

Change-Id: Ica3a17529f4e730104bf6ee1b43bc5d24bbaf584
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-06 13:31:27 +00:00