Commit Graph

615375 Commits

Author SHA1 Message Date
Agatha Man
353274f15d Remove accidentally added diff file am: 3cfbcbee16
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13193245

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4af04326fa8e95888532f77e7cd8f92e9505d910
2020-12-10 02:24:32 +00:00
Xin Li
201f2cf86d Merge "DO NOT MERGE - Merge Android R QPR1" 2020-12-10 02:18:27 +00:00
Dmitri Plotnikov
e786140e74 Convert CpuPowerCalculator from using BatterySipper to UidBatteryConsumer
Bug: 158137862
Test: Start Settings app, navigate to Apps, pick an app, navigate to Battery

Change-Id: I1ce3d1a0ece5419384c366e908523312651877ee
2020-12-09 18:17:18 -08:00
Hongwei Wang
f150dc49b1 Add API to differentiate PiP content
Added PictureInPictureParams.Builder#setSeamlessResizeEnabled that app
can specify its resize capability. For backward compatibility, this is
default to true and when it's set to false, SystemUI can perform
transition to overcome the artifacts due to resize.

Also included in this change, the primitives like mAutoEnterEnabled and
mSeamlessResizeEnabled would be problematic with the following patterns
from an Activity

```
PicureInPictureParams.Builder builder = new PictureInPictureParams.Builder();
builder.setAutoEnterEnabled(true);
setPictureInPictureParams(builder.build());
enterPictureInPictureMode();
```

with the code snippet above, the PictureInPictureParams#copyOnlySet will
override the mAutoEnterEnabled to false. Fixed by switching the
primitive to Boolean object.

Bug: 175052991
Test: atest PinnedStackTests
Change-Id: I4d52f59b49dcbb8998ed74237bdba93c0ad139e4
2020-12-09 18:09:53 -08:00
chaviw
b5c162bd73 Clear child task crop in split so it matches parent crop
When in split, we don't want to give the child task a crop. The
parent has logic how to handle crop and adjust properly when drag resizing.
It's better to just let the child task match the parent task.

Fixes: 175260017
Test: Background appears when drag resizing split
Change-Id: I8f0e3d0773f10889030e0ce4d600dbed2b13ed39
2020-12-09 18:02:52 -08:00
Hui Wang
42991d36ca Merge "Support Gba Api" 2020-12-10 02:02:24 +00:00
Hongwei Wang
4735349d9a Merge "Add ROTATE_SURFACE_FLINGER permission" 2020-12-10 01:56:49 +00:00
Xin Li
8f9b6894f1 DO NOT MERGE - Merge Android R QPR1
Bug: 172690556
Merged-In: Ib81ba3288a986546bc570c3759c55d026add591a
Change-Id: I2acfeb6cfc83a80056a685355cc367a5514da069
2020-12-09 17:55:44 -08:00
Jackal Guo
f958fee253 Fix system server crash during movePackage
After reducing package parsing times, we use cached PackageLite
instead of parsing on demand. Therefore, this cached PackageLite
shouldn't be null in normal case. Since movePackage flow doesn't
have a valid PackageLite, the NPE results in system server crash.

Parse and cache PackageLite for movePackage case, and add null
check to avoid the crash.

Bug: 175148169
Test: atest AdoptableHostTest
Change-Id: I3e54adc2f3b5f87ea6a6f3109aa138f3c93dcfd2
2020-12-10 09:54:54 +08:00
Agatha Man
3cfbcbee16 Remove accidentally added diff file
Bug: 169889379
Test: presubmit
Change-Id: Ib81ba3288a986546bc570c3759c55d026add591a
2020-12-09 17:49:54 -08:00
Ashwini Oruganti
fb39e67a44 Merge "BatteryStateNotifier: Update PendingIntent flag" 2020-12-10 01:35:30 +00:00
Minche Li
55909fb1a0 Merge "Sets the default fade-out timeout of magnification switch to 5000ms" 2020-12-10 01:26:10 +00:00
Chloris Kuo
6e123b2160 Merge "Notification Intelligence Feedback UI Change 1. Remove OK button 2. If user taps Yes, closes dialog and if user taps No, redirects to long press setting" 2020-12-10 01:25:58 +00:00
Minche Li
da4376dfa0 Merge "Excludes magnification switch button from system gesture area" 2020-12-10 01:25:42 +00:00
Zimuzo Ezeozue
d908ae2c3d Merge "Revert "Set transcode DeviceConfigs"" 2020-12-10 01:12:25 +00:00
Winson
4266f938c6 Only allow BROWSABLE && DEFAULT Intents to be always opened
Auto verification of app links requires that an intent filter declare
action=VIEW, scheme=HTTP(S), category=BROWSABLE. However,
PackageManagerService was not taking that into account, missing the
category requirement.

