Commit Graph

7096 Commits

Author SHA1 Message Date
Lucas Silva
b6918681db Merge "Cleanup dream preview complication." into tm-dev 2022-04-20 16:17:50 +00:00
TreeHugger Robot
82e82e1479 Merge "Correct Typo on Provision Refactor per API review" into tm-dev 2022-04-20 07:38:36 +00:00
Tony Huang
34e18413a8 Merge "Remove some functions @hide in WindowContainerTransaction" into tm-dev 2022-04-20 03:35:17 +00:00
Hakjun Choi
e026d4c179 Correct Typo on Provision Refactor per API review
1) FeatureProvisioningCallback become abstract, which has empty impelemtation to override
2) Remove unnccessary {} from @hide
3) fix wrong comment for KEY_CARRIER_VOLTE_PROVISIONED_BOOL
4) move public interface RcsImsCapabilityFlag and it's component constants from RcsFeature to public class ImsRcsManager, and restore RcsFeature as SystemApi class
  set as @deprecated for RcsImsCapabilityFlag in RcsUceAdapter, which has duplicate in ImsRcsManager.

Bug: b/219985687
Test: CTS/ImsServiceTest, UnitTest/ImsProvisioningControllerTest

Change-Id: Iea386922f0377e01582fdb6547d60126d0bf1e8d
Merged-In: Iea386922f0377e01582fdb6547d60126d0bf1e8d
2022-04-20 02:33:05 +00:00
Yurii Zubrytskyi
ec8a93368c Merge changes from topic "Tiramisu-SDK-Finalization" into tm-dev
* changes:
  frameworks/base - Tiramisu is now 33 #3 - resources
  frameworks/base - Tiramisu is now 33 #2
2022-04-14 06:21:09 +00:00
Lucas Silva
0b0ff3ddd9 Cleanup dream preview complication.
Fixed: 229089441
Bug: 226986434
Test: locally on device
Change-Id: I5f42fff23826505ca18f7b365371b433e32d2d20
2022-04-13 14:45:32 +00:00
Tony Huang
29f1e898dc Remove some functions @hide in WindowContainerTransaction
To using these function in CTS tests, we need to remove @hide.

Bug: 229024233
Test: build pass
Change-Id: I7102918593ef8886888604492e39c1f952408ec7
2022-04-13 17:30:00 +08:00
Sudheer Shanka
8338395749 Merge "Fix the @RequiresPermission annotation." into tm-dev 2022-04-12 23:11:37 +00:00
Yurii Zubrytskyi
637acc5b42 frameworks/base - Tiramisu is now 33 #3 - resources
Resources finalization

RESOURCES_FINALIZATION=Finalize for T
Test: build and boot
Bug: 225745567

Change-Id: I22c8fa54a466f52334746a0d28fd00bec3922a82
2022-04-12 12:35:04 -07:00
Yurii Zubrytskyi
f453228161 frameworks/base - Tiramisu is now 33 #2
Set current API level

Test: Build and boot
Bug: 225745567
Change-Id: If135d9795e812cc286c720b9351eaf6be621fd5b
2022-04-12 12:35:04 -07:00
Sudheer Shanka
86ef571dab Fix the @RequiresPermission annotation.
We initially were using PACKAGE_USAGE_STATS permission to guard
the API BroadcastOptions.recordResponseEventWhileInBackground()
but changed it's implementation to use the new
ACCESS_BROADCAST_RESPONSE_STATS permission later but didn't update
the annotation to specify the new permission.

Bug: 228894230
Test: treehugger
Change-Id: I5142e2d2f754e8014c0c291d56b5ec2254449e77
2022-04-12 15:34:16 +00:00
Yurii Zubrytskyi
bb014567f5 frameworks/base - Tiramisu is now 33
Removed deprecated at birth APIs

