Commit Graph

22975 Commits

Author SHA1 Message Date
Hui Wu
205618682b Merge "CloudSearch API: changes two key names and adds two keys for app pkg name and install count in ExtraInfo" into tm-dev 2022-03-10 17:16:34 +00:00
Sanjana Sunil
6ae95c15c4 Merge "Set correct storage path for SDK sandbox" into tm-dev 2022-03-10 16:03:19 +00:00
Lorenzo Colitti
99193716f4 Merge "Split out the ethernet API surface and use framework-connectivity-t" into tm-dev 2022-03-10 14:58:25 +00:00
Sanjana Sunil
d3eabb0714 Set correct storage path for SDK sandbox
For WebView to run in an sdk sandbox process, Context.getDataDir() needs
to return the shared sandbox storage. This CL sets the value in
LoadedApk while binding the application and modifies bindSdkSandbox API
to take in the client app package name to use in the path.

Test: Manual, check that WebView in sandbox tries to access sandbox
shared storage
Bug: 216284889

Change-Id: I1f8bb7e533d155050710866b80047ec849a98f35
2022-03-10 13:28:39 +00:00
Xiao Ma
218c4d3162 Split out the ethernet API surface and use framework-connectivity-t
Ethernet framework and service source code is going to be moved to
Connectivity mainline module, this CL contains below corresponding
changes to adapt the migration in f/b side:

1. Split out ethernet module-lib APIs to Connectivity module.
   Add the ethernet resource filegroup to tiramisu-updatable-sources
   filegroup as well, build them together. Also update the module-lib
   and system api txt to reflect the APIs change. Remove the hidden
   APIs which are moved to Connectivity module. This removal fixes the
   api inconsistent issue with Tethering/apex/hidden/.

2. Remove EthernetService from SystemServer which will be registered
   from ConnectivityServiceInitializer.

3. Replace the BackgroundThread class(imported from f/b/core/java)
   with the one in the modules-utils-backgroundthread lib, which is
   visible to Connectivity module.

Bug: 210586283
Test: m
Test: atest FrameworksNetTests EthernetServiceTests
Change-Id: I1956848d3248cc56e9841d221e5e4c160bed65a4
2022-03-10 21:22:42 +09:00
Galia Peycheva
f6270e22f7 Merge "Add shouldDockBigOverlays API" into tm-dev 2022-03-10 10:58:53 +00:00
Charles Chen
2828207a1a Merge "Revert "Revert "Promote startActivityAsUser to SystemApi""" into tm-dev 2022-03-10 03:38:07 +00:00
TreeHugger Robot
3403fc7f1e Merge "Fix compat issue with apps directly calling LoadedApk.makeApplication()." into tm-dev 2022-03-10 02:35:16 +00:00
Hui Wu
e3b56a60a5 CloudSearch API: changes two key names and adds two keys for app pkg name and install count in ExtraInfo
CTS-Coverage-Bug: 210528288
Bug: 223198536
Test: RBE Built redfin-eng and tested on a physical device
Change-Id: Ib7066bcb37618c4e5d751cd0eb0bc1d265831427
Merged-In: Ib7066bcb37618c4e5d751cd0eb0bc1d265831427
2022-03-10 00:15:35 +00:00
Makoto Onuki
169aeafb2d Fix compat issue with apps directly calling LoadedApk.makeApplication().
Unfortuantely, it seems apps may be calling makeApplication() directly,
in which case returning the cached instance would break their expectation.

So let's not return the cached instance for external callers.

Test: Launch the kr.go.kdca.coov-19 app
Fix: 222737976
Change-Id: Idd7d2873d71edad182a7877117745fe021e18a80
2022-03-09 16:14:40 -08:00
Hui Wu
ad36097714 CloudSearch API: adds two keys for app intents in ExtraInfo
CTS-Coverage-Bug: 210528288
Bug: 220741737
Test: RBE Built redfin-eng and tested on a physical device
Change-Id: If2f83f35ff5418086d55fd9799b4586883d955eb
Merged-In: If2f83f35ff5418086d55fd9799b4586883d955eb
2022-03-09 17:47:29 +00:00
Galia Peycheva
ada36900fb Add shouldDockBigOverlays API
This CLs provides the getter API for DockBigOverlays. To better follow
API guidelines, it changes the naming from "*preferDockBigOverlays" to
"*shouldDockBigOverlays"

Bug: 220739302
Test: atest PinnedStackTests#testShouldDockBigOverlaysWithExpandedPip
Change-Id: I25c18531bc1f386b208ab7dde81a8b11a22d03a1
2022-03-09 17:43:41 +01:00
Hui Wu
b8a0d8ca7c Merge "CloudSearch API: change the method from getSource to getCallerPackageName" into tm-dev 2022-03-09 06:14:25 +00:00
Jing Ji
ef439b26ee Merge "Add sub-reasons for the killings from task manager and force-stop" into tm-dev 2022-03-09 05:50:28 +00:00
TreeHugger Robot
fe12ca4320 Merge "Add TEST_MAPPING for trust directories" into tm-dev 2022-03-08 23:54:54 +00:00
Hui Wu
db016f2d73 CloudSearch API: change the method from getSource to
getCallerPackageName

