| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
package android.net; |
| 18 |
|
| 19 |
import android.compat.annotation.UnsupportedAppUsage; |
| 20 |
import android.os.Build; |
| 21 |
import android.os.Parcel; |
| 22 |
import android.os.Parcelable; |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
@Deprecated |
| 30 |
public class NetworkQuotaInfo implements Parcelable { |
| 31 |
public static final long NO_LIMIT = -1; |
| 32 |
|
| 33 |
|
| 34 |
public NetworkQuotaInfo() { |
| 35 |
} |
| 36 |
|
| 37 |
|
| 38 |
public NetworkQuotaInfo(Parcel in) { |
| 39 |
} |
| 40 |
|
| 41 |
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) |
| 42 |
public long getEstimatedBytes() { |
| 43 |
return 0; |
| 44 |
} |
| 45 |
|
| 46 |
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) |
| 47 |
public long getSoftLimitBytes() { |
| 48 |
return NO_LIMIT; |
| 49 |
} |
| 50 |
|
| 51 |
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) |
| 52 |
public long getHardLimitBytes() { |
| 53 |
return NO_LIMIT; |
| 54 |
} |
| 55 |
|
| 56 |
@Override |
| 57 |
public int describeContents() { |
| 58 |
return 0; |
| 59 |
} |
| 60 |
|
| 61 |
@Override |
| 62 |
public void writeToParcel(Parcel out, int flags) { |
| 63 |
} |
| 64 |
|
| 65 |
@UnsupportedAppUsage |
| 66 |
public static final @android.annotation.NonNull Creator<NetworkQuotaInfo> CREATOR = new Creator<NetworkQuotaInfo>() { |
| 67 |
@Override |
| 68 |
public NetworkQuotaInfo createFromParcel(Parcel in) { |
| 69 |
return new NetworkQuotaInfo(in); |
| 70 |
} |
| 71 |
|
| 72 |
@Override |
| 73 |
public NetworkQuotaInfo[] newArray(int size) { |
| 74 |
return new NetworkQuotaInfo[size]; |
| 75 |
} |
| 76 |
}; |
| 77 |
} |