Test: build and boot
Bug: 225745567
Change-Id: I8a40f4a08e521a7c9632d7652ff1f51fb137b34d
2022-04-12 08:25:15 -07:00
Michael Wright
38dc7aa55c DO NOT MERGE Remove PWLE APIs from T
Fixes: 228529016
Test: build
Change-Id: Icfd576f3dff0850f464be32c5a3315e723c3d380
2022-04-07 23:26:18 +00:00
Shan Huang
bf8817d3f0 Merge "Remove OnBackInvokedDispatcherOwner interface." into tm-dev 2022-04-02 01:29:52 +00:00
TreeHugger Robot
c7daca4990 Merge "Asynchronous the resetUsbPort" into tm-dev 2022-04-02 01:12:15 +00:00
Shan Huang
69a3984aae Remove OnBackInvokedDispatcherOwner interface.
Test: m -j update-api. Build and flash and test back behavior throughout
the system.
Bug: 227500290

Change-Id: Ibdb13d02e044741d05d99f1cad96e43dc0129fe4
2022-04-01 20:27:34 +00:00
Vadim Caen
d0923a2197 Merge "Split animation methods out of OnBackInvokedCallback" into tm-dev 2022-04-01 20:13:30 +00:00
Vadim Caen
c627777dda Split animation methods out of OnBackInvokedCallback
This makes OnBackInvokedCallback SAM compatible

Bug: 227789359
Test: atest \
        CtsWindowManagerDeviceTestCases:android.server.wm.BackNavigationLegacyTest \
        CtsWindowManagerDeviceTestCases:android.server.wm.BackNavigationTests \
        WmTests:com.android.server.wm.BackNavigationControllerTests \
        FrameworksCoreTests:android.window.BackNavigationTest \
        FrameworksCoreTests:android.window.WindowOnBackInvokedDispatcherTest \
        CtsViewTestCases:android.view.cts.OnBackInvokedDispatcherTest
Change-Id: Iab86b0488f1b3048eb02042191acaeb6a645a0bc
2022-04-01 20:09:26 +00:00
Ricky Niu
dc74aff111 Asynchronous the resetUsbPort
Modify the resetUsbPort be asynchronous

Bug: 217369748
Signed-off-by: Ricky Niu <rickyniu@google.com>
Change-Id: I5d799691f2f3fce4df97a960c8628194236d9f81
2022-04-01 18:13:32 +00:00
Vadim Caen
9e3ac14976 Merge "Add View.findOnBackInvokedDispatcher" into tm-dev 2022-04-01 17:49:33 +00:00
TreeHugger Robot
c5866bede0 Merge "Re-deprecate animation backgroundColor API" into tm-dev 2022-04-01 11:48:52 +00:00
Michael Wright
cf4d6368e1 Merge "Undeprecate LayoutParams.preferredRefreshRate" into tm-dev 2022-04-01 10:43:35 +00:00
Vadim Caen
b23c8c8e87 Add View.findOnBackInvokedDispatcher
To make it easier for developer to migrate away from KEYCODE_BACK
without having to walk up the view hierachy in order to find an
OnBackDispatcher, introduce findOnBackInvokedDispatcher.

Bug: 227301455
Test: android.view.cts.OnBackInvokedDispatcherTest#testGetDispatcherOnView
Change-Id: I7f3e76df596d306fa26d72df8115d5b15d7ac564
2022-04-01 11:15:30 +02:00
Pablo Gamito
2b770a7e86 Re-deprecate animation backgroundColor API
It's prefered to keep the API deprecated since the API was previously
deprecated and made a noop. Undeprecating it would lead to inconsistent
behavior across android versions. With the API not working on some
versions which can easily look like a bug from a developer's
perspective.

Instead we create a new API for the animation background effect refering
to an animation backdrop instead of a background. This also required
updating other API references of background in this context to backdrop.

Bug: 226122431
Test: atest CtsWindowManagerDeviceTestCases:ActivityTransitionTests

Merged-In: I4493d22a33606d639d498b6dc0f6f1bfa3d7f135
Change-Id: I4493d22a33606d639d498b6dc0f6f1bfa3d7f135
2022-03-31 23:27:01 +00:00
Sooraj Sasindran
d91b8125f3 rename renounce fine location data
rename renounce fine location data to include location data

