Commit Graph

784085 Commits

Author SHA1 Message Date
Bill Yi
b4af28ce29 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9679a68f668c5c17ded60979d20cf7bb67e73052
2023-02-14 17:35:24 -08:00
Michael Mikhail
213d6640a9 Merge "Set seekbar listening when UMO is visible to user" into tm-qpr-dev 2023-02-14 17:23:46 +00:00
Evan Laird
dd335f5ff0 Merge "[Sb refactor] Check groupUuid in subscription filtering" into tm-qpr-dev 2023-02-14 17:03:47 +00:00
Bryce Lee
b200ac2c96 Merge changes from topic "261420432" into tm-qpr-dev
* changes:
  Introduce SelfExecutingMonitor for tests.
  Run dream logic only for current user process.
  Always have ConditionalCoreStartable subscribe to monitor.
2023-02-14 17:01:55 +00:00
Nolan Scobie
cae3b6f706 Merge "Fix storing VkPipelineCache in HWUI's shader cache breaking persistence" into tm-qpr-dev 2023-02-14 15:49:50 +00:00
Michael Mikhail
76a33028c6 Merge "Fix MediaCarouselController Tests" into tm-qpr-dev 2023-02-14 15:05:10 +00:00
Candice Lo
c0e6f4e8d7 Merge "Implement Font Scaling Quick Settings Tile (4/n)" into tm-qpr-dev 2023-02-14 09:01:39 +00:00
TreeHugger Robot
fb9097776e Merge "Update WM Extensions aar for animation background color" into tm-qpr-dev 2023-02-14 06:38:08 +00:00
Winson Chung
37351f403a Merge "Throw OOM exception with error status" into tm-qpr-dev 2023-02-14 06:01:14 +00:00
Chris Li
19504bf76e Merge "Re-enforce MANAGE_ACTIVITY_TASKS for applySyncTransaction" into tm-qpr-dev 2023-02-14 05:23:16 +00:00
Winson Chung
cc1eccc4ab Merge "Expose method for registering for current user's gesture inset scale" into tm-qpr-dev 2023-02-14 04:45:23 +00:00
Bryce Lee
71bf33c6b9 Introduce SelfExecutingMonitor for tests.
A number of tested components rely on monitors for pretext conditions.
In these cases, a mocked monitor will not execute the callback in order
for the logic to proceed. This change introduces and integrates
SelfExecutingMonitor to handle this case.

Bug: 261420432
Test: atest ComplicationTypesUpdaterTest
Test: atest DreamClockTimeComplicationTest
Test: atest DreamHomeControlsComplicationTest
Test: atest SmartSpaceComplicationTest
Change-Id: I2368bdcaa8a8a064484c160ddd95bf73882b733d
2023-02-14 04:21:47 +00:00
TreeHugger Robot
197e7ec432 Merge "Catch exception from TelephonyManager#isEmergencyNumber to avoid crash" into tm-qpr-dev 2023-02-14 04:08:10 +00:00
Candice Lo
002f0ce9c3 Merge "Implement Font Scaling Quick Settings Tile (3/n)" into tm-qpr-dev 2023-02-14 03:51:00 +00:00
Bryce Lee
ffbc4a29c9 Run dream logic only for current user process.
This changelist updates dream-related components to only run in the
process associated with the current user.

Test: manual (exercised in upstream CLs)
Fixes: 261420432
Change-Id: I856fc348bb2c606bc15f2bc42a2d743f4994de0b
Merged-In: I856fc348bb2c606bc15f2bc42a2d743f4994de0b
2023-02-14 03:44:01 +00:00
Bryce Lee
daed6675fc Always have ConditionalCoreStartable subscribe to monitor.
Currently, ConditionalCoreStartables bypass subscribing to the
condition monitor if no conditions are specified. However, a
monitor might have preconditions set on it that would be ignored
in this case. This changelist ensures the CoreStartable always
subscribes to that any preconditions from the monitor are
considered.

Test: atest ConditionalCoreStartableTest
Test: atest ConditionMonitorTest
Bug: 261420432
Change-Id: If4e14bca8c51a7568966950c429dae7c16fdf759
2023-02-14 03:43:47 +00:00
Chris Li
c558fc3a52 Update WM Extensions aar for animation background color
Store 0 in a named constant as the default animation background color.
Update the animation background color usage to make sure it is not
transparent.