CTS-Coverage-Bug: 210528288
Bug: 220127210
Test: RBE Built redfin-eng and tested on a physical device
Change-Id: Ia7a0930881ca729f000ab38ca224906c8a319cec
2022-03-08 23:41:50 +00:00
Sooraj Sasindran
00e3dabd76 Allow a list of configs to be sent for enterprise slice
Allow a list of configs to be sent for enterprise slice
Allow device owner to set enterprise slice config
Allow enterprise apn to be configured by profile owner

Bug: 217365439
Bug: 222723840
Test: ran CTS tests
Change-Id: I82c159843d0806cbfc5eea602fbd0304e7ff04ac
2022-03-08 19:14:05 +00:00
Yuri Lin
90c8fc93da Merge "Rename getNotificationChannelsBypassingDnd argument to uid" into tm-dev 2022-03-07 22:10:52 +00:00
Lee Shombert
53dd894d42 Merge "Create os/IpcDataCache" into tm-dev 2022-03-07 20:26:05 +00:00
Derek Jedral
b3a502bf63 Add TEST_MAPPING for trust directories
These TEST_MAPPING files indicate presubmit should run atest on trust
specific tests when files are changed in these directories.

Test: local atest
Bug: 221155933
Change-Id: I4f94bba968a68c9c95da30390a9bf2c8ca063b75
(cherry picked from commit 078f38606d)
2022-03-07 18:52:20 +00:00
Yuri Lin
a31bfe2592 Rename getNotificationChannelsBypassingDnd argument to uid
It said "userId" in NotificationManagerService and PreferencesHelper, but in practice was expecting its input to be a uid based on how it's implemented. It also seems most users were already passing in uids (particularly NotificationBackend).

Bug: 220469720
Test: manual verification of settings page, NMSTest, PreferencesHelperTest
Change-Id: I432bdfc7d2986a0a1111c210fd89671524b3885c
2022-03-07 17:53:08 +00:00
TreeHugger Robot
2cb1f3534f Merge "Update javadoc for ACTION_ADMIN_POLICY_COMPLIANCE to include new extras" into tm-dev 2022-03-07 17:20:27 +00:00
Lee Shombert
4f1473c6ac Create os/IpcDataCache
Bug: 219609105

Create os/IpcDataCache as a subclass of PropertyInvalidatedCache.  The
APIs in the new class are the SystemApi for mainline modules.

Note that IpcDataCache.invalidateCache(String) is a new system API,
relative to the list in PropertyInvalidateCache.  The new API is
static, which is the most common use case for invalidateCache calls.

The corresponding CTS test is updated in the next review.  However, it
is also cloned into the current unit test.

Test: * atest FrameworksCoreTests:PropertyInvalidatedCacheTests
 * atest FrameworksCoreTests:IpcDataCacheTest
Change-Id: I83ce97a4154b9065e0686ee99a25c90f955366ff
2022-03-07 08:26:11 -08:00
Yuncheol Heo
9048187a34 Merge "Revert "Expose ActivityOptions.fromBundle() as ModuleApi."" into tm-dev 2022-03-07 15:21:18 +00:00
arangelov
913268bf2c Update javadoc for ACTION_ADMIN_POLICY_COMPLIANCE to include new extras
Fixes: 222677096
Test: none
Change-Id: I0e0e6d6a36f1a63b662b3d9db0d2dea229041768
2022-03-07 14:42:37 +00:00
Kholoud Mohamed
ae758aa7a5 Merge changes from topic "retailDemo" into tm-dev
* changes:
  Allow holders of PROVISION_DEMO_DEVICE to provision a device
  Add new permission PROVISION_DEMO_DEVICE
2022-03-07 14:37:26 +00:00
TreeHugger Robot
cdb9f0c8aa Merge "Skip transfer splash screen if activity is destroying or destroyed" into tm-dev 2022-03-07 08:40:37 +00:00
Charles Chen
b66b090814 Revert "Revert "Promote startActivityAsUser to SystemApi""
This reverts commit 07f7f3ff5b.

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
Change-Id: I334c2a98483e709559162ad64f3b69cbd3b615d2
Test: atest AnnotationTest
CTS-Coverage-Bug: 222189824
2022-03-07 14:17:58 +08:00
Chilun
ec821bed7d Skip transfer splash screen if activity is destroying or destroyed
Sometimes an activity may be destroyed prematurely before the splash
screen animation begins. We can skip transferring the SplashScreenView
to client if the activity is finishing.

Also add more logs for future investigation.

Bug: 221436171
Bug: 170134300
Test: SplashscreenParametrizedTest
      atest ActivityRecordTests SplashscreenTests