Bug: 210923726
Test: cts
Merged-In: Ic2ce84f51bf394031903ae180788216cfa910fc0
Change-Id: Ic2ce84f51bf394031903ae180788216cfa910fc0
2022-03-31 20:15:20 +00:00
Santos Cordon
b20c5a1d49 Undeprecate LayoutParams.preferredRefreshRate
This was previously deprecated in favor of preferredDisplayModeId.
However, display modes include specific resolutions
so we would still need an API for the valid use-case
of specifying only a preferred refresh rate.

Bug: 227627158
Bug: 224915081
Test: built locally
Change-Id: Ic7c711d03d3ccc7a5193b26ca38159f048777927
2022-03-31 18:43:22 +00:00
Simran Basi
ab7ee498bc Merge "Delete attribute useTargetActivityForQuickAccess." into tm-dev 2022-03-31 18:26:52 +00:00
Louis Chang
97c8cee1a3 Merge "Add an API to disable/restore doze settings" into tm-dev 2022-03-31 06:41:05 +00:00
Shan Huang
1b284d865f Merge "Deprecate Activity#onBackPressed and Dialog#onBackPressed." into tm-dev 2022-03-31 00:17:02 +00:00
Scottie Biddle
e30d9986f1 Delete attribute useTargetActivityForQuickAccess.
In practice, the value of this xml attribute is always going to a
function of  whether or not getTargetActivityPendingIntent() is null--
when a QuickAccessWalletService sends us a PendingIntent, we will use
that instead of the SystemUI card switcher activity.

If the PendingIntent is null, we then fall back to our old behavior:
* If the wallet is not currently showing any cards, launch the activity
  specified by getWalletIntent() (this is hardcoded in XML metadata).
    * If the wallet is currently showing cards, launch the SysUI
      switcher activity.

Test: atest CtsQuickAccessWalletTestCases --retry-any-failure
Test: atest QuickAccessWalletControllerTest
Fixes: 218860062
Change-Id: I62f7ca507ebce29b03d6ce76bccaa6d736720a86
Merged-In: I4cfaa5b6035499c47a0ed8b1a4a5f3e1f0f50860
2022-03-30 23:28:49 +00:00
TreeHugger Robot
3ece298e8b Merge "Add launch complete status to launchPendingIntent" into tm-dev 2022-03-30 22:47:56 +00:00
TreeHugger Robot
c80324f62a Merge "Add method PrintManager#isPrintServiceEnabled(ComponentName)" into tm-dev 2022-03-30 22:41:09 +00:00
Eran Messeri
711d2b1a98 Merge "KeyStore: Surface RKP failures" into tm-dev 2022-03-30 18:49:58 +00:00
Shan Huang
82f3bb31ea Merge "Remove DISPATCH_BACK_INVOCATION_AHEAD_OF_TIME." into tm-dev 2022-03-30 14:58:54 +00:00
Eran Messeri
fda47fb1ca KeyStore: Surface RKP failures
On systems that rely solely on remotely-provisioned keys (RKP),
the attestation keys may run out or be unavailable for attesting
a newly-generated key. This could happen when:
* the device first connects to the Internet
* The device had all the keys used and:
 ** It hadn't yet completed obtaining new ones.
 ** The RKP server declines to issue new keys.

In these cases, the caller must be informed that their key generation
request failed (likely temporarily), and that they should retry it.

The retry policy returned tells the caller when to re-try.
Bug: 227306369
Test: atest android.keystore.cts.KeyStoreExceptionTest

Change-Id: Ief30a3ab97da95b68d172e725c38acbefab92fa9
2022-03-30 15:03:16 +01:00
Erik Wolsheimer
b7b880315a Add method PrintManager#isPrintServiceEnabled(ComponentName)
Bug: 180582919
Test: atest FrameworksCoreTests
Change-Id: I2f7e87d9e56f3abc22c04eee3e0863d5de48a9f9
2022-03-29 21:38:35 +00:00
Jon Moeller
03efadfcfb Add Extra to mark ClipData items as "sensitive".
This extra enables applications to mark ClipData items as sensitive,
indicating that the data within should not ordinarily be displayed.

Applications (e.g. IMEs that store clipboard history) can use
this flag to prevent sensitive data from being unintentionally
displayed on screen.

