Commit Graph

20396 Commits

Author SHA1 Message Date
Junyu Lai
e30047b059 Merge "[MS15.1] Remove get/setSubscriberIdMatchRule dependencies" am: d159c1ead7 am: d0c50a49e0 am: 157b8f7a3a am: 5dddce9aa2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1926944

Change-Id: I3fc3b45ac97b1f3a60cba1f2700fe7dcd73ad43b
2021-12-23 02:17:58 +00:00
Junyu Lai
5dddce9aa2 Merge "[MS15.1] Remove get/setSubscriberIdMatchRule dependencies" am: d159c1ead7 am: d0c50a49e0 am: 157b8f7a3a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1926944

Change-Id: Ifc1ed3a7d0e100dbd567c6809a07a8a38012ed60
2021-12-23 02:17:03 +00:00
Junyu Lai
157b8f7a3a Merge "[MS15.1] Remove get/setSubscriberIdMatchRule dependencies" am: d159c1ead7 am: d0c50a49e0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1926944

Change-Id: I6336d13c19ad2e7089e68ba30b1da38df957a35d
2021-12-23 02:00:10 +00:00
Ayush Sharma
f4e3b530b9 Merge "Enforce missing permission getCameraDisabled" into sc-v2-dev am: 60aed7329d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15934241

Change-Id: I26f7b3f70982b0c74ec43de8a85cb82451b2c0ea
2021-12-22 17:04:38 +00:00
Ayush Sharma
60aed7329d Merge "Enforce missing permission getCameraDisabled" into sc-v2-dev 2021-12-22 16:44:34 +00:00
Tom Natan
f6471579c5 Merge "Add API methods for adding/clearing compat overrides for multiple apps on release builds" 2021-12-22 13:14:11 +00:00
tomnatan
6162b70349 Add API methods for adding/clearing compat overrides for multiple apps on release builds
This is important in cases where we want to add/clear overrides for
multiple apps at the same time, without having to make a binder call for
each package and have the compat config save the changes to file and
invalidate the cache each time.

Bug: 199730202
Test: atest FrameworksServicesTests:CompatConfigTest
Test: atest FrameworksServicesTests:PlatformCompatTest
Change-Id: I3b4a3d9db12fdf99eb78c486bdd8e248fff92e50
2021-12-22 10:27:41 +00:00
Junyu Lai
ed26feb95c [MS15.1] Remove get/setSubscriberIdMatchRule dependencies
Subscriber Id Match Rule won't be exposed as system Api.
Callers should use Builder#setSubscriberIds or
NetworkTemplate#getSubscriberIds to set/get the Subscriber
Ids filter. An empty set in the paremter or return value
represents the intention of matching any Subscriber Ids.

Test: atest NetworkPolicyManagerServiceTest \
      FrameworksNetTests
Bug: 204830222

Change-Id: I12c54280b44c71e4737e82859dfe869794cc9c29
2021-12-22 09:50:44 +00:00
Jerry Chang
dc2bbd53a5 Merge "Fix navigation bar icon invisible with dimming window" into sc-v2-dev am: c170b7ead0 am: e177a637dc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16512317

Change-Id: I452cdba47c321c7143f20b6919c11aea6f446c9e
2021-12-22 07:41:09 +00:00
Jerry Chang
e177a637dc Merge "Fix navigation bar icon invisible with dimming window" into sc-v2-dev am: c170b7ead0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16512317

Change-Id: Iaba84757dbfd6ec118fe0a56d187f35eb9d30437
2021-12-22 07:23:47 +00:00
Jerry Chang
c170b7ead0 Merge "Fix navigation bar icon invisible with dimming window" into sc-v2-dev 2021-12-22 07:12:43 +00:00
Rhed Jao
2e72a82872 Merge "Add frozen counts support in PackageFreezer" 2021-12-22 01:44:05 +00:00
TreeHugger Robot
f311615b67 Merge "Cleaning up pm SuspendPackagesTest" 2021-12-22 00:19:50 +00:00
TreeHugger Robot
edc2a14c88 Merge "Remove toast window token after being rate-limited" 2021-12-21 22:31:35 +00:00
Beverly
2a35959ecd Remove toast window token after being rate-limited
Test: manual, atest NotificationManagerServiceTest
Fixes: 211005909
Change-Id: I2375b72cb60ee535dcb78aa0d064455c5247b4f6
2021-12-21 20:43:29 +00:00
David Samuelson
face3dd479 Add initial support for GameSessions and corresponding unit tests.
- Define GameSession & GameSessionService Game Service provider SPIs.
 - Implement support for binding to GameSessionService, creating
   GameSessions, and destroying GameSessions.
 - Refactor Game Service provider selection into
   GameServiceProviderSelectorImpl. Parse and validate the
   declared GameSessionService associated with the GameService.

