Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71677f84 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

Unhide new location manager APIs:



Criteria.java
LocationManager.java
New APIs for criteria based location requests and single shot support.

GeocoderParams.java
GeocodeProvider.java
LocationProvider.java
APIs for network location unbundling.

Change-Id: I3311fa01ce76fe4cba3537617e5b1c8d1f1d42b7
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent 03ca216a
Loading
Loading
Loading
Loading
+792 −16
Original line number Original line Diff line number Diff line
@@ -81605,6 +81605,28 @@
 visibility="public"
 visibility="public"
>
>
</method>
</method>
<method name="getBearingAccuracy"
 return="int"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="getHorizontalAccuracy"
 return="int"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="getPowerRequirement"
<method name="getPowerRequirement"
 return="int"
 return="int"
 abstract="false"
 abstract="false"
@@ -81616,6 +81638,39 @@
 visibility="public"
 visibility="public"
>
>
</method>
</method>
<method name="getPriority"
 return="int"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="getSpeedAccuracy"
 return="int"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="getVerticalAccuracy"
 return="int"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="isAltitudeRequired"
<method name="isAltitudeRequired"
 return="boolean"
 return="boolean"
 abstract="false"
 abstract="false"
@@ -81686,6 +81741,19 @@
<parameter name="altitudeRequired" type="boolean">
<parameter name="altitudeRequired" type="boolean">
</parameter>
</parameter>
</method>
</method>
<method name="setBearingAccuracy"
 return="void"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="accuracy" type="int">
</parameter>
</method>
<method name="setBearingRequired"
<method name="setBearingRequired"
 return="void"
 return="void"
 abstract="false"
 abstract="false"
@@ -81712,6 +81780,19 @@
<parameter name="costAllowed" type="boolean">
<parameter name="costAllowed" type="boolean">
</parameter>
</parameter>
</method>
</method>
<method name="setHorizontalAccuracy"
 return="void"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="accuracy" type="int">
</parameter>
</method>
<method name="setPowerRequirement"
<method name="setPowerRequirement"
 return="void"
 return="void"
 abstract="false"
 abstract="false"
@@ -81725,6 +81806,32 @@
<parameter name="level" type="int">
<parameter name="level" type="int">
</parameter>
</parameter>
</method>
</method>
<method name="setPreferredPriority"
 return="void"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="priority" type="int">
</parameter>
</method>
<method name="setSpeedAccuracy"
 return="void"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="accuracy" type="int">
</parameter>
</method>
<method name="setSpeedRequired"
<method name="setSpeedRequired"
 return="void"
 return="void"
 abstract="false"
 abstract="false"
@@ -81738,6 +81845,19 @@
<parameter name="speedRequired" type="boolean">
<parameter name="speedRequired" type="boolean">
</parameter>
</parameter>
</method>
</method>
<method name="setVerticalAccuracy"
 return="void"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="accuracy" type="int">
</parameter>
</method>
<method name="writeToParcel"
<method name="writeToParcel"
 return="void"
 return="void"
 abstract="false"
 abstract="false"
@@ -81753,6 +81873,17 @@
<parameter name="flags" type="int">
<parameter name="flags" type="int">
</parameter>
</parameter>
</method>
</method>
<field name="ACCURACY_BEST"
 type="int"
 transient="false"
 volatile="false"
 value="4"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="ACCURACY_COARSE"
<field name="ACCURACY_COARSE"
 type="int"
 type="int"
 transient="false"
 transient="false"
@@ -81775,6 +81906,50 @@
 visibility="public"
 visibility="public"
>
>
</field>
</field>
<field name="ACCURACY_HIGH"
 type="int"
 transient="false"
 volatile="false"
 value="3"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="ACCURACY_LOW"
 type="int"
 transient="false"
 volatile="false"
 value="1"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="ACCURACY_MEDIUM"
 type="int"
 transient="false"
 volatile="false"
 value="2"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="BEARING_ACCURACY_PRIORITY"
 type="int"
 transient="false"
 volatile="false"
 value="4"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="CREATOR"
