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