Commit Graph

18555 Commits

Author SHA1 Message Date
Issei Suzuki
9631eeca32 Merge "Disable overriding task animation through windowAnimationStyle attribute." into tm-qpr-dev 2022-05-05 07:52:27 +00:00
Mady Mellor
2deac5bdf8 Merge changes Ieb77b211,Iad01b8f3,Ib9653ed3 into tm-dev am: e8ee9cd8d4 am: c676e56364
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18011489

Change-Id: I9b6c103cd4827c777b13e0ad38f5ec19e3c2a271
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-04 19:54:27 +00:00
Matt Casey
986ccf619a Merge "Halve listview update delay" into tm-dev am: 1ffed5d942 am: 1a84e5a7b9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18144265

Change-Id: I6e2792f9e6ac2783d0b0687377e2be5253f3b4cd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-04 18:16:02 +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
1ffed5d942 Merge "Halve listview update delay" into tm-dev 2022-05-04 17:47:53 +00:00
Galia Peycheva
0cea5a316b Merge "Fix missing position updates to blur regions" into tm-dev am: f372925a29 am: 3145e89c1c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17989463

Change-Id: I115562417c27f3325ed88bab0e28889208ae1aab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-04 16:55:15 +00:00
Galia Peycheva
f372925a29 Merge "Fix missing position updates to blur regions" into tm-dev 2022-05-04 16:09:27 +00:00
Issei Suzuki
40395751a9 Disable overriding task animation through windowAnimationStyle attribute.
Bug: 211624533
Test: atest ActivityTransitionTests
Change-Id: Ia6844ab4397a54dc510f34f06edc4d8a188db1fc
2022-05-04 09:58:49 +00: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
Chaohui Wang
b7a654945a Merge "Add SETTINGS_SLIDER CUJ to InteractionJankMonitor" into tm-dev am: 6474aed2f5 am: 55336bcbd4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17938067

Change-Id: I0b60f12fb6801e05445da506ceb734f3e90e0d69
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-04 02:55:27 +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
63f6625add Merge "Address proportional counting for out-of-order timestamps" into tm-dev am: 860fe90fbd am: 892520724e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18062923

Change-Id: I84bb17f4a2aef66253c0fb8072d82fae10ed302b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-04 01:48:55 +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
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
c11ab5595e Merge "Convert Personal/Work tabs to rounded bubbles" into tm-dev am: 5e35dcd369 am: 5850ed9a6f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18090806

Change-Id: Ib764fdd7f2f962a1cddafb43dc537920510be535
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-02 23:12:58 +00:00
Matt Casey
0c15f9f59a Merge "Empty state UI tweaks" into tm-dev am: ec9b0f949e am: 09693d8b1f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17776446

Change-Id: Iaea799c88ba2b8c62431f976d2f38e17a8ddf953
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-02 22:54:16 +00:00
Taran Singh
e616c7c0be Merge "Fix InputConnection creation callback" into tm-dev am: d5bb81348c am: 38d073d25f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17896003

Change-Id: I00dd54de32bd23dbd853fe62fce038c3a736fda8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-02 22:41:30 +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
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
Calvin Pan
3107e8748e Merge "Fix empty resource showing "Und"" into tm-dev am: f71832b46b am: 0b6119192b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17983788

Change-Id: I404672198d6fd43250f839e5c9aabe9e814e611f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-29 21:07:03 +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
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
95599a17da Merge "[Panlingual] Change Checkbox color and remove divider of listview" into tm-dev am: 12873579dc am: ed181bd1fc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17822477

Change-Id: I48941a0da9099e6166b7ee7d02b0b56baec4442d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-28 13:49:34 +00:00
Mark Renouf
cb9ea22327 Merge "Restores a capture rate limit for long screenshots" into tm-dev am: 82c77bb127 am: 2339eec1d4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17988788

Change-Id: I79a6897614c45cbd06d251f429e8d2523093135b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-28 13:04:02 +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
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
49965272df Merge "Make cuj be synchrous among atoms.proto and InteractionJankMonitor" into tm-dev am: 6298c68c71 am: b728130f3a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17951299

Change-Id: I3188e8297ad18d5ea5bc326efd8d3c9fc214a419
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-28 07:34:24 +00:00
TreeHugger Robot
6298c68c71 Merge "Make cuj be synchrous among atoms.proto and InteractionJankMonitor" into tm-dev 2022-04-28 05:47:54 +00:00
Calvin Pan
31284b04f0 Merge "Adding state description for current locale item" into tm-dev am: ba95ddf69d am: 20a5cafac4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17950645

Change-Id: I5a076605202bce5dcad9dee9263b94a445d6b394
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-28 03:30:30 +00:00
Calvin Pan
ba95ddf69d Merge "Adding state description for current locale item" into tm-dev 2022-04-28 02:42:29 +00:00
Mark Renouf
e8f1a8c559 Restores a capture rate limit for long screenshots
A previous change accidentally lost this delay between
incremental screen captures. This rate limit is needed
to prevent pushing screen capture faster than it can
render correctly.