Bug: 195554988
Test: N/A
Change-Id: Ibccd3944842a40d3e5afec2dd99f32eb7a3564db
2022-03-29 20:50:27 +00:00
Shan Huang
778d3d83f8 Remove DISPATCH_BACK_INVOCATION_AHEAD_OF_TIME.
We are not gating the new back dispatch by targetSdkVersion in T. The new dispatch is controlled by the enableOnBackInvokedCallback app
manifest flag (which defaults to false).

Test: m -j update-api
Bug: 195946584
Change-Id: Iab59051ec5b6336ca4d42cc47015fe86a3f37942
2022-03-29 20:47:53 +00:00
Oscar Shu
1834a4207f Merge "Remove MANAGE_WIFI_AUTO_JOIN" into tm-dev 2022-03-29 17:47:00 +00:00
Andrea Ambu
6782f93142 Merge "speech: Remove @Deprecated fields after rename" into tm-dev 2022-03-29 16:53:55 +00:00
Alex Johnston
4879dca57a Remove unused lost mode permission
Bug: 226945080
Test: NA
Change-Id: I339b6894b3a9e32a3d644a06e4ebc3a0f7f98a05
2022-03-29 15:36:49 +00:00
Seth Moore
14e9f41072 Merge "DO NOT MERGE Add new privileged permission for unique id attestation" into tm-dev 2022-03-29 15:04:06 +00:00
Ed Savage-Jones
38c73670a4 Add an API to disable/restore doze settings
This adds an API to disable/restore doze settings.
This is needed by CTS in order to have a known doze
state when running certain tests.

Test: atest ActivityVisibilityTests
Test: atest InputMethodStartInputLifecycleTest

Bug: 140367074
Bug: 216182288
Change-Id: I112c37a90c5b528c4e64e18b06e57024ea277287
2022-03-29 17:10:23 +08:00
Maurice Lam
5cecf5331a Add launch complete status to launchPendingIntent
Instead of separate onLaunchSuccess and onLaunchFailure methods, combine
them into onLaunchComplete(int status), which can either be SUCCESS or
indicate the reason for failure.

Bug: 219985243
Test: atest CtsVirtualDevicesTestCases
Change-Id: I822c189b4bfc49ce936f072ff6e06f504c8eb80d
2022-03-28 23:29:52 -07:00
Shubang Lu
dabf01fb83 Merge "TIAF API review: add onError" into tm-dev 2022-03-28 23:24:13 +00:00
Shan Huang
f66c4d611b Deprecate Activity#onBackPressed and Dialog#onBackPressed.
Test: m -j update-api
Bug: 195946584
Change-Id: I680884520074751e1c5fd0c7bd906a5f11f30236
2022-03-28 17:36:25 +00:00
shubang
832d0eb782 TIAF API review: add onError
Bug: 225388549
Test: CTS
Change-Id: I853503c2e4b388168a2eaf59883cbeaa66c5e2a9
2022-03-28 08:54:59 +00:00
Sharon Su
26aff6fbcb Add more status code to cinematic effect response.
Bug: 213238425
Test: cts

Change-Id: I26dfc53b22817953839d9882398a502ea7293c08
(cherry picked from commit 85d76e06ce)
Merged-In: I26dfc53b22817953839d9882398a502ea7293c08
2022-03-26 05:16:18 +00:00
Kohsuke Yatoh
5eae33da58 Merge "Move FEATURE_IME to TestApi" into tm-dev 2022-03-25 17:58:40 +00:00
Seth Moore
4d8825e4da DO NOT MERGE Add new privileged permission for unique id attestation
This permission will eventually replace the sepolicy that we have now,
making it possible to test unique id attestation, which is no longer
possible due to the deprecation of shared uids.

Skipping automerger because the framework manifest has diverged too
much across aosp and tm-dev to allow for clean auto merges, and
presubmits block.

Test: KeyAttestationTest
Bug: 216778747
Change-Id: Iecde35b9a79456b293118d8089dd2a3b0905f5f3
2022-03-25 10:21:40 -07:00