Loading api/current.txt +0 −79 Original line number Diff line number Diff line Loading @@ -13304,85 +13304,6 @@ package android.hardware.input { } package android.hardware.location { public final class GeofenceHardware { method public boolean addGeofence(int, int, android.hardware.location.GeofenceHardwareRequest, android.hardware.location.GeofenceHardwareCallback); method public int[] getMonitoringTypes(); method public int getStatusOfMonitoringType(int); method public boolean pauseGeofence(int, int); method public boolean registerForMonitorStateChangeCallback(int, android.hardware.location.GeofenceHardwareMonitorCallback); method public boolean removeGeofence(int, int); method public boolean resumeGeofence(int, int, int); method public boolean unregisterForMonitorStateChangeCallback(int, android.hardware.location.GeofenceHardwareMonitorCallback); field public static final int GEOFENCE_ENTERED = 1; // 0x1 field public static final int GEOFENCE_ERROR_ID_EXISTS = 2; // 0x2 field public static final int GEOFENCE_ERROR_ID_UNKNOWN = 3; // 0x3 field public static final int GEOFENCE_ERROR_INSUFFICIENT_MEMORY = 6; // 0x6 field public static final int GEOFENCE_ERROR_INVALID_TRANSITION = 4; // 0x4 field public static final int GEOFENCE_ERROR_TOO_MANY_GEOFENCES = 1; // 0x1 field public static final int GEOFENCE_EXITED = 2; // 0x2 field public static final int GEOFENCE_FAILURE = 5; // 0x5 field public static final int GEOFENCE_SUCCESS = 0; // 0x0 field public static final int GEOFENCE_UNCERTAIN = 4; // 0x4 field public static final int MONITORING_TYPE_FUSED_HARDWARE = 1; // 0x1 field public static final int MONITORING_TYPE_GPS_HARDWARE = 0; // 0x0 field public static final int MONITOR_CURRENTLY_AVAILABLE = 0; // 0x0 field public static final int MONITOR_CURRENTLY_UNAVAILABLE = 1; // 0x1 field public static final int MONITOR_UNSUPPORTED = 2; // 0x2 field public static final int SOURCE_TECHNOLOGY_BLUETOOTH = 16; // 0x10 field public static final int SOURCE_TECHNOLOGY_CELL = 8; // 0x8 field public static final int SOURCE_TECHNOLOGY_GNSS = 1; // 0x1 field public static final int SOURCE_TECHNOLOGY_SENSORS = 4; // 0x4 field public static final int SOURCE_TECHNOLOGY_WIFI = 2; // 0x2 } public abstract class GeofenceHardwareCallback { ctor public GeofenceHardwareCallback(); method public void onGeofenceAdd(int, int); method public void onGeofencePause(int, int); method public void onGeofenceRemove(int, int); method public void onGeofenceResume(int, int); method public void onGeofenceTransition(int, int, android.location.Location, long, int); } public abstract class GeofenceHardwareMonitorCallback { ctor public GeofenceHardwareMonitorCallback(); method public deprecated void onMonitoringSystemChange(int, boolean, android.location.Location); method public void onMonitoringSystemChange(android.hardware.location.GeofenceHardwareMonitorEvent); } public class GeofenceHardwareMonitorEvent implements android.os.Parcelable { ctor public GeofenceHardwareMonitorEvent(int, int, int, android.location.Location); method public int describeContents(); method public android.location.Location getLocation(); method public int getMonitoringStatus(); method public int getMonitoringType(); method public int getSourceTechnologies(); method public void writeToParcel(android.os.Parcel, int); field public static final android.os.Parcelable.Creator CREATOR; } public final class GeofenceHardwareRequest { ctor public GeofenceHardwareRequest(); method public static android.hardware.location.GeofenceHardwareRequest createCircularGeofence(double, double, double); method public int getLastTransition(); method public double getLatitude(); method public double getLongitude(); method public int getMonitorTransitions(); method public int getNotificationResponsiveness(); method public double getRadius(); method public int getSourceTechnologies(); method public int getUnknownTimer(); method public void setLastTransition(int); method public void setMonitorTransitions(int); method public void setNotificationResponsiveness(int); method public void setSourceTechnologies(int); method public void setUnknownTimer(int); } } package android.hardware.usb { public class UsbAccessory implements android.os.Parcelable { core/java/android/hardware/location/GeofenceHardware.java +5 −3 Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ */ package android.hardware.location; import android.annotation.SystemApi; import android.location.Location; import android.os.Build; import android.os.RemoteException; Loading Loading @@ -43,7 +44,10 @@ import java.util.HashMap; * an appropriate transition would be triggered. The "reasonably confident" parameter * depends on the hardware system and the positioning algorithms used. * For instance, {@link #MONITORING_TYPE_GPS_HARDWARE} uses 95% as a confidence level. * * @hide */ @SystemApi public final class GeofenceHardware { private IGeofenceHardware mService; Loading Loading @@ -162,9 +166,7 @@ public final class GeofenceHardware { private HashMap<GeofenceHardwareMonitorCallback, GeofenceHardwareMonitorCallbackWrapper> mMonitorCallbacks = new HashMap<GeofenceHardwareMonitorCallback, GeofenceHardwareMonitorCallbackWrapper>(); /** * @hide */ public GeofenceHardware(IGeofenceHardware service) { mService = service; } Loading core/java/android/hardware/location/GeofenceHardwareCallback.java +4 −0 Original line number Diff line number Diff line Loading @@ -16,11 +16,15 @@ package android.hardware.location; import android.annotation.SystemApi; import android.location.Location; /** * The callback class associated with the APIs in {@link GeofenceHardware} * * @hide */ @SystemApi public abstract class GeofenceHardwareCallback { /** * The callback called when there is a transition to report for the specific Loading core/java/android/hardware/location/GeofenceHardwareMonitorCallback.java +4 −0 Original line number Diff line number Diff line Loading @@ -16,12 +16,16 @@ package android.hardware.location; import android.annotation.SystemApi; import android.location.Location; /** * The callback class associated with the status change of hardware monitors * in {@link GeofenceHardware} * * @hide */ @SystemApi public abstract class GeofenceHardwareMonitorCallback { /** * The callback called when the state of a monitoring system changes. Loading core/java/android/hardware/location/GeofenceHardwareMonitorEvent.java +4 −0 Original line number Diff line number Diff line Loading @@ -16,13 +16,17 @@ package android.hardware.location; import android.annotation.SystemApi; import android.location.Location; import android.os.Parcel; import android.os.Parcelable; /** * A class that represents an event for each change in the state of a monitoring system. * * @hide */ @SystemApi public class GeofenceHardwareMonitorEvent implements Parcelable { private final int mMonitoringType; private final int mMonitoringStatus; Loading Loading
api/current.txt +0 −79 Original line number Diff line number Diff line Loading @@ -13304,85 +13304,6 @@ package android.hardware.input { } package android.hardware.location { public final class GeofenceHardware { method public boolean addGeofence(int, int, android.hardware.location.GeofenceHardwareRequest, android.hardware.location.GeofenceHardwareCallback); method public int[] getMonitoringTypes(); method public int getStatusOfMonitoringType(int); method public boolean pauseGeofence(int, int); method public boolean registerForMonitorStateChangeCallback(int, android.hardware.location.GeofenceHardwareMonitorCallback); method public boolean removeGeofence(int, int); method public boolean resumeGeofence(int, int, int); method public boolean unregisterForMonitorStateChangeCallback(int, android.hardware.location.GeofenceHardwareMonitorCallback); field public static final int GEOFENCE_ENTERED = 1; // 0x1 field public static final int GEOFENCE_ERROR_ID_EXISTS = 2; // 0x2 field public static final int GEOFENCE_ERROR_ID_UNKNOWN = 3; // 0x3 field public static final int GEOFENCE_ERROR_INSUFFICIENT_MEMORY = 6; // 0x6 field public static final int GEOFENCE_ERROR_INVALID_TRANSITION = 4; // 0x4 field public static final int GEOFENCE_ERROR_TOO_MANY_GEOFENCES = 1; // 0x1 field public static final int GEOFENCE_EXITED = 2; // 0x2 field public static final int GEOFENCE_FAILURE = 5; // 0x5 field public static final int GEOFENCE_SUCCESS = 0; // 0x0 field public static final int GEOFENCE_UNCERTAIN = 4; // 0x4 field public static final int MONITORING_TYPE_FUSED_HARDWARE = 1; // 0x1 field public static final int MONITORING_TYPE_GPS_HARDWARE = 0; // 0x0 field public static final int MONITOR_CURRENTLY_AVAILABLE = 0; // 0x0 field public static final int MONITOR_CURRENTLY_UNAVAILABLE = 1; // 0x1 field public static final int MONITOR_UNSUPPORTED = 2; // 0x2 field public static final int SOURCE_TECHNOLOGY_BLUETOOTH = 16; // 0x10 field public static final int SOURCE_TECHNOLOGY_CELL = 8; // 0x8 field public static final int SOURCE_TECHNOLOGY_GNSS = 1; // 0x1 field public static final int SOURCE_TECHNOLOGY_SENSORS = 4; // 0x4 field public static final int SOURCE_TECHNOLOGY_WIFI = 2; // 0x2 } public abstract class GeofenceHardwareCallback { ctor public GeofenceHardwareCallback(); method public void onGeofenceAdd(int, int); method public void onGeofencePause(int, int); method public void onGeofenceRemove(int, int); method public void onGeofenceResume(int, int); method public void onGeofenceTransition(int, int, android.location.Location, long, int); } public abstract class GeofenceHardwareMonitorCallback { ctor public GeofenceHardwareMonitorCallback(); method public deprecated void onMonitoringSystemChange(int, boolean, android.location.Location); method public void onMonitoringSystemChange(android.hardware.location.GeofenceHardwareMonitorEvent); } public class GeofenceHardwareMonitorEvent implements android.os.Parcelable { ctor public GeofenceHardwareMonitorEvent(int, int, int, android.location.Location); method public int describeContents(); method public android.location.Location getLocation(); method public int getMonitoringStatus(); method public int getMonitoringType(); method public int getSourceTechnologies(); method public void writeToParcel(android.os.Parcel, int); field public static final android.os.Parcelable.Creator CREATOR; } public final class GeofenceHardwareRequest { ctor public GeofenceHardwareRequest(); method public static android.hardware.location.GeofenceHardwareRequest createCircularGeofence(double, double, double); method public int getLastTransition(); method public double getLatitude(); method public double getLongitude(); method public int getMonitorTransitions(); method public int getNotificationResponsiveness(); method public double getRadius(); method public int getSourceTechnologies(); method public int getUnknownTimer(); method public void setLastTransition(int); method public void setMonitorTransitions(int); method public void setNotificationResponsiveness(int); method public void setSourceTechnologies(int); method public void setUnknownTimer(int); } } package android.hardware.usb { public class UsbAccessory implements android.os.Parcelable {
core/java/android/hardware/location/GeofenceHardware.java +5 −3 Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ */ package android.hardware.location; import android.annotation.SystemApi; import android.location.Location; import android.os.Build; import android.os.RemoteException; Loading Loading @@ -43,7 +44,10 @@ import java.util.HashMap; * an appropriate transition would be triggered. The "reasonably confident" parameter * depends on the hardware system and the positioning algorithms used. * For instance, {@link #MONITORING_TYPE_GPS_HARDWARE} uses 95% as a confidence level. * * @hide */ @SystemApi public final class GeofenceHardware { private IGeofenceHardware mService; Loading Loading @@ -162,9 +166,7 @@ public final class GeofenceHardware { private HashMap<GeofenceHardwareMonitorCallback, GeofenceHardwareMonitorCallbackWrapper> mMonitorCallbacks = new HashMap<GeofenceHardwareMonitorCallback, GeofenceHardwareMonitorCallbackWrapper>(); /** * @hide */ public GeofenceHardware(IGeofenceHardware service) { mService = service; } Loading
core/java/android/hardware/location/GeofenceHardwareCallback.java +4 −0 Original line number Diff line number Diff line Loading @@ -16,11 +16,15 @@ package android.hardware.location; import android.annotation.SystemApi; import android.location.Location; /** * The callback class associated with the APIs in {@link GeofenceHardware} * * @hide */ @SystemApi public abstract class GeofenceHardwareCallback { /** * The callback called when there is a transition to report for the specific Loading
core/java/android/hardware/location/GeofenceHardwareMonitorCallback.java +4 −0 Original line number Diff line number Diff line Loading @@ -16,12 +16,16 @@ package android.hardware.location; import android.annotation.SystemApi; import android.location.Location; /** * The callback class associated with the status change of hardware monitors * in {@link GeofenceHardware} * * @hide */ @SystemApi public abstract class GeofenceHardwareMonitorCallback { /** * The callback called when the state of a monitoring system changes. Loading
core/java/android/hardware/location/GeofenceHardwareMonitorEvent.java +4 −0 Original line number Diff line number Diff line Loading @@ -16,13 +16,17 @@ package android.hardware.location; import android.annotation.SystemApi; import android.location.Location; import android.os.Parcel; import android.os.Parcelable; /** * A class that represents an event for each change in the state of a monitoring system. * * @hide */ @SystemApi public class GeofenceHardwareMonitorEvent implements Parcelable { private final int mMonitoringType; private final int mMonitoringStatus; Loading