Bug: 173700533
Bug: 217046739
Test: manual; long screenshot, observe app systrace
Change-Id: Ibd7940299b502c40212957395d272b6e52cc28be
2022-04-27 17:07:24 -04:00
Ahaan Ugale
26b037f44a Merge "Allow IVoiceInteractionSessionListener to listen for window vis changes" into tm-dev am: 44e14e72b6 am: ad3eae01cf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17211290

Change-Id: Ifa819a0d6d554dd2d6f0a4c8f490e237b0146156
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-27 17:44:18 +00:00
TreeHugger Robot
09644a6eba Merge "Fix "always" option in ResolverActivity" into tm-dev am: 926db2d6d3 am: 97ac38dee9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17943621

Change-Id: I52dbaa2bc73ae6cf2d0a8524ec70382cd85e5ea2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-27 17:27:00 +00:00
Ahaan Ugale
44e14e72b6 Merge "Allow IVoiceInteractionSessionListener to listen for window vis changes" into tm-dev 2022-04-27 17:03:31 +00:00
TreeHugger Robot
926db2d6d3 Merge "Fix "always" option in ResolverActivity" into tm-dev 2022-04-27 13:44:02 +00:00
Shawn Lin
768819289f Merge "Move kids mode relative logic to wm shell" into tm-dev am: b9109dd6ae am: 8944a2ed80
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17903530

Change-Id: Ie6fd0cf78dae88905c49f7248cdb3c5bc3cfd9dc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-27 10:47:07 +00:00
Ahan Wu
6a7fdce626 Make cuj be synchrous among atoms.proto and InteractionJankMonitor
Bug: 230567287
Test: build pass
Change-Id: I4fa25b23921c8a434c97c5133779f1e9386c03fb
2022-04-27 06:56:45 +00:00
Matt Casey
f8a97ab1d8 Fix "always" option in ResolverActivity
mUnfilteredResolveList was incorrectly being set as null whenever
performSecondaryResolveListFilterin didn't end up filtering anything
(when its value should have been maintained in this case).

This incorrect mUnfilteredResolveList null value causes most of
ResolverActivity's onTargetSelected() logic to be skipped, thus it
doesn't notify the package manager of the 'always' selection.

This should match the behavior before ag/17509713 and fix the bug.

Test: Manual testing (install two email apps, click an email addr link,
choose a resolver target and press 'always', then do it again and
resolver shouldn't appear).
Test: atest
CtsDynamicMimeHostTestCases:android.dynamicmime.cts.PreferredActivitiesTestCases#testModifyGroupWithoutActualGroupChanges
Test: atest ResolverActivityTest

Bug: 230149644
Change-Id: Ia23e95359d320a3a63e39f9c50a159879e94bf3b
2022-04-27 03:48:02 +00:00
Calvin Pan
7a2ac50735 Adding state description for current locale item
To support Talkback to say "checked" when the current locale is
selected.

Bug: 228924751
Test: Using talkback
Change-Id: I3e2f8ba46106246e835e7ce5b580e501ab6c58c9
2022-04-27 03:30:26 +00:00
shawnlin
402727731f Move kids mode relative logic to wm shell
1. Move KidsModeSettingsObservor to wm shell.
2. Create a ForceShowNavBarSettingsOberver for wm core.

Bug: 230072077
Test: atest KidsModeTaskOrganizerTest
Change-Id: I1b3edf1fc804b9dac190fcc92b7b62bfc3366d64
2022-04-25 20:10:41 +08:00
Winson Chung
06fb230d6d Allow IVoiceInteractionSessionListener to listen for window vis changes
- The listener currently tracks session shown/hidden, but doesn't track
  the visibility of the session window which can change on the client
  side without the server knowing. In some cases, it's useful for SysUI
  to be able to track the visibility of the session window to show/hide
  bars appropriately.

Bug: 222308557
Test: Manual, launch the assistant and verify the calls are made
Change-Id: I9b4bb27c9497b2a828616caf72eaf345b072c294
2022-04-23 05:56:27 +00:00
James O'Leary
492fcdd022 Merge "Create ResolverComparatorModel interface." into tm-dev am: ca46e52c30 am: 5e6edca741
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17913997

Change-Id: Id44375a9281762a897523c4e159eda8aaaa09a42
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-22 20:38:09 +00:00
James O'Leary
62427e6621 Merge "Clean up ResolverListAdapter::rebuildList()." into tm-dev am: 6876316dc0 am: c55f2b5918
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17869731

Change-Id: I21af77a80e483614340de61c857b2730b2bc762b
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-22 20:37:32 +00:00
James O'Leary
ca46e52c30 Merge "Create ResolverComparatorModel interface." into tm-dev 2022-04-22 20:23:23 +00:00
Matt Casey
20e06e0123 Merge "DeviceConfig for Chooser update-delay duration." into tm-dev am: 31cc9ddb59 am: 96102fdb9f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17862572

Change-Id: I172235c7735ff417131183b04fd1135f31b55c6d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-22 16:57:42 +00:00