summaryrefslogtreecommitdiff
path: root/location/java/android
diff options
context:
space:
mode:
author David Castro <logophile@google.com> 2019-11-24 04:58:51 -0800
committer android-build-merger <android-build-merger@google.com> 2019-11-24 04:58:51 -0800
commit5df37b4e9b9d4950e19ee720322acf3a091ab04b (patch)
treeb3897d41b1c87cb92790f58661c040aaffcae756 /location/java/android
parentf022baab71031caadfb0e7405d3903c5e13ed2a6 (diff)
parentd52dd84fbfd4ef2fb7b4c751b915c0e34c752893 (diff)
Merge "Updates the description of the provider parameter as per feedback in BUG:111695926." into qt-dev am: e3681d08e9 am: 0c8d339950 am: b69d94a847
am: d52dd84fbf Change-Id: Ia9ce650cb5d061d636ed0b6f21ed101fd0a5c9f5
Diffstat (limited to 'location/java/android')
-rw-r--r--location/java/android/location/Location.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/location/java/android/location/Location.java b/location/java/android/location/Location.java
index 27274d12b1de..db48ee7f2cf9 100644
--- a/location/java/android/location/Location.java
+++ b/location/java/android/location/Location.java
@@ -161,7 +161,10 @@ public class Location implements Parcelable {
* <p>By default time, latitude and longitude are 0, and the location
* has no bearing, altitude, speed, accuracy or extras.
*
- * @param provider the name of the provider that generated this location
+ * @param provider the source that provides the location. It can be of type
+ * {@link LocationManager#GPS_PROVIDER}, {@link LocationManager#NETWORK_PROVIDER},
+ * or {@link LocationManager#PASSIVE_PROVIDER}. You can also define your own
+ * provider string, in which case an empty string is a valid provider.
*/
public Location(String provider) {
mProvider = provider;