Exposed UnsafeStateException as a public API.
And some related APIs as @TestAPI. Test: m update-api Bug: 172376923 Change-Id: I3fc5806e2d34e161a409f49ada263d430ec9bc02
This commit is contained in:
@@ -7399,6 +7399,12 @@ package android.app.admin {
|
||||
field public static final int ERROR_UNKNOWN = 1; // 0x1
|
||||
}
|
||||
|
||||
public final class UnsafeStateException extends java.lang.IllegalStateException implements android.os.Parcelable {
|
||||
method public int describeContents();
|
||||
method public void writeToParcel(@NonNull android.os.Parcel, int);
|
||||
field @NonNull public static final android.os.Parcelable.Creator<android.app.admin.UnsafeStateException> CREATOR;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
package android.app.assist {
|
||||
|
||||
@@ -7399,6 +7399,12 @@ package android.app.admin {
|
||||
field public static final int ERROR_UNKNOWN = 1; // 0x1
|
||||
}
|
||||
|
||||
public final class UnsafeStateException extends java.lang.IllegalStateException implements android.os.Parcelable {
|
||||
method public int describeContents();
|
||||
method public void writeToParcel(@NonNull android.os.Parcel, int);
|
||||
field @NonNull public static final android.os.Parcelable.Creator<android.app.admin.UnsafeStateException> CREATOR;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
package android.app.assist {
|
||||
|
||||
@@ -368,12 +368,17 @@ package android.app.admin {
|
||||
method public boolean isCurrentInputMethodSetByOwner();
|
||||
method public boolean isFactoryResetProtectionPolicySupported();
|
||||
field public static final String ACTION_DATA_SHARING_RESTRICTION_APPLIED = "android.app.action.DATA_SHARING_RESTRICTION_APPLIED";
|
||||
field public static final int OPERATION_LOCK_NOW = 1; // 0x1
|
||||
}
|
||||
|
||||
public static final class SecurityLog.SecurityEvent implements android.os.Parcelable {
|
||||
ctor public SecurityLog.SecurityEvent(long, byte[]);
|
||||
}
|
||||
|
||||
public final class UnsafeStateException extends java.lang.IllegalStateException implements android.os.Parcelable {
|
||||
method public int getOperation();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
package android.app.blob {
|
||||
|
||||
@@ -2452,7 +2452,7 @@ public class DevicePolicyManager {
|
||||
public @interface PersonalAppsSuspensionReason {}
|
||||
|
||||
/** @hide */
|
||||
// TODO(b/172376923): make it TestApi
|
||||
@TestApi
|
||||
public static final int OPERATION_LOCK_NOW = 1;
|
||||
|
||||
// TODO(b/172376923) - add all operations
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
package android.app.admin;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.TestApi;
|
||||
import android.app.admin.DevicePolicyManager.DevicePolicyOperation;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
@@ -27,10 +28,7 @@ import android.os.Parcelable;
|
||||
* <p>For example, it can be thrown on
|
||||
* {@link android.content.pm.PackageManager#FEATURE_AUTOMOTIVE automotive devices} when the vehicle
|
||||
* is moving.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
// TODO(b/172376923): make it public
|
||||
@SuppressWarnings("serial")
|
||||
public final class UnsafeStateException extends IllegalStateException implements Parcelable {
|
||||
|
||||
@@ -44,7 +42,7 @@ public final class UnsafeStateException extends IllegalStateException implements
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
// TODO(b/172376923): make it TestApi
|
||||
@TestApi
|
||||
public @DevicePolicyOperation int getOperation() {
|
||||
return mOperation;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user