Commit Graph

7015 Commits

Author SHA1 Message Date
TreeHugger Robot
90b2bfd4bc Merge "Fix wrong Nullability of BoringLayout new API introduced in API33" into tm-dev 2022-03-22 17:00:27 +00:00
TreeHugger Robot
8bd2541e6e Merge "Deprecating windowSplashScreenAnimationDuration attr." into tm-dev 2022-03-22 14:23:31 +00:00
Pablo Gamito
7fb9397972 Merge "Undeprecate animation background color" into tm-dev 2022-03-22 13:48:12 +00:00
TreeHugger Robot
47ca24da97 Merge "rename config_settingsIntelligencePackageName" into tm-dev 2022-03-22 04:43:58 +00:00
Adam Bookatz
56996833f7 Merge "Relax permissions for isUserOfType, isUserNameSet" into tm-dev 2022-03-22 02:33:54 +00:00
TreeHugger Robot
97d6cf4abe Merge "Add conditional permission check annotation to checkPermission methods" into tm-dev 2022-03-22 00:14:07 +00:00
Seigo Nonaka
5cc42bcb59 Fix wrong Nullability of BoringLayout new API introduced in API33
Bug: 225695033
Test: N/A
Change-Id: I93d3fc3041e862ad5f6064ac517e9cdbd23f1599
(cherry picked from commit c93d6b49b5)
2022-03-21 23:28:01 +00:00
Nate Myren
e0ae12756c Add conditional permission check annotation to checkPermission methods
Per API council feedback, reflect that the first app in an
AttributionSource chain must have UPDATE_APP_OPS_STATS to do a trusted
blame

Fixes: 222094627
Test: build
Change-Id: I63513ca70ddebe0fd5a05d4414f88985bc3fcad4
2022-03-21 21:16:15 +00:00
Nate Myren
5423b5f2a4 rename config_settingsIntelligencePackageName
Bug: 221327106
Test: manual
Change-Id: I6dae0780a6f984b0beb06fbf8dbba9a24d2e425c
2022-03-21 12:58:03 -07:00
Dave McCloskey
c5a7ed29de Merge "Changes to support reducing noise in active unlock notifications." into tm-dev 2022-03-21 19:15:01 +00:00
Yi-an Chen
75e09d14c9 Merge "Add PbA branding API" into tm-dev 2022-03-21 18:15:31 +00:00
Dave McCloskey
6c707a47da Changes to support reducing noise in active unlock notifications.
1. Add additional trigger onUserMayRequestUnlock
  - point existing trigger points from SystemUI to this
2. Argument added to onUserRequestedUnlock to indicate if user wants to
   dismiss keyguard.
3. Callback for result of grantTrust calls.
  - curently only calls back if device was unlocked as a result of the
    call

See design: go/au-noise-reduction

Note: changes made to SystemUI are manually tested and may need
refactoring which is being skipped now to meet the API Freeze deadline.

Bug: 225231929
Test: atest TrustTests
Test: Manual interaction with wake & fingerprint sensor
CTS-Coverage-Bug: 213944235
Change-Id: I8d08229f09c9a1f2295b7eb464d12cad0c6b8303
2022-03-21 09:00:43 -07:00
Rhed Jao
d45ad7baf4 Merge "Add MAKE_UID_VISIBLE permission to the system api" into tm-dev 2022-03-21 05:46:30 +00:00
Antoan Angelov
a443dccaad Merge "Add DevicePolicyManager#getPolicyManagedProfiles system api" into tm-dev 2022-03-20 20:08:50 +00:00
Kate Xu
22971c035e Merge "Provide AutofillService to know how the dataset was shown to user" into tm-dev 2022-03-20 05:55:22 +00:00
Mark Punzalan
dc59b8781e Merge "Add package name to all UiTranslationStateCallback methods." into tm-dev 2022-03-19 23:26:16 +00:00
Grace Cheng
329d712936 Merge "Removes WRITE_SECURE_SETTINGS from location bypass APIs" into tm-dev 2022-03-19 08:36:07 +00:00
John Wu
d14f7d3c68 Merge "Remove all appId migration related public APIs" into tm-dev 2022-03-19 07:38:12 +00:00
Joanne Chung
f9fafbe617 Provide AutofillService to know how the dataset was shown to user
We introduce a filed for ui presentation in FillEventHistory.Event,
the type will be set for TYPE_DATASET_SHOWN and TYPE_DATASET_SELECTED.
The AutofillService can know which dataset is shown to user and which
type dataset user is clicked.

