Commit Graph

813479 Commits

Author SHA1 Message Date
Omer Ozer
8504c79dc3 Merge "Fixing comments on AvailableNfcAntenna" am: b55d142b23 am: 4bf9ebdde2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2321793

Change-Id: Icd1f848094f8a1185ea730bd8b89adc1ddc3590e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-02 20:03:01 +00:00
Aaron Liu
230dcab138 [Bouncer] Fix some responsiveness issues.
Found a couple of responsive issues and fixing them.

1. Numpad key digits had a min size of 32 sp. This would look off when
   we maximize the display size and go into half folded on a foldable
   device. I set the text to autosize with a max size of 32sp.
2. Userswitcher anchor was squished in password security method on
   tablet. I removed some clipping in order to fix this.

Fixes: 261062809
Test: Open password view with max display and normal display sizes for
tablet.
Test: Half fold on foldable for pin view in bouncer.

Change-Id: I78fbbb231c35118bef65660b7ca5562d77dad16b
2022-12-02 11:44:58 -08:00
Joshua Mccloskey
5a2fdecfe9 Merge "Fixed contrast with sfps overlay." into tm-qpr-dev am: d5822ed0f0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20610989

Change-Id: Ia58caf8fffd5211ddfedba9b0726fd4c90716920
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-02 19:32:26 +00:00
Omer Ozer
4bf9ebdde2 Merge "Fixing comments on AvailableNfcAntenna" am: b55d142b23
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2321793

Change-Id: Idb846337a57dd484441f4cf5f3672ed079d6365e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-02 19:31:40 +00:00
TreeHugger Robot
93c881e9dc Merge "New javadoc for SysUI CoreStartables" into tm-qpr-dev am: 61fe1c62c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20500982

Change-Id: I14047cd05a63ebbf16bd3a77009d612c6545d841
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-02 19:29:39 +00:00
Joshua Mccloskey
d5822ed0f0 Merge "Fixed contrast with sfps overlay." into tm-qpr-dev 2022-12-02 19:19:26 +00:00
TreeHugger Robot
61fe1c62c8 Merge "New javadoc for SysUI CoreStartables" into tm-qpr-dev 2022-12-02 19:09:18 +00:00
Nicolas Geoffray
f205d39189 Merge "Remove presubmit of view compiler tests." am: 9496a24197 am: d771738763
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2325335

Change-Id: Id0946f3290d7b639892afa1705cd459b24adf928
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-02 18:49:15 +00:00
Omer Ozer
b55d142b23 Merge "Fixing comments on AvailableNfcAntenna" 2022-12-02 18:47:40 +00:00
Nate Myren
2f30a63b11 RESTRICT AUTOMERGE Revoke dev perm if app is upgrading to post 23 and perm has pre23 flag
If a permission has the "pre23" flag, and an app is upgrading past api
23, then we should not assume that a "development" permission remains
granted

Fixes: 259458532
Test: atest RevokeSawPermissionTest
Change-Id: I214396f455c5ed9e8bac2e50b1525b86475c81c7
2022-12-02 18:28:35 +00:00
Josh Tsuji
687039f7df Merge "Migrate LightRevealScrim and all dependencies to flows." into tm-qpr-dev am: dd1d999b88
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20470589

Change-Id: Iee036942dc3b96ecad7dc82f1859eecca10c5108
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-02 18:22:49 +00:00
TreeHugger Robot
e418cf34da Merge "Handle ActivityEmbedding container in remote transition adapter" into tm-qpr-dev am: ed1949c971
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20546830

Change-Id: I3696bcede29fbc12e77c1e438310b495be600cd4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-02 18:21:59 +00:00
Merissa Mitchell
2b33756547 Merge "Set caption to full width in WindowDecoration if no width is defined." into tm-qpr-dev am: 88490035c5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20600974

Change-Id: I36d97c53fc98d4e23d10bdc178f9e138a5dcee12
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-02 18:21:19 +00:00
Nicolas Geoffray
d771738763 Merge "Remove presubmit of view compiler tests." am: 9496a24197
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2325335

