755764 Commits

Author SHA1 Message Date
Treehugger Robot
c32215ee94 Merge "Update OWNERS file to reflect ownership in capability related files" 2022-03-31 04:17:58 +00:00
Ken Chen
72d6df3c6f Merge "Update data type and comments on tagSocket/untagSocket APIs" am: ef89731cd3 am: aa82affbc0 am: 292d5f01ec
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2049804

Change-Id: Id759de693eb64fe729c99b141d267790767a806c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 04:10:28 +00:00
Treehugger Robot
fe4da14a9f Merge "Update owners for app-widget test" am: 99d2f232f8 am: f594c2260d am: 5f207e3faf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2050354

Change-Id: I786ca8dcd262044b1072c30a0612b5a18712fe1f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 04:09:35 +00:00
William Loh
0791182ef3 Merge "Fix pm create-user when creating user with profile of cur" into tm-dev 2022-03-31 04:03:46 +00:00
Jiabin Huang
028c5281d2 Merge "Add HAL version 5.0 for getHalVersion API." into tm-dev 2022-03-31 03:56:02 +00:00
Ken Chen
292d5f01ec Merge "Update data type and comments on tagSocket/untagSocket APIs" am: ef89731cd3 am: aa82affbc0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2049804

Change-Id: I44cf6b9d99222a26643b319710b06f5f33df8ae3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 03:48:21 +00:00
Treehugger Robot
5f207e3faf Merge "Update owners for app-widget test" am: 99d2f232f8 am: f594c2260d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2050354

Change-Id: I6e8ec13418c4d3fb5bb5b11617733d6b95b9c03a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 03:48:07 +00:00
Ken Chen
aa82affbc0 Merge "Update data type and comments on tagSocket/untagSocket APIs" am: ef89731cd3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2049804

Change-Id: Ic958c83026e64072ece9361227bbd0bcfe79f5e2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 03:46:57 +00:00
Bill Yi
d35c1ef1a0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ic9ee789e7978a9442616ec3a9f0ac3540fc2fc87
2022-03-31 03:43:36 +00:00
Bill Yi
7fa8f3f7a6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8cceb5737087cce7e1e02b4719c6a776c3bc6d1d
2022-03-31 03:38:01 +00:00
Charles Chen
9dc93c7c06 Merge "Make WM Jetpack unit tests mockable" into tm-dev 2022-03-31 03:35:00 +00:00
Ken Chen
ef89731cd3 Merge "Update data type and comments on tagSocket/untagSocket APIs" 2022-03-31 03:29:02 +00:00
Antony Sargent
2877d3162d Merge "Allow dozing default display when other displays are awake" into tm-dev 2022-03-31 03:25:11 +00:00
Treehugger Robot
f594c2260d Merge "Update owners for app-widget test" am: 99d2f232f8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2050354

Change-Id: Ie818561bf4c2dc36c76ef88a72a513dc877c6a4d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 03:24:38 +00:00
Jackal Guo
588c0df0ef Add DistractingPackageHelperTest
Bug: 225784320
Test: FrameworksMockingServicesTests:DistractingPackageHelperTest
Test: FrameworksMockingServicesTests:SuspendPackageHelperTest
Change-Id: Iffcbe33ff484dc05f9e45b9a9e47be972bb157e9
Merged-In: Iffcbe33ff484dc05f9e45b9a9e47be972bb157e9
2022-03-31 11:11:26 +08:00
Treehugger Robot
99d2f232f8 Merge "Update owners for app-widget test" 2022-03-31 03:03:44 +00:00
Mac Young
ddbdb179d0 Merge "Update Toast UI component according to UX reference spec" into tm-dev 2022-03-31 02:54:10 +00:00
Jing Ji
467cd469bd Add support to persist app background restriction settings.
Test: atest FrameworksMockingServicesTests:BackgroundRestrictionTest
Bug: 203105544
Bug: 225951652
Change-Id: I3825e70fa79b54684c4e2112e04214757d0265b5
2022-03-30 19:51:37 -07:00
Jackal Guo
0f3307a775 Introduce DistractingPackageHelper
Move the implementaion of handling distracting packages out of the
PackageManagerService.

