Commit Graph

781408 Commits

Author SHA1 Message Date
Aaron Liu
1cd9826aa0 Merge "[Bouncer] Add bouncer log buffer." into tm-qpr-dev 2022-12-13 00:07:56 +00:00
Hawkwood Glazier
ea38a49f47 Correct Error reported to logcat when Plugin fails to load
Test: N/A
Bug: 260864389
Change-Id: I723afce7e1afaf9219cfc75e46e4e37d5d95f784
2022-12-12 23:48:57 +00:00
Yein Jo
eace956e67 Add another flag to control turbulence noise in UMO.
To better control ripple and turbulence noise, a new flag is added.

Bug: 249536060
Test: MediaControlPanelTest
Change-Id: I95c3cc2121b1c7f4bd6ca106bd4f6304cbbb01e1
2022-12-12 23:24:40 +00:00
Ats Jenk
6213522d86 Merge changes I9907038a,Ic5de4d43,I0435e07a into tm-qpr-dev
* changes:
  Implement move to desktop and fullscreen
  Implement showDesktopApps
  Create controller for desktop prototype 2
2022-12-12 23:20:04 +00:00
Cutter Coryell
30f12a3042 Do not load/release back gesture ML model after every device fold/unfold.
Previously, the model's state was being updated every time mIsEnabled changed, causing either a resource load or resource release depending on the direction of the change. However, mIsEnabled changes every time EdgeBackGestureHandler attaches or detaches, which happens every time a foldable folds or unfolds. Releasing and reloading the model's resources every fold/unfold is needless and wasteful.

Now, the model resources only load when the process starts or when the user enables Gesture Navigation mode. The model resources only get released when the user disabled Gesture Navigation mode.

This change is safe because no new behavior is added.

There is also an additional safety check added: now, if the model is currently loading, it will not be asked to predict.

Fix: 214938229
Test: manual

Change-Id: I6127b4a5acfa57e9faa0966d021bd951cf2d7bee
2022-12-12 22:39:00 +00:00
Aaron Liu
49584e3fe6 [Bouncer] Have initial message id for sim pin.
Seems like we can get into a state where the sim pin view does not have
an initial message and is getting an exception because 0 is not a valid
resource id. Moving the getInitialMessageResId to the parent of the sim
pin view controller.

Fixes: 261941458
Test: Add unit test. Open sim pin view.
Change-Id: Ia2782c7c8acd0775bd2fb1cf9774f477264cf899
2022-12-12 14:37:25 -08:00
Muralidhar Reddy Mule
af2ba65d08 Merge "isSimPortAvailable API should return true if the calling app can activate a new profile on the selected port without any user consent or deactivate dialog." into tm-qpr-dev 2022-12-12 22:31:15 +00:00
Alejandro Nijamkin
f2add476cc Long-press gesture for lock screen affordances.
If the flag for customizable lock screen quick affordances is
enabled, the required geture to activate a lock screen quick affordance
is now a standard long press instead of a click.

Fix: 254857466
Test: long-pressing the button causes it to scale-animate and then
activate. A "tap" sound plays when it activates. Moving the finger too
far off the touch target while holding down cancels the gesture.
Releasing the finger too quickly causes the view to shake-animate and a
corrective message to appear in the indication area.

Change-Id: I130169d6dcdb6779bb914b0a3c0d3b0fc522567d
2022-12-12 13:53:35 -08:00
Alejandro Nijamkin
832d609613 Lock screen preview.
Adds code on the system UI side that renders a preview of the lock
screen. This is done through the content provider, which receives a
handle to a SurfaceView from wallpaper picker, where the UI is actually
shown to the user.

There are several changes here, following the path of the code, they
are:
1. KeyguardQuickAffordanceProvider can handle the "call" from wallpaper
   picker and delegates the rendering to the preview system
2. The preview system starts with KeyguardRemotePreviewManager which is
   responsible for driving the lifecycle of the rendering as the
   connection to the remote SurfaceView is established or torn down
3. The preview system continues with the KeyguardPreviewRenderer which
   builds the view hierarchy and hooks up each view to its appropriate
   view-binder or view-controller
4. For quick affordances, we are making a couple of minor changes to the
   view-binder, view-model, and interactor to allow for them to run in
   "preview" mode where different rules apply: no clicks allowed, the
   affordances are ever-visible (as opposed to only when the lock screen
   is shown), etc.

Bug: 261362750
Test: unit tests created/updated, manually verified in the shortcuts
settings screen

