Commit Graph

615375 Commits

Author SHA1 Message Date
TreeHugger Robot
da1c7591d6 Merge "Release sleep wake lock if activities are stopped while sleeping" 2020-12-11 08:04:36 +00:00
Robert Luo
1826155ca1 [automerger skipped] Merge "Migrate media output switcher metrics - 1/n" into rvc-qpr-dev am: 08652b64e2 -s ours
am skip reason: Change-Id I0fea0c59afcb44fc1d22920036107524f221a7be with SHA-1 616339c1d0 is in history

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id940bade9da74e26d832a556a90272dadcf4a35a
2020-12-11 07:13:10 +00:00
Eric Laurent
fde0ff7dbe Merge "AudioManager: add reporting of gapless playback support" 2020-12-11 07:09:29 +00:00
TreeHugger Robot
81be384dee Merge "Make IInputMethodManager to oneway (4/N)" 2020-12-11 07:09:19 +00:00
TreeHugger Robot
4106a54bb5 Merge "Improved the documentation" 2020-12-11 07:07:58 +00:00
Kohsuke Yatoh
8bef0108a8 Cache font data.
Multiple MinikinFontSkia objects can share the same font file if they
are using .ttc or variable font.

Bug: 172891184
Test: atest CtsGraphicsTestCases
Change-Id: I73c307ec1752a5a016b4b8e91b375e6322894f8a
2020-12-10 23:05:07 -08:00
Robert Luo
08652b64e2 Merge "Migrate media output switcher metrics - 1/n" into rvc-qpr-dev 2020-12-11 06:56:24 +00:00
Paul Hu
39f344f26b Merge "Expose TcpRepairWindow as module-lib API" am: f24f42ad0f am: 993efbdf84
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519961

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7a125dfa9b4bccc9e8943c4b972ff8cb25d4ccaf
2020-12-11 06:31:07 +00:00
Paul Hu
993efbdf84 Merge "Expose TcpRepairWindow as module-lib API" am: f24f42ad0f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519961

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2621e4f244e70dfdbd6e6e228f9c6401326fc56a
2020-12-11 06:15:36 +00:00
Andy Hung
0a8c907f68 Midi: Use exceptionCode instead of transactionError
Use of binder::Status exceptionCode is more reliable than
transactionError, especially when calling a Java service.

Test: builds
Bug: 175361278
Change-Id: Iaafb1007f07c7abc22985f0d63f23a0358d6b194
2020-12-10 22:08:04 -08:00
Jerry Chang
18ea005b80 Merge "Add fling animation when snapping split divider bar" 2020-12-11 05:56:37 +00:00
Paul Hu
f24f42ad0f Merge "Expose TcpRepairWindow as module-lib API" 2020-12-11 05:37:10 +00:00
Louis Chang
a72217f738 Merge "Make all activities on visible and focusable leaf tasks be resumed" 2020-12-11 04:58:00 +00:00
Shuo Qian
00da245beb Merge "Add title and description of MANAGE_ONGOING_CALLS" 2020-12-11 04:37:43 +00:00
TreeHugger Robot
f52311f658 Merge "Add dumpsys and shell cmd for sensor_privacy" 2020-12-11 04:35:56 +00:00
Wilson Wu
5a5648dcb5 Make IInputMethodManager to oneway (4/N)
After CL[1], the client might be waiting forever when
system server throw Exception. The expected behavior
after throwing an Exception from the system server
should let the caller crash.

To keep the previous behavior, support exception as a
valid result for ResultCallback.

CL[1]: If4b40244a2e0e3b11c38c1da9340ba8e5166ad64

Bug: 174263942
Bug: 163453493
Test: Throw an exception in system server and observe the
      caller crash with ResultCallback flow.
