Commit Graph

22955 Commits

Author SHA1 Message Date
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
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
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
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
Binh Nguyen
e5753a77ad Register AdServices to SystemServiceRegistry
Test: build
Bug: 210159588
Change-Id: If1e234b4e61292cc9d8ff62dbcdc042c495b70f0
2022-03-01 13:51:55 -08:00
Alex Buynytskyy
9d681f1d97 Reduce lock contention.
Remove lock for cached state in ApplicationPackageManager.
Short-circut the instant app check for internal API calls.

Bug: 215305214
Test: presubmit
Change-Id: Ie122d76f6ea0e950fa25b22bea65f9938a3bf5f1
2022-03-01 20:27:46 +00:00
Xiaowen Lei
6504cbee86 Merge "Register only one binder listener and keep a map of listener to executor." into tm-dev 2022-03-01 17:24:25 +00:00
TreeHugger Robot
c4293b56e2 Merge "Restrict what activity launches show permission prompts" into tm-dev 2022-03-01 17:21:36 +00:00
Antoan Angelov
1cb9022785 Merge "Rename device management role holder role name" into tm-dev 2022-03-01 17:14:30 +00:00
Nikita Ioffe
8056335fcd Merge "Rename SupplementalProcess to SdkSandbox" into tm-dev 2022-03-01 17:07:16 +00:00
Chilun
9ce682aa30 Clean up the legacy split screen (6/n)
Clean up legacy split screen from remaining classes.

Bug: 199236198
Test: atest ActivityRecordTests ConfigurationContainerTests
            RootWindowContainerTests TaskTests TaskFragmentTest
	    WindowStateTests ActivityStarterTests DisplayContentTests
Change-Id: I0cc2b51e68ae2b8d06a173357ce463e586ec0e85
2022-03-01 15:20:20 +08:00
Xiaowen Lei
87598eb118 Register only one binder listener and keep a map of listener to executor.
This optimizes the code by keeping only one remote connection.

Also fixed a typo in WindowManagerService: "StateState" -> "State".

Bug: 216630470
Bug: 220379118
Test: atest CtsWindowManagerDeviceTestCases:KeyguardTests
Change-Id: I8abb64f750e91db7048279f5217b63d35959c3b6
2022-03-01 06:55:44 +00:00
Kweku Adams
9d999938df Let settings query an app's minimum bucket.
Bug: 156509848
Test: manual
Change-Id: Ife3869524f93b3341fa6eb1379619142ede5ca73
2022-02-28 20:47:47 +00:00
TreeHugger Robot
0a540657a1 Merge "Clarify setRemotePlaybackInfo usage" into tm-dev 2022-02-28 17:52:53 +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
TreeHugger Robot
deb79e3070 Merge "Split DPM API to check current Wi-Fi network" into tm-dev 2022-02-28 17:07:06 +00:00
Nate Myren
eb4e3d20da Restrict what activity launches show permission prompts
Only show a permission prompt if the activity is a launcher, the calling
app is the same as the opened intent app, or the
isEligibleForLegacyPermissionPrompt ActivityOption is set. Also prevents
the dialog from showing while the keyguard is locked.

Test: atest NotificationPermissionTest
Bug: 194833441
Fixes: 220891438
Change-Id: Ie5381af045d538a5b822bb1ccdf62b1dd916114f
2022-02-28 08:23:19 -08:00
TreeHugger Robot
ff23fb2fab Merge "Never instatiate App class multiple times" into tm-dev 2022-02-26 01:39:23 +00:00
Beth Thibodeau
48af92dc4b Clarify setRemotePlaybackInfo usage
Bug: 220019433
Test: builds
Change-Id: I419b4f03cecc6df858f57e8b1c524d76418ab8e8
2022-02-25 16:38:10 -05:00
arangelov
0b6456d3ec Rename device management role holder role name
Test: compiled
Bug: 217275188
Change-Id: I336439a14542889a193651b2998e3da4733da441
2022-02-25 19:14:56 +00:00
TreeHugger Robot
a48dbac731 Merge "Fixes dumpsys activity --list-dumpables" into tm-dev 2022-02-25 12:59:50 +00:00
Felipe Leme
297f149e9e Fixes dumpsys activity --list-dumpables
It was listing the dumpables twice.

Test: adb shell dumpsys activity com.android.car.carlauncher/.CarLauncher --list-dumpables
Fixes: 221376952

Change-Id: Ia1004b449d10e559e6b6f968bc2cb61547f74a65
2022-02-25 08:04:30 +00:00
Felipe Leme
def235492c Merge changes from topic "testDelegatedCertInstallerDeviceIdAttestation" into sc-v2-dev-plus-aosp am: 6cbad8cff9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16873887

Change-Id: I57b942c413552622d015fd84f1d73157513b4731
2022-02-25 05:21:08 +00:00
TreeHugger Robot
f8575a83bd Merge "Allowing launch cookies to be passed via pending activity starts" into tm-dev 2022-02-25 00:21:27 +00:00