1/* 2 * Copyright (C) 2011 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 17package android.net; 18 19import android.os.Parcel; 20import android.os.Parcelable; 21 22/** 23 * @deprecated nobody should be using this, but keep it around returning stub 24 * values to prevent app crashes. 25 * @hide 26 */ 27@Deprecated 28public class NetworkQuotaInfo implements Parcelable { 29 public static final long NO_LIMIT = -1; 30 31 /** {@hide} */ 32 public NetworkQuotaInfo() { 33 } 34 35 /** {@hide} */ 36 public NetworkQuotaInfo(Parcel in) { 37 } 38 39 public long getEstimatedBytes() { 40 return 0; 41 } 42 43 public long getSoftLimitBytes() { 44 return NO_LIMIT; 45 } 46 47 public long getHardLimitBytes() { 48 return NO_LIMIT; 49 } 50 51 @Override 52 public int describeContents() { 53 return 0; 54 } 55 56 @Override 57 public void writeToParcel(Parcel out, int flags) { 58 } 59 60 public static final Creator<NetworkQuotaInfo> CREATOR = new Creator<NetworkQuotaInfo>() { 61 @Override 62 public NetworkQuotaInfo createFromParcel(Parcel in) { 63 return new NetworkQuotaInfo(in); 64 } 65 66 @Override 67 public NetworkQuotaInfo[] newArray(int size) { 68 return new NetworkQuotaInfo[size]; 69 } 70 }; 71} 72