summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author nharold <nharold@google.com> 2016-12-01 00:12:00 +0000
committer android-build-merger <android-build-merger@google.com> 2016-12-01 00:12:00 +0000
commit729a5ae51190ce1ddb6d76d1cd0c5dfaead89f3c (patch)
tree5a6fcc360ee5d58014d9a15740dd722892522927
parenta4b4e731d18d92ff0f267cf8c17632679b007e11 (diff)
parent64a8a387a4b564e97da624890da247b03037a782 (diff)
Merge "Expose GSM Timing Advance, Update LTE TA docstring" am: 4134ccb214 am: 8fabfd639e
am: 64a8a387a4 Change-Id: Iafad7ea7bd6a3bcc3aac28409f34b4f00008d828
-rw-r--r--api/current.txt1
-rw-r--r--api/system-current.txt1
-rw-r--r--api/test-current.txt1
-rw-r--r--telephony/java/android/telephony/CellSignalStrengthGsm.java10
-rw-r--r--telephony/java/android/telephony/CellSignalStrengthLte.java6
5 files changed, 17 insertions, 2 deletions
diff --git a/api/current.txt b/api/current.txt
index 318d076468fb..68467fdc020a 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -37015,6 +37015,7 @@ package android.telephony {
method public int getAsuLevel();
method public int getDbm();
method public int getLevel();
+ method public int getTimingAdvance();
method public int hashCode();
method public void writeToParcel(android.os.Parcel, int);
field public static final android.os.Parcelable.Creator<android.telephony.CellSignalStrengthGsm> CREATOR;
diff --git a/api/system-current.txt b/api/system-current.txt
index c1dcdfa2098d..504e7e67bad7 100644
--- a/api/system-current.txt
+++ b/api/system-current.txt
@@ -40104,6 +40104,7 @@ package android.telephony {
method public int getAsuLevel();
method public int getDbm();
method public int getLevel();
+ method public int getTimingAdvance();
method public int hashCode();
method public void writeToParcel(android.os.Parcel, int);
field public static final android.os.Parcelable.Creator<android.telephony.CellSignalStrengthGsm> CREATOR;
diff --git a/api/test-current.txt b/api/test-current.txt
index a6d63904e7bb..dfd1bdd28dfc 100644
--- a/api/test-current.txt
+++ b/api/test-current.txt
@@ -37097,6 +37097,7 @@ package android.telephony {
method public int getAsuLevel();
method public int getDbm();
method public int getLevel();
+ method public int getTimingAdvance();
method public int hashCode();
method public void writeToParcel(android.os.Parcel, int);
field public static final android.os.Parcelable.Creator<android.telephony.CellSignalStrengthGsm> CREATOR;
diff --git a/telephony/java/android/telephony/CellSignalStrengthGsm.java b/telephony/java/android/telephony/CellSignalStrengthGsm.java
index addf7ef025aa..4137853e79aa 100644
--- a/telephony/java/android/telephony/CellSignalStrengthGsm.java
+++ b/telephony/java/android/telephony/CellSignalStrengthGsm.java
@@ -141,6 +141,16 @@ public final class CellSignalStrengthGsm extends CellSignalStrength implements P
}
/**
+ * 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
*/
@Override
diff --git a/telephony/java/android/telephony/CellSignalStrengthLte.java b/telephony/java/android/telephony/CellSignalStrengthLte.java
index 434caadeedc6..0d07a40822d4 100644
--- a/telephony/java/android/telephony/CellSignalStrengthLte.java
+++ b/telephony/java/android/telephony/CellSignalStrengthLte.java
@@ -220,8 +220,10 @@ public final class CellSignalStrengthLte extends CellSignalStrength implements P
}
/**
- * Get the timing advance value for LTE.
- * See 3GPP xxxx
+ * Get the timing advance value for LTE, as a value between 0..63.
+ * 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() {
return mTimingAdvance;