Commit Graph

781408 Commits

Author SHA1 Message Date
Tracy Zhou
054f7d8090 Map split from the current running app to META+CTRL+DPAD_LEFT and META+CTRL+DPAD_RIGHT
Fixes: 246661484
Test: https://recall.googleplex.com/projects/f4cc906f-d337-414e-aea8-d5434a0c6e88/sessions/06cc05b5-c032-40f3-af8b-3b90860d2f37
Change-Id: I8b293a0eb7e198fc2ff25c4c5a57dbd58f6be2f4
Merged-In: I8b293a0eb7e198fc2ff25c4c5a57dbd58f6be2f4
2022-12-06 18:34:06 +00:00
Caitlin Shkuratov
8d86871d01 [Chipbar] Don't add null icon descriptions to the main description.
Fixes: 260951134
Test: verify active unlock chipbar doesn't contain "null" in its content
description
Test: atest ChipbarCoordinatorTest

Change-Id: I2de3de5cd9146825e9ec706a7f1d7a6b1bacc737
2022-12-06 18:26:15 +00:00
Julia Tuttle
1bf468d2c2 Promote no_hun_for_old_when to teamfood
Bug: 253055301
Test: atest NotificationInterruptStateProviderImplTest
Change-Id: I103d5b70bebf32a58f9f58d16d954528540c75d8
2022-12-06 13:23:17 -05:00
Michal Brzezinski
8b8aa7d66e Optimistic fix for tile not getting redistributed in split shade
The issue is likely caused by QS tiles not getting redistributed in PagedTileLayout#onConfigurationChanged which does it only when orientation changes. One fix would be to remove that condition at all but then we would be redistributing for every configuration change or we'd need to make PagedTileLayout aware of split shade - none of these options seem good.

So the solution here is to force redistribution from QSPanelControllerBase which is already aware of split shade and can listen to changes there.

I'll also add more logs (in case bug is not fixed) in follow-up CL.

Bug: 255208946
Test: there is no reliable way to reproduce the issue, we'll see if it stops happening
Test: QSPanelControllerTest
Change-Id: I81630b6eec16237a1a665982553dfc5b9dbac54b
2022-12-06 18:21:09 +00:00
Jeff DeCew
cbaff9b1cf Promote the SEMI_STABLE_SORT flag from teamfood to droidfood
Bug: 241229236
Change-Id: I8f4aafbd54e9c69ae371571b367ee2a510484ed9
Test: soaked in teamfood for weeks
2022-12-06 18:08:08 +00:00
Kenneth Ford
5b7da895e2 Merge "Continue searching for device state after exception" into tm-qpr-dev 2022-12-06 18:03:45 +00:00
Mady Mellor
52b75ec452 Merge "Create new owners files for desktop & freeform and add myself" into tm-qpr-dev 2022-12-06 18:02:41 +00:00
Marcello Galhardo
1225077abc Merge "Add Note Task shortcut" into tm-qpr-dev 2022-12-06 17:55:37 +00:00
Caitlin Shkuratov
8338268582 [Chipbar] Always tint the start icon correctly.
This creates a TintedIcon & TintedIconViewBinder and forces all chipbar
clients to provide the tint.

Fixes: 260954564
Test: active unlock chipbar watch icon has correct tint in light and
dark mode
Test: media ttt chipbar with default icon and app icon has correct tint
in light and dark mode
Test: media ttt receiver default icon has correct tint in light and dark
mode
Test: atest MediaTttUtilsTest MediaTttChipControllerReceiverTest
ChipbarCoordinatorTest

Change-Id: Ic5d0a97a41b78c851da78d0b159011b27086f8c6
2022-12-06 17:48:30 +00:00
Aaron Liu
70fec19e8e [Bouncer] Do not Autosize numpad.
The autosizing logic seems to have inadvertent side effects. Will remove
this for now.

The autosizing logic was added in ag/20612038. I'm opting to fix forward
because other changes were added into that CL.

