/* * This file is auto-generated. DO NOT MODIFY. * Original file: frameworks/base/location/java/android/location/ILocationProvider.aidl */ package android.location; /** * Binder interface for services that implement location providers. * * {@hide} */ public interface ILocationProvider extends android.os.IInterface { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements android.location.ILocationProvider { private static final java.lang.String DESCRIPTOR = "android.location.ILocationProvider"; /** Construct the stub at attach it to the interface. */ public Stub() { this.attachInterface(this, DESCRIPTOR); } /** * Cast an IBinder object into an android.location.ILocationProvider interface, * generating a proxy if needed. */ public static android.location.ILocationProvider asInterface(android.os.IBinder obj) { if ((obj==null)) { return null; } android.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR); if (((iin!=null)&&(iin instanceof android.location.ILocationProvider))) { return ((android.location.ILocationProvider)iin); } return new android.location.ILocationProvider.Stub.Proxy(obj); } 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_requiresNetwork: { data.enforceInterface(DESCRIPTOR); boolean _result = this.requiresNetwork(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_requiresSatellite: { data.enforceInterface(DESCRIPTOR); boolean _result = this.requiresSatellite(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_requiresCell: { data.enforceInterface(DESCRIPTOR); boolean _result = this.requiresCell(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_hasMonetaryCost: { data.enforceInterface(DESCRIPTOR); boolean _result = this.hasMonetaryCost(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_supportsAltitude: { data.enforceInterface(DESCRIPTOR); boolean _result = this.supportsAltitude(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_supportsSpeed: { data.enforceInterface(DESCRIPTOR); boolean _result = this.supportsSpeed(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_supportsBearing: { data.enforceInterface(DESCRIPTOR); boolean _result = this.supportsBearing(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_getPowerRequirement: { data.enforceInterface(DESCRIPTOR); int _result = this.getPowerRequirement(); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_meetsCriteria: { data.enforceInterface(DESCRIPTOR); android.location.Criteria _arg0; if ((0!=data.readInt())) { _arg0 = android.location.Criteria.CREATOR.createFromParcel(data); } else { _arg0 = null; } boolean _result = this.meetsCriteria(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_getAccuracy: { data.enforceInterface(DESCRIPTOR); int _result = this.getAccuracy(); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_enable: { data.enforceInterface(DESCRIPTOR); this.enable(); reply.writeNoException(); return true; } case TRANSACTION_disable: { data.enforceInterface(DESCRIPTOR); this.disable(); reply.writeNoException(); return true; } case TRANSACTION_getStatus: { data.enforceInterface(DESCRIPTOR); android.os.Bundle _arg0; _arg0 = new android.os.Bundle(); int _result = this.getStatus(_arg0); reply.writeNoException(); reply.writeInt(_result); if ((_arg0!=null)) { reply.writeInt(1); _arg0.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); } else { reply.writeInt(0); } return true; } case TRANSACTION_getStatusUpdateTime: { data.enforceInterface(DESCRIPTOR); long _result = this.getStatusUpdateTime(); reply.writeNoException(); reply.writeLong(_result); return true; } case TRANSACTION_getInternalState: { data.enforceInterface(DESCRIPTOR); java.lang.String _result = this.getInternalState(); reply.writeNoException(); reply.writeString(_result); return true; } case TRANSACTION_enableLocationTracking: { data.enforceInterface(DESCRIPTOR); boolean _arg0; _arg0 = (0!=data.readInt()); this.enableLocationTracking(_arg0); reply.writeNoException(); return true; } case TRANSACTION_setMinTime: { data.enforceInterface(DESCRIPTOR); long _arg0; _arg0 = data.readLong(); android.os.WorkSource _arg1; if ((0!=data.readInt())) { _arg1 = android.os.WorkSource.CREATOR.createFromParcel(data); } else { _arg1 = null; } this.setMinTime(_arg0, _arg1); reply.writeNoException(); return true; } case TRANSACTION_updateNetworkState: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); android.net.NetworkInfo _arg1; if ((0!=data.readInt())) { _arg1 = android.net.NetworkInfo.CREATOR.createFromParcel(data); } else { _arg1 = null; } this.updateNetworkState(_arg0, _arg1); reply.writeNoException(); return true; } case TRANSACTION_updateLocation: { data.enforceInterface(DESCRIPTOR); android.location.Location _arg0; if ((0!=data.readInt())) { _arg0 = android.location.Location.CREATOR.createFromParcel(data); } else { _arg0 = null; } this.updateLocation(_arg0); reply.writeNoException(); return true; } case TRANSACTION_sendExtraCommand: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); android.os.Bundle _arg1; if ((0!=data.readInt())) { _arg1 = android.os.Bundle.CREATOR.createFromParcel(data); } else { _arg1 = null; } boolean _result = this.sendExtraCommand(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); if ((_arg1!=null)) { reply.writeInt(1); _arg1.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); } else { reply.writeInt(0); } return true; } case TRANSACTION_addListener: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); this.addListener(_arg0); reply.writeNoException(); return true; } case TRANSACTION_removeListener: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); this.removeListener(_arg0); reply.writeNoException(); return true; } } return super.onTransact(code, data, reply, flags); } private static class Proxy implements android.location.ILocationProvider { private android.os.IBinder mRemote; Proxy(android.os.IBinder remote) { mRemote = remote; } public android.os.IBinder asBinder() { return mRemote; } public java.lang.String getInterfaceDescriptor() { return DESCRIPTOR; } public boolean requiresNetwork() 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); mRemote.transact(Stub.TRANSACTION_requiresNetwork, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean requiresSatellite() 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); mRemote.transact(Stub.TRANSACTION_requiresSatellite, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean requiresCell() 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); mRemote.transact(Stub.TRANSACTION_requiresCell, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean hasMonetaryCost() 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); mRemote.transact(Stub.TRANSACTION_hasMonetaryCost, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean supportsAltitude() 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); mRemote.transact(Stub.TRANSACTION_supportsAltitude, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean supportsSpeed() 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); mRemote.transact(Stub.TRANSACTION_supportsSpeed, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean supportsBearing() 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); mRemote.transact(Stub.TRANSACTION_supportsBearing, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public int getPowerRequirement() 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_getPowerRequirement, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean meetsCriteria(android.location.Criteria criteria) 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); if ((criteria!=null)) { _data.writeInt(1); criteria.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_meetsCriteria, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public int getAccuracy() 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_getAccuracy, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public void enable() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_enable, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void disable() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_disable, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public int getStatus(android.os.Bundle extras) 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_getStatus, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); if ((0!=_reply.readInt())) { extras.readFromParcel(_reply); } } finally { _reply.recycle(); _data.recycle(); } return _result; } public long getStatusUpdateTime() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); long _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getStatusUpdateTime, _data, _reply, 0); _reply.readException(); _result = _reply.readLong(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public java.lang.String getInternalState() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); java.lang.String _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getInternalState, _data, _reply, 0); _reply.readException(); _result = _reply.readString(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public void enableLocationTracking(boolean enable) 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.writeInt(((enable)?(1):(0))); mRemote.transact(Stub.TRANSACTION_enableLocationTracking, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void setMinTime(long minTime, android.os.WorkSource ws) 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.writeLong(minTime); if ((ws!=null)) { _data.writeInt(1); ws.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_setMinTime, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void updateNetworkState(int state, android.net.NetworkInfo info) 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.writeInt(state); if ((info!=null)) { _data.writeInt(1); info.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_updateNetworkState, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void updateLocation(android.location.Location location) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); if ((location!=null)) { _data.writeInt(1); location.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_updateLocation, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public boolean sendExtraCommand(java.lang.String command, android.os.Bundle extras) 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.writeString(command); if ((extras!=null)) { _data.writeInt(1); extras.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_sendExtraCommand, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); if ((0!=_reply.readInt())) { extras.readFromParcel(_reply); } } finally { _reply.recycle(); _data.recycle(); } return _result; } public void addListener(int uid) 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.writeInt(uid); mRemote.transact(Stub.TRANSACTION_addListener, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void removeListener(int uid) 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.writeInt(uid); mRemote.transact(Stub.TRANSACTION_removeListener, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } } static final int TRANSACTION_requiresNetwork = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_requiresSatellite = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_requiresCell = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_hasMonetaryCost = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); static final int TRANSACTION_supportsAltitude = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); static final int TRANSACTION_supportsSpeed = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); static final int TRANSACTION_supportsBearing = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6); static final int TRANSACTION_getPowerRequirement = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7); static final int TRANSACTION_meetsCriteria = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8); static final int TRANSACTION_getAccuracy = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9); static final int TRANSACTION_enable = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10); static final int TRANSACTION_disable = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11); static final int TRANSACTION_getStatus = (android.os.IBinder.FIRST_CALL_TRANSACTION + 12); static final int TRANSACTION_getStatusUpdateTime = (android.os.IBinder.FIRST_CALL_TRANSACTION + 13); static final int TRANSACTION_getInternalState = (android.os.IBinder.FIRST_CALL_TRANSACTION + 14); static final int TRANSACTION_enableLocationTracking = (android.os.IBinder.FIRST_CALL_TRANSACTION + 15); static final int TRANSACTION_setMinTime = (android.os.IBinder.FIRST_CALL_TRANSACTION + 16); static final int TRANSACTION_updateNetworkState = (android.os.IBinder.FIRST_CALL_TRANSACTION + 17); static final int TRANSACTION_updateLocation = (android.os.IBinder.FIRST_CALL_TRANSACTION + 18); static final int TRANSACTION_sendExtraCommand = (android.os.IBinder.FIRST_CALL_TRANSACTION + 19); static final int TRANSACTION_addListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 20); static final int TRANSACTION_removeListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 21); } public boolean requiresNetwork() throws android.os.RemoteException; public boolean requiresSatellite() throws android.os.RemoteException; public boolean requiresCell() throws android.os.RemoteException; public boolean hasMonetaryCost() throws android.os.RemoteException; public boolean supportsAltitude() throws android.os.RemoteException; public boolean supportsSpeed() throws android.os.RemoteException; public boolean supportsBearing() throws android.os.RemoteException; public int getPowerRequirement() throws android.os.RemoteException; public boolean meetsCriteria(android.location.Criteria criteria) throws android.os.RemoteException; public int getAccuracy() throws android.os.RemoteException; public void enable() throws android.os.RemoteException; public void disable() throws android.os.RemoteException; public int getStatus(android.os.Bundle extras) throws android.os.RemoteException; public long getStatusUpdateTime() throws android.os.RemoteException; public java.lang.String getInternalState() throws android.os.RemoteException; public void enableLocationTracking(boolean enable) throws android.os.RemoteException; public void setMinTime(long minTime, android.os.WorkSource ws) throws android.os.RemoteException; public void updateNetworkState(int state, android.net.NetworkInfo info) throws android.os.RemoteException; public void updateLocation(android.location.Location location) throws android.os.RemoteException; public boolean sendExtraCommand(java.lang.String command, android.os.Bundle extras) throws android.os.RemoteException; public void addListener(int uid) throws android.os.RemoteException; public void removeListener(int uid) throws android.os.RemoteException; }