Bug: 267955776
Test: verify the behavior is not changed with demo app
Change-Id: I23fcab10a516de2c7646639e5773cf8c67143bcb
2023-02-14 11:24:43 +08:00
Michael Mikhail
fb3eedd1d2 Set seekbar listening when UMO is visible to user
CurrentlyExpanded is always true. So listening attribute in
seekbarViewModel is always true. This makes SystemUI execute a runnable
repeatedly.
A listener is added to MediaScrollViewHolder to update players seekbar
whenever visibleToUser attribute is updated to make sure that listening
attribute is false when UMO is not visible to user.

Bug: 268191023
Test: atest MediaCaroselControllerTest
Change-Id: I3296cd6b560fa886b2fdb1dc11634a4df746fde9
2023-02-14 02:08:29 +00:00
Winson Chung
b9e748648d Throw OOM exception with error status
Bug: 260283480
Test: Manual
Change-Id: I36e1befbf4fabd8f8204186f563ca8f4ecbaf993
2023-02-14 01:05:24 +00:00
Tetiana Meronyk
c0511060f4 Merge "Prevent adding a user from lockscreen until a user has signed in" into tm-qpr-dev 2023-02-13 23:39:52 +00:00
SongFerng Wang
090f8dca9c Merge "Add limitation for the password" into tm-qpr-dev 2023-02-13 23:29:27 +00:00
Jean-Michel Trivi
f642d99e9a Merge "AudioService: handle BT profile disconnections" into tm-qpr-dev 2023-02-13 23:23:52 +00:00
Yu-Han Yang
cbed4a2287 Catch exception from TelephonyManager#isEmergencyNumber to avoid crash
Bug: 247967305
Test: presubmits
Change-Id: I48d24e5ea0a9d67e39a2908a5c3246e0d6476f2e
(cherry picked from commit cf445af0af)
2023-02-13 23:19:42 +00:00
Bryce Lee
35512533d3 Merge "Don't check wakefulness before setting sandman summoned to false." into tm-qpr-dev 2023-02-13 22:40:24 +00:00
Nolan Scobie
23a1a9a121 Fix storing VkPipelineCache in HWUI's shader cache breaking persistence
See b/268205519 for the full analysis and description, but the summary
is mSavePending could previously get stuck in the true state, preventing
the shader cache from being written to disk for the rest of an app's
lifecycle.

This stuck state seems to occur on every app launch after the first,
unless any shaders are compiled in the first 4 seconds. This occurs
frequently, as the shaders initially required by an app in its first 4
seconds were likely compiled on its first launch and already available
in its persistent cache, thus not necessitating new compilation in that
initial window and triggering the failure case.

This seems to have serious jank implications, particularly for SysUI.

Note: time is now represented in milliseconds to make testing easier.

Fixes: 268205519

Bug: 268205519
Bug: 225211273

Test: `atest hwui_unit_tests:ShaderCacheTest` (before and after fix)

Change-Id: I102d75df4c61f9b3012dd5d956dc37435d5b5a84
(cherry picked from commit 193cd9678e)
2023-02-13 15:47:30 -05:00
Aaron Liu
c573766a07 Merge "Revert "Destroy and reinflate bouncer before showing"" into tm-qpr-dev 2023-02-13 20:07:54 +00:00
Jean-Michel Trivi
a98ef735fe AudioService: handle BT profile disconnections
The BT A2DP, LE and HearingAid proxies to the BT service were
 initialized on profile connection, but were never reset on
 profile disconnection in BtHelper.
Wrapped the calls to the BT proxies with try/catch as the
 notification that a profile disconnected can happen while
 the proxy is used.

Bug: 265815315
Test: BT crash case in bug
Change-Id: I9e7a24baba2742237397f950401fa03376fb5d29
Merged-In: I9e7a24baba2742237397f950401fa03376fb5d29
2023-02-13 20:03:27 +00:00
Candice Lo
303c96cb1d Implement Font Scaling Quick Settings Tile (4/n)
Setup the dialog panel for font scaling
 - Slider: The number of steps in the slider refers to the values
   options for font scaling. Changing the progress of the seekbar will
   change the size of fonts including the ones on the dialog panel.
 - Title and Done button: Update font size when onConfigurationChanged.

Bug: 242326166
Test: Attach a video to the bug
Test: atest FontScalingDialogTest
Change-Id: I9004aa933ff1d8021f3087a015ebc23bb8724871
2023-02-13 18:25:17 +00:00
Beverly Tai
6116f0a6ae Merge "Trigger passive auth on unfold" into tm-qpr-dev 2023-02-13 18:11:43 +00:00
Aaron Liu
02568f3e4d Revert "Destroy and reinflate bouncer before showing"
This reverts commit 028de77c85.

Reason for revert: password view is disappearing