<field name="CREATOR"
 type="android.os.Parcelable.Creator"
 type="android.os.Parcelable.Creator"
 transient="false"
 transient="false"
@@ -81785,6 +81960,17 @@
 visibility="public"
 visibility="public"
>
>
</field>
</field>
<field name="HORIZONTAL_ACCURACY_PRIORITY"
 type="int"
 transient="false"
 volatile="false"
 value="1"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="NO_REQUIREMENT"
<field name="NO_REQUIREMENT"
 type="int"
 type="int"
 transient="false"
 transient="false"
@@ -81829,6 +82015,39 @@
 visibility="public"
 visibility="public"
>
>
</field>
</field>
<field name="POWER_REQUIREMENT_PRIORITY"
 type="int"
 transient="false"
 volatile="false"
 value="5"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="SPEED_ACCURACY_PRIORITY"
 type="int"
 transient="false"
 volatile="false"
 value="3"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="VERTICAL_ACCURACY_PRIORITY"
 type="int"
 transient="false"
 volatile="false"
 value="2"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
</class>
</class>
<class name="Geocoder"
<class name="Geocoder"
 extends="java.lang.Object"
 extends="java.lang.Object"
@@ -81922,16 +82141,18 @@
</exception>
</exception>
</method>
</method>
</class>
</class>
<class name="GpsSatellite"
<class name="GeocoderParams"
 extends="java.lang.Object"
 extends="java.lang.Object"
 abstract="false"
 abstract="false"
 static="false"
 static="false"
 final="true"
 final="false"
 deprecated="not deprecated"
 deprecated="not deprecated"
 visibility="public"
 visibility="public"
>
>
<method name="getAzimuth"
<implements name="android.os.Parcelable">
 return="float"
</implements>
<method name="describeContents"
 return="int"
 abstract="false"
 abstract="false"
 native="false"
 native="false"
 synchronized="false"
 synchronized="false"
@@ -81941,8 +82162,8 @@
 visibility="public"
 visibility="public"
>
>
</method>
</method>
<method name="getElevation"
<method name="getClientPackage"
 return="float"
 return="java.lang.String"
 abstract="false"
 abstract="false"
 native="false"
 native="false"
 synchronized="false"
 synchronized="false"
@@ -81952,8 +82173,8 @@
 visibility="public"
 visibility="public"
>
>
</method>
</method>
<method name="getPrn"
<method name="getLocale"
 return="int"
 return="java.util.Locale"
 abstract="false"
 abstract="false"
 native="false"
 native="false"
 synchronized="false"
 synchronized="false"
@@ -81963,8 +82184,8 @@
 visibility="public"
 visibility="public"
>
>
</method>
</method>
<method name="getSnr"
<method name="writeToParcel"
 return="float"
 return="void"
 abstract="false"
 abstract="false"
 native="false"
 native="false"
 synchronized="false"
 synchronized="false"
@@ -81973,9 +82194,32 @@
 deprecated="not deprecated"
 deprecated="not deprecated"
 visibility="public"
 visibility="public"
>
>
<parameter name="parcel" type="android.os.Parcel">
</parameter>
<parameter name="flags" type="int">
</parameter>
</method>
</method>
<method name="hasAlmanac"
<field name="CREATOR"
 return="boolean"
 type="android.os.Parcelable.Creator"
 transient="false"
 volatile="false"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
</class>
<class name="GpsSatellite"
 extends="java.lang.Object"
 abstract="false"
 static="false"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
<method name="getAzimuth"
 return="float"
 abstract="false"
 abstract="false"
 native="false"
 native="false"
 synchronized="false"
 synchronized="false"
@@ -81985,8 +82229,8 @@
 visibility="public"
 visibility="public"
