Skip to content

Commit 44a3e0d

Browse files
committed
Hide quota APIs until finalized.
Bug: 5383656 Change-Id: Ia2a978a6ff2ee642b0ea4d7d6b8857b7efffd612
1 parent 7d53513 commit 44a3e0d

File tree

4 files changed

+4
-22
lines changed

4 files changed

+4
-22
lines changed

api/14.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11541,7 +11541,6 @@ package android.net {
1154111541

1154211542
public class ConnectivityManager {
1154311543
method public android.net.NetworkInfo getActiveNetworkInfo();
11544-
method public android.net.NetworkQuotaInfo getActiveNetworkQuotaInfo();
1154511544
method public android.net.NetworkInfo[] getAllNetworkInfo();
1154611545
method public deprecated boolean getBackgroundDataSetting();
1154711546
method public android.net.NetworkInfo getNetworkInfo(int);
@@ -11701,16 +11700,6 @@ package android.net {
1170111700
enum_constant public static final android.net.NetworkInfo.State UNKNOWN;
1170211701
}
1170311702

11704-
public class NetworkQuotaInfo implements android.os.Parcelable {
11705-
method public int describeContents();
11706-
method public long getEstimatedBytes();
11707-
method public long getHardLimitBytes();
11708-
method public long getSoftLimitBytes();
11709-
method public void writeToParcel(android.os.Parcel, int);
11710-
field public static final android.os.Parcelable.Creator CREATOR;
11711-
field public static final long NO_LIMIT = -1L; // 0xffffffffffffffffL
11712-
}
11713-
1171411703
public class ParseException extends java.lang.RuntimeException {
1171511704
field public java.lang.String response;
1171611705
}

api/current.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11541,7 +11541,6 @@ package android.net {
1154111541

1154211542
public class ConnectivityManager {
1154311543
method public android.net.NetworkInfo getActiveNetworkInfo();
11544-
method public android.net.NetworkQuotaInfo getActiveNetworkQuotaInfo();
1154511544
method public android.net.NetworkInfo[] getAllNetworkInfo();
1154611545
method public deprecated boolean getBackgroundDataSetting();
1154711546
method public android.net.NetworkInfo getNetworkInfo(int);
@@ -11701,16 +11700,6 @@ package android.net {
1170111700
enum_constant public static final android.net.NetworkInfo.State UNKNOWN;
1170211701
}
1170311702

11704-
public class NetworkQuotaInfo implements android.os.Parcelable {
11705-
method public int describeContents();
11706-
method public long getEstimatedBytes();
11707-
method public long getHardLimitBytes();
11708-
method public long getSoftLimitBytes();
11709-
method public void writeToParcel(android.os.Parcel, int);
11710-
field public static final android.os.Parcelable.Creator CREATOR;
11711-
field public static final long NO_LIMIT = -1L; // 0xffffffffffffffffL
11712-
}
11713-
1171411703
public class ParseException extends java.lang.RuntimeException {
1171511704
field public java.lang.String response;
1171611705
}

core/java/android/net/ConnectivityManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,8 @@ public void setBackgroundDataSetting(boolean allowBackgroundData) {
548548
* Return quota status for the current active network, or {@code null} if no
549549
* network is active. Quota status can change rapidly, so these values
550550
* shouldn't be cached.
551+
*
552+
* @hide
551553
*/
552554
public NetworkQuotaInfo getActiveNetworkQuotaInfo() {
553555
try {

core/java/android/net/NetworkQuotaInfo.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
/**
2323
* Information about quota status on a specific network.
24+
*
25+
* @hide
2426
*/
2527
public class NetworkQuotaInfo implements Parcelable {
2628
private final long mEstimatedBytes;

0 commit comments

Comments
 (0)