Loading core/api/current.txt +0 −1 Original line number Original line Diff line number Diff line Loading @@ -13615,7 +13615,6 @@ package android.credentials { public final class CreateCredentialRequest implements android.os.Parcelable { public final class CreateCredentialRequest implements android.os.Parcelable { ctor public CreateCredentialRequest(@NonNull String, @NonNull android.os.Bundle, @NonNull android.os.Bundle, boolean, boolean); ctor public CreateCredentialRequest(@NonNull String, @NonNull android.os.Bundle, @NonNull android.os.Bundle, boolean, boolean); ctor public CreateCredentialRequest(@NonNull String, @NonNull android.os.Bundle, @NonNull android.os.Bundle, boolean); method public boolean alwaysSendAppInfoToProvider(); method public boolean alwaysSendAppInfoToProvider(); method public int describeContents(); method public int describeContents(); method @NonNull public android.os.Bundle getCandidateQueryData(); method @NonNull public android.os.Bundle getCandidateQueryData(); core/java/android/credentials/CreateCredentialRequest.java +0 −21 Original line number Original line Diff line number Diff line Loading @@ -182,27 +182,6 @@ public final class CreateCredentialRequest implements Parcelable { mAlwaysSendAppInfoToProvider = alwaysSendAppInfoToProvider; mAlwaysSendAppInfoToProvider = alwaysSendAppInfoToProvider; } } /** * Constructs a {@link CreateCredentialRequest}. * * @param type the requested credential type * @param credentialData the full credential creation request data * @param candidateQueryData the partial request data that will be sent to the provider * during the initial creation candidate query stage * @param isSystemProviderRequired whether the request must only be fulfilled by a system * provider * * @throws IllegalArgumentException If type is empty. */ public CreateCredentialRequest( @NonNull String type, @NonNull Bundle credentialData, @NonNull Bundle candidateQueryData, boolean isSystemProviderRequired) { this(type, credentialData, candidateQueryData, isSystemProviderRequired, /*mAlwaysSendAppInfoToProvider=*/true); } private CreateCredentialRequest(@NonNull Parcel in) { private CreateCredentialRequest(@NonNull Parcel in) { String type = in.readString8(); String type = in.readString8(); Bundle credentialData = in.readBundle(); Bundle credentialData = in.readBundle(); Loading core/java/android/service/credentials/BeginCreateCredentialRequest.java +7 −1 Original line number Original line Diff line number Diff line Loading @@ -100,7 +100,13 @@ public class BeginCreateCredentialRequest implements Parcelable { dest.writeBundle(mData); dest.writeBundle(mData); } } /** Returns the info pertaining to the calling app. */ /** * Returns the info pertaining to the calling app. * * This value can be null when this instance is set on a {@link BeginGetCredentialRequest} or * a {@link BeginCreateCredentialRequest} if the caller of the API does not wish to propagate * this information to a credential provider. */ @Nullable @Nullable public CallingAppInfo getCallingAppInfo() { public CallingAppInfo getCallingAppInfo() { return mCallingAppInfo; return mCallingAppInfo; Loading core/java/android/service/credentials/CallingAppInfo.java +7 −2 Original line number Original line Diff line number Diff line Loading @@ -21,6 +21,10 @@ import android.content.pm.SigningInfo; import android.os.Parcel; import android.os.Parcel; import android.os.Parcelable; import android.os.Parcelable; import com.android.internal.util.Preconditions; import java.util.Objects; /** /** * Information pertaining to the calling application, including the package name and a list of * Information pertaining to the calling application, including the package name and a list of * app signatures. * app signatures. Loading @@ -37,8 +41,9 @@ public final class CallingAppInfo implements Parcelable { */ */ public CallingAppInfo(@NonNull String packageName, public CallingAppInfo(@NonNull String packageName, @NonNull SigningInfo signingInfo) { @NonNull SigningInfo signingInfo) { mPackageName = packageName; mPackageName = Preconditions.checkStringNotEmpty(packageName, "package name" mSigningInfo = signingInfo; + "must not be null or empty"); mSigningInfo = Objects.requireNonNull(signingInfo); } } private CallingAppInfo(@NonNull Parcel in) { private CallingAppInfo(@NonNull Parcel in) { Loading packages/CredentialManager/src/com/android/credentialmanager/CredentialManagerRepo.kt +6 −3 Original line number Original line Diff line number Diff line Loading @@ -407,7 +407,8 @@ class CredentialManagerRepo( "androidx.credentials.TYPE_PUBLIC_KEY_CREDENTIAL", "androidx.credentials.TYPE_PUBLIC_KEY_CREDENTIAL", credentialData, credentialData, /*candidateQueryData=*/ Bundle(), /*candidateQueryData=*/ Bundle(), /*isSystemProviderRequired=*/ false /*isSystemProviderRequired=*/ false, /*alwaysSendAppInfoToProvider=*/ true ), ), "com.google.android.youtube" "com.google.android.youtube" ) ) Loading @@ -421,7 +422,8 @@ class CredentialManagerRepo( TYPE_PASSWORD_CREDENTIAL, TYPE_PASSWORD_CREDENTIAL, request.credentialData, request.credentialData, request.candidateQueryData, request.candidateQueryData, /*isSystemProviderRequired=*/ false /*isSystemProviderRequired=*/ false, /*alwaysSendAppInfoToProvider=*/ true ), ), "com.google.android.youtube" "com.google.android.youtube" ) ) Loading @@ -440,7 +442,8 @@ class CredentialManagerRepo( "other-sign-ins", "other-sign-ins", data, data, /*candidateQueryData=*/ Bundle(), /*candidateQueryData=*/ Bundle(), /*isSystemProviderRequired=*/ false /*isSystemProviderRequired=*/ false, /*alwaysSendAppInfoToProvider=*/ true ), ), "com.google.android.youtube" "com.google.android.youtube" ) ) Loading Loading
core/api/current.txt +0 −1 Original line number Original line Diff line number Diff line Loading @@ -13615,7 +13615,6 @@ package android.credentials { public final class CreateCredentialRequest implements android.os.Parcelable { public final class CreateCredentialRequest implements android.os.Parcelable { ctor public CreateCredentialRequest(@NonNull String, @NonNull android.os.Bundle, @NonNull android.os.Bundle, boolean, boolean); ctor public CreateCredentialRequest(@NonNull String, @NonNull android.os.Bundle, @NonNull android.os.Bundle, boolean, boolean); ctor public CreateCredentialRequest(@NonNull String, @NonNull android.os.Bundle, @NonNull android.os.Bundle, boolean); method public boolean alwaysSendAppInfoToProvider(); method public boolean alwaysSendAppInfoToProvider(); method public int describeContents(); method public int describeContents(); method @NonNull public android.os.Bundle getCandidateQueryData(); method @NonNull public android.os.Bundle getCandidateQueryData();
core/java/android/credentials/CreateCredentialRequest.java +0 −21 Original line number Original line Diff line number Diff line Loading @@ -182,27 +182,6 @@ public final class CreateCredentialRequest implements Parcelable { mAlwaysSendAppInfoToProvider = alwaysSendAppInfoToProvider; mAlwaysSendAppInfoToProvider = alwaysSendAppInfoToProvider; } } /** * Constructs a {@link CreateCredentialRequest}. * * @param type the requested credential type * @param credentialData the full credential creation request data * @param candidateQueryData the partial request data that will be sent to the provider * during the initial creation candidate query stage * @param isSystemProviderRequired whether the request must only be fulfilled by a system * provider * * @throws IllegalArgumentException If type is empty. */ public CreateCredentialRequest( @NonNull String type, @NonNull Bundle credentialData, @NonNull Bundle candidateQueryData, boolean isSystemProviderRequired) { this(type, credentialData, candidateQueryData, isSystemProviderRequired, /*mAlwaysSendAppInfoToProvider=*/true); } private CreateCredentialRequest(@NonNull Parcel in) { private CreateCredentialRequest(@NonNull Parcel in) { String type = in.readString8(); String type = in.readString8(); Bundle credentialData = in.readBundle(); Bundle credentialData = in.readBundle(); Loading
core/java/android/service/credentials/BeginCreateCredentialRequest.java +7 −1 Original line number Original line Diff line number Diff line Loading @@ -100,7 +100,13 @@ public class BeginCreateCredentialRequest implements Parcelable { dest.writeBundle(mData); dest.writeBundle(mData); } } /** Returns the info pertaining to the calling app. */ /** * Returns the info pertaining to the calling app. * * This value can be null when this instance is set on a {@link BeginGetCredentialRequest} or * a {@link BeginCreateCredentialRequest} if the caller of the API does not wish to propagate * this information to a credential provider. */ @Nullable @Nullable public CallingAppInfo getCallingAppInfo() { public CallingAppInfo getCallingAppInfo() { return mCallingAppInfo; return mCallingAppInfo; Loading
core/java/android/service/credentials/CallingAppInfo.java +7 −2 Original line number Original line Diff line number Diff line Loading @@ -21,6 +21,10 @@ import android.content.pm.SigningInfo; import android.os.Parcel; import android.os.Parcel; import android.os.Parcelable; import android.os.Parcelable; import com.android.internal.util.Preconditions; import java.util.Objects; /** /** * Information pertaining to the calling application, including the package name and a list of * Information pertaining to the calling application, including the package name and a list of * app signatures. * app signatures. Loading @@ -37,8 +41,9 @@ public final class CallingAppInfo implements Parcelable { */ */ public CallingAppInfo(@NonNull String packageName, public CallingAppInfo(@NonNull String packageName, @NonNull SigningInfo signingInfo) { @NonNull SigningInfo signingInfo) { mPackageName = packageName; mPackageName = Preconditions.checkStringNotEmpty(packageName, "package name" mSigningInfo = signingInfo; + "must not be null or empty"); mSigningInfo = Objects.requireNonNull(signingInfo); } } private CallingAppInfo(@NonNull Parcel in) { private CallingAppInfo(@NonNull Parcel in) { Loading
packages/CredentialManager/src/com/android/credentialmanager/CredentialManagerRepo.kt +6 −3 Original line number Original line Diff line number Diff line Loading @@ -407,7 +407,8 @@ class CredentialManagerRepo( "androidx.credentials.TYPE_PUBLIC_KEY_CREDENTIAL", "androidx.credentials.TYPE_PUBLIC_KEY_CREDENTIAL", credentialData, credentialData, /*candidateQueryData=*/ Bundle(), /*candidateQueryData=*/ Bundle(), /*isSystemProviderRequired=*/ false /*isSystemProviderRequired=*/ false, /*alwaysSendAppInfoToProvider=*/ true ), ), "com.google.android.youtube" "com.google.android.youtube" ) ) Loading @@ -421,7 +422,8 @@ class CredentialManagerRepo( TYPE_PASSWORD_CREDENTIAL, TYPE_PASSWORD_CREDENTIAL, request.credentialData, request.credentialData, request.candidateQueryData, request.candidateQueryData, /*isSystemProviderRequired=*/ false /*isSystemProviderRequired=*/ false, /*alwaysSendAppInfoToProvider=*/ true ), ), "com.google.android.youtube" "com.google.android.youtube" ) ) Loading @@ -440,7 +442,8 @@ class CredentialManagerRepo( "other-sign-ins", "other-sign-ins", data, data, /*candidateQueryData=*/ Bundle(), /*candidateQueryData=*/ Bundle(), /*isSystemProviderRequired=*/ false /*isSystemProviderRequired=*/ false, /*alwaysSendAppInfoToProvider=*/ true ), ), "com.google.android.youtube" "com.google.android.youtube" ) ) Loading