Commit Graph

781019 Commits

Author SHA1 Message Date
Dave Mankoff
69cc3e9d66 Merge changes from topic "b257302229-flag-restart" into tm-qpr-dev
* changes:
  Send a SysUI Started broadcast.
  Revert "Revert "Ensure SystemUI gets restarted lazily.""
2022-12-07 20:48:26 +00:00
Miranda Kephart
e0d61a8483 Remove old quickshare chip when adding a new one
Fix to avoid showing a quickshare chip based on outdated information.
Resets the pending interaction if the user tapped the old quickshare
chip, since we won't get updated information for that chip.

A future change in QPR3 will fix the logic around retrieving the
quickshare data, so we don't hit this edge case in the first place.

Test: manual; verified that taking two screenshots in quick
succession that result in a quickshare chip no longer showed
two chips at the same time
Bug: 258732618

Change-Id: I70b4914068ee883c95345bbc8e3e04fc334394cf
2022-12-07 15:38:35 -05:00
Brad Hinegardner
ba0a4d1647 Merge "Handle DeadObjectExeption when changing users" into tm-qpr-dev 2022-12-07 19:38:49 +00:00
Evan Laird
25ac426406 [Status bar refactor] Fix cache removal exception
The old method of removing unused subscriptions from the repo cache was
causing a CME

Test: DemoMobileConnectionsRepositoryTest
Test: MobileConnectionsRepositoryTest
Fixes: 261706421
Change-Id: I4977aa47591a7d4888c176e420cc1a0c7f783591
2022-12-07 14:37:37 -05:00
TreeHugger Robot
2632266bff Merge "Use mWifiInfo to refresh Internet Tile when APM is enabled." into tm-qpr-dev 2022-12-07 19:23:22 +00:00
Miranda Kephart
773610a0b9 Merge "Hide remote copy button when originating from remote copy" into tm-qpr-dev 2022-12-07 19:03:43 +00:00
Aaron Liu
65da0c235c Merge "[Bouncer] Add StatusBarKeyguardViewManager test..." into tm-qpr-dev 2022-12-07 18:39:47 +00:00
Michael Mikhail
02057ddf51 Merge "Add New UiEvents for media dashboard" into tm-qpr-dev 2022-12-07 18:38:05 +00:00
Ats Jenk
619f7b37c0 Enable common logic for proto 1 and proto 2
Check for either of the proto 1 or proto 2 flag to be enabled when
guarding logic that is common for both prototypes.

Bug: 260645044
Test: manual, build sysui, check desktop mode 1 works
Change-Id: Iba1d4f84032b1e059dcd100f64f20fec79e43113
2022-12-07 10:12:15 -08:00
Hao Dong
fe689eef2d Merge "Make sfps indicator window show for all users by changing type" into tm-qpr-dev 2022-12-07 18:09:29 +00:00
Xiaowen Lei
b46daaa705 Merge "Guard regionSampler registering/deregistering code behind the flag." into tm-qpr-dev 2022-12-07 18:05:17 +00:00
Beverly
5aeeb01a9c Allow pickupGestureEnabled default configurable
Overlays can override the default enabled behavior.

Fixes: 256185823
Test: manual
Change-Id: I57f5f80647f52a9006fcaa66252c096f9883c7ba
2022-12-07 17:48:12 +00:00
Michal Brzezinski
f34b4cd56c Logging fold update name instead of just integer for easier bug report reading
Test: no need, just log update
Bug: 255208946
Change-Id: I942eded274e7cbaa760e6c8c8dbbe88b7f653b34
2022-12-07 16:53:15 +00:00
Riddle Hsu
56647c4c75 Keep rotation transform for exiting PiP with fixed rotation
The exact fix is the one line change in PipTransition. The example:
The landscape PiP activity is expanding to fullscreen portrait.
So at the end of animation, the task needs to keep the 90 degree
transform. Otherwise it cannot match the area of portrait display.
And then display will continue to update to landscape seamlessly
and the default finish transaction will reset the rotation transform.

The other changes are just small cleanup on the way.

Bug: 260925940
Test: Enable shell transition.
      Use Chrome to play a Youtube video in fullscreen landscape.
      Enter PiP mode by swiping to home.
      Press the PiP window to expand to fullscreen landscape.
      There should be no flickering by inconsistent orientation.
Change-Id: I241eb8fc59af4733794a0e0b4d4438e59edbfe10
2022-12-08 00:50:07 +08:00
Evan Laird
bee622f1eb Add a SubscriptionModel
We currently only need 2 bits from `SubscriptionInfo`: subscriptionId
and isOpportunistic. This CL moves those into a `SubscriptionModel`
class and updates all of the usages.

