package android.location;
public interface IGnssStatusListener extends android.os.IInterface
{
public static abstract class Stub extends android.os.Binder implements android.location.IGnssStatusListener
{
private static final java.lang.String DESCRIPTOR = "android.location.IGnssStatusListener";
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
public static android.location.IGnssStatusListener asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof android.location.IGnssStatusListener))) {
return ((android.location.IGnssStatusListener)iin);
}
return new android.location.IGnssStatusListener.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
{
java.lang.String descriptor = DESCRIPTOR;
switch (code)
{
case INTERFACE_TRANSACTION:
{
reply.writeString(descriptor);
return true;
}
case TRANSACTION_onGnssStarted:
{
data.enforceInterface(descriptor);
this.onGnssStarted();
return true;
}
case TRANSACTION_onGnssStopped:
{
data.enforceInterface(descriptor);
this.onGnssStopped();
return true;
}
case TRANSACTION_onFirstFix:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
this.onFirstFix(_arg0);
return true;
}
case TRANSACTION_onSvStatusChanged:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
int[] _arg1;
_arg1 = data.createIntArray();
float[] _arg2;
_arg2 = data.createFloatArray();
float[] _arg3;
_arg3 = data.createFloatArray();
float[] _arg4;
_arg4 = data.createFloatArray();
float[] _arg5;
_arg5 = data.createFloatArray();
this.onSvStatusChanged(_arg0, _arg1, _arg2, _arg3, _arg4, _arg5);
return true;
}
case TRANSACTION_onNmeaReceived:
{
data.enforceInterface(descriptor);
long _arg0;
_arg0 = data.readLong();
java.lang.String _arg1;
_arg1 = data.readString();
this.onNmeaReceived(_arg0, _arg1);
return true;
}
default:
{
return super.onTransact(code, data, reply, flags);
}
}
}
private static class Proxy implements android.location.IGnssStatusListener
{
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 onGnssStarted() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_onGnssStarted, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void onGnssStopped() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_onGnssStopped, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void onFirstFix(int ttff) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(ttff);
mRemote.transact(Stub.TRANSACTION_onFirstFix, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void onSvStatusChanged(int svCount, int[] svidWithFlags, float[] cn0s, float[] elevations, float[] azimuths, float[] carrierFreqs) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(svCount);
_data.writeIntArray(svidWithFlags);
_data.writeFloatArray(cn0s);
_data.writeFloatArray(elevations);
_data.writeFloatArray(azimuths);
_data.writeFloatArray(carrierFreqs);
mRemote.transact(Stub.TRANSACTION_onSvStatusChanged, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void onNmeaReceived(long timestamp, java.lang.String nmea) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeLong(timestamp);
_data.writeString(nmea);
mRemote.transact(Stub.TRANSACTION_onNmeaReceived, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
}
static final int TRANSACTION_onGnssStarted = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_onGnssStopped = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
static final int TRANSACTION_onFirstFix = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
static final int TRANSACTION_onSvStatusChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);
static final int TRANSACTION_onNmeaReceived = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);
}
public void onGnssStarted() throws android.os.RemoteException;
public void onGnssStopped() throws android.os.RemoteException;
public void onFirstFix(int ttff) throws android.os.RemoteException;
public void onSvStatusChanged(int svCount, int[] svidWithFlags, float[] cn0s, float[] elevations, float[] azimuths, float[] carrierFreqs) throws android.os.RemoteException;
public void onNmeaReceived(long timestamp, java.lang.String nmea) throws android.os.RemoteException;
}