Fixes: 261552438
Test: open up bouncer.
Change-Id: I44c41c93ad235b09fc6e4e9966b24c6b4fdcd915
2022-12-06 09:47:28 -08:00
Will Osborn
1616dafaf9 Merge "Fix tabletop autorotate freezing the device in portrait" into tm-qpr-dev 2022-12-06 17:43:06 +00:00
Nick Chameyev
9fd354c57d [Unfold transition] Use DISPLAY_CATEGORY_ALL_INCLUDING_DISABLED for the overlay
Adding a flag DISPLAY_CATEGORY_ALL_INCLUDING_DISABLED
when getting display list to calculate the size
of the unfold overlay.

Bug: 261591746
Bug: 221071695
Test: manual unfolds => check size is correct
Change-Id: I87990ec13eb726f9c70a05953462d011da4fb952
2022-12-06 17:42:23 +00:00
omarmt
3e69219a37 Invalidate NotificationChildrenContainer whenever NotificationHeaderViewWrapper.applyRoundnessAndInvalidate()
Test: manual test
Bug: 257000427
Change-Id: I8ce4567adc89552338fa6729320849fcf0b3b41c
2022-12-06 17:35:46 +00:00
Omar Miatello
446cb95aa1 Merge "Define clear ownership for roundness SourceType" into tm-qpr-dev 2022-12-06 17:34:59 +00:00
TreeHugger Robot
49480248da Merge "[SB Refactor] Add table logging to the wifi view model." into tm-qpr-dev 2022-12-06 17:31:13 +00:00
Aaron Liu
892d2c1ecd [Bouncer] Add StatusBarKeyguardViewManager test...
for the modern bouncer. We will maintain the old version suffixed with
_Old and delete it when we do cleanup. I have copied the tests and
replaced all bouncer references to use the bouncer interactor.

Fixes: 261172736
Test: atest StatusBarKeyguardViewManagerTest
Test: atest StatusBarKeyguardViewManagerTest_Old
Change-Id: I605481ed6d2d323ab3a3911e58dc725cda23b1fc
2022-12-06 09:04:59 -08:00
TreeHugger Robot
d9c890d925 Merge "[Dock Defend] Update flag to be resource-backed so we can enable it on certain devices only." into tm-qpr-dev 2022-12-06 17:03:24 +00:00
Muralidhar Reddy
a64c45d50e 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.
Currently isSimPortAvailable API returns true if the port is active without any profile enabled on it or the calling app has carrier privileges over the selected port. It is hampering switching to MEP mode when the psim is active and empty.

Test: Manually verified isSimPortAvailable API behavior on C10 with EuiccPartnerApp.
Bug: 240273417
Change-Id: I4c9ad2bc6f1093163290be0e47f8a065245e5783
2022-12-06 16:57:00 +00:00
Michael Mikhail
71d3dbf23b Merge "Keep metadata and buttons in the same position" into tm-qpr-dev 2022-12-06 15:59:06 +00:00
Fabian Kozynski
58e2149a08 Add a TestableAlertDialog
This makes it easier to test classes that create and show an
`AlertDialog`. If using `AlertDialog.Builder`, extra work is needed to
use this.

Test: atest TestableAlertDialogTest
Bug: 260731518
Change-Id: I027cc96cbbaff569b2df33fcdcef0ad50800f56d
2022-12-06 10:56:48 -05:00
Fabian Kozynski
52c10f48d0 Pass Secure.LOCKSCREEN_ALLOW_TRIVIAL_CONTROLS
Add an EXTRA for passing the value of this setting to the activities
when the TaskView is started. That way they can respect it when showing
content.

Also, make sure that we create the pending intent for the correct user

Test: atest ControlsUiControllerImplTest
Test: manual with test app
Fixes: 259953724
Change-Id: I44bb8191f8412eb098c3cc654dea2e8badd6fabd
2022-12-06 10:56:47 -05:00
Massimo Carli
cf1f4a3d4a Merge "Update a size-compat restart icon" into tm-qpr-dev 2022-12-06 15:38:40 +00:00
Evan Laird
5f5321d8d5 Set up demo mode repository for mobile icons
This CL is the sketch of how we can achieve demo mode using the modern
architecture that makes up the new data pipelines. The basic idea is to
put a `RepositorySwitcher` in between the real repository impl and the
demo mode repository.