Change-Id: I5d1c51dacbedf0a7a1fb3ec742244141a2fe8a32
2022-12-12 13:53:34 -08:00
Jeff DeCew
94da479b08 More exhaustive logs from NotificationWakeUpCoordinator
Test: Extensive manual testing with logcat while attempting to repro
Bug: 250946719
Change-Id: I96b3783c716d35eadd3627baafcbf263aafc6f1e
2022-12-12 21:50:46 +00:00
Aaron Liu
a4392c2510 [Bouncer] Add more padding top for bouncer.
Some padding was removed in ag/20643913 so the bouncer seems to be
offset a little bit and looks strange. Adding this padding back.

Fixes: 260477609
Test: Open bouncer.
Change-Id: Ib93188b6e87ac1324d59869b06a155c9e445f963
2022-12-12 13:09:30 -08:00
Yein Jo
801a4b98a3 Merge "Fix RippleFinished being called on first draw." into tm-qpr-dev 2022-12-12 21:04:23 +00:00
Michael Mikhail
bfc8557f2e Setting Flag for media falsing on
It sets the flag on for increasing the penalty on media falsing

Bug: 259445895
Test: manual - tests are in ag/20455102
Change-Id: I443a366acc7bc110f1e2baf5e6bd742898743378
2022-12-12 20:46:07 +00:00
Alejandro Nijamkin
ebe46d7f8a Attaches source for camera launch when unlocked.
If the double tap power button gesture is detected while the device is
unlocked, we are using a different code path to start the camera app. In
this code path, we were not actually attaching the source to identify
ourselves as the double tap power button System UI gesture.

This CL updates that path to include the source.