Test: atest CtsInputMethodTestCases
Change-Id: If79e063641a01b325c63eb9f871f5b992d7c0b72
2020-12-11 11:49:50 +08:00
Mady Mellor
c6eec7e57f Merge "Use shell executor for TaskView" 2020-12-11 03:38:29 +00:00
Chalard Jean
0e91f659ba Merge changes from topic "remove_legacy_NA" am: 362fc1ca1f am: c65281e9c4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1456097

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I87cc62579b19699438704f472fc754837d878038
2020-12-11 03:29:50 +00:00
Lucas Lin
f8816479a3 Merge "Use getUserHandles() instead of getUsers() to get user id" am: 6bb994193c am: b35b88df27
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1513050

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id16394df0ad8e97efe8e75c00a406242a1cac206
2020-12-11 03:29:25 +00:00
Dmitri Plotnikov
c5059b7963 Rename powerstatstests to batterystatstests
Bug: 170134969
Test: mp :BatteryStatsViewer && adb shell am start -n com.android.frameworks.core.batterystatsviewer/.BatteryStatsViewerActivity
Test: atest BatteryStatsLoadTests
Change-Id: I7bcd24fd89542b854f8b037bb7d8fc184bea9853
2020-12-10 19:27:35 -08:00
TreeHugger Robot
cbf658e403 Merge "Fix initialization of SmartReplyView button colors" 2020-12-11 03:21:42 +00:00
TreeHugger Robot
4ed8d16305 Merge "Initial integration of BatteryUsageStats into PowerStatsViewer" 2020-12-11 03:12:21 +00:00
Ryan Lin
6d356b3cfe Merge "Fix button is gone after dragging over 5 secs" 2020-12-11 03:07:59 +00:00
Eugene Susla
205637383c API for CDM wake-up opt-in
Bug: 168052577
Test: presubmit
Change-Id: I1cd1728099ddf374db4cf0e59f748ea3b655e1ba
2020-12-10 18:57:17 -08:00
Chalard Jean
c65281e9c4 Merge changes from topic "remove_legacy_NA" am: 362fc1ca1f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1456097

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I141e67982f1119d5fc700ed2cb75e2f8220f5383
2020-12-11 02:40:14 +00:00
Lucas Lin
b35b88df27 Merge "Use getUserHandles() instead of getUsers() to get user id" am: 6bb994193c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1513050

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6e03c6f4317e11ffe64b7bcf170f70f535995e85
2020-12-11 02:37:54 +00:00
Chalard Jean
362fc1ca1f Merge changes from topic "remove_legacy_NA"
* changes:
  Remove support for legacy network agents
  Remove deprecated constructors for NetworkAgent
  Migrate NetworkAgentWrapper to the new NA API
  Cleanup TestNetworkService
2020-12-11 02:32:57 +00:00
Chalard Jean
25c8f6395e [automerger skipped] Merge "Move module utils to the module package." into mainline-prod am: 53273965e6 -s ours
am skip reason: Change-Id I067eeecd458c34b7f2fbfa439072682661ac750c with SHA-1 ddda71cdbf is in history

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2c7bb055686d87509ecd9ccdfdacb5dc72551e8e
2020-12-11 02:18:48 +00:00
Evan Severson
c4e6b081b2 Merge "Create a state for the camera and microhpone toggles" 2020-12-11 02:18:21 +00:00
Robert Luo
55bb21ba01 Merge "Migrate media output switcher metrics - 2/n" into rvc-qpr-dev-plus-aosp 2020-12-11 02:15:47 +00:00
Yan Zhu
d676c44e46 Merge "Add permission for CarProvision" 2020-12-11 02:14:20 +00:00
Chalard Jean
53273965e6 Merge "Move module utils to the module package." into mainline-prod 2020-12-11 02:07:48 +00:00
Lucas Lin
6bb994193c Merge "Use getUserHandles() instead of getUsers() to get user id" 2020-12-11 02:02:37 +00:00
Oscar Shu
0c5f84eb71 Merge "Allow setup wizard to call carrier selection APIs" 2020-12-11 01:51:20 +00:00
Jimmy Chen
b7d2443563 Merge "wifi: add security params class for known security types" 2020-12-11 01:46:21 +00:00
Nate Jiang
1bbcd4ef88 [Suggestion] Add listener for user approval status change
Bug: 160648511
Test: atest android.net.wifi
Change-Id: I2a1959a2504e274de83f9cd0e44300222bbe8aac
2020-12-10 17:43:07 -08:00
TreeHugger Robot
04b2d9ff4a Merge "Don't suggest now-deprecated APIs" 2020-12-11 01:42:44 +00:00
Dmitri Plotnikov
f9a4ec89dc Initial integration of BatteryUsageStats into PowerStatsViewer
Bug: 170134969
Test: mp :PowerStatsViewer && adb shell am start -n com.android.frameworks.core.powerstatsviewer/.PowerStatsViewerActivity
Change-Id: Ie409ee5de329a8e6a64f2bbf44efa49e9be3e336
2020-12-10 17:07:48 -08:00
Malcolm Chen
a5929dad1f Automatically dismiss SIM combination warnings and selection dialogs.
Bug: 142092510
Test: manual and unittest
Change-Id: I79468016814d23f2b77d5cf1e559b9a58e2949ab
2020-12-11 00:58:28 +00:00
Tobias Thierer
dabbcf5903 Fix DevicePolicyManager.isBackupServiceEnabled() breakage.
http://ag/12885739 introduced a enforceCallingPermission(BACKUP) check
but callers of this API do not hold that permission. This CL fixes
this by changing the check to enforceCallingOrSelfPermission(BACKUP),
and clearing the binder identity in DevicePolicyManagerService, which
makes the system server process the owner of that call.

Bug: 158482162
Bug: 172466964
Test: atest com.android.cts.devicepolicy.{Device,Profile}OwnerTest#testBackupServiceEnabling
Change-Id: I11d863229c4d62a058aaf37446a694b9c73ae5b8
Merged-In: I11d863229c4d62a058aaf37446a694b9c73ae5b8
(cherry picked from commit 630dec9eb4)
2020-12-11 00:55:44 +00:00
Tobias Thierer
c6d183923c BackupManagerService: Make new behavior conditional on ChangeId.
Base CL ag/12885739 introduced unconditional enforcement of the BACKUP
permission for callers of BackupManagerService.isBackupServiceActive()
in the service, but dropped the enforcement on the app process side
(BackupManager).

