diff options
author | 2024-10-30 01:44:55 +0100 | |
---|---|---|
committer | 2024-11-07 19:29:26 +0000 | |
commit | dec13bc178821c419bee9b9a74841ad55ac1c668 (patch) | |
tree | 7a3c08cb94ab4dc045747dd58b5534a33dedfb9c | |
parent | 32f77e213170c96e21335f2f2c92f0f7c43a1446 (diff) |
Add android.permission.TV_IMPLICIT_ENTER_PIP
Bug: 281512335
Bug: 283115999
Test: atest CtsPermissionPolicyTestCases
Flag: android.app.enable_tv_implicit_enter_pip_restriction
Relnote: Adding new permission for implicit PiP entry on TV
LOW_COVERAGE_REASON=TEST_ONLY
Change-Id: I9abc69e76c8ef1ddc8dbfa9c75b1f3b340bd306c
-rw-r--r-- | tests/cts/permissionpolicy/Android.bp | 1 | ||||
-rw-r--r-- | tests/cts/permissionpolicy/res/raw/android_manifest.xml | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/cts/permissionpolicy/Android.bp b/tests/cts/permissionpolicy/Android.bp index 4249f3c9d..07fde8bff 100644 --- a/tests/cts/permissionpolicy/Android.bp +++ b/tests/cts/permissionpolicy/Android.bp @@ -37,6 +37,7 @@ android_test { "permission-test-util-lib", "androidx.test.rules", "flag-junit", + "android.app.flags-aconfig", "android.permission.flags-aconfig-java-export", ], srcs: [ diff --git a/tests/cts/permissionpolicy/res/raw/android_manifest.xml b/tests/cts/permissionpolicy/res/raw/android_manifest.xml index 28d1d6c1e..1397205ba 100644 --- a/tests/cts/permissionpolicy/res/raw/android_manifest.xml +++ b/tests/cts/permissionpolicy/res/raw/android_manifest.xml @@ -4258,6 +4258,18 @@ android:description="@string/permdesc_hideOverlayWindows" android:protectionLevel="normal" /> + <!-- Allows an app to enter Picture-in-Picture mode when the user is not explicitly requesting + it. This includes using {@link PictureInPictureParams.Builder#setAutoEnterEnabled} as well + as lifecycle methods such as {@link Activity#onUserLeaveHint} and {@link Activity#onPause} + to enter PiP when the user leaves the app. + This permission should only be used for certain PiP + <a href="{@docRoot}training/tv/get-started/multitasking#usage-types">usage types</a>. + @FlaggedApi("android.app.enable_tv_implicit_enter_pip_restriction") + --> + <permission android:name="android.permission.TV_IMPLICIT_ENTER_PIP" + android:protectionLevel="normal" + android:featureFlag="android.app.enable_tv_implicit_enter_pip_restriction" /> + <!-- ================================== --> <!-- Permissions affecting the system wallpaper --> <!-- ================================== --> |