Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0369790f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add Shell permission for CTS test."

parents 2730e1ca 5db7b39d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -352,6 +352,10 @@ package android.app {
    method public boolean isUiModeLocked();
  }

  public class WallpaperManager {
    method @RequiresPermission("android.permission.SET_WALLPAPER_COMPONENT") public boolean setWallpaperComponent(android.content.ComponentName);
  }

  public class WindowConfiguration implements java.lang.Comparable<android.app.WindowConfiguration> android.os.Parcelable {
    ctor public WindowConfiguration();
    method public int compareTo(android.app.WindowConfiguration);
@@ -608,6 +612,7 @@ package android.content {
  public abstract class Context {
    method public android.content.Context createPackageContextAsUser(String, int, android.os.UserHandle) throws android.content.pm.PackageManager.NameNotFoundException;
    method public abstract android.view.Display getDisplay();
    method public abstract int getDisplayId();
    method public android.os.UserHandle getUser();
    method public int getUserId();
    method public void setAutofillOptions(@Nullable android.content.AutofillOptions);
@@ -618,6 +623,7 @@ package android.content {

  public class ContextWrapper extends android.content.Context {
    method public android.view.Display getDisplay();
    method public int getDisplayId();
  }

  public class Intent implements java.lang.Cloneable android.os.Parcelable {
+2 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ import android.annotation.SdkConstant;
import android.annotation.SdkConstant.SdkConstantType;
import android.annotation.SystemApi;
import android.annotation.SystemService;
import android.annotation.TestApi;
import android.annotation.UnsupportedAppUsage;
import android.content.ComponentName;
import android.content.ContentResolver;
@@ -1666,6 +1667,7 @@ public class WallpaperManager {
     *
     * @hide
     */
    @TestApi
    @SystemApi
    @RequiresPermission(android.Manifest.permission.SET_WALLPAPER_COMPONENT)
    public boolean setWallpaperComponent(ComponentName name) {
+1 −0
Original line number Diff line number Diff line
@@ -5329,6 +5329,7 @@ public abstract class Context {
     * @return display ID associated with this {@link Context}.
     * @hide
     */
    @TestApi
    public abstract int getDisplayId();

    /**
+2 −0
Original line number Diff line number Diff line
@@ -308,6 +308,8 @@ applications that come with the platform
        <permission name="android.permission.STATUS_BAR_SERVICE"/>
        <permission name="android.permission.REQUEST_INCIDENT_REPORT_APPROVAL"/>
        <permission name="android.permission.CONTROL_KEYGUARD_SECURE_NOTIFICATIONS"/>
        <permission name="android.permission.SET_WALLPAPER" />
        <permission name="android.permission.SET_WALLPAPER_COMPONENT" />
    </privapp-permissions>

    <privapp-permissions package="com.android.statementservice">
+4 −0
Original line number Diff line number Diff line
@@ -182,6 +182,10 @@
    <!-- Permission needed to run keyguard manager tests in CTS -->
    <uses-permission android:name="android.permission.CONTROL_KEYGUARD_SECURE_NOTIFICATIONS" />

    <!-- Permission needed to test wallpaper component -->
    <uses-permission android:name="android.permission.SET_WALLPAPER" />
    <uses-permission android:name="android.permission.SET_WALLPAPER_COMPONENT" />

    <application android:label="@string/app_label"
                 android:defaultToDeviceProtectedStorage="true"
                 android:directBootAware="true">
Loading