Merge "Expose GSM Timing Advance, Update LTE TA docstring"

This commit is contained in:
nharold
2016-11-30 18:00:34 +00:00
committed by Gerrit Code Review
5 changed files with 17 additions and 2 deletions

View File

@@ -36857,6 +36857,7 @@ package android.telephony {
method public int getAsuLevel(); method public int getAsuLevel();
method public int getDbm(); method public int getDbm();
method public int getLevel(); method public int getLevel();
method public int getTimingAdvance();
method public int hashCode(); method public int hashCode();
method public void writeToParcel(android.os.Parcel, int); method public void writeToParcel(android.os.Parcel, int);
field public static final android.os.Parcelable.Creator<android.telephony.CellSignalStrengthGsm> CREATOR; field public static final android.os.Parcelable.Creator<android.telephony.CellSignalStrengthGsm> CREATOR;

View File

@@ -39792,6 +39792,7 @@ package android.telephony {
method public int getAsuLevel(); method public int getAsuLevel();
method public int getDbm(); method public int getDbm();
method public int getLevel(); method public int getLevel();
method public int getTimingAdvance();
method public int hashCode(); method public int hashCode();
method public void writeToParcel(android.os.Parcel, int); method public void writeToParcel(android.os.Parcel, int);
field public static final android.os.Parcelable.Creator<android.telephony.CellSignalStrengthGsm> CREATOR; field public static final android.os.Parcelable.Creator<android.telephony.CellSignalStrengthGsm> CREATOR;

View File

@@ -36934,6 +36934,7 @@ package android.telephony {
method public int getAsuLevel(); method public int getAsuLevel();
method public int getDbm(); method public int getDbm();
method public int getLevel(); method public int getLevel();
method public int getTimingAdvance();
method public int hashCode(); method public int hashCode();
method public void writeToParcel(android.os.Parcel, int); method public void writeToParcel(android.os.Parcel, int);
field public static final android.os.Parcelable.Creator<android.telephony.CellSignalStrengthGsm> CREATOR; field public static final android.os.Parcelable.Creator<android.telephony.CellSignalStrengthGsm> CREATOR;

View File

@@ -140,6 +140,16 @@ public final class CellSignalStrengthGsm extends CellSignalStrength implements P
return level; return level;
} }
/**
* Get the GSM timing advance between 0..219 symbols (normally 0..63).
* Integer.MAX_VALUE is reported when there is no RR connection.
* Refer to 3GPP 45.010 Sec 5.8
* @return the current GSM timing advance, if available.
*/
public int getTimingAdvance() {
return mTimingAdvance;
}
/** /**
* Get the signal strength as dBm * Get the signal strength as dBm
*/ */

View File

@@ -220,8 +220,10 @@ public final class CellSignalStrengthLte extends CellSignalStrength implements P
} }
/** /**
* Get the timing advance value for LTE. * Get the timing advance value for LTE, as a value between 0..63.
* See 3GPP xxxx * Integer.MAX_VALUE is reported when there is no active RRC
* connection. Refer to 3GPP 36.213 Sec 4.2.3
* @return the LTE timing advance, if available.
*/ */
public int getTimingAdvance() { public int getTimingAdvance() {
return mTimingAdvance; return mTimingAdvance;