diff options
author | Eric Shienbrood <> | 2009-04-13 18:12:47 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-04-13 18:12:47 -0700 |
commit | 99001278289036a3c645e599ed832943ff1b6e15 (patch) | |
tree | 2399f33f11ae3241eff1b417c2c3af310037be9b /core | |
parent | f78013cd5f6c0c490f8ed705468ced55d024875f (diff) | |
download | frameworks_base-99001278289036a3c645e599ed832943ff1b6e15.zip frameworks_base-99001278289036a3c645e599ed832943ff1b6e15.tar.gz frameworks_base-99001278289036a3c645e599ed832943ff1b6e15.tar.bz2 |
AI 145980: am: CL 145881 Adding on to CL 145383, unhiding some additional methods and constants
that ought to be exposed. Hid and deprecated the single-arg public
constructor for NetworkInfo, and modified a CTS test that was testing it.
Ran the android.net test package to make sure it still works.
Original author: ers
Merged from: //branches/cupcake/...
Automated import of CL 145980
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/net/NetworkInfo.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/core/java/android/net/NetworkInfo.java b/core/java/android/net/NetworkInfo.java index 8c82212..9f53937 100644 --- a/core/java/android/net/NetworkInfo.java +++ b/core/java/android/net/NetworkInfo.java @@ -114,8 +114,10 @@ public class NetworkInfo implements Parcelable { private boolean mIsAvailable; /** - * TODO This is going away as soon as API council review happens. * @param type network type + * @deprecated + * @hide because this constructor was only meant for internal use (and + * has now been superseded by the package-private constructor below). */ public NetworkInfo(int type) {} @@ -146,8 +148,6 @@ public class NetworkInfo implements Parcelable { * Return a network-type-specific integer describing the subtype * of the network. * @return the network subtype - * - * @hide pending API council review */ public int getSubtype() { return mSubtype; @@ -170,8 +170,6 @@ public class NetworkInfo implements Parcelable { /** * Return a human-readable name describing the subtype of the network. * @return the name of the network subtype - * - * @hide pending API council review */ public String getSubtypeName() { return mSubtypeName; @@ -251,8 +249,6 @@ public class NetworkInfo implements Parcelable { * When {@code true}, it suggests that use of data on this network * may incur extra costs. * @return {@code true} if roaming is in effect, {@code false} otherwise. - * - * @hide pending API council */ public boolean isRoaming() { return mIsRoaming; |