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

Commit 46985f32 authored by android-build-team Robot's avatar android-build-team Robot Committed by Android (Google) Code Review
Browse files

Merge "Provide method to read AppOpsManager._NUM_OP"

parents 1515a28e 2457681e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -62,6 +62,7 @@ package android.app {
  }

  public class AppOpsManager {
    method public static int getNumOps();
    method public static java.lang.String[] getOpStrs();
    method public boolean isOperationActive(int, int, java.lang.String);
    method public static java.lang.String opToPermission(int);
@@ -115,7 +116,6 @@ package android.app {
    field public static final java.lang.String OPSTR_WRITE_WALLPAPER = "android:write_wallpaper";
    field public static final int OP_RECORD_AUDIO = 27; // 0x1b
    field public static final int OP_SYSTEM_ALERT_WINDOW = 24; // 0x18
    field public static final int _NUM_OP = 78; // 0x4e
  }

  public static abstract interface AppOpsManager.OnOpActiveChangedListener {
+10 −1
Original line number Diff line number Diff line
@@ -340,7 +340,6 @@ public class AppOpsManager {
    /** @hide */
    public static final int OP_BLUETOOTH_SCAN = 77;
    /** @hide */
    @TestApi
    public static final int _NUM_OP = 78;

    /** Access to coarse location information. */
@@ -2511,6 +2510,16 @@ public class AppOpsManager {
        return Arrays.copyOf(sOpToString, sOpToString.length);
    }


    /**
     * @return number of App ops
     * @hide
     */
    @TestApi
    public static int getNumOps() {
        return _NUM_OP;
    }

    /**
     * @hide
     */