This CL makes the behavior change conditional on a compat ChangeId.

Bug: 158482162
Test: Manually checked that an app similar to the code sample from
      http://b/158482162#comment1 can reproduce the behavior.
      This is true both before the base CL and after this CL, when
      the app targets an old SDK version (26).
Test: Checked that both (a) before this CL, (b) after this CL where
      the change is manually enabled for the app via the below commands,
      the app runs into a SecurityException instead:
$ adb shell am compat enable 158482162 com.example.tester
$ adb shell dumpsys platform_compat | grep 158482162
ChangeId(158482162; name=IS_BACKUP_SERVICE_ACTIVE_ENFORCE_PERMISSION_IN_SERVICE; enableSinceTargetSdk=31; packageOverrides={com.example.tester=true})

Change-Id: I58e5d2a0b438296137fd76720636c8fdce740ded
Merged-In: I58e5d2a0b438296137fd76720636c8fdce740ded
(cherry picked from commit 7671f0d95c)
2020-12-11 00:53:23 +00:00
Tobias Thierer
79192da3f3 Enforce BACKUP permission on Service end.
BackupManager runs in the client process, whereas BackupManagerService
runs in the system server process. Therefore, apps permissions need should
be enforced on the service side.

Bug: 158482162
Test: Manually checked that a sample app  encounters SecurityException
      after but not before this CL, when running code similar to the
      sample in http://b/158482162#comment1 to figure out whether
      isBackupServiceActive() for its own uid.
Change-Id: I59693819542a80a065a9c88373393b0ba0dbef65
Merged-In: I59693819542a80a065a9c88373393b0ba0dbef65
(cherry picked from commit b2ab2c414f)
2020-12-11 00:50:23 +00:00
Treehugger Robot
1c60ee31ac Merge "Add O-O TLMs to top-level owners" am: 0c04c92306 am: 736b9d9629
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1523822

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic70f20fdc78f3f23051d84256c9d53cc324bbf46
2020-12-11 00:43:27 +00:00
TreeHugger Robot
38535365e8 Merge "Only apply the task's pending transaction if it is detached" 2020-12-11 00:28:16 +00:00
Hai Zhang
65404d6c66 Move permission methods in PackageManager to PermissionManager.
A number of permission-related methods were implemented in
ApplicationPackageManager by calling the IPermissionManager AIDL
interface. However since we are moving permission into module, the
AIDL inteface can't be an API and the implementions must be moved.

This change moves these methods into PermissionManager, with the
javadoc and interface from PackageManager and the implementation from
AppliationManager. The javadoc remains mostly the same except for
style and typo fixes. The API interface also remains the same except
for inclusive language changes since we are defining new one and have
a chance to fix them now.

We have to lazily get the PermissionManager instance because the
context passed in may be null for an instrumentation use case.

Bug: 158736025
Test: presubmit
Change-Id: I1c28433ca6200679a41e3518354fe03b866621b5
2020-12-10 16:19:05 -08:00
Hai Zhang
e7d707ceb0 Move a subset of PermissionManager APIs into LegacyPermissionManager.
And move their implementation from PermissionManagerService to
LegacyPermissionService.

The DefaultPermissionGrantPolicy related methods are not APIs, and
are thus moved to LegacyPermissionManager and their usages are updated
to use LegacyPermissionManager.

The checkDeviceIdentifierAccess() method is also moved into
LegacyPermissionManager, because it's merely an application of
permission checking, not the permission management infra itself, and
there isn't great benefit in updating it. However since it is an API,
we still have to keep a delegate for it on PermissionManager, and make
the delegated method @SystemApi.

Bug: 158736025
Test: presubmit
Test: LegacyPermissionManagerServiceTest
Change-Id: Ic838f3685427217c8e0477551c3373258408983f
2020-12-10 16:19:01 -08:00
Louis Chang
3befe55f1a Make all activities on visible and focusable leaf tasks be resumed
Currently, only the top-most activity of a root task can be resumed,
no matter how many descendant tasks or their windowing modes are.

Resuming the top activities of all visible and focusable leaf tasks
to be more flexible and can support features like app-pairs.

Therefore, Task#mResumedActivity is now set at leaf task vs. root task.
And Task#getResumedActivity() now returns the resumed activity of the
top-most leaf task. Same as Task#mPausingActivity.

Bug: 172885410
Test: presubmit
Change-Id: Id0a73b39afd03afb2b9572752e98adce8de1619b
2020-12-11 08:08:13 +08:00
Treehugger Robot
736b9d9629 Merge "Add O-O TLMs to top-level owners" am: 0c04c92306
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1523822

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifb6d87611a345e7042cdf491fd28b4ac555635b5
2020-12-11 00:07:37 +00:00
TreeHugger Robot
ac73ea0c29 Merge "[NetworkPreferenceApp] Initial skeleton" 2020-12-11 00:03:45 +00:00
Les Lee
af6b01e143 Merge "wifi: Add instance identifier in SoftApInfo/WifiClient and infoList callback" 2020-12-10 23:50:45 +00:00