| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
package android.content.pm; |
| 18 |
|
| 19 |
import android.annotation.IdRes; |
| 20 |
import android.annotation.NonNull; |
| 21 |
import android.os.Parcel; |
| 22 |
import android.os.Parcelable; |
| 23 |
|
| 24 |
import com.android.internal.util.DataClass; |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
@DataClass(genHiddenConstructor = true) |
| 31 |
public final class Attribution implements Parcelable { |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
private @NonNull String mTag; |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
private final @IdRes int mLabel; |
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
@DataClass.Generated.Member |
| 70 |
public Attribution( |
| 71 |
@NonNull String tag, |
| 72 |
@IdRes int label) { |
| 73 |
this.mTag = tag; |
| 74 |
com.android.internal.util.AnnotationValidations.validate( |
| 75 |
NonNull.class, null, mTag); |
| 76 |
this.mLabel = label; |
| 77 |
com.android.internal.util.AnnotationValidations.validate( |
| 78 |
IdRes.class, null, mLabel); |
| 79 |
|
| 80 |
|
| 81 |
} |
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
@DataClass.Generated.Member |
| 87 |
public @NonNull String getTag() { |
| 88 |
return mTag; |
| 89 |
} |
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
@DataClass.Generated.Member |
| 96 |
public @IdRes int getLabel() { |
| 97 |
return mLabel; |
| 98 |
} |
| 99 |
|
| 100 |
@Override |
| 101 |
@DataClass.Generated.Member |
| 102 |
public void writeToParcel(@NonNull Parcel dest, int flags) { |
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
dest.writeString(mTag); |
| 107 |
dest.writeInt(mLabel); |
| 108 |
} |
| 109 |
|
| 110 |
@Override |
| 111 |
@DataClass.Generated.Member |
| 112 |
public int describeContents() { return 0; } |
| 113 |
|
| 114 |
|
| 115 |
@SuppressWarnings({"unchecked", "RedundantCast"}) |
| 116 |
@DataClass.Generated.Member |
| 117 |
Attribution(@NonNull Parcel in) { |
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
String tag = in.readString(); |
| 122 |
int label = in.readInt(); |
| 123 |
|
| 124 |
this.mTag = tag; |
| 125 |
com.android.internal.util.AnnotationValidations.validate( |
| 126 |
NonNull.class, null, mTag); |
| 127 |
this.mLabel = label; |
| 128 |
com.android.internal.util.AnnotationValidations.validate( |
| 129 |
IdRes.class, null, mLabel); |
| 130 |
|
| 131 |
|
| 132 |
} |
| 133 |
|
| 134 |
@DataClass.Generated.Member |
| 135 |
public static final @NonNull Parcelable.Creator<Attribution> CREATOR |
| 136 |
= new Parcelable.Creator<Attribution>() { |
| 137 |
@Override |
| 138 |
public Attribution[] newArray(int size) { |
| 139 |
return new Attribution[size]; |
| 140 |
} |
| 141 |
|
| 142 |
@Override |
| 143 |
public Attribution createFromParcel(@NonNull Parcel in) { |
| 144 |
return new Attribution(in); |
| 145 |
} |
| 146 |
}; |
| 147 |
|
| 148 |
@DataClass.Generated( |
| 149 |
time = 1608139558081L, |
| 150 |
codegenVersion = "1.0.22", |
| 151 |
sourceFile = "frameworks/base/core/java/android/content/pm/Attribution.java", |
| 152 |
inputSignatures = "private @android.annotation.NonNull java.lang.String mTag\nprivate final @android.annotation.IdRes int mLabel\nclass Attribution extends java.lang.Object implements [android.os.Parcelable]\n@com.android.internal.util.DataClass(genHiddenConstructor=true)") |
| 153 |
@Deprecated |
| 154 |
private void __metadata() {} |
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
} |