Change-Id: Idea76c88e620659c8cf55b64052ffddc184d508b
2023-02-13 17:59:18 +00:00
Aaron Liu
dbed209ffb Merge "Add initial corner radius to pin button." into tm-qpr-dev 2023-02-13 17:57:10 +00:00
Caitlin Shkuratov
9f085a9111 Merge "[Media TTT] Don't use an animated-vector for the loading spinner." into tm-qpr-dev 2023-02-13 17:53:44 +00:00
Sherry Zhou
9fe66836c4 Merge "Change textAnimator to modify weight in variable fonts" into tm-qpr-dev 2023-02-13 17:05:12 +00:00
Julia Tuttle
f612fe0d81 Merge "Bypass HUN snooze for notifs with FSI" into tm-qpr-dev 2023-02-13 16:17:14 +00:00
Julia Tuttle
3a710b8bf7 Bypass HUN snooze for notifs with FSI
If an app posts a time-sensitive (alarm, call, etc.) notification that
can either HUN or FSI, it's possible for *neither* alerting behavior to
happen if the user has snoozed HUNs for the package and System UI has
suppressed FSIs because the screen is on and unlocked and the
FSI_REQUIRES_KEYGUARD flag is set.

In this case, assume any notification with an FSI is time-sensitive
(like an alarm or incoming call) and ignore whether HUNs have been
snoozed for the package.

Bug: 245356701
Test: atest NotificationInterruptStateProviderImplTest
Test: manual tests of relevant FSI/HUN snooze scenarios
Change-Id: Idee76ef9fc9d303903617ffd5bc79aad0756b2a0
2023-02-13 16:11:17 +00:00
Luca Zuccarini
3fb52a6322 Merge "Move some base launchable views to the animation library." into tm-qpr-dev 2023-02-13 13:08:19 +00:00
Candice Lo
8141175c18 Implement Font Scaling Quick Settings Tile (3/n)
Setup the basic layout of the dialog that would show up after clicking
the font scaling tile. The dialog includes the Title, the Done button,
and a seekbar which allows users to change the font size.

Bug: 242326166
Test: Attach a video to the bug
Test: atest FontScalingTileTest
Change-Id: I53db74af00e358a5e35283128a11164d4ae6733e
2023-02-13 10:42:32 +00:00
Riddle Hsu
3226615582 Merge "Avoid pausing bar appearance by starting window when relaunching" into tm-qpr-dev 2023-02-13 08:30:41 +00:00
Chris Li
65ac64c347 Re-enforce MANAGE_ACTIVITY_TASKS for applySyncTransaction
The conditional permission was introduced for TaskFragmentOrganizer, but
not really needed. Remove the conditional check.

Bug: 259938771
Test: pass existing tests
Merged-In: I666b9ee6b6076766513b97e675fdbaa002428601
Change-Id: I666b9ee6b6076766513b97e675fdbaa002428601
2023-02-13 07:17:38 +00:00
Jeff Chang
5c978d3fb3 Merge "Make PIP into split screen" into tm-qpr-dev 2023-02-13 05:39:36 +00:00
Rupesh Bansal
8f3fe87ace Merge "Added display device config for default refresh rates in the hbm mode" into tm-qpr-dev 2023-02-13 05:39:19 +00:00
Rupesh Bansal
05a583fee8 Added display device config for default refresh rates in the hbm mode
Bug: 264965782
Test: atest DisplayDeviceConfigTest
Merged-In: Ic6c4a0a4be5c3d355bfa18e5bd164f9b39f52ac0
Change-Id: Iaad6350a8428ab27cdf9015ec7d3831d3a4f3d7c
2023-02-13 02:08:20 +00:00
Candice Lo
1d10fd5a0b Merge "Implement Font Scaling Quick Settings Tile (2/n)" into tm-qpr-dev 2023-02-13 02:02:54 +00:00
Aaron Liu
d3d710e837 Merge "Destroy and reinflate bouncer before showing" into tm-qpr-dev 2023-02-12 20:54:03 +00:00
TreeHugger Robot
fb2041c576 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2023-02-11 19:15:36 +00:00
TreeHugger Robot
569be15687 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2023-02-11 19:15:36 +00:00
TreeHugger Robot
6145f67641 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2023-02-11 19:15:36 +00:00
TreeHugger Robot
a9aa9399f6 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2023-02-11 19:15:36 +00:00
TreeHugger Robot
4779a16bea Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2023-02-11 19:15:36 +00:00
TreeHugger Robot
23d2150eec Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2023-02-11 19:15:36 +00:00