Commit Graph

813479 Commits

Author SHA1 Message Date
Hao Dong
3148fa7491 Merge "Make sfps indicator window show for all users by changing type" into tm-qpr-dev am: fe689eef2d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20617600

Change-Id: Iab05f2882fe0149f010a1a2fd285247041553344
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 18:16:44 +00:00
Treehugger Robot
33f61f4c18 Merge "Override a sendBroadcastUser() variant in BroadcastInterceptingContext." am: af61e0738c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2321006

Change-Id: Id3c91991a58c6860f612d9b320145ff0a2a01bac
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 18:15:53 +00:00
Xiaowen Lei
78b98552ab Merge "Guard regionSampler registering/deregistering code behind the flag." into tm-qpr-dev am: b46daaa705
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20599863

Change-Id: I4a78f3db753a76a7cafed6dc118ea6a843b40b20
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 18:15:41 +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
Treehugger Robot
af61e0738c Merge "Override a sendBroadcastUser() variant in BroadcastInterceptingContext." 2022-12-07 18:05:15 +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
2b45255860 Merge changes I027cc96c,I44bb8191 into tm-qpr-dev am: ccafe39e56
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20621515

Change-Id: I76709ef50d0abda1d7883729d074be496dc225fb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 15:45:30 +00: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
Gareth Vaughan
f261a3e85e Fixing test that is breaking in some environments.
Test: atest com.android.server.pm.CrossProfileAppsServiceImplTest#startActivityAsUser_sameTask_fromProfile_success
Bug: 252837119

Change-Id: Ie0ca41247b80f927ef1377866d1a2d2d2deb5333
Merged-In: Ie0ca41247b80f927ef1377866d1a2d2d2deb5333
2022-12-07 14:49:18 +00:00
Adrian Roos
abaac9ba70 Merge "Remove dangling javadoc" am: 6d61168c0d am: 9b13491142
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2325337

Change-Id: Ia0803f9f3e0d720a93a455a4ec76b8c6df1f50cb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 14:24:59 +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
Adrian Roos
9b13491142 Merge "Remove dangling javadoc" am: 6d61168c0d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2325337

Change-Id: I01d1573fd6e0e88e1f0513ee30346252386e3321
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 14:04:10 +00: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
Adrian Roos
6d61168c0d Merge "Remove dangling javadoc" 2022-12-07 13:45:26 +00:00
Evan Laird
f7e551d8e5 Merge "Set up demo mode repository for mobile icons" into tm-qpr-dev am: a2c6879a83
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20612834

Change-Id: I229f9292a2ef76bf73ae1f7b8fefc7e7c3175001
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 13:42:29 +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
3c49e7f365 Merge "Add force updating ManagedProfileController state on user change" into tm-qpr-dev am: 213c457124
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20496905

Change-Id: Idf604dcf0a289a74fb440f0e15d68c932060a247
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 12:43:46 +00:00
Jerry Chang
bbdde9c75b Merge "Add not supporting multi-instance toast to more entering split flows" into tm-qpr-dev am: 07e8abc154
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20605729

Change-Id: I3df6c891729e763cbddbbfde5cba5809053c294f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 12:41:38 +00: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
Naomi Musgrave
61efc76ac3 Update OWNERS files for MediaProjection & related classes
Change-Id: I974f3729da3d87b5357a63486df0d8b01ff4c525
Bug: 261563516
Test: none
2022-12-07 11:59:36 +00:00
Nick Chameyev
dd4f880e39 Merge "[Unfold transition] Use DISPLAY_CATEGORY_ALL_INCLUDING_DISABLED for the overlay" into tm-qpr-dev am: 3599c203fb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20637500

Change-Id: Ic35bd9d21dc8c28d8751efb7be3317561599534a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 11:38:22 +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
899f82d2bb Merge "Trace sections for ScreenDecorations" into tm-qpr-dev am: 294c7325fe
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20546107

Change-Id: Id8184c24cc31c67b1b26e5a5fab04822b6fb4cc6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 10:56:45 +00:00
TreeHugger Robot
294c7325fe Merge "Trace sections for ScreenDecorations" into tm-qpr-dev 2022-12-07 10:40:08 +00:00
Nicolò Mazzucato
d52e2d03af Merge "Fix black frame when unfold animation starts" into tm-qpr-dev am: 9e41a090cd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20638521

Change-Id: I3e6ac550ba224c90307167239fe76fbf4a5bf576
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 10:37:31 +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
e16f54e26b Merge "Fix AnimationLib Test not running in presubmit" into tm-qpr-dev am: 18b4a499d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20609552

Change-Id: I4915b238918298ab26730e72dc3eaff34533489e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 10:14:11 +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
e8339fbcde Merge "Add "not supported" string for MMI codes not supported by network." into tm-qpr-dev am: 62061b5a58
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20544619

Change-Id: I68adb321043b5b9915983a72cb1d6e022f952098
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 09:54:52 +00:00
Rhed Jao
01c31ed03b Update OWNERS of PatternMatcher files
Bug: 249094310
Test: na
Change-Id: If4b0517face699893c2238315f1eea9a7fb6a1b4
2022-12-07 17:48:27 +08: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
fd2b0fad24 Merge "Fix unexpectedly dismiss split by dragging the same app to the same side" into tm-qpr-dev am: 187565c286
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20648327

Change-Id: If276ebadb2562b534c477d4f12268bfb0b6fb2aa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 09:29:39 +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
Martijn Coenen
e9e8dbc7df Tell vold about users sharing storage with each other.
In some cases (eg clone profiles), users can see each others volumes.
Vold needs to know this information to setup a mount infrastructure that
avoids page cache inconsistencies.

Bug: 228271997
Test: manual
Change-Id: Ie41bd3b52e105e8bb17f6d5985f00ed2a359bc1b
2022-12-07 08:59:10 +00:00
yidong zhang
87bb346640 bootanimation: add empty lines parsing skip for desc.txt
BUG: 259265292
Test: adb shell bootanimation
Change-Id: I6bd6ed78232cef56b3f99006f4d7780eeef8b881
Signed-off-by: yidong zhang <yidong.zhang@amlogic.com>
2022-12-07 15:58:02 +08: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
Treehugger Robot
3f8d75d44f Merge "smoreland LAST_RESORT_OWNERS" am: 5bdc4b86fa am: 84737873e1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2321924

Change-Id: I5c5686d2bb8cf1d50cebd53a3b04ec31228e123a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 04:46:30 +00:00