>
>
</method>
</method>
<method name="hasEphemeris"
<method name="getElevation"
 return="boolean"
 return="float"
 abstract="false"
 abstract="false"
 native="false"
 native="false"
 synchronized="false"
 synchronized="false"
@@ -81996,8 +82240,52 @@
 visibility="public"
 visibility="public"
>
>
</method>
</method>
<method name="usedInFix"
<method name="getPrn"
 return="boolean"
 return="int"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="getSnr"
 return="float"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="hasAlmanac"
 return="boolean"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="hasEphemeris"
 return="boolean"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="usedInFix"
 return="boolean"
 abstract="false"
 abstract="false"
 native="false"
 native="false"
 synchronized="false"
 synchronized="false"
@@ -83079,6 +83367,27 @@
 deprecated="not deprecated"
 deprecated="not deprecated"
 visibility="public"
 visibility="public"
>
>
<parameter name="minTime" type="long">
</parameter>
<parameter name="minDistance" type="float">
</parameter>
<parameter name="criteria" type="android.location.Criteria">
</parameter>
<parameter name="listener" type="android.location.LocationListener">
</parameter>
<parameter name="looper" type="android.os.Looper">
</parameter>
</method>
<method name="requestLocationUpdates"
 return="void"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="provider" type="java.lang.String">
<parameter name="provider" type="java.lang.String">
</parameter>
</parameter>
<parameter name="minTime" type="long">
<parameter name="minTime" type="long">
@@ -83088,6 +83397,89 @@
<parameter name="intent" type="android.app.PendingIntent">
<parameter name="intent" type="android.app.PendingIntent">
</parameter>
</parameter>
</method>
</method>
<method name="requestLocationUpdates"
 return="void"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="minTime" type="long">
</parameter>
<parameter name="minDistance" type="float">
</parameter>
<parameter name="criteria" type="android.location.Criteria">
</parameter>
<parameter name="intent" type="android.app.PendingIntent">
</parameter>
</method>
<method name="requestSingleUpdate"
 return="void"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="provider" type="java.lang.String">
</parameter>
<parameter name="listener" type="android.location.LocationListener">
</parameter>
<parameter name="looper" type="android.os.Looper">
</parameter>
</method>
<method name="requestSingleUpdate"
 return="void"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="criteria" type="android.location.Criteria">
</parameter>
<parameter name="listener" type="android.location.LocationListener">
</parameter>
<parameter name="looper" type="android.os.Looper">
</parameter>
</method>
<method name="requestSingleUpdate"
 return="void"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="provider" type="java.lang.String">
</parameter>
<parameter name="intent" type="android.app.PendingIntent">
</parameter>
</method>
<method name="requestSingleUpdate"
 return="void"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="criteria" type="android.location.Criteria">
</parameter>
<parameter name="intent" type="android.app.PendingIntent">
</parameter>
</method>
<method name="sendExtraCommand"
<method name="sendExtraCommand"
 return="boolean"
 return="boolean"
 abstract="false"
 abstract="false"
@@ -83398,6 +83790,390 @@
</field>
</field>
</class>
</class>
</package>
</package>
<package name="android.location.provider"
>
<class name="GeocodeProvider"
 extends="java.lang.Object"
 abstract="true"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<constructor name="GeocodeProvider"
 type="android.location.provider.GeocodeProvider"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</constructor>
<method name="getBinder"
 return="android.os.IBinder"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="onGetFromLocation"
 return="java.lang.String"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="latitude" type="double">
</parameter>
<parameter name="longitude" type="double">
</parameter>
<parameter name="maxResults" type="int">
</parameter>
<parameter name="params" type="android.location.GeocoderParams">
</parameter>
<parameter name="addrs" type="java.util.List&lt;android.location.Address&gt;">
</parameter>
</method>
<method name="onGetFromLocationName"
 return="java.lang.String"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="locationName" type="java.lang.String">