But the app info Settings UI did take category into account, so it was
possible for a user to set an application to automatically open web URIs
without understanding that this also granted domains that were not
visible in the app info UI.

To resolve both this, this change makes it so that both auto
verification and the Settings state can only consider the app as
"always" open only if the Intent contains both BROWSABLE and DEFAULT.

Bug: 175139501

Test: manual, see bug for reproduction steps

Change-Id: Ib957258735893bf2779bed19bd400c6726ee6478
2020-12-09 17:08:02 -08:00
Serik Beketayev
c869ab40bf Merge "[Mainline Migration] Migrate NetworkUtils" am: a086c295e7 am: c6218f7977 am: 006d043dfe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1498168

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id0749108e03d88af0b8c50a36f1a4ca28b9a40ce
2020-12-10 01:05:32 +00:00
Meng Wang
2b6ef05476 Merge "Introduce new App Ops permission USE_ICC_AUTH_WITH_DEVICE_IDENTIFIER" 2020-12-10 00:59:08 +00:00
Vishnu Nair
2b5f28a558 Revert^2 Flip BLAST for SurfaceView
Enable buffers to go through BLASTBufferQueue
in SurfaceView.

Bug: 168917217
Test: presubmit tests now include wm cts tests
Test: manual virtual display tests
Test: atest SurfaceViewBufferTests & manual tests
Change-Id: I2096da3d39fe5160629795fe648c5b63ebf4c620
2020-12-10 00:56:54 +00:00
Tony Huang
e9d60f87d0 Fix some exception occrued possible code
1.
When removeTask, task surface might be null so check null before
call migrateToNewSurfaceControl.
Refactor code in dispose too.

2.
onTaskInfoChanged callback might before onTaskAppeared or after
onTaskVanished in race condition then cause crash. Avoid it by
check TaskAppearedInfo is null or not in the list.

This is temp workaround and it should finally fixed in
TaskOrganizerController side.

Bug: 161803994
Bug: 174482124
Test: check app lunch, split screen, pip
Test: atest WMShellUnitTests
Test: atest WmTests:WindowOrganizerTests
Change-Id: Iec5ec516ed71589832366c2b61e91c8804139f6e
2020-12-10 08:55:44 +08:00
Serik Beketayev
006d043dfe Merge "[Mainline Migration] Migrate NetworkUtils" am: a086c295e7 am: c6218f7977
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1498168

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4f91f6de3af919fff42383ba86617112624c8292
2020-12-10 00:49:48 +00:00
Dmitri Plotnikov
a7b599b824 Use eBPF-based time-in-state monitoring for groups of threads
Bug: 169279846

Test: atest FrameworksCoreTests:com.android.internal.os.KernelSingleProcessCpuThreadReaderTest
Test: atest FrameworksCoreTests:com.android.internal.os.SystemServerCpuThreadReaderTest
Change-Id: Ic06fe30bc1b602470c18bf89d3380ae2bca7ed3c
2020-12-09 16:44:23 -08:00
Fan Zhang
5551e444a1 Fix a broken test in EmergencyNumberUtilsTest
Bug: n/a
Test: robotests
Change-Id: I459219ee5e38bc1ebaeac118a339d0e689c84fbe
2020-12-09 16:39:18 -08:00
Michael Groover
1f4b18a172 Require rollback permission to use rollback install reason
The platform provides a mechanism to rollback an app to the previously
installed version, but if the APK signing key was rotated on the newer
version the ROLLBACK capability must be set for the previous signing
key to allow the rollback to proceed. However setting the ROLLBACK
capability on a previous signing key negates one of the primary reasons
of rotating as it allows a subsequent app update to proceed with an APK
signed with this previous signing key. Since only platform signed or
priv-apps should have the permission to perform a rollback this commit
will enforce that the rollback install reason is guarded by this
permission. In a future commit the rollback install reason will be used
to allow a rollback of an app even if it's signed with a previous key in
the lineage.

