Commit Graph

780877 Commits

Author SHA1 Message Date
Pinyao Ting
c6ec6164dc [conflict] Merge "Implement a global maximum on number of shortcuts an app can publish" into rvc-dev am: 584d18790a am: f9a6a136a0 am: bb4ff2e484 am: eee3312ac2 am: 4611aa5717 am: 69042ba58f am: 891d482fb6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20671668

Change-Id: I148aa61a3b91bdb12bc14413ee05e744a37ac921
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-08 05:30:39 +00:00
Pinyao Ting
891d482fb6 [conflict] Merge "Implement a global maximum on number of shortcuts an app can publish" into rvc-dev am: 584d18790a am: f9a6a136a0 am: bb4ff2e484 am: eee3312ac2 am: 4611aa5717 am: 69042ba58f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20671668

Change-Id: Ie7ef157b93892ef01774aa6f84580e300c780247
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-08 05:07:46 +00:00
Evan Laird
18917a1820 Merge changes I4977aa47,I87686213,If4bd3e31,I727ad3ca,Ib02a1eb6 into tm-qpr-dev
* changes:
  [Status bar refactor] Fix cache removal exception
  Add a SubscriptionModel
  Rename MobileSubscriptionModel to MobileConnectionModel
  Better mapping lookup for demo mode
  Support new pipeline demo mode in the old view presenter
2022-12-08 04:43:54 +00:00
Pinyao Ting
69042ba58f [conflict] Merge "Implement a global maximum on number of shortcuts an app can publish" into rvc-dev am: 584d18790a am: f9a6a136a0 am: bb4ff2e484 am: eee3312ac2 am: 4611aa5717
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20671668

Change-Id: I9c8cc614d89d1405d922781a5cd7ce6ea12db053
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-08 04:35:40 +00:00
Pinyao Ting
4611aa5717 [conflict] Merge "Implement a global maximum on number of shortcuts an app can publish" into rvc-dev am: 584d18790a am: f9a6a136a0 am: bb4ff2e484 am: eee3312ac2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20671668

Change-Id: Ic59fb429f1b0d87d45282515e7a8eea1d022fcf9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-08 04:14:17 +00:00
Pinyao Ting
eee3312ac2 [conflict] Merge "Implement a global maximum on number of shortcuts an app can publish" into rvc-dev am: 584d18790a am: f9a6a136a0 am: bb4ff2e484
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20671668

Change-Id: I161301167ce9d467b47cc709a34ec304696afb12
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-08 03:23:38 +00:00
Shaowei Shen
951ceea51c Merge "[Output Switcher] Update Volume control in Output Switcher" into tm-qpr-dev 2022-12-08 03:23:20 +00:00
Pinyao Ting
bb4ff2e484 [conflict] Merge "Implement a global maximum on number of shortcuts an app can publish" into rvc-dev am: 584d18790a am: f9a6a136a0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20642213

Bug: 261780479
Change-Id: I6839241b85cf3775fdc81c1befbd1f263fad7313
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-08 02:12:06 +00:00
TreeHugger Robot
6fa4943481 Merge "[Chipbar] Don't add null icon descriptions to the main description." into tm-qpr-dev 2022-12-08 01:43:50 +00:00
TreeHugger Robot
80821636d9 Merge "[Chipbar] Always tint the start icon correctly." into tm-qpr-dev 2022-12-08 01:43:18 +00:00
Patrick Baumann
051e23fab4 Merge changes from topic "PackageManagerServiceTests-tm-qpr-dev" into tm-qpr-dev
* changes:
  Cleanup after test suite split.
  Moving PackageManagerServiceTests to their own suite.
2022-12-08 01:11:24 +00:00
Pinyao Ting
f9a6a136a0 Merge "Implement a global maximum on number of shortcuts an app can publish" into rvc-dev am: 584d18790a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20642213

Change-Id: If9820706deb0b9528ecc20a3d513f85692ca8997
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-08 00:14:23 +00:00
Hawkwood Glazier
1c9f506912 [automerger skipped] Merge "MediaPlayer will now transition the background with color scheme" into tm-dev am: 3a2ffd7e0d am: 03b55f7fa7 -s ours
am skip reason: Merged-In I963afcf4ba0fd8c2e9ebca4d634098f63454fab6 with SHA-1 90a5f092f1 is already in history

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

Change-Id: I86a439decb07e7e2979fb7728d43bd47c91b4140
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 23:50:13 +00:00
TreeHugger Robot
382b7c8be1 Merge "Fix a couple of NPEs in AdbDebuggingManager.AdbDebuggingHandler" into tm-qpr-dev 2022-12-07 23:37:10 +00:00
Hawkwood Glazier
03b55f7fa7 Merge "MediaPlayer will now transition the background with color scheme" into tm-dev am: 3a2ffd7e0d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20552467

Change-Id: Ie30c4f4fce0895c37c49d64390b8301688f4fd99
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 23:32:05 +00:00
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
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
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
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
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
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