| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
package android.security.keymaster; |
| 18 |
|
| 19 |
import android.compat.annotation.UnsupportedAppUsage; |
| 20 |
import android.os.Build; |
| 21 |
import android.os.Parcel; |
| 22 |
import android.os.Parcelable; |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
public class ExportResult implements Parcelable { |
| 29 |
public final int resultCode; |
| 30 |
public final byte[] exportData; |
| 31 |
|
| 32 |
public ExportResult(int resultCode) { |
| 33 |
this.resultCode = resultCode; |
| 34 |
this.exportData = new byte[0]; |
| 35 |
} |
| 36 |
|
| 37 |
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) |
| 38 |
public static final @android.annotation.NonNull Parcelable.Creator<ExportResult> CREATOR = new |
| 39 |
Parcelable.Creator<ExportResult>() { |
| 40 |
public ExportResult createFromParcel(Parcel in) { |
| 41 |
return new ExportResult(in); |
| 42 |
} |
| 43 |
|
| 44 |
public ExportResult[] newArray(int length) { |
| 45 |
return new ExportResult[length]; |
| 46 |
} |
| 47 |
}; |
| 48 |
|
| 49 |
protected ExportResult(Parcel in) { |
| 50 |
resultCode = in.readInt(); |
| 51 |
exportData = in.createByteArray(); |
| 52 |
} |
| 53 |
|
| 54 |
@Override |
| 55 |
public int describeContents() { |
| 56 |
return 0; |
| 57 |
} |
| 58 |
|
| 59 |
@Override |
| 60 |
public void writeToParcel(Parcel out, int flags) { |
| 61 |
out.writeInt(resultCode); |
| 62 |
out.writeByteArray(exportData); |
| 63 |
} |
| 64 |
} |