Commit Graph

11817 Commits

Author SHA1 Message Date
Riley Jones
b2b1eebf22 Merge "Revert "Promote startActivityAsUser to SystemApi"" into tm-dev am: 39ce6918c7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17075040

Change-Id: I1f616e743183246af3e933ec26a4fbd2a4c1a790
2022-03-03 23:42:36 +00:00
Riley Jones
39ce6918c7 Merge "Revert "Promote startActivityAsUser to SystemApi"" into tm-dev 2022-03-03 23:34:39 +00:00
Riley Jones
07f7f3ff5b Revert "Promote startActivityAsUser to SystemApi"
This reverts commit c2817ca17f.

Reason for revert: DroidMonitor-triggered revert due to bug b/222503182.

Change-Id: I8ab687811b7b0a76587bcb0903055ebbc35f729a
2022-03-03 23:19:13 +00:00
Charles Chen
5b7a315436 Merge "Promote startActivityAsUser to SystemApi" into tm-dev am: c4c1ac53fd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17038886

Change-Id: I3cdf460ed2bd8a39f2076c3bbc26ef2e100f60ea
2022-03-03 14:51:26 +00:00
Charles Chen
c4c1ac53fd Merge "Promote startActivityAsUser to SystemApi" into tm-dev 2022-03-03 14:26:27 +00:00
Vadim Caen
264ed1adbe Merge "Move OnBackInvokedCallback to window package." into tm-dev am: 8fa5667732
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17013983

Change-Id: Id59bf47b6ff48a22218519504c3994804f5cce06
2022-03-03 10:19:19 +00:00
Vadim Caen
8fa5667732 Merge "Move OnBackInvokedCallback to window package." into tm-dev 2022-03-03 10:03:41 +00:00
Vadim Caen
72077726f5 Move OnBackInvokedCallback to window package.
Originally, View was implementing onBackInvokedDisptacherOwner, but now
only Activity and Dialog and since back event are related to the
window, it makes sense to move them into the android.window package

This follow up comment at:
ag/c/platform/frameworks/base/+/16764116/comments/e131f3ef_e3e1d2e0

Test: atest BackNavigationTests
Bug: 221401221
Change-Id: Ia2f26162beb6a41b6e162b31e599e882f8bf7320
2022-03-02 16:28:57 +01:00
Charles Chen
c2817ca17f Promote startActivityAsUser to SystemApi
Currently, Context#startActivityAsUser(Intent, UserHandle) has
already been a System API. This CL furthur makes
startActivityAsUser with ActivityOptions a System API.
This is enssential to launch an Activity to the secondary display
by setting launched display ID in ActivityOptions.

This also align the behavior of startActivity. We made all versions
of startActivity public APIs.

Bug: 199829817
Test: presubit
CTS-Coverage-Bug: 222189824
Change-Id: Ia1db353d4b91a8952d4d21b970253e1ac03e8173
2022-03-02 03:16:59 +00:00
Jeremy Meyer
3b1c45b8c5 Merge "Fix a ConcurrentModificationException when dumping resources" into tm-dev am: 6f08ee22f9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17037017

Change-Id: I6b10c774885c6cd497856f72ad3f8774a9e9d2b0
2022-03-01 22:57:18 +00:00
Jeremy Meyer
b21e7cee30 Fix a ConcurrentModificationException when dumping resources
Since the sResourcesHistory set is synchronized, an attemp to modify the
set will block while the forEach() method is running in the rare case
resources are being dumped. With a normal for loop, modifying the set
while in the loop results in a ConcurrentModificationException.

Fixes: 219609463
Test: Manual
Change-Id: I9b7bb965aa390e5dec696be07599f777c807c1e3
2022-03-01 19:23:07 +00:00
Nikita Ioffe
5b7b56bb88 Merge "Rename SupplementalProcess to SdkSandbox" into tm-dev am: 8056335fcd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16951825

Change-Id: Ia6b33bbf08a0cc93697fe5a98f3f3fa2793ad7d9
2022-03-01 17:28:21 +00:00
Nikita Ioffe
8056335fcd Merge "Rename SupplementalProcess to SdkSandbox" into tm-dev 2022-03-01 17:07:16 +00:00
Nikita Ioffe
df5971335b Rename SupplementalProcess to SdkSandbox
Bug: 218314884
Bug: 220320098
Test: presubmit
Test: atest PackageManagerShellCommandTest
Test: atest SdkSandboxPermissionTest
Change-Id: I9fb98e0caee75bdaaa35d11d174004505f236799
2022-02-28 17:29:55 +00:00
Gareth Vaughan
96ca7241ff Start an activity cross profile in same task.
Adding new overloaded methods of startMainActivity and startActivity that allow the caller to
specify that the new activity should be added to the current task rather
than creating a new one.
Test: atest android.devicepolicy.cts.CrossProfileAppsTest FrameworksServicesTests:com.android.server.pm.CrossProfileAppsServiceImplTest
Bug: 215425075

