Commit Graph

22943 Commits

Author SHA1 Message Date
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
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
Makoto Onuki
c3565962b3 Never instatiate App class multiple times
- GMS-core is still sometimes seeing the app class being
instatiated multiple times.

Let's just cache the app instance to avoid such situations.

- Also removed some tentative WTFs, which have never been triggered.
(so they should be unrelated to the dup-app bug)

Bug: 185177290
Test: Boot / treehugger
Change-Id: I4c74a5798264472d1bfbf5604f399a49e5946c64
2022-02-24 15:39:22 -08:00
Makoto Onuki
eebb589d99 Merge "Update duplicate-app WTF" into tm-dev 2022-02-24 21:57:08 +00:00
Makoto Onuki
e214eee46f Update duplicate-app WTF
Simplify the logic, and instead only enable it for gms-core

Test: Manual test with a test app
Bug: 185177290
Bug: 221248960
Change-Id: If75cc3ef8e56469b384d9431f53bcacce638f23c
2022-02-24 18:10:17 +00:00
Kholoud Mohamed
7e76fddc52 Merge "Change Callable to Supplier in the dpm resource apis" into tm-dev 2022-02-24 17:28:18 +00:00
Pat Manning
a8210d8ec3 Refactor force visible nav bar into new secure setting.
Decouples force visible from kids mode setting.

Bug: 217668440
Test: manual
Change-Id: I363a2507cd1b073f44ed91e96b1dce7b3cd347c4
2022-02-24 16:18:47 +00:00
Kholoud Mohamed
8084c8c036 Merge "rename callingPackageResourceId to resourceIdInCallingPackage" into tm-dev 2022-02-24 16:18:09 +00:00
Pat Manning
80c4b33ddf Merge "Removing 'override' from nav bar mode APIs." into tm-dev 2022-02-24 15:44:35 +00:00
Kholoud Mohamed
c099351d94 Merge "Change DEVICE_POLICY_RESOURCE_UPDATED broadcast extras" into tm-dev 2022-02-24 13:11:00 +00:00
Stephanie Bak
9287b57771 Split DPM API to check current Wi-Fi network
Change validateCurrentWifiMeetsAdminRequirements to separate APIs for
SSID restriction and minimum security level restriction

Bug: 216628415
Test: atest DevicePolicyManagerTest
Change-Id: Ib0764d2d31a91934aa2acdc92ca2a5f61938139e
2022-02-24 09:21:15 +00:00
Sudheer Shanka
d6904c7f41 Merge "Update javadoc for recordResponseEventWhileInBackground()." into tm-dev 2022-02-24 03:15:03 +00:00
Felipe Leme
bce5c8c99a [automerge] Allows DPM.generateKeyPair() to be called from PO of affiliated user. 2p: e8caa07e9f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16873887

Bug: 213388897
Change-Id: I49e4867165f0c8d7a3c258b0dd514b0b1e5dec1a
2022-02-24 02:31:37 +00:00
Felipe Leme
e8caa07e9f Allows DPM.generateKeyPair() to be called from PO of affiliated user.
If the key is used by device attestation, it can only be used by the
user that generated it, as it's not parcelable. Hence, on devices
running with Headless System User Mode (HSUM), the key must be
generated by the "real" user's PO, not the DO (which runs on system
user).

Test: atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testDelegatedCertInstallerDeviceIdAttestation # on phone
Test: manual verification with TestDpc on automotive
Bug: 213388897

Change-Id: I58623f5c1a1d60af7743f5a815a491ebbad9b9fe
2022-02-23 18:28:16 -08:00