1 /* 2 * Copyright 2022 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package android.credentials.ui; 18 19 import android.annotation.NonNull; 20 import android.annotation.TestApi; 21 import android.os.Parcel; 22 import android.os.Parcelable; 23 24 /** 25 * Metadata of a disabled provider. 26 * 27 * @hide 28 */ 29 @TestApi 30 public final class DisabledProviderData extends ProviderData implements Parcelable { 31 DisabledProviderData( @onNull String providerFlattenedComponentName)32 public DisabledProviderData( 33 @NonNull String providerFlattenedComponentName) { 34 super(providerFlattenedComponentName); 35 } 36 DisabledProviderData(@onNull Parcel in)37 private DisabledProviderData(@NonNull Parcel in) { 38 super(in); 39 } 40 41 @Override writeToParcel(@onNull Parcel dest, int flags)42 public void writeToParcel(@NonNull Parcel dest, int flags) { 43 super.writeToParcel(dest, flags); 44 } 45 46 @Override describeContents()47 public int describeContents() { 48 return 0; 49 } 50 51 public static final @NonNull Creator<DisabledProviderData> CREATOR = new Creator<>() { 52 @Override 53 public DisabledProviderData createFromParcel(@NonNull Parcel in) { 54 return new DisabledProviderData(in); 55 } 56 57 @Override 58 public DisabledProviderData[] newArray(int size) { 59 return new DisabledProviderData[size]; 60 } 61 }; 62 } 63