Change-Id: I21c258c5962daefb32f65779035f4ba8f0474da7
2022-02-28 16:27:02 +00:00
TreeHugger Robot
74dcb83240 Merge "Implement API feedback for Safety Center QS" into tm-dev am: d7af7fcaff
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16992964

Change-Id: I632596b01fb0808c7c263d47326cd015a1b4b1d6
2022-02-25 21:50:25 +00:00
Jon Eckenrode
f4b0dbb850 Merge "Added return value to overloaded bindService method." am: 59d082af63 am: 7756ed8db8 am: 2348bd2d17 am: 033c0d99bd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1995510

Change-Id: I07d62ba41757caa1b5b1e8e14ebfb3d4b26837b4
2022-02-25 19:25:17 +00:00
Nate Myren
6510aa238e Implement API feedback for Safety Center QS
Implements API feedback about the safety center constants. Also renames
Safety Hub to Safety Center

Fixes: 215301946
Test: build
Change-Id: Ie07e8fc3ae7371e94d23ac6dfa9a446ef92da074
2022-02-25 16:56:30 +00:00
Jon Eckenrode
033c0d99bd Merge "Added return value to overloaded bindService method." am: 59d082af63 am: 7756ed8db8 am: 2348bd2d17
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1995510

Change-Id: Ice2ac318fa773a406a416316e66e92bbca5b5b1e
2022-02-25 01:25:19 +00:00
Jon Eckenrode
2348bd2d17 Merge "Added return value to overloaded bindService method." am: 59d082af63 am: 7756ed8db8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1995510

Change-Id: I2ce6164ecb95dc3ea49cc0e9c04edc4782659e81
2022-02-25 00:52:40 +00:00
Jon Eckenrode
7756ed8db8 Merge "Added return value to overloaded bindService method." am: 59d082af63
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1995510

Change-Id: I5868cc709613ee77b9cd40866582b58614dcc249
2022-02-25 00:30:46 +00:00
joneckenrode
ecbb809686 Added return value to overloaded bindService method.
Staged: https://android.devsite.corp.google.com/reference/android/content/Context#bindService(android.content.Intent,%20int,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)

Test: Built API documentation
Signed-off-by: joneckenrode <joneckenrode@google.com>
Change-Id: I9b5466441b7b5cb4deb5a8cc25cfd01a83be80ca
2022-02-24 16:21:58 +00:00
TreeHugger Robot
81fd48a532 Merge "Update surface related api in ShortcutIno for readability." 2022-02-18 16:16:13 +00:00
Chun-Wei Wang
7834724e9f Merge "Use PackageManager.INSTALL_XXX error codes (15/n)" 2022-02-18 01:36:42 +00:00
Jeremy Meyer
6a6b931306 Change ApplicationInfo create timestamp to uptimeMillis
Bug: 188059515
Test: Manual testing on device
Change-Id: Id03a95684b4bf3ae2938bdd1b7a99f8965b24cc1
2022-02-17 17:44:13 +00:00
JW Wang
1ed3bff6c5 Use PackageManager.INSTALL_XXX error codes (15/n)
2 sets of error codes are a source of confusion. This CL migrates
all uses of SessionInfo.SESSION_XXX error codes to
PackageManager.INSTALL_XXX ones which provide a richer set of
error codes.

Bug: 210359798
Test: atest StagingManagerTest \
            com.android.server.pm.test.PackageInstallerSessionTest \
	    CtsStagedInstallHostTestCases

Change-Id: I0a721a48293029983ffd80912adbb2229ab4ee5d
2022-02-16 11:20:16 +08:00
Jon Eckenrode
0569c3d46c Merge "Revised API documentation of Context and ServiceConnection. See b/213625234." am: 08bb407612 am: e5a25d1d7c am: 5577fb24aa
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1975966

Change-Id: I5b946df3374fc6ab223378d018135f78806cd001
2022-02-15 22:37:58 +00:00
Jon Eckenrode
5577fb24aa Merge "Revised API documentation of Context and ServiceConnection. See b/213625234." am: 08bb407612 am: e5a25d1d7c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1975966

Change-Id: I3725bf4a04aaa5eb00cae32a2effd654893dc8bd
2022-02-15 22:18:57 +00:00
Jon Eckenrode
e5a25d1d7c Merge "Revised API documentation of Context and ServiceConnection. See b/213625234." am: 08bb407612
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1975966

Change-Id: I608e10bbd7208ed90f23ab25ac28c5512a3ea4ca
2022-02-15 22:02:50 +00:00
Vadim Caen
a70bdd8739 Merge "Add enableOnBackInvokedCallaback manifest attribute" 2022-02-15 19:07:27 +00:00
Winson Chiu
2fd963f3a4 Merge "Build splitPermissions manually for PackageParser" 2022-02-15 18:27:25 +00:00
Pinyao Ting
9c5fc884a7 Update surface related api in ShortcutIno for readability.
Update surface related api in shortcut info in comply with api design
guideline.

Bug: 210991003
Test: atest CtsShortcutManagerTestCases
Change-Id: I493295fb6d1e780e5bfbb6feec31f7e85dc5294f
2022-02-15 18:01:43 +00:00
Richard Gaywood
aaf134e040 Puller for PendingIntentController
Populate a new stats atom with information about PendingIntents; per-uid: (1) the total number of intents and (2) the total size of any extras bundled with the intents.