Change-Id: I0b5cdbc3d7ff14ad71139c3c5282a0554c40ea1e
2022-03-07 12:00:19 +08:00
Jing Ji
9edb86c985 Add sub-reasons for the killings from task manager and force-stop
Bug: 215222002
Test: Manual - stop FGS from task manager & dumpsys activity exit-info
Test: atest ApplicationExitInfoTest
Test: atest CtsAppExitTestCases
Change-Id: I1519df46685ea3c59ab412a415adbd93ea674f0a
2022-03-04 18:30:45 -08:00
kholoud mohamed
18e418d904 Allow holders of PROVISION_DEMO_DEVICE to provision a device
Bug: 222476910
Test: atest android.devicepolicy.cts.DevicePolicyManagerTest
Change-Id: I1ef8e7d4eebb2260668911199804533cfd7c5555
2022-03-04 15:39:35 +00:00
TreeHugger Robot
5546ba69d0 Merge "Explain what a DPC is in new API docs." into tm-dev 2022-03-03 16:49:20 +00:00
Kholoud Mohamed
0f7a1a7083 Merge "broadcast profile-relevant intents to DMRH" into tm-dev 2022-03-03 12:37:57 +00:00
Elis Elliott
00d2bb7238 Explain what a DPC is in new API docs.
Fixes: 218876435

Test: N/A
Change-Id: I2e7ee6f1f46f9e672f4707740585cda79c2d1542
2022-03-03 12:02:26 +00:00
Vadim Caen
8fa5667732 Merge "Move OnBackInvokedCallback to window package." into tm-dev 2022-03-03 10:03:41 +00:00
Yuncheol Heo
6f10d49724 Revert "Expose ActivityOptions.fromBundle() as ModuleApi."
This reverts commit c5bf49474f.

Reason for revert: API council decided not to expose it.
Bug: 202145402
Test: atest ActivityOptionsTest

Change-Id: I19c84a905f929e87f20a8dd28a3f45caf3e29c2c
2022-03-03 03:54:19 +00:00
TreeHugger Robot
9331216cd1 Merge "Correct the PropertyInvalidatedCache module definition" into tm-dev 2022-03-03 03:25:34 +00:00
Wei Sheng Shih
7790c1b933 Merge "Rename 'EMPTY' to 'SOLID_COLOR' for splash screen style." into tm-dev 2022-03-03 01:30:43 +00:00
Lee Shombert
820ef2beb1 Correct the PropertyInvalidatedCache module definition
Bug: 219609105

Change the meaning of "module" in PropertyInvalidatedCache to be a
string rather than an integer.  One piece of the unit test has been
removed because of this.

Lint uncovered several lock errors.  These are corrected as well.

The corresponding CTS test is updated in the next review.

Test:
 * atest FrameworksCoreTests:PropertyInvalidatedCacheTests

Change-Id: Iaaa55974df2d22fc052d5b4b4744384c012f070a
2022-03-02 13:44:59 -08:00
TreeHugger Robot
c3dbe77291 Merge "Javadoc improvements related to the device policy management role holder updater" into tm-dev 2022-03-02 20:00:36 +00:00
Kweku Adams
386362eb1b Merge "Let settings query an app's minimum bucket." into tm-dev 2022-03-02 17:55:45 +00:00
Elis Elliott
0563d4fb32 Merge "Expose isRemovingAdmin in DevicePolicyManager as a TestApi." into tm-dev 2022-03-02 15:38:36 +00:00
Elis Elliott
b6d3083b06 Expose isRemovingAdmin in DevicePolicyManager as a TestApi.
Fixes: 219894175

Test: android.devicepolicy.cts.DevicePolicyManagerTest#setAndRemoveDeviceOwnerRepeatedly_doesNotThrowError
Test: android.devicepolicy.cts.DevicePolicyManagerTest#setAndRemoveProfileOwnerRepeatedly_doesNotThrowError
Change-Id: Ifd9fc00878ce8243c0f34eca827b5a857ffc1b2f
2022-03-02 15:37:38 +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
kholoud mohamed
5d47340f17 broadcast profile-relevant intents to DMRH
Fixes: 218499300
Test: manual
Change-Id: I926646bbf2e8aef5b2571d6edb3a41d248ba1dbe
2022-03-02 14:41:39 +00:00
Pat Manning
60b397e84a Merge "Refactor force visible nav bar into new secure setting." into tm-dev 2022-03-02 13:51:27 +00:00
arangelov
b1a0f5fe1a Javadoc improvements related to the device policy management role holder
updater

Fixes: 222073736
Test: none
Change-Id: I42c6b85aab11e89d74c549df938dfe79b0c64eaa
2022-03-02 12:35:25 +00:00
wilsonshih
db6ba3ba58 Rename 'EMPTY' to 'SOLID_COLOR' for splash screen style.
Preventing from misleading developers.

Bug: 217953215
Test: atest SplashscreenTests StartingSurfaceDrawerTests
ActivityRecordTests

Change-Id: I8669effb2e843ebe61e807850359b07b36b39fb3
2022-03-02 20:30:31 +08:00
TreeHugger Robot
fafcf3c4e2 Merge "Clean up the legacy split screen (6/n)" into tm-dev 2022-03-02 08:50:47 +00:00
Alex Buynytskyy
4b7f97e065 Merge "Reduce lock contention." into tm-dev 2022-03-02 02:31:06 +00:00