Merge "Mark CTS-tested APIs as @TestApi" into pi-dev

am: 98831af78b

Change-Id: Ia2cd2684380aca372e912af9aeda343246df924e
This commit is contained in:
Shawn Willden
2018-04-11 12:13:54 -07:00
committed by android-build-merger
3 changed files with 18 additions and 0 deletions

View File

@@ -719,6 +719,15 @@ package android.provider {
}
package android.security {
public class KeyStoreException extends java.lang.Exception {
ctor public KeyStoreException(int, java.lang.String);
method public int getErrorCode();
}
}
package android.security.keystore {
public abstract class AttestationUtils {
@@ -728,6 +737,10 @@ package android.security.keystore {
field public static final int ID_TYPE_SERIAL = 1; // 0x1
}
public static final class KeyGenParameterSpec.Builder {
method public android.security.keystore.KeyGenParameterSpec.Builder setUniqueIdIncluded(boolean);
}
public final class KeyProtection implements java.security.KeyStore.ProtectionParameter {
method public long getBoundToSpecificSecureUserId();
}

View File

@@ -16,12 +16,15 @@
package android.security;
import android.annotation.TestApi;
/**
* KeyStore/keymaster exception with positive error codes coming from the KeyStore and negative
* ones from keymaster.
*
* @hide
*/
@TestApi
public class KeyStoreException extends Exception {
private final int mErrorCode;

View File

@@ -19,6 +19,7 @@ package android.security.keystore;
import android.annotation.IntRange;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.TestApi;
import android.app.KeyguardManager;
import android.hardware.fingerprint.FingerprintManager;
import android.security.GateKeeper;
@@ -1227,6 +1228,7 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec, UserAu
*
* Sets whether to include a temporary unique ID field in the attestation certificate.
*/
@TestApi
@NonNull
public Builder setUniqueIdIncluded(boolean uniqueIdIncluded) {
mUniqueIdIncluded = uniqueIdIncluded;