Commit Graph

781408 Commits

Author SHA1 Message Date
Pinyao Ting
584d18790a Merge "Implement a global maximum on number of shortcuts an app can publish" into rvc-dev 2022-12-07 23:26:20 +00:00
Hawkwood Glazier
3a2ffd7e0d Merge "MediaPlayer will now transition the background with color scheme" into tm-dev 2022-12-07 23:15:07 +00:00
Pinyao Ting
9507b44655 [automerger skipped] Merge "Implement a global maximum on number of shortcuts an app can publish" into sc-v2-dev am: e51fb72b75 -s ours am: 63d803e611 -s ours am: 62945c47b9 -s ours
am skip reason: Merged-In I94b4e39475c7585ec67f15df1256fdf0b65f3bec with SHA-1 fa4b2dc6d8 is already in history

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

Change-Id: I35017de93eed479ac1ff8f9781debb9bfa6baa1d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 23:05:41 +00:00
Pinyao Ting
654a4b35a2 [automerger skipped] Implement a global maximum on number of shortcuts an app can publish am: 7622d6da0e -s ours am: 800028ab88 -s ours am: 983196d8ec -s ours
am skip reason: Merged-In I94b4e39475c7585ec67f15df1256fdf0b65f3bec with SHA-1 fa4b2dc6d8 is already in history

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

Change-Id: I72cf216c3f6f1cd99552586d92f5d1d05b05d460
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 23:05:37 +00:00
Pinyao Ting
62945c47b9 [automerger skipped] Merge "Implement a global maximum on number of shortcuts an app can publish" into sc-v2-dev am: e51fb72b75 -s ours am: 63d803e611 -s ours
am skip reason: Merged-In I94b4e39475c7585ec67f15df1256fdf0b65f3bec with SHA-1 fa4b2dc6d8 is already in history

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

Change-Id: I8d6ed162de5e0ce585654d37a9b6ed5625b5bcef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 22:47:50 +00:00
Pinyao Ting
983196d8ec [automerger skipped] Implement a global maximum on number of shortcuts an app can publish am: 7622d6da0e -s ours am: 800028ab88 -s ours
am skip reason: Merged-In I94b4e39475c7585ec67f15df1256fdf0b65f3bec with SHA-1 fa4b2dc6d8 is already in history

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

Change-Id: Ib3d9843100f0a8f79148de940212941397c3054a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 22:47:46 +00:00
Pinyao Ting
69b19f373b Merge "Implement a global maximum on number of shortcuts an app can publish" into tm-dev am: 118fcda1c0 am: 4fc8a123fd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20642864

Change-Id: I9a09b2eedfefaa1913690054d81a16a1c969839a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 22:24:33 +00:00
Pinyao Ting
63d803e611 [automerger skipped] Merge "Implement a global maximum on number of shortcuts an app can publish" into sc-v2-dev am: e51fb72b75 -s ours
am skip reason: Merged-In I94b4e39475c7585ec67f15df1256fdf0b65f3bec with SHA-1 fa4b2dc6d8 is already in history

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

Change-Id: I3d573409718cd91d56a05276aa37281144dff58c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 22:21:57 +00:00
Pinyao Ting
800028ab88 [automerger skipped] Implement a global maximum on number of shortcuts an app can publish am: 7622d6da0e -s ours
am skip reason: Merged-In I94b4e39475c7585ec67f15df1256fdf0b65f3bec with SHA-1 fa4b2dc6d8 is already in history

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

Change-Id: Id45447edd2eca8d755f1a9b140cb0936dce7969a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 22:21:10 +00:00
Pinyao Ting
ff75f06d8a Implement a global maximum on number of shortcuts an app can publish
Currently there is a limit on the number of shortcuts an app can publish
in respect to each launcher activity. This CL further implements a
global maximum of total number of shortcuts an app can publish to
mitigate from any potential system health issue.