Change-Id: I982dff654de2873c2cc847b822468e6050d75d1b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-02 18:20:46 +00:00
Aaron Liu
14ad4fac46 Merge "Fix fatal exception in FakeBroadcastReceiver." into tm-qpr-dev am: 78f097adda
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20616560

Change-Id: Ia322ee3e07e7a6ae18b36d8972a30914f1fbefe0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-02 18:20:03 +00:00
Mateusz Cicheński
deaf5a19d0 Merge "Don't move PiP towards a corner after user manually moved it." into tm-qpr-dev am: 77f5aecbb2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20592536

Change-Id: Ica5cd46bdd3d4f836ef454264f887064dcdb7a9f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-02 18:18:33 +00:00
Josh Tsuji
dd1d999b88 Merge "Migrate LightRevealScrim and all dependencies to flows." into tm-qpr-dev 2022-12-02 18:13:10 +00:00
TreeHugger Robot
ed1949c971 Merge "Handle ActivityEmbedding container in remote transition adapter" into tm-qpr-dev 2022-12-02 18:10:48 +00:00
Merissa Mitchell
88490035c5 Merge "Set caption to full width in WindowDecoration if no width is defined." into tm-qpr-dev 2022-12-02 18:09:31 +00:00
Aaron Liu
78f097adda Merge "Fix fatal exception in FakeBroadcastReceiver." into tm-qpr-dev 2022-12-02 17:53:00 +00:00
Evan Laird
c6393850e4 Disable NetworkControllerImpl's demo mode based on flag
Turns off handling of `-e mobile ...` commands from
`DemoModeController` if the new status bar mobile icon pipeline is
enabled.

This will be a requirement to transfer demo mode to the new pipeline

Bug: 249790009
Test: manual; enable demo mode and flag `606`, and send mobile demo
commands

Change-Id: I6beaccc56d2c2b816c2983c3822f0e15b022efe5
2022-12-02 12:52:25 -05:00
Mateusz Cicheński
77f5aecbb2 Merge "Don't move PiP towards a corner after user manually moved it." into tm-qpr-dev 2022-12-02 17:51:48 +00:00
Evan Laird
5f941ad1b1 Add DATA_UNKNOWN to the data state parsing
Test: atest MobileConnectionRepositoryTest
Bug: 249790009
Fixes: 260182454
Change-Id: Ice240ec2168dc9d470c1145709c7633a2738a9c6
2022-12-02 12:50:46 -05:00
Peter Kalauskas
70ded46013 Merge changes from topic "trace-columbus-b253489562" into tm-qpr-dev am: 262e8c820d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20544624

Change-Id: I9a918933426077197b3e896a80c21bc063cd6bb9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-02 17:43:53 +00:00
Nicolo' Mazzucato
a799f1040a Show side fingerprint sensor on bouncer also for small screens
This sets config_show_sidefps_hint_on_bouncer to true as default, and removes the large screen override.

Bug: 260195934
Test: Current tests && verified manually
Change-Id: Icc92a0915f229e716e653e742173181caad050da
2022-12-02 17:42:24 +00:00
Nicolas Geoffray
9496a24197 Merge "Remove presubmit of view compiler tests." 2022-12-02 17:41:30 +00:00
mattgilbride
b776aa9e89 Add hidden Binder.getCallingUidOrWtf
Binder.getCallingUidOrThrow throws if the caller is NOT:
1) Called from within a binder transaction OR
2) Called from within a
   Binder.clearCallingIdentity/restoreCallingIdentity block

Number 2 was added in I162db933f9e52cd6f9f46796bda11ad6216d3d66
to allow us to migrate from Binder.getCallingUid to it. There are
many use cases where callers are not in a Binder transaction, but
have set the calling UID "explicitly" by calling clearCallingIdentity.

In order to further ease the migration from Binder.getCallingUid to
Binder.getCallingUidOrThrow, this hidden API behaves similarly,
but logs at WTF level instead of throwing IllegalStateException.

The motivation is to first migrate to the WTF version, so that
system_server will log and continue. The goal is to only use this
in the system (hence @hide). It will provide early signals as to the
feasibility of a given migration.

For example, its desirable to migrate the permission checking in code
generated by the @EnforcePermission annotation (via the AIDL compiler).
This call site is widely used, and itself subject to mass migrations to
@EnforcePermission instead of manual permission enforcement.

