Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51b28245 authored by Reema Bajwa's avatar Reema Bajwa Committed by Automerger Merge Worker
Browse files

Merge "Add documentation for slice construction in the framework" into...

Merge "Add documentation for slice construction in the framework" into udc-qpr-dev am: 6bf2d136 am: 84241891

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/24527706



Change-Id: Ie07469a1d4b63f45bf8eb0f6110b51537de18150
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 8004a39a 84241891
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -46,7 +46,14 @@ public final class Action implements Parcelable {
     * <p> See details on usage of {@code Action} for various actionable entries in
     * {@link BeginCreateCredentialResponse} and {@link BeginGetCredentialResponse}.
     *
     * @param slice the display content to be displayed on the UI, along with this action
     * @param slice the slice containing the metadata to be shown on the UI, must be constructed
     *              through the {@link androidx.credentials.provider} Jetpack library;
     *              If constructed manually, the {@code slice} object must
     *              contain the non-null properties of the
     *              {@link androidx.credentials.provider.Action} class populated as slice items
     *              against specific hints as used in the class's {@code toSlice} method,
     *              since the Android System uses this library to parse the {@code slice} and
     *              extract the required attributes
     */
    public Action(@NonNull Slice slice) {
        Objects.requireNonNull(slice, "slice must not be null");
+8 −1
Original line number Diff line number Diff line
@@ -66,7 +66,14 @@ public final class CreateEntry implements Parcelable {
    /**
     * Constructs a CreateEntry to be displayed on the UI.
     *
     * @param slice the display content to be displayed on the UI, along with this entry
     * @param slice the slice containing the metadata to be shown on the UI, must be constructed
     *              through the {@link androidx.credentials.provider} Jetpack library;
     *              If constructed manually, the {@code slice} object must
     *              contain the non-null properties of the
     *              {@link androidx.credentials.provider.CreateEntry} class populated as slice items
     *              against specific hints as used in the class's {@code toSlice} method,
     *              since the Android System uses this library to parse the {@code slice} and
     *              extract the required attributes
     */
    public CreateEntry(
            @NonNull Slice slice) {
+8 −2
Original line number Diff line number Diff line
@@ -69,8 +69,14 @@ public final class CredentialEntry implements Parcelable {
     *                                   receive the complete corresponding
     *                                   {@link GetCredentialRequest}.
     * @param type the type of the credential for which this credential entry is being created
     * @param slice the slice containing the metadata to be shown on the UI. Must be
     *              constructed through the androidx.credentials jetpack library.
     * @param slice the slice containing the metadata to be shown on the UI, must be constructed
     *              through the {@link androidx.credentials.provider} Jetpack library;
     *              If constructed manually, the {@code slice} object must
     *              contain the non-null properties of the
     *              {@link androidx.credentials.provider.CredentialEntry} class populated as slice
     *              items against specific hints as used in the class's {@code toSlice} method,
     *              since the Android System uses this library to parse the {@code slice} and
     *              extract the required attributes
     *
     * @throws IllegalArgumentException If {@code beginGetCredentialOptionId} or {@code type}
     * is null, or empty
+8 −1
Original line number Diff line number Diff line
@@ -73,7 +73,14 @@ public final class RemoteEntry implements Parcelable {
    /**
     * Constructs a RemoteEntry to be displayed on the UI.
     *
     * @param slice the display content to be displayed on the UI, along with this entry
     * @param slice the slice containing the metadata to be shown on the UI, must be constructed
     *              through the {@link androidx.credentials.provider} Jetpack library;
     *              If constructed manually, the {@code slice} object must
     *              contain the non-null properties of the
     *              {@link androidx.credentials.provider.RemoteEntry} class populated as slice items
     *              against specific hints as used in the class's {@code toSlice} method,
     *              since the Android System uses this library to parse the {@code slice} and
     *              extract the required attributes
     */
    public RemoteEntry(
            @NonNull Slice slice) {