Add BUGREPORT_OPTION_WEAR so that Wear can customize its bugreporting.

b/30041885

Change-Id: I4ffa7b5c8ddad35e32f0f31ce904848ff40ad734
This commit is contained in:
Wei Liu
2016-07-08 11:44:20 -07:00
parent 5a4cfd36c2
commit 967fc8dd62
2 changed files with 10 additions and 1 deletions

View File

@@ -93,7 +93,8 @@ public class ActivityManager {
@IntDef({
BUGREPORT_OPTION_FULL,
BUGREPORT_OPTION_INTERACTIVE,
BUGREPORT_OPTION_REMOTE
BUGREPORT_OPTION_REMOTE,
BUGREPORT_OPTION_WEAR
})
public @interface BugreportMode {}
/**
@@ -114,6 +115,11 @@ public class ActivityManager {
* @hide
*/
public static final int BUGREPORT_OPTION_REMOTE = 2;
/**
* Takes a bugreport on a wearable device.
* @hide
*/
public static final int BUGREPORT_OPTION_WEAR = 3;
/**
* <a href="{@docRoot}guide/topics/manifest/meta-data-element.html">{@code

View File

@@ -12036,6 +12036,9 @@ public final class ActivityManagerService extends ActivityManagerNative
case ActivityManager.BUGREPORT_OPTION_REMOTE:
service = "bugreportremote";
break;
case ActivityManager.BUGREPORT_OPTION_WEAR:
service = "bugreportwear";
break;
}
if (service == null) {
throw new IllegalArgumentException("Provided bugreport type is not correct, value: "