This change defines the definition and apply to TYPE_DATASET_SHOWN,
the TYPE_DATASET_SELECTED will be implemented on the follow up
change.

Bug: 223472350
Test: manual. build and boot pass. Test app and see dumpsys autofill
CTS-Coverage-Bug: 225310516

Change-Id: Ic221bd79e2ad512db5cd1ef8fd96c6bfae2ca616
2022-03-19 07:22:05 +00:00
Kholoud Mohamed
a8e9aa390d Merge changes from topic "apiFeedback" into tm-dev
* changes:
  RESTRICT AUTOMERGE Refactor device policy resource APIs to a separate class
  RESTRICT AUTOMERGE move device policy resource APIs to a separate class
  RESTRICT AUTOMERGE hide device policy resources constants
2022-03-19 06:30:43 +00:00
Lorenzo Colitti
4aaa394f28 Merge "Store IkeTunnelConnectionParams in Ikev2VpnProfile" am: bc6f905d38 am: 492871c0b1 am: 4d46a14600
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2029924

Change-Id: Iacea8798dd865bd7900a96784a028184c41dbb89
2022-03-19 06:28:36 +00:00
Ahaan Ugale
ff1e4a4680 Merge "Allow AutofillService can identify if fill dialog presentation is needed." into tm-dev 2022-03-19 06:11:51 +00:00
Lorenzo Colitti
4d46a14600 Merge "Store IkeTunnelConnectionParams in Ikev2VpnProfile" am: bc6f905d38 am: 492871c0b1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2029924

Change-Id: I4b9d9e1f7792996c0ca026be5013e3d5089395e7
2022-03-19 06:11:00 +00:00
Lorenzo Colitti
bc6f905d38 Merge "Store IkeTunnelConnectionParams in Ikev2VpnProfile" 2022-03-19 05:34:30 +00:00
Mark Punzalan
49525ccb14 Add package name to all UiTranslationStateCallback methods.
This will be used by clients such as Gboard to ensure they are
responding to translation events for the correct activity. Ideally we
would include the activity token, in case there are multiple activities
being translated in an app, but that isn't supported right now and it
requires changes to EditorInfo (in Input Method Framework) to get the
activity token.

Also fixed an issue where the callback methods are invoked twice when
the IME itself is the translated app is registering a callback for
itself. Note: This happens in UiTranslationManagerTest where the test
activity and IME have the same uid, but shouldn't happen outside of
tests.

Bug: 223979041
Test: atest CtsTranslationTestCases
Change-Id: Id99f501b065b92fe3358c2ae525175ad3ea4b119
2022-03-19 05:28:21 +00:00
Sudheer Shanka
4b61ecc716 Merge "Add ACCESS_BROADCAST_RESPONSE_STATS permission." into tm-dev 2022-03-19 05:14:21 +00:00
Peiyong Lin
4bd3214296 Merge "Add permission for takeScreenshot API." into tm-dev 2022-03-19 01:53:16 +00:00
John Reck
bb0809e758 Merge "Add setBuffer w/ release callback" into tm-dev 2022-03-19 01:32:25 +00:00
kholoud mohamed
7cb1133b16 RESTRICT AUTOMERGE move device policy resource APIs to a separate class
Bug: 217388602
Test: atest EnterpriseResourcesTests
Change-Id: I83b399f36dfe3ba93d625807659dee59d872097e
2022-03-19 00:22:04 +00:00
Joanne Chung
23668c560e Allow AutofillService can identify if fill dialog presentation is needed.
If the fill dialog is available for the field, the FillRequest flags
will contain FLAG_ACIVITY_START. The field is hidden originally but
it needs to be get from AutofillService to avoid creating unnessary
fill dialog presentation. Rename the flag because the it's not clear
to combine the relationship with fill dialog.

Bug: 223472039
Test: manual. Build and boot pass.

Change-Id: I52c367e75100f6af2ab782f58755bc5727b1dd72
2022-03-18 22:57:51 +00:00
Benedict Wong
7c3eacb6a7 Merge changes I67470903,Ia80da6d4,I332397f4 am: 7d042ad402 am: f1dacac9ea am: 639c60d696
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2030266

Change-Id: Ic90ee169932a8c5db483dea4df64c9cf0129f9a4
2022-03-18 22:32:02 +00:00
Stefan Andonian
71ad90ca9f Add an event type constant for Undismiss events when the user clicks
Undo after dragging a predicted app icon onto the "Do Not Suggest" drop
target.