Test: existing tests
Bug: 249790009
Change-Id: I87686213e68b199b7d4c998f02d6687dcb276a27
2022-12-07 11:14:51 -05:00
eddielan
f9b29b44a0 Increase power-press timeout
Preivously, Keyguard would try to authenticate after a cancellation
too quickly so the HAL would drop the attempt.

Repro steps:
 1. User press power key
 2. Keyguard cancel 1st authentication and send cancellation reqeust to HAL
 3. HAL is dealing with cancelation request
 4. Keyguard runs 2nd authentication.
 5. HAL report cancellation to keyguard and cancel 2nd authentication.
 6. Fingerprint does not respond to user's touch.

Bug: 261565425
Test: atest KeyguardUpdateMonitorTest
Test: verified locally on device - attempt side FPS after pressing
the power button (on or off)
Change-Id: If84b8765622e47872b6492eaf09c0e46aeabdf27
2022-12-07 16:09:36 +00:00
Evan Laird
9014672cd8 Rename MobileSubscriptionModel to MobileConnectionModel
Also rename `subscriptionModelFlow` to `connectionInfo`, which is more
clear given that `MobileConnectionRepository` is the provider of that
information.

This paves the way to remove `SubscriptionInfo` from our internal
representation in lieu of a `SubscriptionModel` based off of it