Fix: 225784320
Test: atest CtsSuspendAppsTestCases:DistractingPackageTest
Test: atest CtsSuspendAppsPermissionTestCases:NegativePermissionsTest
Test: atest CtsAppEnumerationTestCases:AppEnumerationTests
Test: atest FrameworksServicesTests:PackageManagerSettingsTests
Test: atest FrameworksServicesTests:PackageUserStateTest
Change-Id: I4e44c1f039318bf02d00ff6a6b8b973244108008
Merged-In: I4e44c1f039318bf02d00ff6a6b8b973244108008
2022-03-31 10:50:54 +08:00
Sudheer Shanka
683b75dd7c Merge "Optimize the handling of disabling doze state." into tm-dev 2022-03-31 02:50:44 +00:00
JW Wang
07e31dfb1e Fix NPE
NPE happens when there is an orphaned session which we've
tried to prevent in all cases.

Log an error message if this situation happens.

Bug: 227342978
Test: atest CtsRootPackageInstallerHostTestCases
Change-Id: Ia21323926bd9db1a6f05461904deb45b4c3dd0bc
2022-03-31 02:38:58 +00:00
Louis Chang
5c902afeee Merge "Remove the unnecessary warning log" into tm-dev 2022-03-31 01:57:41 +00:00
Shaowei Shen
34e3f0ad26 Merge "[Output Switcher] Modify checking for device isConnected" into tm-dev 2022-03-31 01:37:17 +00:00
shaoweishen
af3828d53b [Output Swticher] Fix landscape truncate
Attached screenshot in bug.

Bug: 221167125
Test: Verified on device
Change-Id: I5af2f34552eb800af8a8a1ce353eef30e4f8e697
2022-03-31 01:36:01 +00:00
Jing Ji
a5fdb746cf Merge "Suppress the prompt for the apps with high bg battery usage" into tm-dev 2022-03-31 01:27:25 +00:00
Shinru Han
127afbda61 Merge "Refine PSDS periodic download" into tm-dev 2022-03-31 00:58:09 +00:00
Pinyao Ting
6fb3b9e475 Update owners for app-widget test
Change-Id: I95eb54d4eb35b35628105ce0227e0c163d0a3466
2022-03-31 00:39:50 +00:00
Jerry Chang
c3cd94f727 Merge "Make sure to release split layout when returning to home" into tm-dev 2022-03-31 00:37:38 +00:00
Riddle Hsu
6de944c27a Skip reporting ANR on zero pid process
Though currently the only case is from broadcast timeout
on a process forking by unresponsive webview_zygote, skip
the case to avoid noise reports.

Bug: 227349843
Test: AnrHelperTest
Change-Id: I433c4d33e14619bec764b99a1334ebe7c6137bb0
2022-03-31 00:32:24 +00:00
Aaron Liu
6cde647fe3 Merge "Scrim: Normalize behind scrim when unoccluding." into tm-dev 2022-03-31 00:31:20 +00:00
William Loh
2b26fe2815 Fix pm create-user when creating user with profile of cur
Use translateUserId to convert USER_CURRENT to the actual current user
id when creating a user with cur or current.

Bug: 191043371
Test: adb shell pm create-user succesfully creates with current as
	profile
Change-Id: Idfbf65b3afee2aa7db627e9b46abd8a025e4e8ab
2022-03-31 00:25:59 +00:00
Shan Huang
1b284d865f Merge "Deprecate Activity#onBackPressed and Dialog#onBackPressed." into tm-dev 2022-03-31 00:17:02 +00:00
Hiroki Sato
2c06ff3da8 Merge changes from topics "presubmit-am-166ca8e59ac8499bb6b4f4cad6aae045", "presubmit-am-1a825bf4d182432b91541a8629e0e351" into tm-dev
* changes:
  Add private API InputMethodManager#reportVirtualDisplayGeometry
  Reland CursorAnchorInfo#createForAdditionalParentMatrix()
