1. Use Transaction API instead of SurfaceControl
2. Removed recoverMemory flag from Tranaction request APIs
3. Deleted a lot of unused code
Test: Split Screen + PIP
Change-Id: I91762453afadd79626f6fb2d8ba162054a011584
In WSA, we are sometimes using the global transaction. This will make
things difficult when trying to handle synced transactions for blast
sync. We need to make sure all changes on WSA that can happen during a
sync are put on the sync transaction so they can all be applied by the
client at the same time.
Also cleaned up some unused functions in SurfaceControl.
Test: Split and PIP
Change-Id: Ic1abc3c009c38d00593f80a4e03f895c026364e2
The test config takes longer than 15mins to run. Move it to a dedicated
group for running slow presubmit Test Mapping test.
Bug: 174654670
Bug: 174495337
Bug: 175150979
Change-Id: Ib9d7b86ea9bee438383a80a66b5d1c008565ba10
Test: none
Add an API for IMS application to notify the SipDelegate when
to close the dialog and release all routing resources associated
with it.
Bug: 173833985
Test: atest CtsTelephonyTestCases:SipDelegateManagerTest
Change-Id: I7638c1d3a8e117f604a83ea241c5ec158f33a186
BatteryControllerImpl won't send updates to the battery unknown state if
it hasn't changed, but BatteryMeterView can get reinflated on theme
change. This change makes sure we send the current state when callbacks
are added.
Test: atest BatteryControllerTest
Bug: 174959955
Change-Id: I30b4a7b7f55a1f26b6451f23721be3a709ddf894
The call log provider needs to grant an allow-list exemption in
broadcast options when sending the ACTION_NEW_VOICEMAIL intent to it's
directed recipient. This is required so that the voicemail app can
start a background service to do some time consuming (but timely) work
in the background upon receiving the intent.
Test: Manual test with Call log provider.
Bug: 173155475
Change-Id: I3e84d65292ec74ffe374fc997e57c4c688f71b9d
Supports two new layouts in single conversation tiles and update
multi-conversation layout.
Test: local
Bug: 173499220
Change-Id: I878af1974d59500547723f4380e92bb8d660117b
This way, the brightness icon can be overlaid properly and the colors
will work.
Test: manual
Fixes: 174746414
Change-Id: I73bb98a08e89be780bd89cc48228f80b15b8b9de
Custom notifications are inflated using a different context, text colors
should be replaced after infaltion, similarly to what we do on dark
mode.
Test: manual
Test: atest com.android.systemui.statusbar.notification.row
Fixes: 174763901
Change-Id: I009011a66056cb31c026b48217710c5f3d74b0b5
OP_PHONE_CALL_{MICROPHONE,CAMERA} are initiated by system_server in user
0, but they should be shown to the current user.
Test: atest PrivacyItemControllerTest
Fixes: 175149358
Change-Id: Ia4bdd0ba387cd8967924e05464e29397c4519ede
Add dedicated support for displaying background images on
controls. Apply a basic scrim to the image as well as a shadow on the
status text in order to keep the text legible. More work is needed to
add a shadow to the icon.
Bug: 175200791
Test: manual, use Mock app with camera
Change-Id: Ib76704e6577d3335fc4a563280aa15429f9dd277
Implementation of isMusicActive() should go through AudioService
as AudioSystem.isStreamActive() can only be called from system
service.
Bug: 175084989
Bug: 162423060
Test: atest AudioManagerTest
Change-Id: I15b3f7cd082a7497f857e6bf261f933224da853e
Expose the fused provider publicly, and change API results to reflect
this.
Bug: 174580458
Test: none
Change-Id: I61956fbe2b15d1c0c19f6ca2b6ff435146625e9f
Mobile platform signals will be shared by SysUI and Settings, but
Settings can not access SysUI code directly. Extract this logic into
settingslib so it can be shared by SysUI and Settings.
Bug: 174582703
Test: atest NetworkControllerSignalTest, Manual test
Change-Id: I990c1dc86fd9a04c4ff083478e45850f3b515547
When an attribute value is missing, we can immediately return the
default value instead of paying the cost of throwing an exception.
To bring this benefit to both human-readable and binary XML, this
is implemented by adding a new getAttributeIndex() lookup method
which is then used by default methods.
readExtraAttributes() also appears to be parsing a string list as
a boolean value (which seems very broken), so we add hand-rolled
parsing logic to avoid paying the cost of an exception. Someone
should follow up in the future to investigate if there's an actual
bug here.
Bug: 174544002
Test: manual
Change-Id: Id313d18000e345ca1acd3c66d2c0c0fc44769b71
Allow .prc/.mobi file extensions to be read as a separate
mobi mime type. This allows Android to open mobi files
with the correct mime type.
This in turn allows applications to set their intent filters
based on mime type when opening mobi files.
Test: CtsMimeMapTestCases
Change-Id: I2b8f80f019f930f888e8e50db8b4efee0f0d4035
Deprecate setPasswordQuality and related methods, since:
* setRequiredPasswordComplexity is a suitable alternative for
most cases.
* Password quality may not be applied to the parent profile anymore,
to avoid personal data being tied to work-set lockscreen requirements.
Additionally, change the exception thrown when the profile owner calls
setPasswordQuality on the parent profile to be a SecurityException
rather than an IllegalArgumentException
Bug: 165573442
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: atest com.android.cts.devicepolicy.ManagedProfileTest#testDevicePolicyManagerParentSupport
Change-Id: Ifefca721feef67dbc2fc9f7f2b52f4d245d2bae1
This reverts commit 0ace970e19.
Bug: 174932174, 175111824
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Change-Id: I152186408ecf6da1cb7354d14737de7cce55a34b
This change adds the simple getters and setters for the state of the
toggles. The persisted xml format is backwards compatible so no
migration is needed.
Test: None for new state
Verify old sensor mute works the same
Bug: 162549680
Change-Id: I6a1ef9c703cc5d175c1a5f788a3559eabf0054ad