RealRepository
              │
              ├──►RepositorySwitcher──►RealInteractor──►RealViewModel
              │
DemoRepository

In this case, we have a `IRepository` interface which both the demo and
fake repositories implement, and the switcher decides which
implementation to connect to the (real) downstream classes based on
whether or not demo mode is active.

Note that this CL does not hook up the demo mode repository properly,
since the old data pipeline uses a demo icon group layered on top of the
real one to achieve fake icons. That makes things kind of a mess and so
will be implemented in its own CL

Test: DemoMobileConnectionParameterizedTest
Test: DemoMobileConnectionsRepositoryTest
Test: MobileRepositorySwitcherTest
Bug: 249790009
Change-Id: I9ad6bab6dd0ab6eadf43232e3bea0f4fa3116a17
2022-12-06 10:24:49 -05:00
Dave Mankoff
aceb53b650 Send a SysUI Started broadcast.
Only sent on debug builds. Used for the flags app.

Bug: 257302229
Test: manual
Change-Id: Ie1b8c1dd8856c1bcaa744f23db57c6b255a8454f
2022-12-06 14:43:29 +00:00
Dave Mankoff
0642eb082e Revert "Revert "Ensure SystemUI gets restarted lazily.""
This reverts commit d4c3da1be3.

Reason for revert: Need to restore this functionality. Problem fixed.

Bug: 257302229
Test: manual via the flag app
Change-Id: Ieefc76bda09431ed2f7a0fe28d91a59ef02184b8
2022-12-06 14:41:27 +00:00
TreeHugger Robot
5cb3c55774 Merge "BrightnessTracker should accomodate multiple ambient sensors" into tm-qpr-dev 2022-12-06 12:55:54 +00:00
Kriti Dang
0736fbfd8d Merge "Initialise the brightness value with Float.NaN in PersistentDataStore" into tm-qpr-dev 2022-12-06 12:04:39 +00:00
Riddle Hsu
6d4dc22840 Merge "Defer creation of input sink surface until sync completes" into tm-qpr-dev 2022-12-06 12:04:29 +00:00
Kriti Dang
f49d3de387 Initialise the brightness value with Float.NaN in PersistentDataStore
If there is no DisplayState, and it gets initialised because of any
other field, for instance refresh-rate, the brightness gets initialised
by 0. Since 0 is a permissible value for brightness, is causes issues by
changing the brightness to 0.

Bug: 259517441
Test: atest PersistentDataStoreTest
Change-Id: I532afc9e9d437199922f83f3c4440127a86a88f5
2022-12-06 12:01:52 +00:00
Issei Suzuki
d002c621c2 Merge "Fix WM shell crash when targets belong to a different display." into tm-qpr-dev 2022-12-06 11:33:49 +00:00
Nicolò Mazzucato
67c61bf59b Merge "Remove top and bottom parent constraint from album_art as it has a fixed height" into tm-qpr-dev 2022-12-06 10:31:28 +00:00
Ioana Alexandru
adbbfc2a92 Merge "Trim strings added to persistent snoozed notification storage." into tm-qpr-dev 2022-12-06 10:28:27 +00:00
Johannes Gallmann
866a935caf Fix AnimationLib Test not running in presubmit
Test: atest InterpolatorsAndroidXTest
Bug: 259063937
Change-Id: I25c4eef9bf489a944ed692147a43e486db14433e
2022-12-06 10:23:15 +00:00
Jerry Chang
d6d9627cd6 Fix unexpectedly dismiss split by dragging the same app to the same side
Make sure to only evicts non-opening task when there's a new task
opening into split.

Fix: 261540443
Test: dragging the same app to the same side won't dismiss split
Change-Id: I5d7ae6cdfdc2971817a80befc834d7c45524ebc2
2022-12-06 10:19:18 +00:00
Piotr Wilczyński
073fab8f88 BrightnessTracker should accomodate multiple ambient sensors
Refactor BrightnessTracker so that it receives an array of lux readings rather than listening to the light sensor