Test: tests in tests/src/com/android/systemui/statusbar/pipeline/mobile/*
Bug: 261029387
Change-Id: If4bd3e31d2f8a7400e31e4acd8776750eee22ad6
2022-12-07 11:04:02 -05:00
Evan Laird
f58969d7c1 Better mapping lookup for demo mode
Move the entire lookup into `MobileMappings` to the
repository layer. So when network types come down, they are immediately
transformed into `ResolvedNetworkType` objects and given a key at that
moment, using the default mobile mapping config

This allows us to A) better insulate us from external depenencies and B)
implement a very trivial mapping for Demo mode. TBD on whether or not we
should allow switching to use the real mobile mappings implementation

Test: tests in tests/src/com/andrdoid/systemui/statusbar/pipeline/mobile/*
Bug: 261185097
Change-Id: I727ad3ca823f3eb225a56f371aa3cef46c340f57
2022-12-07 10:55:54 -05:00
Fabian Kozynski
ccafe39e56 Merge changes I027cc96c,I44bb8191 into tm-qpr-dev
* changes:
  Add a TestableAlertDialog
  Pass Secure.LOCKSCREEN_ALLOW_TRIVIAL_CONTROLS
2022-12-07 15:19:34 +00:00
Beverly
cb35e335df Start a new keyguard session on device sleep
One nuance of this is that a new keyguard session
will start if the user is on the lock screen and then
double presses the power button to launch camera due to the
following sequence of events:

[0ms] user is on the lock screen in KG session #1
[1ms] first power button press => device starts to
go to sleep, so new keyguard session begins KG session #2
[2ms] second power button press => camera is launched,
screen stays on instead of finishing going to sleep

Test: enable SessionTracker logs, see start and end
boundaries of Keyguard is update to include a new session
when the device goes to sleep
Test: atest SessionTrackerTest
Bug: 242628816

Change-Id: I40bdf7f746b7086bc9683f816e00913cd0fd49bf
2022-12-07 15:09:23 +00:00
Hao Dong
e26b114c01 Make sfps indicator window show for all users by changing type
Test: manual test on SFPS devices:
      Switch to 2nd user and setup Fingerprint Unlock. SFPS indicator
      shows at the EDU screen.
Test: atest SideFpsControllerTest
Bug: 259029157
Change-Id: I5cf464608032edf4fd07ee2bfb6b457616d19c1d
Merged-In: I5cf464608032edf4fd07ee2bfb6b457616d19c1d
(cherry picked from commit d40e081bd4)
2022-12-07 15:08:37 +00:00
Evan Laird
cc43d6a878 Support new pipeline demo mode in the old view presenter
Adds support for the new mobile pipeline's demo mode to the old front
end. Note that this is kind of hacky because we actually don't have to
do anything to support demo mode, since it's implemented entirely at the
level of the repository. However, due to the fact that the old
implementation of demo mode added a special view, `DemoStatusIcons`,
that overlays the regular icons, we have to suport the new pipeline in
_that_ icon container.

Test: manual
Bug: 249790009
Change-Id: Ib02a1eb6f6abaec113a15045f9bd0b151d2a773f
2022-12-07 09:17:59 -05:00
Riddle Hsu
6e51bca31e Only apply crop to task and task fragment in end transition
If asTaskFragment() is null, the window container can be
DisplayContent, DisplayArea, WindowToken, ActivityRecord.
Because DisplayArea and WindowToken rely on DisplayContent,
while ActivityRecord relies on task, only the parent container
of activity needs the crop.

Otherwise such as WallpaperWindowToken may be cropped unexpectedly
if it has a rotation transform.

Fix: 261704203
Test: Enable shell transition.
      Launch landscape app and back to portrait home.
      Wallpaper should not be half black.
Change-Id: Id262090c64814370e3f215acdf670d7b4d6ee1e9
2022-12-07 13:48:28 +00:00
Evan Laird
a2c6879a83 Merge "Set up demo mode repository for mobile icons" into tm-qpr-dev 2022-12-07 13:20:23 +00:00
Chris Li
ff3428b1ba Fix customized activity open/close animation backdrop color
Before, we always read the next app requested color. Now, we read the
backdrop color from next app requested animation, which is the requested
color if set, or the color in the animation XML if there is no override
color.

Bug: 241043533
Test: verify with resource color
Change-Id: I0687078a1cbcb46e71ab269059911072eb7046fd
2022-12-07 21:05:10 +08:00
Jordan Demeulenaere
1754f31c28 Remove old footer actions implementation
This CL removes the old implementation of the QS footer actions. The new
implementation was turned on in http://ag/20139744 and didn't cause any
regression.

The tests that were removed in this CL are test cases that are already
tested in FooterActionsViewModelTest or FooterActionsInteractorTest.

Bug: 242040009
Test: atest QSFragmentTest
Test: atest QSSecurityFooterTest
Test: atest FooterActionsViewModelTest
Test: atest FooterActionsInteractorTest
Change-Id: I88413727a5f6ca37deea6333c411c1b9b7bffeeb
2022-12-07 13:48:13 +01:00
Anton Potapov
213c457124 Merge "Add force updating ManagedProfileController state on user change" into tm-qpr-dev 2022-12-07 12:32:46 +00:00
Jerry Chang
07e8abc154 Merge "Add not supporting multi-instance toast to more entering split flows" into tm-qpr-dev 2022-12-07 12:20:37 +00:00
Nick Chameyev
3599c203fb Merge "[Unfold transition] Use DISPLAY_CATEGORY_ALL_INCLUDING_DISABLED for the overlay" into tm-qpr-dev 2022-12-07 11:24:12 +00:00
TreeHugger Robot
294c7325fe Merge "Trace sections for ScreenDecorations" into tm-qpr-dev 2022-12-07 10:40:08 +00:00
Nicolò Mazzucato
9e41a090cd Merge "Fix black frame when unfold animation starts" into tm-qpr-dev 2022-12-07 10:22:19 +00:00
Johannes Gallmann
18b4a499d8 Merge "Fix AnimationLib Test not running in presubmit" into tm-qpr-dev 2022-12-07 09:59:29 +00:00
TreeHugger Robot
62061b5a58 Merge "Add "not supported" string for MMI codes not supported by network." into tm-qpr-dev 2022-12-07 09:39:03 +00:00
Jerry Chang
187565c286 Merge "Fix unexpectedly dismiss split by dragging the same app to the same side" into tm-qpr-dev 2022-12-07 09:17:05 +00:00
Ilya Matyukhin
53b031cdfd Ignore AlternateTouchProvider for UDFPS_NEW_TOUCH_DETECTION
Bug: 250710937
Test: atest UdfpsControllerTest
Test: adb shell cmd statusbar flag 2200 on
Change-Id: I706c8afd0e9222e82f7cb0e580ba26f6d7bfdd96
2022-12-07 07:02:04 +00:00
Tracy Zhou
4d3d9d5e57 Merge "Log stage split exit from split to fullscreen keyboard shortcut" into tm-qpr-dev 2022-12-07 04:01:09 +00:00
Nate Myren
27a0f942d5 [automerger skipped] Merge "RESTRICT AUTOMERGE Revoke dev perm if app is upgrading to post 23 and perm has pre23 flag" into rvc-dev am: 9b00dd413d am: 3e878fd78f -s ours am: 70f6c1e320 -s ours am: ff8dbfb354 -s ours am: cc488a9fb3 -s ours am: 3016eca3ca -s ours am: f0107323ff -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20621238

Change-Id: Ia4cd12d09cdaf182a498ca9e275e3c4621f236dc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 03:54:41 +00:00
Nate Myren
88326c3834 [automerger skipped] RESTRICT AUTOMERGE Revoke dev perm if app is upgrading to post 23 and perm has pre23 flag am: 2f30a63b11 am: 649a4db56a -s ours am: c245ec817d -s ours am: d93f16d638 -s ours am: 730010cba3 -s ours am: 34c5ea19a9 -s ours am: aca07a7539 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20621238

Change-Id: I5f5e31916b82767026111d59b87c491b1281cbee
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 03:54:27 +00:00
Nate Myren
f48469c6a0 Merge "RESTRICT AUTOMERGE Use chain start token in performOpTransaction" into tm-dev am: 0174fc355b am: d3643d62f2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20510886

Change-Id: I2981e0c7000ba688847a4bae5dc7e510c38e53e7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 03:53:38 +00:00
Nate Myren
f01801e804 RESTRICT AUTOMERGE Use chain start token in performOpTransaction am: 297388e374 am: e2493688b9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20510886

Change-Id: I14fc193d915142d4f3754fca26e88b2f817a25ba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 03:53:31 +00:00
Tracy Zhou
a1e0b9465b Merge "Map split from the current running app to META+CTRL+DPAD_LEFT and META+CTRL+DPAD_RIGHT" into tm-qpr-dev 2022-12-07 03:51:55 +00:00
Tony Huang
0de589346f Merge "Implement split resize shell transition" into tm-qpr-dev 2022-12-07 03:43:13 +00:00
Nate Myren
f0107323ff [automerger skipped] Merge "RESTRICT AUTOMERGE Revoke dev perm if app is upgrading to post 23 and perm has pre23 flag" into rvc-dev am: 9b00dd413d am: 3e878fd78f -s ours am: 70f6c1e320 -s ours am: ff8dbfb354 -s ours am: cc488a9fb3 -s ours am: 3016eca3ca -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20621238

Change-Id: I2b3085838dd2c4cb66c961494f1d4f6e853b75f0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 01:44:33 +00:00
Nate Myren
aca07a7539 [automerger skipped] RESTRICT AUTOMERGE Revoke dev perm if app is upgrading to post 23 and perm has pre23 flag am: 2f30a63b11 am: 649a4db56a -s ours am: c245ec817d -s ours am: d93f16d638 -s ours am: 730010cba3 -s ours am: 34c5ea19a9 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20621238

Change-Id: Ie3a5d8f36c81d471ec8ddc12f815fde2e8d76d7e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 01:44:30 +00:00
Nate Myren
d3643d62f2 Merge "RESTRICT AUTOMERGE Use chain start token in performOpTransaction" into tm-dev am: 0174fc355b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20510886

Change-Id: Ib967ddcd0e7bdd925206a8eb2a6f0120916d2dc7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 01:43:49 +00:00
Nate Myren
e2493688b9 RESTRICT AUTOMERGE Use chain start token in performOpTransaction am: 297388e374
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20510886

Change-Id: I5c971cb5cacf6a49d79296a94ffbb3d9b3908873
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 01:43:40 +00:00
Shan Huang
0b26f2e580 Merge "Log config change messages at INFO so that they show up in BR." into tm-qpr-dev 2022-12-07 01:32:35 +00:00
Nate Myren
3016eca3ca [automerger skipped] Merge "RESTRICT AUTOMERGE Revoke dev perm if app is upgrading to post 23 and perm has pre23 flag" into rvc-dev am: 9b00dd413d am: 3e878fd78f -s ours am: 70f6c1e320 -s ours am: ff8dbfb354 -s ours am: cc488a9fb3 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20621238

Change-Id: I9d84413f588f5f514d79e62ae89b3e194037bf81
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 01:20:03 +00:00
Nate Myren
34c5ea19a9 [automerger skipped] RESTRICT AUTOMERGE Revoke dev perm if app is upgrading to post 23 and perm has pre23 flag am: 2f30a63b11 am: 649a4db56a -s ours am: c245ec817d -s ours am: d93f16d638 -s ours am: 730010cba3 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20621238

Change-Id: Icf07a44dc092eb93dc9d2c0e83afcf56326b431e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 01:18:14 +00:00
Nate Myren
0174fc355b Merge "RESTRICT AUTOMERGE Use chain start token in performOpTransaction" into tm-dev 2022-12-07 00:53:43 +00:00