Commit Graph

781408 Commits

Author SHA1 Message Date
Ats Jenk
5ecf77d2ce Revert^2 "Create controller for desktop prototype 2"
f3c7cc853a

Change-Id: I23ae45dad7570a89e3650564ec4def3af65f1576
2022-12-14 17:20:05 -08:00
Bill Yi
7a656e7f2b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7a22bd47c5a52b886d4c802ba4d79703c4781933
2022-12-14 16:35:38 -08:00
Alejandro Nijamkin
7b93c03e46 Links WPP clocks flag to SysUI's flag (3/3).
Bug: 261990616
Test: manually verified that setting or unsetting the flag in System UI
correctly shows or hides the "Custom Clock" section in Wallpaper Picker,
respectively.

Change-Id: I4847b5f7d164e69b10eeb36e65a18720fd342198
2022-12-14 16:24:46 -08:00
TreeHugger Robot
99970b1959 Merge "WindowManager#getPossibleMaximumWindowMetrics for disabled displays" into tm-qpr-dev 2022-12-14 23:54:40 +00:00
Chet Haase
a424fc32ca Merge "Revert "DO NOT MERGE Revert "Fix activity leak bug""" into tm-qpr-dev 2022-12-14 23:50:42 +00:00
Bill Yi
3bd6146101 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8b9ae44b4094af990594c5857f71731d1e44c9f2
2022-12-14 15:49:38 -08:00
Will Leshner
3cc877a2f0 Don't allow user to dream when not unlocked.
Bug: 262584382
Test: manually by rebooting device, docking, and then short pressing
power button. The device should be locked (which prevents dreaming), so
the screen should turn off rather than going to dream.

Change-Id: I6d194b6345d382991ae9d9016060df8edf5d48fe
2022-12-14 15:15:45 -08:00
Derek Jedral
06cbc8c0f5 Merge "Fix TrustAgent showing unclear string." into tm-qpr-dev 2022-12-14 23:12:07 +00:00
Michael Mikhail
860d469829 Merge "[Media TTT] Add @SystemApis for new states of receiver devices" into tm-qpr-dev 2022-12-14 23:04:06 +00:00
Cutter Coryell
3fa0c1ffb3 Merge "Do not load/release back gesture ML model after every device fold/unfold." into tm-qpr-dev 2022-12-14 22:37:46 +00:00
Steve Elliott
7129c4b166 Secure setting to control seen notif filter
Bug: 254647461
Test: manual
   1: adb shell settings put secure \
      lock_screen_show_only_unseen_notifications <0|1>
   Observe: seen notifs will appear / disappear from keyguard
Change-Id: Ia660fabc7077f5060e3b63d36dca2eb6310d792e
2022-12-14 22:16:22 +00:00
Winson Chung
ef1f84f5f1 Merge "Force update the disable flags following status bar registration" into tm-qpr-dev 2022-12-14 22:15:40 +00:00
Naomi Musgrave
4dabc1f9de WindowManager#getPossibleMaximumWindowMetrics for disabled displays
Iterate over all possible device states, retrieve the logical display
on each state's layout indicatead by the given display id, and
return the collected display info. Ignore disabled displays
since some displays will be disabled for certain device states.

Bug: 227453545
Test: atest LogicalDisplayMapperTest
Change-Id: I76d85c5cc21f7a885a4bb16915499acdea4fb900
Merged-In: I76d85c5cc21f7a885a4bb16915499acdea4fb900
2022-12-14 22:14:28 +00:00
Darrell Shi
a1e82f2ba5 Merge "Update dream IN transition." into tm-qpr-dev 2022-12-14 22:10:45 +00:00
Hongwei Wang
6dca005ed2 Merge "Ensure SysUI gets VIS callback when session's over" into tm-qpr-dev 2022-12-14 21:38:33 +00:00
Alejandro Nijamkin
20e55efa61 Defines default quick affordances.
As per product, we will go with Home Controls and Wallet on the left and
the right, respectively.

Fix: 262161691
Test: Manually verified that, after clearing app cache, system UI
displays home and wallet properly.

Change-Id: I6dc2c92f1da7c2d4adc3e6ed6218cfe1352bf1b7
2022-12-14 13:28:07 -08:00
Garfield Tan
a6160ee015 Merge "Use task layer constants for window decor z-order" into tm-qpr-dev 2022-12-14 21:18:55 +00:00
Ale Nijamkin
554101125f Merge changes from topic "lock-screen-preview-in-wpp" into tm-qpr-dev
* changes:
  Long-press gesture for lock screen affordances.
  Lock screen preview.
2022-12-14 21:15:39 +00:00
Brad Hinegardner
4e0cbfbb1e Prevent crash when on UserSwitcherActivity rotate
Bug: 251347416
Test: manual verification following steps in bug
Change-Id: I8770300f1bbd269dfdb8e9a7c7f29103216509d7
2022-12-14 16:07:48 -05:00
Bill Yi
934679eb8a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I23b080c3d0c02b14129131f40c48eba7045b406a
2022-12-14 12:28:11 -08:00
Caitlin Shkuratov
7e7dc9faa1 [Chipbar] Only request a11y focus if the chipbar has a button.
Any time the chipbar's content description updates, there will be an
a11y announcement, but the view won't get focus.