Bug: 262193771
Test: manually verified that we are attaching the extra (though it
doesn't fix the camera bug)

Change-Id: If5844a2ceb165303240265f0c0955f94fc8076a0
2022-12-12 12:44:32 -08:00
Miranda Kephart
55d9c878f2 Merge "Fix bug where screenshot preview margins were too large" into tm-qpr-dev 2022-12-12 20:31:03 +00:00
Bill Yi
227eeabb5a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I0442505831142fdd1440a1b510e0c16c0486e526
2022-12-12 12:15:40 -08:00
Govinda Wasserman
19e63a79e5 Add option to return a null Dagger graph
This allows processes that do not utilize the SysUI Dagger graph to
avoid having to subclass and instantiate it.

This change also makes the Screenshot cross-profile service take
advantage of this change.

Test: Turn on "Enable RequestProcessor" and "Enable Work Profile
Screenshots Policy" SysUI flags
Test: Take a screenshot of a work profile app
Test: Observe successful work profile screenshot
BUG: 259469497

Change-Id: I1a8c62ba079d90e575cab2a0e14b3f1466e1952c
2022-12-12 20:01:56 +00:00
TreeHugger Robot
5d98a2db73 Merge "Add z-order regions for task child layers" into tm-qpr-dev 2022-12-12 19:58:40 +00:00
Bill Yi
69bed7cedf Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I34238a997e48e4387d8a87c8d51541ddf5089dc9
2022-12-12 11:00:46 -08:00
Fiona Campbell
55d73f2ed4 Merge "Allow No Sensor to be Specified in DDC" into tm-qpr-dev 2022-12-12 18:25:41 +00:00
Bill Yi
883c7f2676 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ide4b557da8c9b540ea5eabf7dd2da3604bd2a072
2022-12-12 10:17:22 -08:00
Beverly
eabef8f33c Replace KeyguardListenQueue with DumpsysTableLogger
Test: manually check dumpsys & bugreport
Fixes: 261993577
Change-Id: Ic12b64925982c0bc0af7f988ccbbf31a51a76850
2022-12-12 18:13:51 +00:00
Michal Brzezinski
d7fee325b7 Removing logs for b/237743330
The bug is about keyguard status bar and status bar being visible at the same time.
Bug doesn't have any new reports in the last 6-7 weeks so these bug-specific logs are no longer needed.

Bug: 237743330
Test: just removing logs
Change-Id: Ic25bbf46d23b154ba56b121dd0306c3cb83da032
2022-12-12 17:40:54 +00:00
Yuri Lin
a5ad61f2bf Merge "Add an enum for decisions about whether to launch FSI." into tm-qpr-dev 2022-12-12 17:34:42 +00:00
Jiaming Liu
c737b91918 Support ContextWrapper by replacing instanceof checks with token checks
Test: all tests pass

Bug: 258065175

Change-Id: I3dd08929c0ba420d5fa71f0e0fdbc8ca7cc8abb5
2022-12-12 17:32:03 +00:00
Matt Pietal
89965d1c75 Merge "Disable light reveal migration in teamfood; it is not and was not ready." into tm-qpr-dev 2022-12-12 17:20:55 +00:00
Shawn Lee
3d50899537 Merge "Added logging for setting mMotionAborted in NPVC" into tm-qpr-dev 2022-12-12 17:20:32 +00:00
Winson Chung
b7489ff5eb Add missing device config permission
Bug: 257123734
Test: Presubmit
Change-Id: I30a50392c726591cec4a1b09f1e2834de5f85668
2022-12-12 17:18:51 +00:00
Alex Florescu
e8fdf35124 Merge "Revert "[Bouncer] refine entry for bouncer user switcher."" into tm-qpr-dev 2022-12-12 17:15:38 +00:00
Jorge Gil
33b9c7f1e0 Merge "Let DesktopModeController reorder tasks on TO_FRONT transitions" into tm-qpr-dev 2022-12-12 17:11:23 +00:00
Yuri Lin
af6ed7e4d9 Merge "Add UiEvents for cancellation reasons previously not covered" into tm-qpr-dev 2022-12-12 17:10:26 +00:00
Kholoud Mohamed
ebd8e686dd Prevent uninstalling the device management role
Bug: 249047613
Test: manual
Change-Id: I071e049a01f8e638a289a8b6082fc9a4494ca6dd
2022-12-12 16:57:58 +00:00
Michal Brzezinski
f1984df1f3 Forcing closing QS when going from SHADE_LOCKED to KEYGUARD
This is follow-up to ag/20411848 which fixed scrims showing up when going from expanded shade to keyguard with power double press.
The original CL missed the case of going to keyguard from SHADE_LOCKED state, so it's added here.

Fixes: 251025114
Test: NotificationPanelViewControllerTest
Change-Id: I95283f64bc43f2dc45a58cb4ff4b9fff5ffd1799
2022-12-12 16:53:01 +00:00
Alison Cichowlas
b2ab9d9433 Merge "Register VolumeDialogImpl dumpable." into tm-qpr-dev 2022-12-12 16:37:32 +00:00
Caitlin Shkuratov
6fdfe2a862 [Chipbar] Enable chipbar to handle chipbars with different priorities.
This CL re-writes almost everything about how chipbar works,
unfortunately. I realized there were some bugs in the implementation of
handling multiple chipbars at once, and with the addition of priorities
it made it easier to just start from scratch.

Fixes: 261895766
Fixes: 258019006

Test: ttt chipbar then active unlock chipbar -> active unlock chipbar
shown, ttt chipbar re-shows after the active unlock chipbar disappears
Test: active unlock chipbar then ttt chipbar -> active unlock chipbar
still displayed, ttt chipbar shows up after active unlock disappears
Test: ttt flow from started -> triggered -> succeeded
Test: ttt flow works for multiple IDs
Test: ttt chipbar, then active unlock chipbar, then ttt chipbar with
updated info -> when active unlock chipbar disappears, ttt chipbar with
updated info *and updated timeout* is displayed
Test: atest TemporaryViewDisplayControllerTest

Change-Id: I7f077f7e05834c34cfd05ab72e307d2798a18ddf
2022-12-12 15:57:02 +00:00
Anton Potapov
24e16e4a21 Merge "Revert "Move NetworkControllerImpl to @LongRunning thread to prevent @Background from being stuck"" into tm-qpr-dev 2022-12-12 15:07:55 +00:00
Shaowei Shen
f537e31939 Merge "[Output Switcher] [Group by Type] Add MediaItem to store data" into tm-qpr-dev 2022-12-12 14:56:51 +00:00
Vania Januar
1be537d0f7 Flag for USI low battery notifications.
Bug: 250908244
Test: is just a flag
Change-Id: I33f5c48cdc2b0f693a0583e187d16057e075a233
2022-12-12 14:28:56 +00:00
Beverly
b681e2f5a8 Make sure aodInterrupts are cancelled
Else, the UDFPS fingerDown state can be stale
and cause downstream bugs (ie: remaining in the screen on state
instead of transitioninf back to AoD since the DozeMachine
thinks that the user is still interacting with UDFPS).

Test: manually fail UDFPS from AoD, observe device goes back
into DOZE_AOD 5+ seconds after the fingerprint failure
Test: atest UdfpsControllerTest
Fixes: 261758656

Change-Id: Ied60ead5aae4f00e57d0e9457581bf3796392aca
2022-12-12 14:26:05 +00:00
Beverly Tai
631554e252 Merge "Allow UDFPS to be triggerd from AOD_PAUSED state" into tm-qpr-dev 2022-12-12 14:17:48 +00:00
Fabian Kozynski
938aed255a Merge changes from topic "261990919" into tm-qpr-dev
* changes:
  Allow any app to show panel, based on flag
  Add flag to allow panels for all apps
2022-12-12 14:17:40 +00:00
Beverly
4f8dbef6bd Allow UDFPS to be triggerd from AOD_PAUSED state
And from the AOD_PAUSING state.

So if users immediately attempt UDFPS right after
the prox sensor has become unblocked, the
authentication will still go through rather than
being dropped. The UDFPS longpress gesture is also
prox gated (by the sensor), so this is a safe change.

Test: programmatically set DOZE_AOD_PAUSED and see that UDFPS
longpress can still be triggered when prox isn't blocked
Test: atest DozeTriggersTest
Fixes: 244011650
Change-Id: Ic4f7956cb6082bec5c55d5177c8546e12b969378
2022-12-12 14:17:19 +00:00
omarmt
784ccbdc54 Add reset PULSING roundness on NotificationEntry removed
Test: atest HeadsUpAppearanceControllerTest
Test: manual test
Bug: 261963279
Change-Id: I617b06f9e4c05b2bfbccf1e77d0c7eaf12106b91
2022-12-12 14:05:17 +00:00
Caitlin Shkuratov
a2c8f68c08 [SB Refactor] Implement tinting in the new wifi view.
Bug: 238425913
Test: manual: Verify wifi icon updates to be the same color as all the
other status bar icons (e.g. light vs dark mode)
Test: atest MobileStatusBarWifiViewTest

Change-Id: I132cc62a8f8b69fc750c5f0b34750f5a1151be76
2022-12-12 14:00:58 +00:00
Riddle Hsu
1b89cdbde8 Merge "Use seamless for collecting transition with fixed rotation" into tm-qpr-dev 2022-12-12 13:31:57 +00:00
Fiona Campbell
4be1126d25 Allow No Sensor to be Specified in DDC
Adding the following:
<proxSensor/>

to the DDC, will stop any fallback from being used, and allow the usage
of no sensor to be used for that display. This is useful for when a
display has no sensor and the fallback should not be used. If this is
not added to the ddc, the fallback will still only occur if the display
is the default display.

Bug: 202604469
Test: dumpsys display | grep mProximitySensor
Test: com.android.server.display
Change-Id: I018b334a443f6b9a36aaeca70c673bac86446402
Merged-In: I8508a191b7c7c5990929e4d020ffd144c7faeef7
2022-12-12 12:20:08 +00:00
Jordan Demeulenaere
d964925ed8 Merge changes from topic "sysui-typography" into tm-qpr-dev
* changes:
  Remove references to "google-sans" in SystemUITypography
  Define the SystemUI typography
2022-12-12 11:59:34 +00:00
Aurélien Pomini
91e37785db Add trace to generateCrop in wallpaperManagerService
generateCrop does some IO operations and could be responsible for some lock contention; it is useful to know how long it takes to run.

Test: treehugger
Bug: 247076432
Change-Id: I710641d3b15eeca7a34cf6a6b508e769b6604532
2022-12-12 11:36:52 +00:00
Aurélien Pomini
38545343c6 Remove usage of GlEngine
The new Engine of ImageWallpaper, a CanvasEngine, was enabled in droidFood under a flag. It has been tested for several weeks and is ready to be enabled by default, wihtout any flag.

The ImageWallpaperTest has been slightly refactored to fix all warnings and reintroduce two GL tests that were ignored.

A very small fix was added in ImageWallpaper.java: if the bitmap fails to load (which should not happen) for another user than USER_SYSTEM, it will be reset to default for this user and not for USER_SYSTEM.

Test: atest ImageWallpaperTest
Test: atest WallpaperLocalColorExtractorTest
Fixes: 243768810
Bug: 243402530
Bug: 254512923
Change-Id: I0bfbe9b6aee7a4da349b412399196504511b69f0
Merged-In: I0bfbe9b6aee7a4da349b412399196504511b69f0
2022-12-12 11:36:38 +00:00
Alex Florescu
4da665d4a4 Revert "[Bouncer] refine entry for bouncer user switcher."
This reverts commit 66430ca292.

Reason for revert: b/261941458

Change-Id: Id77e5e37c2d6117d54dbbf17d1f4a6b5c0cffd48
2022-12-12 10:46:36 +00:00