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

Commit 8deb2ecb authored by Abhijeet Kaur's avatar Abhijeet Kaur Committed by android-build-merger
Browse files

Merge "Clean up bugreport API."

am: 2e448380

Change-Id: Ib21ecea8a3dc63808784aba20f018ddd012c03c8
parents 3ffddc24 2e448380
Loading
Loading
Loading
Loading
+3 −6
Original line number Original line Diff line number Diff line
@@ -4012,7 +4012,7 @@ package android.os {
    field public static final String EXTRA_EVENT_TIMESTAMP = "android.os.extra.EVENT_TIMESTAMP";
    field public static final String EXTRA_EVENT_TIMESTAMP = "android.os.extra.EVENT_TIMESTAMP";
  }
  }
  public class BugreportManager {
  public final class BugreportManager {
    method @RequiresPermission(android.Manifest.permission.DUMP) public void cancelBugreport();
    method @RequiresPermission(android.Manifest.permission.DUMP) public void cancelBugreport();
    method @RequiresPermission(android.Manifest.permission.DUMP) public void startBugreport(@NonNull android.os.ParcelFileDescriptor, @Nullable android.os.ParcelFileDescriptor, @NonNull android.os.BugreportParams, @NonNull java.util.concurrent.Executor, @NonNull android.os.BugreportManager.BugreportCallback);
    method @RequiresPermission(android.Manifest.permission.DUMP) public void startBugreport(@NonNull android.os.ParcelFileDescriptor, @Nullable android.os.ParcelFileDescriptor, @NonNull android.os.BugreportParams, @NonNull java.util.concurrent.Executor, @NonNull android.os.BugreportManager.BugreportCallback);
  }
  }
@@ -4021,7 +4021,7 @@ package android.os {
    ctor public BugreportManager.BugreportCallback();
    ctor public BugreportManager.BugreportCallback();
    method public void onError(int);
    method public void onError(int);
    method public void onFinished();
    method public void onFinished();
    method public void onProgress(float);
    method public void onProgress(@FloatRange(from=0.0f, to=100.0f) float);
    field public static final int BUGREPORT_ERROR_ANOTHER_REPORT_IN_PROGRESS = 5; // 0x5
    field public static final int BUGREPORT_ERROR_ANOTHER_REPORT_IN_PROGRESS = 5; // 0x5
    field public static final int BUGREPORT_ERROR_INVALID_INPUT = 1; // 0x1
    field public static final int BUGREPORT_ERROR_INVALID_INPUT = 1; // 0x1
    field public static final int BUGREPORT_ERROR_RUNTIME = 2; // 0x2
    field public static final int BUGREPORT_ERROR_RUNTIME = 2; // 0x2
@@ -4030,7 +4030,7 @@ package android.os {
  }
  }
  public final class BugreportParams {
  public final class BugreportParams {
    ctor public BugreportParams(@android.os.BugreportParams.BugreportMode int);
    ctor public BugreportParams(int);
    method public int getMode();
    method public int getMode();
    field public static final int BUGREPORT_MODE_FULL = 0; // 0x0
    field public static final int BUGREPORT_MODE_FULL = 0; // 0x0
    field public static final int BUGREPORT_MODE_INTERACTIVE = 1; // 0x1
    field public static final int BUGREPORT_MODE_INTERACTIVE = 1; // 0x1
@@ -4040,9 +4040,6 @@ package android.os {
    field public static final int BUGREPORT_MODE_WIFI = 5; // 0x5
    field public static final int BUGREPORT_MODE_WIFI = 5; // 0x5
  }
  }
  @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef(prefix={"BUGREPORT_MODE_"}, value={android.os.BugreportParams.BUGREPORT_MODE_FULL, android.os.BugreportParams.BUGREPORT_MODE_INTERACTIVE, android.os.BugreportParams.BUGREPORT_MODE_REMOTE, android.os.BugreportParams.BUGREPORT_MODE_WEAR, android.os.BugreportParams.BUGREPORT_MODE_TELEPHONY, android.os.BugreportParams.BUGREPORT_MODE_WIFI}) public static @interface BugreportParams.BugreportMode {
  }
  public final class ConfigUpdate {
  public final class ConfigUpdate {
    field public static final String ACTION_UPDATE_CARRIER_ID_DB = "android.os.action.UPDATE_CARRIER_ID_DB";
    field public static final String ACTION_UPDATE_CARRIER_ID_DB = "android.os.action.UPDATE_CARRIER_ID_DB";
    field public static final String ACTION_UPDATE_CARRIER_PROVISIONING_URLS = "android.intent.action.UPDATE_CARRIER_PROVISIONING_URLS";
    field public static final String ACTION_UPDATE_CARRIER_PROVISIONING_URLS = "android.intent.action.UPDATE_CARRIER_PROVISIONING_URLS";
+3 −2
Original line number Original line Diff line number Diff line
@@ -17,6 +17,7 @@
package android.os;
package android.os;


import android.annotation.CallbackExecutor;
import android.annotation.CallbackExecutor;
import android.annotation.FloatRange;
import android.annotation.IntDef;
import android.annotation.IntDef;
import android.annotation.NonNull;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.Nullable;
@@ -39,7 +40,7 @@ import java.util.concurrent.Executor;
 */
 */
@SystemApi
@SystemApi
@SystemService(Context.BUGREPORT_SERVICE)
@SystemService(Context.BUGREPORT_SERVICE)
public class BugreportManager {
public final class BugreportManager {
    private final Context mContext;
    private final Context mContext;
    private final IDumpstate mBinder;
    private final IDumpstate mBinder;


@@ -90,7 +91,7 @@ public class BugreportManager {
         * Called when there is a progress update.
         * Called when there is a progress update.
         * @param progress the progress in [0.0, 100.0]
         * @param progress the progress in [0.0, 100.0]
         */
         */
        public void onProgress(float progress) {}
        public void onProgress(@FloatRange(from = 0f, to = 100f) float progress) {}


        /**
        /**
         * Called when taking bugreport resulted in an error.
         * Called when taking bugreport resulted in an error.
+1 −0
Original line number Original line Diff line number Diff line
@@ -41,6 +41,7 @@ public final class BugreportParams {


    /**
    /**
     * Defines acceptable types of bugreports.
     * Defines acceptable types of bugreports.
     * @hide
     */
     */
    @Retention(RetentionPolicy.SOURCE)
    @Retention(RetentionPolicy.SOURCE)
    @IntDef(prefix = { "BUGREPORT_MODE_" }, value = {
    @IntDef(prefix = { "BUGREPORT_MODE_" }, value = {