summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nathan Harold <nharold@google.com> 2019-02-07 18:09:44 -0800
committer android-build-merger <android-build-merger@google.com> 2019-02-07 18:09:44 -0800
commit7cfe18b00debecc20cec783b465f3349088cf163 (patch)
tree8d0618fdb2b6af6a0b53d7ccefc6250b9178ae43
parente44db5a1c0c5c466e6463d4ea613d4f30b0fdcb5 (diff)
parent518f74b3cdc4724a1f91abebbadc309815b12a41 (diff)
Merge "Update CellInfo Documentation on Updates" am: f199334e3e
am: 518f74b3cd Change-Id: I9901663722fb3c9d5fff761d353618ed18b4d818
-rw-r--r--telephony/java/android/telephony/TelephonyManager.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index 30f6e5466c0b..74d0f517c1c1 100644
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -4866,12 +4866,13 @@ public class TelephonyManager {
*
* <p>Apps targeting {@link android.os.Build.VERSION_CODES#Q Android Q} or higher will no
* longer trigger a refresh of the cached CellInfo by invoking this API. Instead, those apps
- * will receive the latest cached results. Apps targeting
+ * will receive the latest cached results, which may not be current. Apps targeting
* {@link android.os.Build.VERSION_CODES#Q Android Q} or higher that wish to request updated
* CellInfo should call
- * {android.telephony.TelephonyManager#requestCellInfoUpdate requestCellInfoUpdate()} and
- * listen for responses via {@link android.telephony.PhoneStateListener#onCellInfoChanged
- * onCellInfoChanged()}.
+ * {@link android.telephony.TelephonyManager#requestCellInfoUpdate requestCellInfoUpdate()};
+ * however, in all cases, updates will be rate-limited and are not guaranteed. To determine the
+ * recency of CellInfo data, callers should check
+ * {@link android.telephony.CellInfo#getTimeStamp CellInfo#getTimeStamp()}.
*
* <p>This method returns valid data for devices with
* {@link android.content.pm.PackageManager#FEATURE_TELEPHONY FEATURE_TELEPHONY}. In cases