Fixes: 260941580
Test: display active unlock chip -> verify chip text is announced but
view isn't focused
Test: display ttt chip that isn't succeeded -> verify chip text is
announced but view isn't focused
Test: display ttt success chip -> verify chip view gets focus (and is
announces)
Test: atest ChipbarCoordinatorTest

Change-Id: I28a29966868611d98d40edbd3d59b1073856e0b4
2022-12-14 19:59:45 +00:00
Caitlin Shkuratov
1970e1b92f Merge "[Chipbar] Enable chipbar to handle chipbars with different priorities." into tm-qpr-dev 2022-12-14 19:48:49 +00:00
Michael Wright
d7367c39c4 Sleep softly on device close.
Add a new flag GO_TO_SLEEP_FLAG_SOFT_SLEEP. When set, this sleeps the
device only if its user activity keeping it awake. If its otherwise
staying awake because an application is holding a wakelock, then the
device continues to stay awake.

Bug: 260705307
Test: atest PowerManagerServiceTest
Test: manual
Change-Id: I08b6dacf418d927b4f86816b1b6d19965e68556a
2022-12-14 19:22:59 +00:00
Fabian Kozynski
968a6e14b9 Fix extra constant value
Test: no test
Bug: 261990872
Change-Id: If047bc351d031a7c098846e0235ae5f35a44aa52
2022-12-14 13:54:20 -05:00
Mark Punzalan
4ee9f703bb Merge changes from topic "audio_egress_metric" into tm-qpr-dev
* changes:
  Hotword: Add metrics for Audio Egress
  Rename HotwordAudioStreamManager and add Javadoc
  Remove dependency on Identity in HotwordAudioStreamManager
  Allow setting buffer length for HotwordAudioStreamManager
2022-12-14 18:23:24 +00:00
Chet Haase
b9ed093976 Revert "DO NOT MERGE Revert "Fix activity leak bug""
DO NOT MERGE Revert submission 20674641-revert-20610032-cherrypick-AnimatorLeak fixes-4lh72bu61o-BQALTBEXMY

Reason for revert: Temporary revert deemed unnecessary - this revert will re-submit the original changes.

Reverted changes: /q/submissionid:20674641-revert-20610032-cherrypick-AnimatorLeak+fixes-4lh72bu61o-BQALTBEXMY

Bug: 261518932
Bug: 258616235
Change-Id: I539c771a6897a9d635613a17138343a7a9feddb9
Test: Presubmit tests. Also, forrest runs with these changes showed no regression
2022-12-14 18:12:29 +00:00
Yining Liu
be2f4b96ab Merge "Remove obsolete shadow logic from StackScrollAlgorithm updateChildZValue" into tm-qpr-dev 2022-12-14 18:01:09 +00:00
Nick Chameyev
0d289f642f [Unfold transition] Fully manage the vignette on the background thread
Updates onScreenTurningOn/device state callbacks
in the unfold overlay class to be executed on
the background thread.

This allows to draw the first black frame even
if SystemUI's main thread is busy at the moment,
so it will be less likely to have flicker because
of that.

Also this CL adds a separate thread to render
the vignette to avoid conflicting with the other
operations made on the shared background thread.

Bug: 262381044
Bug: 262518402
Bug: 233045200
Test: manual fold/unfolds with/without AOD enabled
Test: add artifical delay to SystemUI configChanged
 that exceeds WM keyguard drawn timeout
 => test that there is a flicker without changes
    test that there is no flicker with the changes
Test: atest com.android.keyguard.mediator.ScreenOnCoordinatorTest
Change-Id: Ic5a61839500dbbf63e9c5422bfc0085827526d92
2022-12-14 17:54:11 +00:00
Matt Pietal
7dc1742cab Transitions - Listen for bouncer show & hide
Was only listening for hide() previously. Add support for show().

Also make sure bouncer is not reported while occluded.

Also, use ::Pair, ::toTriple to reduce code clutter for common
operations

Test: atest KeyguardRepositoryImplTest
KeyguardTransitionRepositoryTest
Test: manual, better integration tests pending for transitions
Bug: 195430376

Change-Id: Ic9cd5a7309bdc26c016e33c4221eb8b7c442c2fa
2022-12-14 17:39:58 +00:00
TreeHugger Robot
0933f38b45 Merge "Forcing closing QS when going from SHADE_LOCKED to KEYGUARD" into tm-qpr-dev 2022-12-14 17:38:31 +00:00
Ale Nijamkin
4b452106b0 Merge "Attaches source for camera launch when unlocked." into tm-qpr-dev 2022-12-14 17:21:26 +00:00
Matt Sziklay
544e44f249 Merge "Add unit test for EventReceiver class in CaptionWindowDecorViewModel" into tm-qpr-dev 2022-12-14 17:12:31 +00:00
Tony Huang
1c34df1da0 Merge "Exit split if got request split when invisble" into tm-qpr-dev 2022-12-14 16:47:10 +00:00
Aaron Liu
6aaf6e649a Merge "[Bouncer] Add more padding top for bouncer." into tm-qpr-dev 2022-12-14 16:40:23 +00:00
Aaron Liu
159d7482e8 Merge changes Id3aaa354,Ia2782c7c into tm-qpr-dev
* changes:
  Revert "Revert "[Bouncer] refine entry for bouncer user switcher.""
  [Bouncer] Have initial message id for sim pin.