Test: atest FramworksMockingServicesTests and manual e2e
Bug: 204504879
Bug: 202414447
Bug: 202417255
CTS-Coverage-Bug: 206128693
Change-Id: I301579d5c7426a55c442b7ae04aacbedf293a4d6
2021-12-21 16:08:22 +00:00
Riddle Hsu
f774fb2f75 Merge "Fix wallpaper zoom effect with shell transition" 2021-12-21 11:46:52 +00:00
Riddle Hsu
5eeb4070c1 Fix wallpaper zoom effect with shell transition
Currently WallpaperController#adjustWallpaperWindows is called for
shell transition at DisplayContent#ensureActivitiesVisible and
Transition#onTransactionReady for collecting visibility change of
wallpaper. But if wallpaper target is cleared and wallpaper is
requested to be invisible, its offset and scale won't be updated.

So this change allows visible window to update wallpaper during
transition. And make sure the offsets are calculated based on the
configuration that reported to client, to avoid mixing coordinates
with different orientation.

Bug: 211447882
Test: adb shell setprop persist.debug.shell_transit 1; reboot
      Set static image as wallpaper (don't use live wallpaper).
      Launch portrait and landscape app from portrait home.
      Observe the wallpaper should show the same zoom effect.
Change-Id: I1db9207c79bc45dedd90e7b13af5517f09abe4a7
2021-12-21 15:39:32 +08:00
TreeHugger Robot
3ef3f2950c Merge "Only allow system and same app to apply relinquishTaskIdentity" 2021-12-21 06:27:02 +00:00
Jerry Chang
d569feb6be Fix navigation bar icon invisible with dimming window
Make sure all windows with its frame overlapping with navigation bar can
declare light navigation bar color no matter if it's dimming or not.

Fix: 205308712
Test: atest DisplayPolicyTests
Test: verified dimming window with its frame overlapping with navigation
      bar can declare light navigation bar color.
Change-Id: I6269547f0dfcd54568fd4f07b2642258f93a2822
2021-12-21 12:45:30 +08:00
Suprabh Shukla
256c314797 Cleaning up pm SuspendPackagesTest
Removing all tests that are duplicated in CtsSuspendAppsTestCases. The
only remaining tests are testing launcher apps or app-ops. Currently,
these cannot be tested in CTS.

Fixed some bugs in package filtering implementation that broke the
callbacks

Test: atest FrameworksServicesTests:SuspendPackagesTest

Bug: 206578343
Change-Id: I636c1be44bdb175213efa8608fa336c83859f7c9
2021-12-20 16:35:01 -08:00
Patrick Huang
48ef85a789 Merge "Move power button cooldown period flag to Settings.Global" 2021-12-20 23:27:54 +00:00
Soonil Nagarkar
fe62154c33 DO NOT MERGE: Revert "DO NOT MERGE: Revert "DO NOT MERGE: Lower bound throttling interval"" am: 186d929e1a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16507258

Change-Id: Iee952b6738dfc181fd382a30c65ec9fdc9a50f20
2021-12-20 18:27:06 +00:00
TreeHugger Robot
332258bca2 Merge "DO NOT MERGE: Revert "DO NOT MERGE: Revert "DO NOT MERGE: Lower bound throttling interval""" into sc-v2-dev 2021-12-20 17:51:28 +00:00
Pavel Grafov
2732b61030 Merge "Ensure no stale data is cached after policy upgrade" 2021-12-20 15:59:48 +00:00
Ruslan Tkhakokhov
6aba9656ec Update BackupTransportCallback to use async AIDL
Bug: 202716271
Test: 1. Unit tests WIP
      2. atest CtsBackupTestCases CtsBackupHostTestCases
         GtsBackupTestCases GtsBackupHostTestCases
Change-Id: Ifa45f35a415ef3c5fbab03696456fd7085568a7b
2021-12-19 18:40:59 +00:00
Soonil Nagarkar
186d929e1a DO NOT MERGE: Revert "DO NOT MERGE: Revert "DO NOT MERGE: Lower bound throttling interval""
This reverts commit db71562964.

Reason for revert: Real root cause found, reverting to original code.

Change-Id: I69df43954a37bb935479cbcb8eae81e8d75c7714
2021-12-19 18:38:09 +00:00
Mariia Sandrikova
d77c92a3f1 Merge changes from topic "camera-compat" into sc-v2-dev am: 3486eacda3 am: 02a17e7b1f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16468379

Change-Id: Ic9916a3883eef0148a86c86149aa2e883fc56d1b
2021-12-18 22:19:12 +00:00
Mariia Sandrikova
02a17e7b1f Merge changes from topic "camera-compat" into sc-v2-dev am: 3486eacda3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16468379

Change-Id: I1e56abcef9715a3dd6a00d70cb815c4d9260175a
2021-12-18 21:59:31 +00:00
Mariia Sandrikova
3486eacda3 Merge changes from topic "camera-compat" into sc-v2-dev
* changes:
  [3/n] Camera Compat UI: Add a camera compat control.
  [2/n] Camera Compat UI: Add interfaces for client-server communication.
2021-12-18 21:39:13 +00:00
Soonil Nagarkar
a280ddf6d1 DO NOT MERGE: Revert "DO NOT MERGE: Lower bound throttling interval" am: db71562964
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16496668

Change-Id: I7a5cf0a92082d3b9f589064abd2cbb88a4ea2a53
2021-12-17 06:31:49 +00:00
TreeHugger Robot
9f94e2b445 Merge "DO NOT MERGE: Revert "DO NOT MERGE: Lower bound throttling interval"" into sc-v2-dev 2021-12-17 06:17:56 +00:00
Soonil Nagarkar
db71562964 DO NOT MERGE: Revert "DO NOT MERGE: Lower bound throttling interval"
This reverts commit 943c8287f8.

Reason for revert: Possible root cause for b/210934408

Change-Id: I1ad30012d062342f21752fcc763e7973d1d1a118
2021-12-17 05:09:28 +00:00
Evan Rosky
1b44d86802 Merge "Revert "Revert "Add XML configuration for density""" 2021-12-17 00:52:45 +00:00
Mariia Sandrikova
24f4d8a952 [2/n] Camera Compat UI: Add interfaces for client-server communication.
Changes:
- Listens to changes from the client coming through IActivityClientController#requestCompatCameraControl to ActivityRecord#updateCameraCompatState
- ActivityRecord#updateCameraCompatState sends updated state via TaskInfo to WM Shell
- ITaskOrganizerController#updateCameraCompatControlState to dispatch the user interactions with the control from WM Shell triggers callback to ActivityRecord#updateCameraCompatStateFromUser
- ActivityRecord#updateCameraCompatStateFromUser remembers the user's choice and asks client to apply treatment through ICompatCameraControlCallback

Feature is guarded with config_isCameraCompatControlForStretchedIssuesEnabled

Test: atest WMShellUnitTests:ShellTaskOrganizerTests, atest WmTests:ActivityRecordTests
Bug: 206602997
Change-Id: I083aa6718bd67456bedd9444e9b78740c041f870
2021-12-17 00:18:57 +00:00
Yuri Lin
a8e4686449 Merge "Set user_set_importance field in pullPackagePreferences." 2021-12-16 22:43:47 +00:00
Evan Rosky
ba816ea404 Revert "Revert "Add XML configuration for density""
This reverts commit 45c4562041.

Reason for revert: Seems like reverting didn't help.

Change-Id: Ic6ac4425646100a61a978b4e7388fab88d4d0ed1
2021-12-16 22:02:55 +00:00
Songchun Fan
a04825067c Merge changes Id5624b02,I9f93cc36
* changes:
  [pm] add IBackupManager to the pm injector
  [pm] move mPm related code from ScanPackageHelper to InstallPackageHelper
2021-12-16 22:01:08 +00:00
Songchun Fan
6321aedb64 [pm] move mPm related code from ScanPackageHelper to InstallPackageHelper
Tried to consolidate some of scanPackageNew and scanSystemPackage but
there is some delicate difference that I am not 100% certain to merge.
In this CL I moved all the code that requires mLock into
InstallPackageHelper, and made ScanPackageHelper a utility class. I will
keep doing the same for other helper classes, such as
DeletePackageHelper.

BUG: 199937291
Test: manual
Change-Id: I9f93cc36494e1fff84628026949ca5887bb3e323
2021-12-16 10:57:44 -08:00
Patrick Huang
5ab8466005 Move power button cooldown period flag to Settings.Global
This is a follow up of ag/16406749

Bug: 195782998
Test: unit tests, manual test on device
Change-Id: Icb977d9a7591ffe48ae44bbe2ad521945b7b0139
2021-12-16 18:44:22 +00:00
Nick Chameyev
8d7fb9d8a6 Merge "Update display size before updating 'ignore orientation request'" 2021-12-16 17:05:00 +00:00
Gavin Corkery
e4adca6672 Expose parsed apex-system-server information via ApexManager.
Until we have support for framework-res splits in apexes, we need to
declare apex-system-server in apex's AndroidManifest.xml.

Test: atest com.android.server.pm.ApexManagerTest#testGetApexSystemServices
Bug: 192880996
Change-Id: I2c1d4390c378a680f600cf8138909e7295ac79e7
2021-12-16 13:53:23 +00:00
Riddle Hsu
37b2b6ab7e Merge "Handle non-app windows in app rotation transition asynchronously" 2021-12-16 12:01:46 +00:00
Nick Chameyev
e59d85ae82 Update display size before updating 'ignore orientation request'
When folding/unfolding a foldable device 'ignore orientation request'
flag might be updated in DisplayContent because different displays
might have different properties. This might result into updated
display rotation.

This flag is updated in 'applySettingsToDisplayLocked' and the new
rotation might be applied in the same method. But DisplayRotation is
not updated with the new display size when applySettingsToDisplayLocked
is invoked. This caused calculation of incorrect rotation
(using old display dimensions).

Fixed by updating display rotation settings only after
updating the size of the display.

Fixes: 203844967
Test: open portrait only app on the unfolded screen,
  fold the device => app is still in portrait orientation
Test: open rotatable app on the unfolded screen,
  fold the device => app is in portrait orientation
Test: rotate screen on inner/outer screen of a foldable device
Change-Id: Ie408ebe7e5913b4a1f97d46581d693e56efaf46c
2021-12-16 11:54:37 +00:00
Riddle Hsu
2c90f3b13f Handle non-app windows in app rotation transition asynchronously
When starting activity in different orientation with shell transition,
the display will be rotated immediately. To avoid jump cut of non-app
windows by the change, those windows will be faded out in old rotation.
And when the app transition is done, the windows will be faded in with
current rotation.

This also reduces transition latency because the transition can start
once the activities are ready, without waiting for those non-activity
window to complete redraw.

Bug: 210839369
Test: atest TransitionTests#testAppTransitionWithRotationChange
Test: adb shell setprop persist.debug.shell_transit 1; reboot
      Launch landscape app from portrait home.

Change-Id: I0afc3fcdb3b2ee9d23d5d4addc488ae085a2afd8
2021-12-16 08:27:36 +00:00
TreeHugger Robot
d58537d552 Merge "Allow modifying ActivityOptions in ActivityInterceptorCallback" 2021-12-16 07:05:42 +00:00
Treehugger Robot
8fe765d47b Merge "Change the wakeup alarms for "light-doze-maintenance step" to non-wakeup alarms" am: d1d210762b am: 7228ad6c73 am: e499e7db4d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1907414

Change-Id: I2c096c28c068924bae5ee34a8bab10b3c5897c83
2021-12-16 01:19:07 +00:00
Treehugger Robot
e499e7db4d Merge "Change the wakeup alarms for "light-doze-maintenance step" to non-wakeup alarms" am: d1d210762b am: 7228ad6c73
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1907414

Change-Id: Ie70871a7b00170e0ddde6cf6001aee59eb6d585f
2021-12-16 00:57:19 +00:00
Treehugger Robot
d1d210762b Merge "Change the wakeup alarms for "light-doze-maintenance step" to non-wakeup alarms" 2021-12-15 23:51:19 +00:00
Evan Rosky
373c8a1803 Merge "Revert "Add XML configuration for density"" 2021-12-15 21:06:22 +00:00