</parameter>
<parameter name="lowerLeftLatitude" type="double">
</parameter>
<parameter name="lowerLeftLongitude" type="double">
</parameter>
<parameter name="upperRightLatitude" type="double">
</parameter>
<parameter name="upperRightLongitude" type="double">
</parameter>
<parameter name="maxResults" type="int">
</parameter>
<parameter name="params" type="android.location.GeocoderParams">
</parameter>
<parameter name="addrs" type="java.util.List&lt;android.location.Address&gt;">
</parameter>
</method>
</class>
<class name="LocationProvider"
 extends="java.lang.Object"
 abstract="true"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<constructor name="LocationProvider"
 type="android.location.provider.LocationProvider"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</constructor>
<method name="getBinder"
 return="android.os.IBinder"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="onAddListener"
 return="void"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="uid" type="int">
</parameter>
</method>
<method name="onDisable"
 return="void"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="onEnable"
 return="void"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="onEnableLocationTracking"
 return="void"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="enable" type="boolean">
</parameter>
</method>
<method name="onGetAccuracy"
 return="int"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="onGetInternalState"
 return="java.lang.String"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="onGetPowerRequirement"
 return="int"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="onGetStatus"
 return="int"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="extras" type="android.os.Bundle">
</parameter>
</method>
<method name="onGetStatusUpdateTime"
 return="long"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="onHasMonetaryCost"
 return="boolean"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="onMeetsCriteria"
 return="boolean"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="criteria" type="android.location.Criteria">
</parameter>
</method>
<method name="onRemoveListener"
 return="void"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="uid" type="int">
</parameter>
</method>
<method name="onRequiresCell"
 return="boolean"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="onRequiresNetwork"
 return="boolean"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="onRequiresSatellite"
 return="boolean"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="onSendExtraCommand"
 return="boolean"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="command" type="java.lang.String">
</parameter>
<parameter name="extras" type="android.os.Bundle">
</parameter>
</method>
<method name="onSetMinTime"
 return="void"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="minTime" type="long">
</parameter>
</method>
<method name="onSupportsAltitude"
 return="boolean"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="onSupportsBearing"
 return="boolean"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="onSupportsSpeed"
 return="boolean"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="onUpdateLocation"
 return="void"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="location" type="android.location.Location">
</parameter>
</method>
<method name="onUpdateNetworkState"
 return="void"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="state" type="int">
</parameter>
<parameter name="info" type="android.net.NetworkInfo">
</parameter>
</method>
<method name="reportLocation"
 return="void"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="location" type="android.location.Location">