Bug: 252975769
Test: TH
Change-Id: I11ea3fdf889689d76211506e81420e694238ee68
2022-12-02 17:17:31 +00:00
Peter Kalauskas
262e8c820d Merge changes from topic "trace-columbus-b253489562" into tm-qpr-dev
* changes:
  Guard against possible exception when tracing
  TraceUtils updates, new helper for runnables
2022-12-02 16:52:42 +00:00
Brad Hinegardner
a222a595a0 Merge "When in guest mode, see "Exit guest" in user switcher" into tm-qpr-dev am: 1a38ab1cc0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20590287

Change-Id: I3f45f7f8b856c464bee2450c531d92dad9cf1de6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-02 16:33:21 +00:00
Adrian Roos
7a5b16cdbd Remove dangling javadoc
Removes javadoc that appears in places where it is not considered as such
by javac / metalava.

Test: compiles
Change-Id: I701d7dfe17db67e4735e0ded4ff1c3e0ddb3bfa2
2022-12-02 16:31:35 +00:00
Siim Sammul
fd21b75a49 Merge "Change DropboxRateLimiter to rate limit proto tombstones and regular tombstones separately." am: ab294c72f2 am: 18225e8642
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2323516

Change-Id: Ic53fbecfef75c23c3d8ffa80279100e8b74217e2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-02 16:29:25 +00:00
Beverly
d6cd8d5c02 Update FP listening right after POWER_PRESSED err
Instead of delaying 500ms

Test: atest KeyguardUpdateMonitorTest
Test: Attempt to authenticate with SideFPS right
after pressing the power button => observe FP can
authenticate
Fixes: 259172472

Change-Id: I7f07c549628a21a92ddfac0d0679d0f054ad1dda
2022-12-02 16:15:47 +00:00
Brad Hinegardner
1a38ab1cc0 Merge "When in guest mode, see "Exit guest" in user switcher" into tm-qpr-dev 2022-12-02 16:07:54 +00:00
Siim Sammul
18225e8642 Merge "Change DropboxRateLimiter to rate limit proto tombstones and regular tombstones separately." am: ab294c72f2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2323516

Change-Id: Iddd2a9e84bfb57dcb9cc2664e5562c8191917dd9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-02 15:59:46 +00:00
Riddle Hsu
607c7a1914 Reduce operations in postApplyAnimation for shell transition
This is a partial alternative solution of [1] to avoid black background
(no wallpaper target) when turning on screen with a translucent activity
which is occluding keyguard while AOD is disabled.

[1]: Ifc3ce28424fe87b1e0a0a2af07bdad559575ebec

Now instead of always recomputing wallpaper target after committing
visibility, the update hint only needs to be set when there is a
translucent occluding activity.

Also use usingShellTransitions to skip some legacy animation checks
that shell transition doesn't care.

Bug: 260059642
Test: Enable shell transition. Disable AOD
      KeyguardTests#testDialogShowWhenLockedActivity
      KeyguardTests#testTranslucentShowWhenLockedActivity
Test: Transition latency of OpenAppMicrobenchmark
Change-Id: Ic3c704f0579690c51f7188a26c5256dc3e74e1f7
2022-12-02 23:56:27 +08:00
Alejandro Nijamkin
5587e154c9 Adds icon support to fake quick affordance client.
This is needed for tests in ag/20601630

Bug: 254858701
Test: N/A - this is testing
Change-Id: Ibe86233511078f7c2d32cd8abb8ba97afedbcb79
2022-12-02 07:36:58 -08:00
Siim Sammul
ab294c72f2 Merge "Change DropboxRateLimiter to rate limit proto tombstones and regular tombstones separately." 2022-12-02 15:29:34 +00:00
Marcello Galhardo
64e50b6bc5 Merge "Use UnreleasedFlag instead of SysPropBooleanFlag." into tm-qpr-dev am: b877a2de53
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20437889

