Commit Graph

18706 Commits

Author SHA1 Message Date
Hans Boehm
0c1d2d8fbf Merge "Document VirtualRefBasePtr hazards" am: 5ee3cfe147 am: 29eb7ad17e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2081782

Change-Id: I7df909549bb80d31774ba0fa472ffaeee8ce132b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-07 00:35:58 +00:00
Hans Boehm
29eb7ad17e Merge "Document VirtualRefBasePtr hazards" am: 5ee3cfe147
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2081782

Change-Id: I5e80ebf68b5faf3215b37bef66631452e7322d16
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-07 00:10:26 +00:00
Hans Boehm
5ee3cfe147 Merge "Document VirtualRefBasePtr hazards" 2022-05-06 23:54:45 +00:00
Treehugger Robot
c92d823876 Merge "Set an edit uri to data of ACTION_EDIT" am: 1e3e69212a am: 0db2c732ac
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2049443

Change-Id: I8ddbe81595509ca00044e4a9b1990a309ee0ab6b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-06 21:39:02 +00:00
Treehugger Robot
0db2c732ac Merge "Set an edit uri to data of ACTION_EDIT" am: 1e3e69212a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2049443

Change-Id: I128625d46b2daf19ae7dbb8293f2415b940e9c02
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-06 21:16:32 +00:00
Song Hu
fb3db94c78 Merge "ChooserActivity reports whether the selected target is pinned in Westworld logging" into tm-dev am: 42bf145179
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18144333

Change-Id: Ic60751ea6d00a1812da32a7eb34cf7b7ea5ed30c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-06 20:40:04 +00:00
Treehugger Robot
1e3e69212a Merge "Set an edit uri to data of ACTION_EDIT" 2022-05-06 20:38:05 +00:00
Song Hu
42bf145179 Merge "ChooserActivity reports whether the selected target is pinned in Westworld logging" into tm-dev 2022-05-06 20:36:02 +00:00
Shan Huang
6ab5e39822 Merge "Migrate IME to handle back with OnBackInvokedDispatcher." into tm-dev am: e3a61826eb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17952046

Change-Id: I33ca384c6ed7f423e7d70099db4870c8cfa9f01c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-06 19:52:31 +00:00
Shan Huang
e3a61826eb Merge "Migrate IME to handle back with OnBackInvokedDispatcher." into tm-dev 2022-05-06 19:35:42 +00:00
Hans Boehm
d72e472407 Document VirtualRefBasePtr hazards
Test: Treehugger
Change-Id: I6f364b4e0f73a2eb554f2902a67e774ef5890b00
2022-05-06 11:11:37 -07:00
TreeHugger Robot
ba3fbdf314 Merge "Fix logging crash in ResolverRankerService model" into tm-dev am: ad237705da
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18185215

Change-Id: I56d6ac42ce05554463b46b1ff920ccfbeda9ccde
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-06 16:00:13 +00:00
TreeHugger Robot
ad237705da Merge "Fix logging crash in ResolverRankerService model" into tm-dev 2022-05-06 15:48:55 +00:00
Jacqueline Bronger
5bfd8f5d2b Merge "Add more information to the TV PiP notification" into tm-dev am: b6de832709
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17197863

Change-Id: I04f8e24a88d9179a64e8ee7a0df23d788865dd83
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-06 11:09:11 +00:00
Jacqueline Bronger
b6de832709 Merge "Add more information to the TV PiP notification" into tm-dev 2022-05-06 10:39:27 +00:00
Song Hu
470f8434b1 ChooserActivity reports whether the selected target is pinned in Westworld logging
Test: atest
Bug: 210453009
Change-Id: Id67f5356f90e5ee1f10f782e2389582807b9be1e
2022-05-05 12:05:36 -07:00
Joshua Trask
9a43192cef Fix logging crash in ResolverRankerService model
This was a regression introduced in ag/17913997 because
I missed that the legacy code included the ternary
`? 0 : 1` to convert from boolean to int value in this
(not-type-safe, see b/231577676) API call.

Bug: 231491021
Bug: 231577676

Test: compile/presubmit. This doesn't prove that the fix
works (we must just not have coverage, or we would've
caught the regression the first time) but it does validate
the syntax and confirm that there are no other unintended
changes (stray keystrokes...). The fix is trivial; this CL
simply restores the exact behavior pre- ag/17913997.

Change-Id: I706dee50e074da3ca40cde5b83abfd076a271959
2022-05-05 15:12:38 +00:00
Mady Mellor
43ce369818 Merge changes Ieb77b211,Iad01b8f3,Ib9653ed3 into tm-dev am: e8ee9cd8d4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18011489

Change-Id: Ib1a240a9f0b20b18b72ff58cbf5f1c419e4b5cb1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-04 18:01:50 +00:00
Mady Mellor
e8ee9cd8d4 Merge changes Ieb77b211,Iad01b8f3,Ib9653ed3 into tm-dev
* changes:
  If something is suppressed from the notification list don't bubble it
  Tell NoMan to update the auto-expand flag
  Allow SysUI to update BubbleMetadata#FLAG_AUTO_EXPAND_BUBBLE
