| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
package android.os; |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
public final class CarrierAssociatedAppEntry implements Parcelable { |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
public static final int SDK_UNSPECIFIED = -1; |
| 30 |
|
| 31 |
public final String packageName; |
| 32 |
|
| 33 |
public final int addedInSdk; |
| 34 |
|
| 35 |
public CarrierAssociatedAppEntry(String packageName, int addedInSdk) { |
| 36 |
this.packageName = packageName; |
| 37 |
this.addedInSdk = addedInSdk; |
| 38 |
} |
| 39 |
|
| 40 |
public CarrierAssociatedAppEntry(Parcel in) { |
| 41 |
packageName = in.readString(); |
| 42 |
addedInSdk = in.readInt(); |
| 43 |
} |
| 44 |
|
| 45 |
@Override |
| 46 |
public int describeContents() { |
| 47 |
return 0; |
| 48 |
} |
| 49 |
|
| 50 |
@Override |
| 51 |
public void writeToParcel(Parcel dest, int flags) { |
| 52 |
dest.writeString(packageName); |
| 53 |
dest.writeInt(addedInSdk); |
| 54 |
} |
| 55 |
|
| 56 |
public static final Parcelable.Creator<CarrierAssociatedAppEntry> CREATOR = |
| 57 |
new Parcelable.Creator<CarrierAssociatedAppEntry>() { |
| 58 |
@Override |
| 59 |
public CarrierAssociatedAppEntry createFromParcel(Parcel source) { |
| 60 |
return new CarrierAssociatedAppEntry(source); |
| 61 |
} |
| 62 |
|
| 63 |
@Override |
| 64 |
public CarrierAssociatedAppEntry[] newArray(int size) { |
| 65 |
return new CarrierAssociatedAppEntry[size]; |
| 66 |
} |
| 67 |
}; |
| 68 |
} |