Bug: 175231724
Test: atest NoRollbackPermissionTest
Test: adb shell pm rollback-app <TEST_APP>
Change-Id: I8e1beaba2c22a4b25ada34a2c4b52cde47c780a0
2020-12-09 16:25:00 -08:00
Dmitry Dementyev
7e615a523c Add IMMUTABLE flag to AccountManager pending intents.
Bug: 174189215
Test: none
Change-Id: I11c81ce4cfb0f51a2fabf92a45d8425647df2121
2020-12-09 16:21:32 -08:00
Serik Beketayev
c6218f7977 Merge "[Mainline Migration] Migrate NetworkUtils" am: a086c295e7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1498168

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icc0a49e76f87a741f4410b53e9a40012e37fde36
2020-12-10 00:08:03 +00:00
Hai Zhang
2cefd2df6d Merge "Use per-user Shell UID for adoptShellPermissionIdentity()." into rvc-qpr-dev am: 91596432c2 am: b39b895716
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13186551

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia8b141548658161e8fa70b30fb58d8a6ea0a7a62
2020-12-10 00:07:36 +00:00
Hai Zhang
b39b895716 Merge "Use per-user Shell UID for adoptShellPermissionIdentity()." into rvc-qpr-dev am: 91596432c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13186551

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0597c4aedf0d02fdc16e89c6716d7cb7699c95b3
2020-12-09 23:53:52 +00:00
Adam Bookatz
4f2d2e84a4 Cleanup some SystemService.onUser...() comments
These functions were recently renamed, so this cl
updates a few comments referencing the old names.

Also removes an unused method.

Test: compiles (just comments and removing unused method)
Change-Id: Iaaf8fd4927c4ccf38fffb304c67ef139e626fdcf
2020-12-09 23:53:23 +00:00
Louis Chang
d0ade625a7 Merge "Prevent systemui crash by adding view to an invalid display" 2020-12-09 23:49:05 +00:00
Baligh Uddin
3b4413799e [automerger skipped] Merge "Migrate apex/statsd -> packages/modules/StatsD/apex" into stage-aosp-master am: 8f2e0ec950 -s ours am: 0c847a6c7b -s ours
am skip reason: Change-Id If4917e82f6dcc6e0f5606b0dfecabc7dbf72982d with SHA-1 59d91997fa is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13178592

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I72d56c70b4fbf23f9d83302d322ba6e0878ba24e
2020-12-09 23:47:28 +00:00
Serik Beketayev
a086c295e7 Merge "[Mainline Migration] Migrate NetworkUtils" 2020-12-09 23:47:05 +00:00
Jean-Michel Trivi
87e34b38f2 Merge "AudioManager: fix implementation of isMusicActive()" 2020-12-09 23:46:16 +00:00
Hai Zhang
91596432c2 Merge "Use per-user Shell UID for adoptShellPermissionIdentity()." into rvc-qpr-dev 2020-12-09 23:39:33 +00:00
Hai Zhang
1ab42825d3 Merge "Bump Permission APEX version code to 309999999." 2020-12-09 23:37:02 +00:00
Baligh Uddin
0c847a6c7b [automerger skipped] Merge "Migrate apex/statsd -> packages/modules/StatsD/apex" into stage-aosp-master am: 8f2e0ec950 -s ours
am skip reason: Change-Id If4917e82f6dcc6e0f5606b0dfecabc7dbf72982d with SHA-1 59d91997fa is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13178592

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2dda2fa5d8528619a4b3a642312e15219eb94482
2020-12-09 23:32:45 +00:00
Patrick Rohr
daa8905d2b Refactor updating rules for all apps in NetworkPolicyManagerService
This gives more flexibility to the user (e.g. will allow restricted
networking mode to update all firewall rules at once) and removes some
unnecessary code.