2022-12-14 16:39:53 +00:00
Kenneth Ford
762a2739fd Fix ConcurrentModificationException in AcceptOnceConsumer
Marks AcceptOnceConsumer as ready to be removed instead
of removing from the set of callbacks while iterating

Bug: 260526969
Test: Manual, scenario where an AcceptOnceConsumer
  is created will trigger the crash provided more
  than one consumer exists
Change-Id: Ie85fd58b7d2abf0e865bca7737101ad42577e2ca
2022-12-14 16:39:31 +00:00
Caitlin Shkuratov
23552deaa4 [Media] Update constraints to fix scrubbing.
The old constraint strategy broke when our CosntraintLayout library was
upgraded, so this updates it to not use double references.

Videos are attached in the bug.

Fixes: 262241809

Test: Scrub on a media notif -> verify the UI still works
Test: verify media session actions layout in expanded and collapsed mode
Test: verify old media generic actions layout in expanded mode
(collapsed mode has existing bug: b/262562516
Test: verified in RTL

Change-Id: Id60983659228384c654951c10c6e9e16eeb844df
2022-12-14 16:26:45 +00:00
Piotr Wilczyński
6b7bee1c4b Make DPC listen to auto-brightness mode changes
- remove brightness mode code from PowerManager

Bug: 161868123
Test: Make sure that switching auto-brightness mode still works correctly.
Test: atest PowerGroupTest
Test: atest PowerManagerServiceTest
Change-Id: Ie8bed709c14a715d2f834eb4404463727f4dab13
Merged-In: Ie8bed709c14a715d2f834eb4404463727f4dab13
2022-12-14 16:17:27 +00:00
Vania Januar
d54bfd8ab5 Low battery notifications for USI styluses.
USI stylus low battery notifications should only appear when
bluetooth battery notifications are not available.

There is currently no way to differentiate USI styluses, so any
USI stylus being used will use the same notification.

Bug: 250908244
Test: StylusUsiPowerStartableTest StylusUsiPowerUiTest
Change-Id: I54cb59c1608c955f19db4776875e0dc3d9df1dd5
2022-12-14 16:09:35 +00:00
Prabir Pradhan
871283572f DO NOT MERGE: Add remapping for an Android stylus
This remapping is used for testing and development purposes.

Bug: 262287992
Test: TBD
Change-Id: I4cf157fd9c10d62c7ad08ef31ba1b6c4f3a7865e
2022-12-14 15:41:19 +00:00
TreeHugger Robot
d411dd57f3 Merge "RESTRICT AUTOMERGE Remove ScrimController from BiometricUnlockController" into tm-qpr-dev 2022-12-14 15:40:23 +00:00
TreeHugger Robot
92f2962957 Merge "Add debug logs for haptics in NotificationPanelViewController." into tm-qpr-dev 2022-12-14 15:21:33 +00:00
Behnam Heydarshahi
a5d6da85d7 Merge "Taller volume dialog slider on taller screens" into tm-qpr-dev 2022-12-14 14:57:52 +00:00
Aurélien Pomini
ef177e995f Merge "Add trace to generateCrop in wallpaperManagerService" into tm-qpr-dev 2022-12-14 14:47:15 +00:00
Massimo Carli
86c6d900c6 Merge "Fix Letterboxing for Transparent Activities" into tm-qpr-dev 2022-12-14 14:29:56 +00:00
Fabian Kozynski
bb848b653a Merge "Polish background for controls panel." into tm-qpr-dev 2022-12-14 14:14:35 +00:00
Fabian Kozynski
a1bd51fc79 Merge "Fix affordance in lockscreen and dream" into tm-qpr-dev 2022-12-14 14:14:28 +00:00
Beverly
9a21ac1be1 RESTRICT AUTOMERGE Remove ScrimController from BiometricUnlockController
It was unnecessary - the DozeScrimController is enough
to determine whether the device is pulsing.

Test: show a notification (via notify test app) in AoD, then
authenticate from AoD and notice the screen doesn't light up
before transitioning to the home screen.
Bug: 262002530
Bug: 237362467
Change-Id: Ic4c4837cdbe0fbcdcc0d5500a659bdb75b04e848
2022-12-14 13:59:51 +00:00
Beverly Tai
9b8547a3a8 Merge "Always attempt AU w/ kg dismissal on fp failure" into tm-qpr-dev 2022-12-14 13:44:10 +00:00
Kholoud Mohamed
2c11df7fe4 Merge "Prevent uninstalling the device management role" into tm-qpr-dev 2022-12-14 12:16:59 +00:00