2022-05-04 18:00:21 +00:00
Matt Casey
317f887755 Merge "Halve listview update delay" into tm-dev am: 1ffed5d942
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18144265

Change-Id: Icc2f17b5926ecdd9c341e2bc08b2cf6e7bd7b100
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-04 17:57:54 +00:00
Matt Casey
1ffed5d942 Merge "Halve listview update delay" into tm-dev 2022-05-04 17:47:53 +00:00
Galia Peycheva
0a6975ee18 Merge "Fix missing position updates to blur regions" into tm-dev am: f372925a29
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17989463

Change-Id: Ide43cfb03ec8940d80752c0997444f7c9eef94d6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-04 16:30:09 +00:00
Galia Peycheva
f372925a29 Merge "Fix missing position updates to blur regions" into tm-dev 2022-05-04 16:09:27 +00:00
Jacqueline Bronger
c096f52c55 Add more information to the TV PiP notification
Includes general information as well as the system and app actions (or
media actions if there are no app actions)

Bug: 204173025
Bug: 199490119
Test: manual - check notification content from aosp notification listener

Change-Id: I6a15e443ad8f1fa17bd76e52c002909faa1c44db
2022-05-04 15:08:51 +02:00
Galia Peycheva
38cf61f704 Fix missing position updates to blur regions
The PositionUpdateListener sometimes gets called after the
FrameDrawingCallback, because there is no ordering guarantee between
these two callbacks. This causes the BlurRegions sent to SF to
not have up-to-date positions. For example, an empty Rect gets sent
as the blur region bounds, because the position update hasn't arrived
when the surface transaction is sent. When the position update arrives
it set the correct bounds, but it requires another draw to happen so
that the correct position is picked up.

This CL fixes this issue by saving the blur regions that were last sent
to SF in FrameDrawingCallback and sending another transaction when the
position update arrives. That transaction is merged into the previous
one for the same frame, so the final transaction sent to SF has correct
values.

The CL also moves the FrameDrawingCallback registering logic entirely in
the BlurAggregator in the first onPreDraw. This cleans up VRI

Bug: 197239228
Test: atest --iterations 100 BlurTest#testBackgroundblurSimple
Test: atest BlurAggregatorTest
Change-Id: Ia122df40fdf2aa124299461c2e2597b61fa92699
2022-05-04 08:36:04 +00:00
Shan Huang
a6666f2221 Migrate IME to handle back with OnBackInvokedDispatcher.
We currently close the IME by having the target application forward KEYCODE_BACK to the IME process through InputMethodManager#dispatchInputEvent and having the IME handle the keycode in InputMethodService#onKeyDown. When apps opt in to OnBackInvokedDispatcher API, we will not dispatch KEYCODE_BACK to apps anymore. Thus we need to migrate IME to the new API for it to close on back invocation.

This implementation forwards OnBackInvokedCallbacks from the IME process
to the app process. This is necessary because all callbacks need to
exist in the app process for them to be considered by hardware back keys. While back gestures go through WM to resolve callbacks from the focused window, hw keys are directly sent to the focused window's ViewRootImpl, bypassing server side back nav logic.

Bug: 228358882
Test: atest CtsInputMethodTestCases:KeyboardVisibilityControlTest
Test: atest CtsInputMethodTestCases:InputMethodServiceTest
Test: atest CtsInputMethodTestCases
Change-Id: Ie207b63b11a56c9b2173f26b734a27b13ebccc60
2022-05-04 05:31:08 +00:00
Chaohui Wang
914b9b5524 Merge "Add SETTINGS_SLIDER CUJ to InteractionJankMonitor" into tm-dev am: 6474aed2f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17938067

Change-Id: I067188117c22aa75f82c194b4105ba2592598063
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-04 02:36:47 +00:00
Chaohui Wang
6474aed2f5 Merge "Add SETTINGS_SLIDER CUJ to InteractionJankMonitor" into tm-dev 2022-05-04 02:23:14 +00:00
Dmitri Plotnikov
91fe851906 Merge "Address proportional counting for out-of-order timestamps" into tm-dev am: 860fe90fbd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18062923

Change-Id: I8e95db80f8076d28654592cd0f04b27e3fd2dce3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-04 01:24:15 +00:00
Matt Casey
ea3e5046a7 Halve listview update delay
Will do further reductions later with a slower rollout.

Bug: 224816815
Test: atest ChooserActivityTest
Change-Id: I9c00137d73febca8f8576e579e55157aa1bd05fe
2022-05-03 20:54:27 +00:00
Xin Li
fd1b1662e9 Merge SP2A.220505.002
Bug: 231319788
Merged-In: I7707d01be37582461227edcecf5d559f2019c8a5
Change-Id: I1dad245a352258f2a0017b85f14c99f305d8d660
2022-05-03 20:53:01 +00:00
Dmitri Plotnikov
ae7b2277b9 Address proportional counting for out-of-order timestamps
Bug: 229906525
Test: atest FrameworksCoreTests:BatteryStatsTests

