FileDocCategorySizeDatePackage
IGeofenceHardware.javaAPI DocAndroid 5.1 API13342Sat Mar 14 05:48:02 GMT 2015android.hardware.location

IGeofenceHardware.java

/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: frameworks/base/core/java/android/hardware/location/IGeofenceHardware.aidl
 */
package android.hardware.location;
/** @hide */
public interface IGeofenceHardware extends android.os.IInterface
{
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements android.hardware.location.IGeofenceHardware
{
private static final java.lang.String DESCRIPTOR = "android.hardware.location.IGeofenceHardware";
/** Construct the stub at attach it to the interface. */
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
/**
 * Cast an IBinder object into an android.hardware.location.IGeofenceHardware interface,
 * generating a proxy if needed.
 */
public static android.hardware.location.IGeofenceHardware asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof android.hardware.location.IGeofenceHardware))) {
return ((android.hardware.location.IGeofenceHardware)iin);
}
return new android.hardware.location.IGeofenceHardware.Stub.Proxy(obj);
}
@Override public android.os.IBinder asBinder()
{
return this;
}
@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException
{
switch (code)
{
case INTERFACE_TRANSACTION:
{
reply.writeString(DESCRIPTOR);
return true;
}
case TRANSACTION_setGpsGeofenceHardware:
{
data.enforceInterface(DESCRIPTOR);
android.location.IGpsGeofenceHardware _arg0;
_arg0 = android.location.IGpsGeofenceHardware.Stub.asInterface(data.readStrongBinder());
this.setGpsGeofenceHardware(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_setFusedGeofenceHardware:
{
data.enforceInterface(DESCRIPTOR);
android.location.IFusedGeofenceHardware _arg0;
_arg0 = android.location.IFusedGeofenceHardware.Stub.asInterface(data.readStrongBinder());
this.setFusedGeofenceHardware(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_getMonitoringTypes:
{
data.enforceInterface(DESCRIPTOR);
int[] _result = this.getMonitoringTypes();
reply.writeNoException();
reply.writeIntArray(_result);
return true;
}
case TRANSACTION_getStatusOfMonitoringType:
{
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
int _result = this.getStatusOfMonitoringType(_arg0);
reply.writeNoException();
reply.writeInt(_result);
return true;
}
case TRANSACTION_addCircularFence:
{
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
android.hardware.location.GeofenceHardwareRequestParcelable _arg1;
if ((0!=data.readInt())) {
_arg1 = android.hardware.location.GeofenceHardwareRequestParcelable.CREATOR.createFromParcel(data);
}
else {
_arg1 = null;
}
android.hardware.location.IGeofenceHardwareCallback _arg2;
_arg2 = android.hardware.location.IGeofenceHardwareCallback.Stub.asInterface(data.readStrongBinder());
boolean _result = this.addCircularFence(_arg0, _arg1, _arg2);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_removeGeofence:
{
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
int _arg1;
_arg1 = data.readInt();
boolean _result = this.removeGeofence(_arg0, _arg1);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_pauseGeofence:
{
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
int _arg1;
_arg1 = data.readInt();
boolean _result = this.pauseGeofence(_arg0, _arg1);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_resumeGeofence:
{
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
int _arg1;
_arg1 = data.readInt();
int _arg2;
_arg2 = data.readInt();
boolean _result = this.resumeGeofence(_arg0, _arg1, _arg2);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_registerForMonitorStateChangeCallback:
{
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
android.hardware.location.IGeofenceHardwareMonitorCallback _arg1;
_arg1 = android.hardware.location.IGeofenceHardwareMonitorCallback.Stub.asInterface(data.readStrongBinder());
boolean _result = this.registerForMonitorStateChangeCallback(_arg0, _arg1);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_unregisterForMonitorStateChangeCallback:
{
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
android.hardware.location.IGeofenceHardwareMonitorCallback _arg1;
_arg1 = android.hardware.location.IGeofenceHardwareMonitorCallback.Stub.asInterface(data.readStrongBinder());
boolean _result = this.unregisterForMonitorStateChangeCallback(_arg0, _arg1);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
}
return super.onTransact(code, data, reply, flags);
}
private static class Proxy implements android.hardware.location.IGeofenceHardware
{
private android.os.IBinder mRemote;
Proxy(android.os.IBinder remote)
{
mRemote = remote;
}
@Override public android.os.IBinder asBinder()
{
return mRemote;
}
public java.lang.String getInterfaceDescriptor()
{
return DESCRIPTOR;
}
@Override public void setGpsGeofenceHardware(android.location.IGpsGeofenceHardware service) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeStrongBinder((((service!=null))?(service.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_setGpsGeofenceHardware, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void setFusedGeofenceHardware(android.location.IFusedGeofenceHardware service) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeStrongBinder((((service!=null))?(service.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_setFusedGeofenceHardware, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public int[] getMonitoringTypes() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
int[] _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_getMonitoringTypes, _data, _reply, 0);
_reply.readException();
_result = _reply.createIntArray();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public int getStatusOfMonitoringType(int monitoringType) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
int _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(monitoringType);
mRemote.transact(Stub.TRANSACTION_getStatusOfMonitoringType, _data, _reply, 0);
_reply.readException();
_result = _reply.readInt();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public boolean addCircularFence(int monitoringType, android.hardware.location.GeofenceHardwareRequestParcelable request, android.hardware.location.IGeofenceHardwareCallback callback) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(monitoringType);
if ((request!=null)) {
_data.writeInt(1);
request.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
_data.writeStrongBinder((((callback!=null))?(callback.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_addCircularFence, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public boolean removeGeofence(int id, int monitoringType) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(id);
_data.writeInt(monitoringType);
mRemote.transact(Stub.TRANSACTION_removeGeofence, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public boolean pauseGeofence(int id, int monitoringType) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(id);
_data.writeInt(monitoringType);
mRemote.transact(Stub.TRANSACTION_pauseGeofence, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public boolean resumeGeofence(int id, int monitoringType, int monitorTransitions) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(id);
_data.writeInt(monitoringType);
_data.writeInt(monitorTransitions);
mRemote.transact(Stub.TRANSACTION_resumeGeofence, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public boolean registerForMonitorStateChangeCallback(int monitoringType, android.hardware.location.IGeofenceHardwareMonitorCallback callback) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(monitoringType);
_data.writeStrongBinder((((callback!=null))?(callback.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_registerForMonitorStateChangeCallback, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public boolean unregisterForMonitorStateChangeCallback(int monitoringType, android.hardware.location.IGeofenceHardwareMonitorCallback callback) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(monitoringType);
_data.writeStrongBinder((((callback!=null))?(callback.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_unregisterForMonitorStateChangeCallback, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
}
static final int TRANSACTION_setGpsGeofenceHardware = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_setFusedGeofenceHardware = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
static final int TRANSACTION_getMonitoringTypes = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
static final int TRANSACTION_getStatusOfMonitoringType = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);
static final int TRANSACTION_addCircularFence = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);
static final int TRANSACTION_removeGeofence = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5);
static final int TRANSACTION_pauseGeofence = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6);
static final int TRANSACTION_resumeGeofence = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7);
static final int TRANSACTION_registerForMonitorStateChangeCallback = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8);
static final int TRANSACTION_unregisterForMonitorStateChangeCallback = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9);
}
public void setGpsGeofenceHardware(android.location.IGpsGeofenceHardware service) throws android.os.RemoteException;
public void setFusedGeofenceHardware(android.location.IFusedGeofenceHardware service) throws android.os.RemoteException;
public int[] getMonitoringTypes() throws android.os.RemoteException;
public int getStatusOfMonitoringType(int monitoringType) throws android.os.RemoteException;
public boolean addCircularFence(int monitoringType, android.hardware.location.GeofenceHardwareRequestParcelable request, android.hardware.location.IGeofenceHardwareCallback callback) throws android.os.RemoteException;
public boolean removeGeofence(int id, int monitoringType) throws android.os.RemoteException;
public boolean pauseGeofence(int id, int monitoringType) throws android.os.RemoteException;
public boolean resumeGeofence(int id, int monitoringType, int monitorTransitions) throws android.os.RemoteException;
public boolean registerForMonitorStateChangeCallback(int monitoringType, android.hardware.location.IGeofenceHardwareMonitorCallback callback) throws android.os.RemoteException;
public boolean unregisterForMonitorStateChangeCallback(int monitoringType, android.hardware.location.IGeofenceHardwareMonitorCallback callback) throws android.os.RemoteException;
}