Bug: 170322816
Bug: 157505406
Test: atest NeworkPolicyManagerServiceTest
Change-Id: Id31a60ad37c280bfb4f5bacf63aafe9de28c5e62
2020-12-10 00:21:13 +01:00
Lucas Dupin
44a55cfb56 Merge "use new theme colors on custom notifications" 2020-12-09 22:52:13 +00:00
Baligh Uddin
8f2e0ec950 Merge "Migrate apex/statsd -> packages/modules/StatsD/apex" into stage-aosp-master 2020-12-09 22:51:28 +00:00
Cole Faust
8f65d7d249 Update rotary highlight on bordered buttons
This adds a rotary highlight around bordered
buttons. Previously the rotary highlight
was only visible as the ripple expanded to fill
the button, which was extremely subtle and
hard to see.

Due to issues with layering and corner radiuses,
this cl doesn't include the rotary fill color.
It only has the stroke around the outside
of the button. File b/175161842 to address
that.

Bug: 174490425
Test: Manually
Change-Id: I2abb54b9be04d33c642ce0509a88696afc028c9b
2020-12-09 14:50:06 -08:00
Felipe Leme
5ae7f22004 Merge "Added OWNERS for data/etc/car" am: cabc628f66 am: f06c01f493 am: 6298d7b827
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1521011

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I38cf068381102e6ddbfd56fef4ff03f782150b1f
2020-12-09 22:47:55 +00:00
Philip P. Moltmann
4bc16d2296 Notify if a sensor is used but privacy is enabled
This is implementing a simple UI which needs to be improved based on UX
advice.

Bug: 162549680
Test: - Started mic/camera use while sensor privacy is enabled
      - Clicked disable button
Change-Id: I32ab8848527f557f19ef7fe63e792338487a7830
2020-12-09 14:42:41 -08:00
Philip P. Moltmann
6a227526f1 Add dumpsys and shell cmd for sensor_privacy
E.g.

> adb shell dumpsys sensor_privacy
SENSOR PRIVACY MANAGER STATE (dumpsys sensor_privacy)
{
  is_enabled=false
}

> adb shell cmd sensor_privacy enable microphone

> adb shell dumpsys sensor_privacy
SENSOR PRIVACY MANAGER STATE (dumpsys sensor_privacy)
{
  is_enabled=false
  individual_enabled_sensor={
    sensor=1
    is_enabled=true
  }
}

Bug: 162549680
Test: Above shell commands
Change-Id: I5700ff5b0aae4f64d3bf54b5c51d8ab2779e5abf
2020-12-09 14:42:41 -08:00
Philip P. Moltmann
fd6a8c83a3 Add flags to onOpNoted/Started callbacks
This way clients can distingish actual trusted from untrusted ops.

Test: TH
Bug: 162549680
Change-Id: If470bc9a4503da6533d123def2f8e2dbe0644ca7
2020-12-09 14:42:41 -08:00
Felipe Leme
6298d7b827 Merge "Added OWNERS for data/etc/car" am: cabc628f66 am: f06c01f493
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1521011

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia46e1970e8c7776331bd6449bc3bda024db4ddc0
2020-12-09 22:30:26 +00:00
Soonil Nagarkar
51c43292b6 Location OWNERS updates
Change-Id: I0c3debf00a28d4ca930582fb23bd34159ef1ddd4
2020-12-09 14:28:28 -08:00
Felipe Leme
f06c01f493 Merge "Added OWNERS for data/etc/car" am: cabc628f66
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1521011

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie0e337d54e9dcd9cac669656c501dde3d6185e3b
2020-12-09 22:09:36 +00:00
Matthew Fritze
e9d47b364e Disable test which might be calling 911 as part of panic gesture
I will investigate whether this is actually completing the 911 call
later.

Test: atest SystemUITests
Change-Id: I5be95e4061c3e200b15a75eac3a9d9ccccc30b71
2020-12-09 13:58:42 -08:00
Felipe Leme
cabc628f66 Merge "Added OWNERS for data/etc/car" 2020-12-09 21:54:11 +00:00
Janis Danisevskis
8954dfa092 Keystore 2.0 SPI: Move keymint spec to security namespace.
Test: N/A
Change-Id: I2b4ce3349baf29eb67a31f0c436b964d69d70b02
2020-12-09 13:53:32 -08:00