Bug: 250576066
Test: manual
Change-Id: I94b4e39475c7585ec67f15df1256fdf0b65f3bec
Merged-In: I94b4e39475c7585ec67f15df1256fdf0b65f3bec
2022-12-07 22:09:08 +00:00
Pinyao Ting
e51fb72b75 Merge "Implement a global maximum on number of shortcuts an app can publish" into sc-v2-dev 2022-12-07 22:08:54 +00:00
Kenneth Ford
fb54cadffc Adds content descriptions for rear display animation
Bug: 257345938
Test: Manual with talkback
Change-Id: I4a8c7d73d8e058656a937084913bcb5839f9d987
2022-12-07 22:06:43 +00:00
William Leshner
8573c6a4fd Merge "Add DOCK_SETUP_PROMPTED enum value to Settings." into tm-qpr-dev 2022-12-07 22:01:24 +00:00
Pinyao Ting
4fc8a123fd Merge "Implement a global maximum on number of shortcuts an app can publish" into tm-dev am: 118fcda1c0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20642864

Change-Id: Ib1f898161cc6d7fb03ad17fb6c531c683aa0f6f9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 21:59:21 +00:00
Alex Buynytskyy
0cadcd1648 Cleanup after test suite split.
Bug: 238141698
Bug: 261478099
Test: presubmit
Change-Id: I3d99829a735bc09b52ef77d75d875ca547d53f01
Merged-In: I3d99829a735bc09b52ef77d75d875ca547d53f01
2022-12-07 21:52:46 +00:00
Alex Buynytskyy
b8859a2055 Moving PackageManagerServiceTests to their own suite.
Bug: 238141698
Fixes: 238141698
Bug: 261478099
Test: atest PackageManagerServiceServerTests FrameworksServicesTests

Change-Id: Iacc89c7525d8d9beec39c242bfc305ad08844580
Merged-In: Iacc89c7525d8d9beec39c242bfc305ad08844580
2022-12-07 21:52:06 +00:00
Pinyao Ting
7622d6da0e Implement a global maximum on number of shortcuts an app can publish
Currently there is a limit on the number of shortcuts an app can publish
in respect to each launcher activity. This CL further implements a
global maximum of total number of shortcuts an app can publish to
mitigate from any potential system health issue.

Bug: 250576066
Test: manual
Change-Id: I94b4e39475c7585ec67f15df1256fdf0b65f3bec
Merged-In: I94b4e39475c7585ec67f15df1256fdf0b65f3bec
2022-12-07 21:36:56 +00:00
Pinyao Ting
118fcda1c0 Merge "Implement a global maximum on number of shortcuts an app can publish" into tm-dev 2022-12-07 21:36:18 +00:00
Prameet Shah
a9d6896c83 Fix a couple of NPEs in AdbDebuggingManager.AdbDebuggingHandler
Bug: 242344103
Bug: 261526316
Test: m
Change-Id: I37fa9c7bb99d1ea1cef1bd42125bf0de7bc0adbd
(cherry picked from commit cb6ec60b034d6265cea391a3966ffdc9c72248d5)
2022-12-07 21:36:08 +00:00
TreeHugger Robot
76f824b2f9 Merge "AudioService: do not log sound effects in audio dumpsys" into tm-qpr-dev 2022-12-07 21:34:54 +00:00
Beverly Tai
98ad6693da Merge "Start a new keyguard session on device sleep" into tm-qpr-dev 2022-12-07 21:23:17 +00:00
Aaron Liu
c17a684c9d Merge "[Bouncer] Do not Autosize numpad." into tm-qpr-dev 2022-12-07 21:03:28 +00:00
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
Josh Tsuji
4bb7522ab0 Don't re-lock if we're wake and unlocking.
This can make the wallpaper visible through the scrim
if you wake and unlock during the screen off animation.

Fixes: 261440698
Test: wake and unlock during screen off repeatedly
Change-Id: I6d48dc2211e16b88168e03a56f338222b582b97b
2022-12-07 13:59:46 -05: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