2022-03-31 00:15:59 +00:00
Hongwei Wang
b68626be54 Merge "Deprecate getSfInstance usage in PiP component" into tm-dev 2022-03-31 00:12:04 +00:00
Zoey Chen
a947d87134 Merge "[LeAudio] New QR code scanner UIs and modify local API" into tm-dev 2022-03-31 00:10:30 +00:00
Jorim Jaggi
cd106a5aa7 Merge "Fix overcounting after end in case of incomplete callbacks" into tm-dev 2022-03-31 00:07:42 +00:00
Garfield Tan
3bea7df55b Merge "Hide CaptionDecorView behind CAPTION_ON_SHELL flag" into tm-dev 2022-03-31 00:03:59 +00:00
Wei Sheng Shih
91da83b715 Merge "Use WeakReference for the TaskSnapshotWindow in inner Window." into tm-dev 2022-03-30 23:59:22 +00:00
Evan Rosky
b4749ccefa Merge "Hook up shell-transitions screenshotting for recents" into tm-dev 2022-03-30 23:52:15 +00:00
Riddle Hsu
79373ac5ca Merge "Use parent bounds for fixed rotation activity end bounds" into tm-dev 2022-03-30 23:51:02 +00:00
Sudheer Shanka
b5df9c503a Optimize the handling of disabling doze state.
When we are handling the callback for doze-disabled
state, we don't have to recompute the network rules
for all uids anymore since we started keeping track of
individual restriction state for each uid. We can
remove the doze restriction state from only blocked uids.

We can also do the same when we are handling the
doze-enabled state (and even other restrictions) but since
NPMS doesn't get callbacks for every uid procstate change,
it is possible we can miss blocking certain uids network.
So, for now limiting the change to only doze-disabled state.

Bug: 206518114
Test: tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Change-Id: I53e40af53aa00ff493e8e5050908220ae4dad729
2022-03-30 16:49:34 -07:00
Scottie Biddle
e30d9986f1 Delete attribute useTargetActivityForQuickAccess.
In practice, the value of this xml attribute is always going to a
function of  whether or not getTargetActivityPendingIntent() is null--
when a QuickAccessWalletService sends us a PendingIntent, we will use
that instead of the SystemUI card switcher activity.

If the PendingIntent is null, we then fall back to our old behavior:
* If the wallet is not currently showing any cards, launch the activity
  specified by getWalletIntent() (this is hardcoded in XML metadata).
    * If the wallet is currently showing cards, launch the SysUI
      switcher activity.

Test: atest CtsQuickAccessWalletTestCases --retry-any-failure
Test: atest QuickAccessWalletControllerTest
Fixes: 218860062
Change-Id: I62f7ca507ebce29b03d6ce76bccaa6d736720a86
Merged-In: I4cfaa5b6035499c47a0ed8b1a4a5f3e1f0f50860
2022-03-30 23:28:49 +00:00
Scottie Biddle
fe9cbcaa79 Delete useTargetActivityForQuickAccess.
Remove from attrs.xml, and rename to
removed_useTargetActivityForQuickAccess in public-staging.xml

Test: atest CtsQuickAccessWalletTestCases --retry-any-failure
Test: atest QuickAccessWalletControllerTest
Bug: 218860062
RESOURCES_FINALIZATION=Removing unnecessary T attr

Change-Id: I23e1d5daa3d625cd71c67b7627c0354327589bd1
Merged-In: Ic71dd1f3710f9871965cabbb7580b77468661f02
2022-03-30 23:28:16 +00:00
Beth Thibodeau
21169ec3f3 Add logging for media controls
Adds logging for interactions and events with the media controls and
carousel, with instance IDs for events relating to individual controls

Bug: 216488338
Test: atest
Change-Id: I9bb312c572ce7c1a0817595444279afc8d5cfb6b
2022-03-30 19:27:45 -04:00
Joe Bolinger
834aee5dd7 Merge "Update coex string." into tm-dev 2022-03-30 23:19:41 +00:00
Sumir Kataria
ef65e8b8e1 Merge "Add documentation clarifying the differences between Surface/TextureView" into tm-dev 2022-03-30 23:07:34 +00:00
Mady Mellor
8649b5088a Merge "Use KeyguardStateController to listen for unlocked shade state" into tm-dev 2022-03-30 23:03:18 +00:00
TreeHugger Robot
3ece298e8b Merge "Add launch complete status to launchPendingIntent" into tm-dev 2022-03-30 22:47:56 +00:00
TreeHugger Robot
c80324f62a Merge "Add method PrintManager#isPrintServiceEnabled(ComponentName)" into tm-dev 2022-03-30 22:41:09 +00:00
Hui Yu
3c1082a350 Fix timing issue on the second or later Service.startForeground().
Remove the 10 seconds latency check on the second or later Service.startForeground() before it can call setFgsRestrictionLocked().

Bug: 200297438
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java
Change-Id: Ifc56e8d318beca5e3b3f9401ffa005bac864a19d
2022-03-30 22:39:43 +00:00