Merge "Make APIs in the base CellInfo class public."

This commit is contained in:
Amit Mahajan
2019-11-04 18:21:36 +00:00
committed by Gerrit Code Review
2 changed files with 8 additions and 2 deletions

View File

@@ -44296,6 +44296,8 @@ package android.telephony {
public abstract class CellInfo implements android.os.Parcelable { public abstract class CellInfo implements android.os.Parcelable {
method public int describeContents(); method public int describeContents();
method public int getCellConnectionStatus(); method public int getCellConnectionStatus();
method @NonNull public abstract android.telephony.CellIdentity getCellIdentity();
method @NonNull public abstract android.telephony.CellSignalStrength getCellSignalStrength();
method public long getTimeStamp(); method public long getTimeStamp();
method public boolean isRegistered(); method public boolean isRegistered();
field public static final int CONNECTION_NONE = 0; // 0x0 field public static final int CONNECTION_NONE = 0; // 0x0

View File

@@ -189,11 +189,15 @@ public abstract class CellInfo implements Parcelable {
mTimeStamp = ts; mTimeStamp = ts;
} }
/** @hide */ /**
* @return a {@link CellIdentity} instance.
*/
@NonNull @NonNull
public abstract CellIdentity getCellIdentity(); public abstract CellIdentity getCellIdentity();
/** @hide */ /**
* @return a {@link CellSignalStrength} instance.
*/
@NonNull @NonNull
public abstract CellSignalStrength getCellSignalStrength(); public abstract CellSignalStrength getCellSignalStrength();