Bug: 215100807
Test: atest BrightnessTrackerTest
Test: atest AutomaticBrightnessControllerTest
Change-Id: I9807ecb39ac8962d2dae9e53c68e6eadbba5c50f
Merged-In: I9807ecb39ac8962d2dae9e53c68e6eadbba5c50f
2022-12-06 09:56:17 +00:00
Jordan Demeulenaere
b81944dee2 Merge changes Ibc9d5374,I28a14ab9 into tm-qpr-dev
* changes:
  Fix parental control dialog
  Fix NPE in QSSecurityFooterUtils
2022-12-06 09:20:53 +00:00
TreeHugger Robot
be4e61e5b5 Merge "[RESTRICT AUTOMERGE] WCT#setReparentLeafTaskIfRelaunch" into tm-qpr-dev 2022-12-06 08:44:43 +00:00
TreeHugger Robot
7d447f6ed5 Merge "Add settings default handling for STATUS_BAR_SHOW_VIBRATE_ICON" into tm-qpr-dev 2022-12-06 08:40:02 +00:00
Jeff Chang
835262451e [RESTRICT AUTOMERGE] WCT#setReparentLeafTaskIfRelaunch
This CL allows disassociating the leaf task if relaunched and
reparented it to TDA as root task for split-screen.

Bug: 236317871
Test: atest WindowOrganizerTests

Change-Id: I6704fab733ed7d239d7004c93d3d2f471ac94822
Merged-In: I6704fab733ed7d239d7004c93d3d2f471ac94822
2022-12-06 06:55:09 +00:00
shaoweishen
bdcc45e31a [Output Switcher] Update device selection layout
Update device selection layout to match with UX markup.
1. divide device item part with group part, to allow both transfer and
   grouping.
2. update checkbox image to match with markup.

guard this change by flag.

Bug: 249371764
Bug: 255126338
Test: atest MediaOutputAdapterTest MediaOutputControllerTest MediaOutputBaseDialogTest MediaOutputDialogTest
Change-Id: I6e92a40f25ea940286cb5ca49aa0193fd9f406a5
2022-12-06 06:47:20 +00:00
TreeHugger Robot
64e177c029 Merge "Only create DesktopModeController when flag is on" into tm-qpr-dev 2022-12-06 06:44:30 +00:00
shaoweishen
62a153e93f [Output Switcher] Update Volume control in Output Switcher
guard this change with flags.

Bug: 255126338
Test: verified on device
Change-Id: I3c081fd8cb0e7fc55f3b5c7016647fb98ae77e0d
2022-12-06 06:39:01 +00:00
Riddle Hsu
ff81457133 Merge "Reduce operations in postApplyAnimation for shell transition" into tm-qpr-dev 2022-12-06 06:26:13 +00:00
TreeHugger Robot
ad2993445f Merge "Use resolved configuration for shell transit clip rect" into tm-qpr-dev 2022-12-06 05:50:50 +00:00
Tiger Huang
80c145dca0 Merge "Reduce unnecessary measure" into tm-qpr-dev 2022-12-06 05:46:04 +00:00
Austin Borger
ddc70c75f3 DO NOT MERGE CameraManager: Provide flag for overriding camera output to portrait.
Apps commonly do not handle landscape orientation cameras correctly. In
order to prevent stretching and rotation issues in these apps, this
patch adds a flag to override the behavior of these landscape cameras
to produce a portrait image instead by changing the SENSOR_ORIENTATION
reported by CameraCharacteristics and applying a 90 degree rotate and
crop. It also adds a CompatChanges entry which will track which apps
require this treatment.

Test: Ran on foldable device with several camera apps to verify behavior.
Bug: 250678880
Change-Id: I92b6f227916b97828ab6a7f856eea5a1e427644d
2022-12-05 20:54:06 -08:00
TreeHugger Robot
73420439bc Merge "Update fontchain_linter for non-compat font" into tm-qpr-dev 2022-12-06 03:52:29 +00:00
TreeHugger Robot
d38d5bcc0d Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-06 03:44:10 +00:00
TreeHugger Robot
b6bee9de84 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-06 03:44:10 +00:00
TreeHugger Robot
cc11592d38 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-06 03:44:10 +00:00