Bug: b/200841778
Test: Verified that the constant was usable from Launcher project.
Change-Id: I0f7e4f139a7b9012fd55bf72294dd8c1fab38a39
2022-03-18 22:15:09 +00:00
Benedict Wong
639c60d696 Merge changes I67470903,Ia80da6d4,I332397f4 am: 7d042ad402 am: f1dacac9ea
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2030266

Change-Id: Ifc90d7d64ea65ebdc996f2fbc4ce0fb90eef2f3e
2022-03-18 22:13:01 +00:00
Benedict Wong
7d042ad402 Merge changes I67470903,Ia80da6d4,I332397f4
* changes:
  Define and implement getProvisionedVpnProfileState()
  Introduce VpnProfileState
  Define new constants of ACTION_VPN_MANAGER_EVENT
2022-03-18 21:47:47 +00:00
Pablo Gamito
a30daca9ff Merge "Add API to allow apps to update their background color programatically" into tm-dev 2022-03-18 21:41:03 +00:00
Yixiao Luo
a4691b235e Merge "TIAF: Change on API Review: DTV to VOD 2" into tm-dev 2022-03-18 21:40:07 +00:00
kholoud mohamed
6ed9faf5bd RESTRICT AUTOMERGE hide device policy resources constants
Bug: 218875965
Bug: 217388602
Test: atest EnterpriseResourcesTests
Change-Id: Iac71c0d5b451e8ec77c0ca0113e2248ef21cc412
2022-03-18 20:47:12 +00:00
Yi-an Chen
5898e64241 Add PbA branding API
Bug: 213357911

Test: Manually on Sargo DVT
Change-Id: I5b45ba902fc667e5393e69b188bcf1d5ce30d532
2022-03-18 20:45:47 +00:00
Shubang Lu
365b716cb6 Merge "TIAF API review: remove prepare()" into tm-dev 2022-03-18 20:44:42 +00:00
Shubang Lu
6c1f109937 Merge "TIAF API review: rename onCreateBiInteractiveApp" into tm-dev 2022-03-18 20:43:14 +00:00
Ray Essick
5bb3da076d Merge "Define MediaFormat crop-related constants" into tm-dev 2022-03-18 18:02:08 +00:00
Jonathan Scott
9bc9a8bdd1 Merge "Add setProfileOwnerOnOrganizationOwnedDevice COPE API." into tm-dev 2022-03-18 17:50:42 +00:00
John Reck
f6fb6f6288 Add setBuffer w/ release callback
Also tweak SyncFence#getSignalTime javadocs

Fixes: 220897032
Bug: 222095580
Test: SurfaceControlTest
Change-Id: I83c000e1699c95b73ac7b41815e1798475c1a778
2022-03-18 13:42:09 -04:00
Nikita Dubrovsky
06ddc1fcc8 Merge "Update READ_CLIPBOARD_IN_BACKGROUND to be grantable via roles" into tm-dev 2022-03-18 17:34:14 +00:00
David Anderson
652c4bade6 Merge "Add PackageManager feature strings for EROFS." into tm-dev 2022-03-18 17:29:26 +00:00
arangelov
69bb632cb8 Add DevicePolicyManager#getPolicyManagedProfiles system api
That way the logic to get a managed profile can be
customizable by OEMs.

Fixes: 214473624
Test: manual
Test: CTS tests to be added in a follow-up CL
Change-Id: Id183e987d2cb04040db028b9913188267d1a9a84
2022-03-18 17:11:26 +00:00
TreeHugger Robot
1b58550351 Merge changes from topics "presubmit-am-859dd3744ae243f9a8cb2f6234a9ef1e", "register_api" into tm-dev
* changes:
  Change parameter order to make it SAM compatible
  Fix a problem that Dialog does not close in new dispatch.
2022-03-18 17:04:05 +00:00
Oliver Woodman
f48450217c Merge "Hide new route discovery preferences in T" into tm-dev 2022-03-18 16:55:14 +00:00
Pinyao Ting
7f35502d83 Merge "Update capability related api in Shortcut" into tm-dev 2022-03-18 16:39:51 +00:00
Kholoud Mohamed
3d31e0b93b Merge changes from topic "resetAPIs" into tm-dev
* changes:
  RESTRICT AUTOMERGE add requiresAPI annotation for DPM#getString
  RESTRICT AUTOMERGE Expose getString APIs as public
2022-03-18 16:07:22 +00:00