Change-Id: Ifc7d70eb57a3feb06f24cb000476dda6d8dc29e8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-02 15:24:01 +00:00
Marcello Galhardo
b877a2de53 Merge "Use UnreleasedFlag instead of SysPropBooleanFlag." into tm-qpr-dev 2022-12-02 15:06:31 +00:00
Caitlin Shkuratov
ec8d097d8d Merge "[SB Refactor] Make some wifi pipeline classes into interfaces." into tm-qpr-dev am: 1322828e59
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20598315

Change-Id: I65b98dbf2395d2f08dfd1cf37f21e3c8662f86f3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-02 14:52:01 +00:00
David Saff
35338b5f65 Merge "Clear TestableLoopers in SysuiTestCase" into tm-qpr-dev am: 78f5ef56e1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20609771

Change-Id: Idb1fd31227ebce9b50b944add5cdd22d8f950671
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-02 14:50:40 +00:00
Michael Mikhail
aa220239e0 Merge "Modify tablet recommendation card dimensions" into tm-qpr-dev am: bb1f34c1b7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20542558

Change-Id: Ic5b55ae61bd0da9091eb25a541035aec5fcf00be
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-02 14:49:31 +00:00
András Kurucz
77dff21365 Merge "Fix rendering issue after cancelling Notifications inside a group" into tm-qpr-dev am: ae41b142e8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20592572

Change-Id: I0efa6ae3818cea4d7a12548f843e22cc450a5596
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-02 14:48:32 +00:00
Caitlin Shkuratov
1322828e59 Merge "[SB Refactor] Make some wifi pipeline classes into interfaces." into tm-qpr-dev 2022-12-02 14:46:54 +00:00
David Saff
78f5ef56e1 Merge "Clear TestableLoopers in SysuiTestCase" into tm-qpr-dev 2022-12-02 14:38:01 +00:00
Nicolas Geoffray
f3585eeb0f Remove presubmit of view compiler tests.
Code is now obsolete.

Bug: 260766133
Bug: 158121974
Test: m
Change-Id: If42101c1316b32a3b99019c04986a6827f2a5f7a
2022-12-02 14:36:24 +00:00
Michael Mikhail
bb1f34c1b7 Merge "Modify tablet recommendation card dimensions" into tm-qpr-dev 2022-12-02 14:29:07 +00:00
András Kurucz
ae41b142e8 Merge "Fix rendering issue after cancelling Notifications inside a group" into tm-qpr-dev 2022-12-02 14:20:34 +00:00
Santos Cordon
65f9addcdd Do not send updates for disabled displays.
If a display is disabled, do not share it outside of
DisplayManagerService.

This will help by not creating any unnecessary updates for displays that
are disabled, and also not informing Applications of displays that they
are unable to use.

Also fixing a concurrency issue with DMS.handleLogicalDisplaySwapped
which became apparent with this CL. Deferring the runnable with a
Handler.post() caused the display-state-OFF update to happen after a newer
change to turn the display ON.  This caused the device to startup into a
black screen. Removed the unnecessary call (since the displays are now
made to both go into the "transition" state) to update the state and
removed a lot of the redundant code with handleLogicalDisplayChange()
which was called at the end of the method anyway.

Bug: 221071695
Test: atest com.server.android.display
Test: Manually verify display layouts still successfully change, and
      also confirm logs no longer hand excessive add/remove
      display notifications.
Change-Id: I003fd91567630a447cf030b6fb83e5cb1041bcb5
Merged-In: I003fd91567630a447cf030b6fb83e5cb1041bcb5
2022-12-02 14:14:47 +00:00
Yein Jo
7b8e527134 Move surface effects package to AnimationLib.
in order to share surface effects between launcher and sysui, the
package has been moved to the AnimationLib, which is visible to launcher
as well.

fyi the corresponding tests remain in the SystemUiLib module.
technically they should be moved to AnimationLib together, but those
tests are dependant on SystemUI testing frameworks (e.g. SysuiTestCase,
FakeExecutor, etc.). because of this, some of the variables are marked
as VisibleForTesting.

Bug: 249536060
Test: MultiRippleControllerTest MultiRippleViewTest RippleAnimationTest RippleViewTest TurbulenceNoiseControllerTest TurbulenceNoiseViewTest
Change-Id: I37cdc7cf9064d4d8f02afe72ad16b1cc3df95b6c
2022-12-02 13:59:48 +00:00