</parameter>
</method>
</class>
</package>
<package name="android.media"
<package name="android.media"
>
>
<class name="AsyncPlayer"
<class name="AsyncPlayer"
+0 −19
Original line number Original line Diff line number Diff line
@@ -63,7 +63,6 @@ public class Criteria implements Parcelable {
     * For horizontal and vertical position this corresponds to an accuracy
     * For horizontal and vertical position this corresponds to an accuracy
     * greater than 500 meters.  For speed and bearing, this corresponds
     * greater than 500 meters.  For speed and bearing, this corresponds
     * to greater than 5 meters/second velocity and 10 degrees for bearing.
     * to greater than 5 meters/second velocity and 10 degrees for bearing.
     * {@hide}
     */
     */
    public static final int ACCURACY_LOW = 1;
    public static final int ACCURACY_LOW = 1;


@@ -74,7 +73,6 @@ public class Criteria implements Parcelable {
     * 100 and 500 meters, and between 200 and 500 meters for vertical accuracy.
     * 100 and 500 meters, and between 200 and 500 meters for vertical accuracy.
     * For speed and bearing, this corresponds to 1 meter/second to 5 meters/second
     * For speed and bearing, this corresponds to 1 meter/second to 5 meters/second
     * velocity and and between 5 and 10 degrees for bearing.
     * velocity and and between 5 and 10 degrees for bearing.
     * {@hide}
     */
     */
    public static final int ACCURACY_MEDIUM = 2;
    public static final int ACCURACY_MEDIUM = 2;


@@ -84,7 +82,6 @@ public class Criteria implements Parcelable {
     * For horizontal and vertical position this corresponds to an accuracy
     * For horizontal and vertical position this corresponds to an accuracy
     * less than 100 meters.  For speed and bearing, this corresponds
     * less than 100 meters.  For speed and bearing, this corresponds
     * to less 1 meter/second velocity less than 5 degrees for bearing.
     * to less 1 meter/second velocity less than 5 degrees for bearing.
     * {@hide}
     */
     */
    public static final int ACCURACY_HIGH = 3;
    public static final int ACCURACY_HIGH = 3;


@@ -92,37 +89,31 @@ public class Criteria implements Parcelable {
     * a constant indicating the best accuracy that is available for any
     * a constant indicating the best accuracy that is available for any
     * location provider available
     * location provider available
     * - may be used for horizontal, altitude, speed or bearing accuracy.
     * - may be used for horizontal, altitude, speed or bearing accuracy.
     * {@hide}
     */
     */
    public static final int ACCURACY_BEST = 4;
    public static final int ACCURACY_BEST = 4;


    /**
    /**
     * A constant indicating horizontal accuracy has the top priority
     * A constant indicating horizontal accuracy has the top priority
     * {@hide}
     */
     */
    public static final int HORIZONTAL_ACCURACY_PRIORITY = 1;
    public static final int HORIZONTAL_ACCURACY_PRIORITY = 1;


    /**
    /**
     * A constant indicating altitude accuracy has the top priority
     * A constant indicating altitude accuracy has the top priority
     * {@hide}
     */
     */
    public static final int VERTICAL_ACCURACY_PRIORITY = 2;
    public static final int VERTICAL_ACCURACY_PRIORITY = 2;


    /**
    /**
     * A constant indicating speed accuracy has the top priority
     * A constant indicating speed accuracy has the top priority
     * {@hide}
     */
     */
    public static final int SPEED_ACCURACY_PRIORITY = 3;
    public static final int SPEED_ACCURACY_PRIORITY = 3;


    /**
    /**
     * A constant indicating bearing accuracy has the top priority
     * A constant indicating bearing accuracy has the top priority
     * {@hide}
     */
     */
    public static final int BEARING_ACCURACY_PRIORITY = 4;
    public static final int BEARING_ACCURACY_PRIORITY = 4;


    /**
    /**
     * A constant indicating power requirement has the top priority
     * A constant indicating power requirement has the top priority
     * {@hide}
     */
     */
    public static final int POWER_REQUIREMENT_PRIORITY = 5;
    public static final int POWER_REQUIREMENT_PRIORITY = 5;


@@ -168,7 +159,6 @@ public class Criteria implements Parcelable {
     * More accurate location may consume more power and may take longer.
     * More accurate location may consume more power and may take longer.
     *
     *
     * @throws IllegalArgumentException if accuracy is not one of the supported constants
     * @throws IllegalArgumentException if accuracy is not one of the supported constants
     * {@hide}
     */
     */
    public void setHorizontalAccuracy(int accuracy) {
    public void setHorizontalAccuracy(int accuracy) {
        if (accuracy < NO_REQUIREMENT || accuracy > ACCURACY_BEST) {
        if (accuracy < NO_REQUIREMENT || accuracy > ACCURACY_BEST) {
@@ -181,7 +171,6 @@ public class Criteria implements Parcelable {
     * Returns a constant indicating the desired horizontal accuracy (latitude and longitude).
     * Returns a constant indicating the desired horizontal accuracy (latitude and longitude).
     * Accuracy may be {@link #ACCURACY_LOW}, {@link #ACCURACY_MEDIUM},
     * Accuracy may be {@link #ACCURACY_LOW}, {@link #ACCURACY_MEDIUM},
     * {@link #ACCURACY_HIGH}, {@link #ACCURACY_BEST},
     * {@link #ACCURACY_HIGH}, {@link #ACCURACY_BEST},
     * {@hide}
     */
     */
    public int getHorizontalAccuracy() {
    public int getHorizontalAccuracy() {
        return mHorizontalAccuracy;
        return mHorizontalAccuracy;
@@ -194,7 +183,6 @@ public class Criteria implements Parcelable {
     * More accurate location may consume more power and may take longer.
     * More accurate location may consume more power and may take longer.
     *
     *
     * @throws IllegalArgumentException if accuracy is not one of the supported constants
     * @throws IllegalArgumentException if accuracy is not one of the supported constants
     * {@hide}
     */
     */
    public void setVerticalAccuracy(int accuracy) {
    public void setVerticalAccuracy(int accuracy) {
        if (accuracy < NO_REQUIREMENT || accuracy > ACCURACY_BEST) {
        if (accuracy < NO_REQUIREMENT || accuracy > ACCURACY_BEST) {
@@ -207,7 +195,6 @@ public class Criteria implements Parcelable {
     * Returns a constant indicating the desired vertical accuracy (altitude).
     * Returns a constant indicating the desired vertical accuracy (altitude).
     * Accuracy may be {@link #ACCURACY_LOW}, {@link #ACCURACY_MEDIUM},
     * Accuracy may be {@link #ACCURACY_LOW}, {@link #ACCURACY_MEDIUM},
     * {@link #ACCURACY_HIGH}, {@link #ACCURACY_BEST},
     * {@link #ACCURACY_HIGH}, {@link #ACCURACY_BEST},
     * {@hide}
     */
     */
    public int getVerticalAccuracy() {
    public int getVerticalAccuracy() {
        return mVerticalAccuracy;
        return mVerticalAccuracy;
@@ -220,7 +207,6 @@ public class Criteria implements Parcelable {
     * More accurate location may consume more power and may take longer.
     * More accurate location may consume more power and may take longer.
     *
     *
     * @throws IllegalArgumentException if accuracy is not one of the supported constants
     * @throws IllegalArgumentException if accuracy is not one of the supported constants
     * {@hide}
     */
     */
    public void setSpeedAccuracy(int accuracy) {
    public void setSpeedAccuracy(int accuracy) {
        if (accuracy < NO_REQUIREMENT || accuracy > ACCURACY_BEST) {
        if (accuracy < NO_REQUIREMENT || accuracy > ACCURACY_BEST) {
@@ -233,7 +219,6 @@ public class Criteria implements Parcelable {
     * Returns a constant indicating the desired speed accuracy
     * Returns a constant indicating the desired speed accuracy
     * Accuracy may be {@link #ACCURACY_LOW}, {@link #ACCURACY_MEDIUM},
     * Accuracy may be {@link #ACCURACY_LOW}, {@link #ACCURACY_MEDIUM},
     * {@link #ACCURACY_HIGH}, {@link #ACCURACY_BEST},
     * {@link #ACCURACY_HIGH}, {@link #ACCURACY_BEST},
     * {@hide}
     */
     */
    public int getSpeedAccuracy() {
    public int getSpeedAccuracy() {
        return mSpeedAccuracy;
        return mSpeedAccuracy;
@@ -246,7 +231,6 @@ public class Criteria implements Parcelable {
     * More accurate location may consume more power and may take longer.
     * More accurate location may consume more power and may take longer.
     *
     *
     * @throws IllegalArgumentException if accuracy is not one of the supported constants
     * @throws IllegalArgumentException if accuracy is not one of the supported constants
     * {@hide}
     */
     */
    public void setBearingAccuracy(int accuracy) {
    public void setBearingAccuracy(int accuracy) {
        if (accuracy < NO_REQUIREMENT || accuracy > ACCURACY_BEST) {
        if (accuracy < NO_REQUIREMENT || accuracy > ACCURACY_BEST) {
@@ -259,7 +243,6 @@ public class Criteria implements Parcelable {
     * Returns a constant indicating the desired bearing accuracy.
     * Returns a constant indicating the desired bearing accuracy.
     * Accuracy may be {@link #ACCURACY_LOW}, {@link #ACCURACY_MEDIUM},
     * Accuracy may be {@link #ACCURACY_LOW}, {@link #ACCURACY_MEDIUM},
     * {@link #ACCURACY_HIGH}, {@link #ACCURACY_BEST},
     * {@link #ACCURACY_HIGH}, {@link #ACCURACY_BEST},
     * {@hide}
     */
     */
    public int getBearingAccuracy() {
    public int getBearingAccuracy() {
        return mBearingAccuracy;
        return mBearingAccuracy;
@@ -277,7 +260,6 @@ public class Criteria implements Parcelable {
     * {@link #HORIZONTAL_ACCURACY_PRIORITY}, {@link #POWER_REQUIREMENT_PRIORITY},
     * {@link #HORIZONTAL_ACCURACY_PRIORITY}, {@link #POWER_REQUIREMENT_PRIORITY},
     * {@link #VERTICAL_ACCURACY_PRIORITY}, {@link #SPEED_ACCURACY_PRIORITY},
     * {@link #VERTICAL_ACCURACY_PRIORITY}, {@link #SPEED_ACCURACY_PRIORITY},
     * {@link #BEARING_ACCURACY_PRIORITY}.
     * {@link #BEARING_ACCURACY_PRIORITY}.
     * {@hide}
     */
     */
    public void setPreferredPriority(int priority) {
    public void setPreferredPriority(int priority) {
        if (priority < HORIZONTAL_ACCURACY_PRIORITY || priority > POWER_REQUIREMENT_PRIORITY) {
        if (priority < HORIZONTAL_ACCURACY_PRIORITY || priority > POWER_REQUIREMENT_PRIORITY) {
@@ -292,7 +274,6 @@ public class Criteria implements Parcelable {
     * The value can be {@link #HORIZONTAL_ACCURACY_PRIORITY},
     * The value can be {@link #HORIZONTAL_ACCURACY_PRIORITY},
     * {@link #VERTICAL_ACCURACY_PRIORITY}, {@link #SPEED_ACCURACY_PRIORITY},
     * {@link #VERTICAL_ACCURACY_PRIORITY}, {@link #SPEED_ACCURACY_PRIORITY},
     * {@link #BEARING_ACCURACY_PRIORITY} or {@link #POWER_REQUIREMENT_PRIORITY}.
     * {@link #BEARING_ACCURACY_PRIORITY} or {@link #POWER_REQUIREMENT_PRIORITY}.
     * {@hide}
     */
     */
    public int getPriority() {
    public int getPriority() {
        return mPriority;
        return mPriority;
+0 −2
Original line number Original line Diff line number Diff line
@@ -29,8 +29,6 @@ import java.util.Locale;
 * as well as the Geocoder client's package name for geocoder server
 * as well as the Geocoder client's package name for geocoder server
 * logging.  This information is kept in a separate class to allow for
 * logging.  This information is kept in a separate class to allow for
 * future expansion of the IGeocodeProvider interface.
 * future expansion of the IGeocodeProvider interface.
 *
 * @hide
 */
 */
public class GeocoderParams implements Parcelable {
public class GeocoderParams implements Parcelable {
    private Locale mLocale;
    private Locale mLocale;
+0 −12

File changed.

Preview size limit exceeded, changes collapsed.

+0 −2
Original line number Original line Diff line number Diff line
@@ -29,8 +29,6 @@ import java.util.List;
 * outside of the core android platform.
 * outside of the core android platform.
 * Geocode providers can be implemented as services and return the result of
 * Geocode providers can be implemented as services and return the result of
 * {@link GeocodeProvider#getBinder()} in its getBinder() method.
 * {@link GeocodeProvider#getBinder()} in its getBinder() method.
 *
 * @hide
 */
 */
public abstract class GeocodeProvider {
public abstract class GeocodeProvider {


Loading