Change-Id: I04e6b368a76623c80ead6f846baf85b1a6c5ce70
Test: statsd_testdrive 10151
Bug: 217162457
2022-02-15 08:41:36 +00:00
TreeHugger Robot
1ad48aa8b6 Merge "Recycle obtained TypedArrays" 2022-02-15 04:49:13 +00:00
Winson
d0fb8ac83a Build splitPermissions manually for PackageParser
Through the PackageManager#getPackageArchiveInfo API, legacy
PackageParser can be invoked before the app process's Application
is available, so instead manually build the split permissions from
the PermissionManager service directly.

Bug: 219211480

Test: manual, re-install GMS per steps from bug

Change-Id: I7f9316a53752fa372002c387653a97e03ca222ac
2022-02-14 15:58:39 -08:00
Vadim Caen
625f5e286f Add enableOnBackInvokedCallaback manifest attribute
Add a manifest flag for applications to opt-out of the new back
navigation system.

Test: atest
CtsWindowManagerDeviceTestCases: android.server.wm.BackNavigationLegacyTest
Bug: 217709328
Change-Id: I43d09a37b126e59bdb8f20bb83cf6d99e53a1e91
2022-02-14 22:27:10 +01:00
Aaron Labiaga
5cec0fdb6a Merge "Update broken javadoc code ref. Use class fully-qualified class name" 2022-02-12 08:31:18 +00:00
Galia Peycheva
178b755646 Merge "Add API for expanded picture-in-picture" 2022-02-12 08:25:58 +00:00
Aaron Labiaga
5458f07e94 Update broken javadoc code ref. Use class fully-qualified class name
Change-Id: I15a7a7a05acb77321195f1722ff586e81cbfa3cb
2022-02-12 05:13:57 +00:00
Antony Sargent
0b677034e7 Merge "KeyguardManager#isDeviceSecure()" 2022-02-11 23:47:34 +00:00
Galia Peycheva
eb54e50617 Add API for expanded picture-in-picture
Bug: 208797488
Test: atest PinnedStackTests#testEnterExpandedPipAspectRatio
Test: atest PinnedStackTests#testEnterExpandedPipAspectRatioMaxWidth
Test: atest PinnedStackTests#testEnterExpandedPipAspectRatioMaxHeight

Change-Id: I7d91ce1db197cf7dac1af8bdf4ee2579b8a70869
2022-02-11 21:39:11 +01:00
TreeHugger Robot
8eb30b3b30 Merge changes from topic "cross_uid_embedding_verification"
* changes:
  Verify cross-uid activity embedding
  Add Cross-UID ActivityEmbedding trust model APIs
2022-02-11 07:42:58 +00:00
Xin Li
5ad6db7742 Merge sc-v2-dev-plus-aosp-without-vendor@8084891
Bug: 214455710
Merged-In: I8cfa435bb6233818adb9cc99dadeeb06a03443d5
Change-Id: Ib93992d88fd1704179009a3872798b9e7b83a6d1
2022-02-11 07:25:43 +00:00
Xu Cao
f04d752fec KeyguardManager#isDeviceSecure()
KeyguardManager#isDeviceSecure() shall return false when called on a virtual display

Bug: 210153811
Test: atest CtsVirtualDevicesTestCases:DefaultDisplayIsDeviceSecureTest CtsVirtualDevicesTestCases:StreamedAppBehaviorTest#isDeviceSecure_shouldReturnFalseOnVirtualDisplay

Change-Id: I5149b08fde8d3a09e484ea965035bd5e7d2bff7b
2022-02-10 18:15:34 -08:00
Winson Chung
ab4e152e05 Merge "Allow dragging to launch multiple instances of the same activity" 2022-02-10 18:59:35 +00:00
Alan Viverette
7d1188244c Merge "Migrate frameworks/base javadocs references to androidx" 2022-02-10 18:02:28 +00:00
Ömer Yaveroğlu
5d08fb7a9c Merge "Add a new install-time integrity formula type to check the lineages of the app certificate." 2022-02-10 17:13:34 +00:00
Nate Myren
65c07eea84 Merge "Add information to grant permissions intent for continue messages" 2022-02-10 16:26:18 +00:00
Ömer Yaveroğlu
70a8f68db5 Add a new install-time integrity formula type to
check the lineages of the app certificate.

Bug: 218486995
Test: atest frameworks/base/core/tests/coretests/src/android/content/integrity
Test: atest services/tests/servicestests/src/com/android/server/integrity
CTS-Coverage-Bug: 218679238
Change-Id: I3bee5b95be7217967764b7bd304a2fe3a6ee52e9
2022-02-10 16:18:33 +00:00
Nikolas Havrikov
32947847dd Recycle obtained TypedArrays
Bug: 218835043
Test: make
Change-Id: Ib5a8659e42b9550af607a1e685f7e6ed3425145a
2022-02-10 15:03:38 +01:00