/* * This file is auto-generated. DO NOT MODIFY. * Original file: frameworks/base/telephony/java/com/android/internal/telephony/IPhoneStateListener.aidl */ package com.android.internal.telephony; public interface IPhoneStateListener extends android.os.IInterface { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements com.android.internal.telephony.IPhoneStateListener { private static final java.lang.String DESCRIPTOR = "com.android.internal.telephony.IPhoneStateListener"; /** Construct the stub at attach it to the interface. */ public Stub() { this.attachInterface(this, DESCRIPTOR); } /** * Cast an IBinder object into an com.android.internal.telephony.IPhoneStateListener interface, * generating a proxy if needed. */ public static com.android.internal.telephony.IPhoneStateListener 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 com.android.internal.telephony.IPhoneStateListener))) { return ((com.android.internal.telephony.IPhoneStateListener)iin); } return new com.android.internal.telephony.IPhoneStateListener.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_onServiceStateChanged: { data.enforceInterface(DESCRIPTOR); android.telephony.ServiceState _arg0; if ((0!=data.readInt())) { _arg0 = android.telephony.ServiceState.CREATOR.createFromParcel(data); } else { _arg0 = null; } this.onServiceStateChanged(_arg0); return true; } case TRANSACTION_onSignalStrengthChanged: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); this.onSignalStrengthChanged(_arg0); return true; } case TRANSACTION_onMessageWaitingIndicatorChanged: { data.enforceInterface(DESCRIPTOR); boolean _arg0; _arg0 = (0!=data.readInt()); this.onMessageWaitingIndicatorChanged(_arg0); return true; } case TRANSACTION_onCallForwardingIndicatorChanged: { data.enforceInterface(DESCRIPTOR); boolean _arg0; _arg0 = (0!=data.readInt()); this.onCallForwardingIndicatorChanged(_arg0); return true; } case TRANSACTION_onCellLocationChanged: { data.enforceInterface(DESCRIPTOR); android.os.Bundle _arg0; if ((0!=data.readInt())) { _arg0 = android.os.Bundle.CREATOR.createFromParcel(data); } else { _arg0 = null; } this.onCellLocationChanged(_arg0); return true; } case TRANSACTION_onCallStateChanged: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); java.lang.String _arg1; _arg1 = data.readString(); this.onCallStateChanged(_arg0, _arg1); return true; } case TRANSACTION_onDataConnectionStateChanged: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); int _arg1; _arg1 = data.readInt(); this.onDataConnectionStateChanged(_arg0, _arg1); return true; } case TRANSACTION_onDataActivity: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); this.onDataActivity(_arg0); return true; } case TRANSACTION_onSignalStrengthsChanged: { data.enforceInterface(DESCRIPTOR); android.telephony.SignalStrength _arg0; if ((0!=data.readInt())) { _arg0 = android.telephony.SignalStrength.CREATOR.createFromParcel(data); } else { _arg0 = null; } this.onSignalStrengthsChanged(_arg0); return true; } case TRANSACTION_onOtaspChanged: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); this.onOtaspChanged(_arg0); return true; } } return super.onTransact(code, data, reply, flags); } private static class Proxy implements com.android.internal.telephony.IPhoneStateListener { 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 void onServiceStateChanged(android.telephony.ServiceState serviceState) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); if ((serviceState!=null)) { _data.writeInt(1); serviceState.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_onServiceStateChanged, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void onSignalStrengthChanged(int asu) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(asu); mRemote.transact(Stub.TRANSACTION_onSignalStrengthChanged, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void onMessageWaitingIndicatorChanged(boolean mwi) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((mwi)?(1):(0))); mRemote.transact(Stub.TRANSACTION_onMessageWaitingIndicatorChanged, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void onCallForwardingIndicatorChanged(boolean cfi) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((cfi)?(1):(0))); mRemote.transact(Stub.TRANSACTION_onCallForwardingIndicatorChanged, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } // we use bundle here instead of CellLocation so it can get the right subclass public void onCellLocationChanged(android.os.Bundle location) throws android.os.RemoteException { android.os.Parcel _data = 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_onCellLocationChanged, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void onCallStateChanged(int state, java.lang.String incomingNumber) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(state); _data.writeString(incomingNumber); mRemote.transact(Stub.TRANSACTION_onCallStateChanged, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void onDataConnectionStateChanged(int state, int networkType) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(state); _data.writeInt(networkType); mRemote.transact(Stub.TRANSACTION_onDataConnectionStateChanged, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void onDataActivity(int direction) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(direction); mRemote.transact(Stub.TRANSACTION_onDataActivity, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void onSignalStrengthsChanged(android.telephony.SignalStrength signalStrength) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); if ((signalStrength!=null)) { _data.writeInt(1); signalStrength.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_onSignalStrengthsChanged, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void onOtaspChanged(int otaspMode) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(otaspMode); mRemote.transact(Stub.TRANSACTION_onOtaspChanged, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } } static final int TRANSACTION_onServiceStateChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_onSignalStrengthChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_onMessageWaitingIndicatorChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_onCallForwardingIndicatorChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); static final int TRANSACTION_onCellLocationChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); static final int TRANSACTION_onCallStateChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); static final int TRANSACTION_onDataConnectionStateChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6); static final int TRANSACTION_onDataActivity = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7); static final int TRANSACTION_onSignalStrengthsChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8); static final int TRANSACTION_onOtaspChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9); } public void onServiceStateChanged(android.telephony.ServiceState serviceState) throws android.os.RemoteException; public void onSignalStrengthChanged(int asu) throws android.os.RemoteException; public void onMessageWaitingIndicatorChanged(boolean mwi) throws android.os.RemoteException; public void onCallForwardingIndicatorChanged(boolean cfi) throws android.os.RemoteException; // we use bundle here instead of CellLocation so it can get the right subclass public void onCellLocationChanged(android.os.Bundle location) throws android.os.RemoteException; public void onCallStateChanged(int state, java.lang.String incomingNumber) throws android.os.RemoteException; public void onDataConnectionStateChanged(int state, int networkType) throws android.os.RemoteException; public void onDataActivity(int direction) throws android.os.RemoteException; public void onSignalStrengthsChanged(android.telephony.SignalStrength signalStrength) throws android.os.RemoteException; public void onOtaspChanged(int otaspMode) throws android.os.RemoteException; }