Change-Id: Id5fb963e256d56b42c9b5a0bc686af83ca3c7835
2022-05-03 19:04:44 +00:00
Matt Casey
310590c983 Merge "Convert Personal/Work tabs to rounded bubbles" into tm-dev am: 5e35dcd369
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18090806

Change-Id: I2d37fa5b624c4f140238b520ed8db92430876df0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-02 21:29:07 +00:00
Matt Casey
5e35dcd369 Merge "Convert Personal/Work tabs to rounded bubbles" into tm-dev 2022-05-02 21:05:36 +00:00
Matt Casey
c422f42971 Merge "Empty state UI tweaks" into tm-dev am: ec9b0f949e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17776446

Change-Id: Ife93e881e064af78744ecba4dcfe4f2431d346f0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-30 18:44:38 +00:00
Matt Casey
ec9b0f949e Merge "Empty state UI tweaks" into tm-dev 2022-04-30 18:32:43 +00:00
Chaohui Wang
68ed78c06a Add SETTINGS_SLIDER CUJ to InteractionJankMonitor
Also add a default onStopTrackingTouch() method in the
SeekBarVolumizer.Callback to let Settings inject the jank monitor.

Bug: 230285829
Test: make build
Change-Id: I9f5f511183f62caf809d7326766549b87d226b0b
2022-04-30 12:58:02 +08:00
Taran Singh
cd4b0f2cc4 Merge "Fix InputConnection creation callback" into tm-dev am: d5bb81348c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17896003

Change-Id: I8f4cab3d4daad7ca25faa04a9b6bb61db18bbd4b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-29 19:10:12 +00:00
Taran Singh
d5bb81348c Merge "Fix InputConnection creation callback" into tm-dev 2022-04-29 18:58:36 +00:00
Matt Casey
b82f35f21b Convert Personal/Work tabs to rounded bubbles
Modernize the tabs in Sharesheet/Resolver to match All Apps.

Much of this is copied from the tabs implementation in All Apps.

Remove divider line below tabs (no longer needed).

More XML, less code.

Bug: 188589041

Test: Manual in light and dark themes
Test: atest ResolverActivityTest
Test: atest ChooserActivityTest
Change-Id: Ib23a1927d416d32714dd8c890dd412c73f9e573c
2022-04-29 18:16:42 +00:00
Mady Mellor
40422db463 Allow SysUI to update BubbleMetadata#FLAG_AUTO_EXPAND_BUBBLE
This flag should only really be applied to a notification bubble
one time. Once the bubble has auto-expanded (or if it was posted and
unable to auto-expand at that time due to something like DND), the
flag should be removed so we don't auto-expand it again.

We have a method that allows us to modify some specific flags on
BubbleMetadata. This CL updates that method to be more general and
work with any of the BubbleMetadata flags.

Bug: 226316876
Test: atest NotificationManagerServiceTest
Change-Id: Ib9653ed304f13ac88f489146d503f4de4fa29421
2022-04-29 17:25:30 +00:00
Calvin Pan
b5ba0f40cd Merge "Fix empty resource showing "Und"" into tm-dev am: f71832b46b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17983788

Change-Id: Ie0c13dae6819e38f1f152e42fa22f7c841c60c4b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-29 16:38:45 +00:00
Calvin Pan
f71832b46b Merge "Fix empty resource showing "Und"" into tm-dev 2022-04-29 03:55:52 +00:00
Taran Singh
fc6d5e91b7 Fix InputConnection creation callback
As noted in the linked bug, in certain scenarios IC established callback
is not always called. As a fix, we make sure we don't return early when
MSG_BIND callback is received from IME

Fix: 228105257
Bug: 217971553

Test: atest StylusHandwritingTest#testHandwritingEndToEnd

Change-Id: I780327003f7145c4f9b9df4dc5243227d7e67d92
2022-04-28 15:26:00 +00:00
Tom Hsu
c841e216a0 Merge "[Panlingual] Change Checkbox color and remove divider of listview" into tm-dev am: 12873579dc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17822477

Change-Id: Ibe1f6e171bfb0b2e9afc0e02dd7288f554bcc410
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-28 13:12:01 +00:00
Tom Hsu
12873579dc Merge "[Panlingual] Change Checkbox color and remove divider of listview" into tm-dev 2022-04-28 12:24:02 +00:00
Mark Renouf
26624226be Merge "Restores a capture rate limit for long screenshots" into tm-dev am: 82c77bb127
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17988788

Change-Id: Ib390d07fd06cfa12c0b7ae1fe15e849e9fcd895a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-28 12:09:43 +00:00
Mark Renouf
82c77bb127 Merge "Restores a capture rate limit for long screenshots" into tm-dev 2022-04-28 11:46:50 +00:00
Calvin Pan
8d8d93bf6d Fix empty resource showing "Und"
Bug: 230689140
Test: manual
Change-Id: Ib732773758bb8344f04033be11f235456434bd29
2022-04-28 07:58:49 +00:00
TreeHugger Robot
a2a2a8177d Merge "Make cuj be synchrous among atoms.proto and InteractionJankMonitor" into tm-dev am: 6298c68c71
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17951299

Change-Id: I59c67f1689cc4176ac378a291a341d8c0fecff8e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-28 06:20:59 +00:00