483 lines
20 KiB
Java
483 lines
20 KiB
Java
/*
|
|
* This file is auto-generated. DO NOT MODIFY.
|
|
* Using: out/host/linux-x86/bin/aidl --lang=java --structured --version 3 --hash ea7be3035be8d4869237a6478d2e0bb0efcc1e87 --stability vintf --min_sdk_version current -pout/soong/.intermediates/hardware/interfaces/radio/aidl/android.hardware.radio_interface/3/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/radio/aidl/android.hardware.radio.config_interface/3/preprocessed.aidl --ninja -d out/soong/.intermediates/hardware/interfaces/radio/aidl/android.hardware.radio.sim-V3-java-source/gen/android/hardware/radio/sim/IRadioSimIndication.java.d -o out/soong/.intermediates/hardware/interfaces/radio/aidl/android.hardware.radio.sim-V3-java-source/gen -Nhardware/interfaces/radio/aidl/aidl_api/android.hardware.radio.sim/3 hardware/interfaces/radio/aidl/aidl_api/android.hardware.radio.sim/3/android/hardware/radio/sim/IRadioSimIndication.aidl
|
|
*/
|
|
package android.hardware.radio.sim;
|
|
/** @hide */
|
|
public interface IRadioSimIndication extends android.os.IInterface
|
|
{
|
|
/**
|
|
* The version of this interface that the caller is built against.
|
|
* This might be different from what {@link #getInterfaceVersion()
|
|
* getInterfaceVersion} returns as that is the version of the interface
|
|
* that the remote object is implementing.
|
|
*/
|
|
public static final int VERSION = 3;
|
|
public static final String HASH = "ea7be3035be8d4869237a6478d2e0bb0efcc1e87";
|
|
/** Default implementation for IRadioSimIndication. */
|
|
public static class Default implements android.hardware.radio.sim.IRadioSimIndication
|
|
{
|
|
@Override public void carrierInfoForImsiEncryption(int info) throws android.os.RemoteException
|
|
{
|
|
}
|
|
@Override public void cdmaSubscriptionSourceChanged(int type, int cdmaSource) throws android.os.RemoteException
|
|
{
|
|
}
|
|
@Override public void simPhonebookChanged(int type) throws android.os.RemoteException
|
|
{
|
|
}
|
|
@Override public void simPhonebookRecordsReceived(int type, byte status, android.hardware.radio.sim.PhonebookRecordInfo[] records) throws android.os.RemoteException
|
|
{
|
|
}
|
|
@Override public void simRefresh(int type, android.hardware.radio.sim.SimRefreshResult refreshResult) throws android.os.RemoteException
|
|
{
|
|
}
|
|
@Override public void simStatusChanged(int type) throws android.os.RemoteException
|
|
{
|
|
}
|
|
@Override public void stkEventNotify(int type, java.lang.String cmd) throws android.os.RemoteException
|
|
{
|
|
}
|
|
@Override public void stkProactiveCommand(int type, java.lang.String cmd) throws android.os.RemoteException
|
|
{
|
|
}
|
|
@Override public void stkSessionEnd(int type) throws android.os.RemoteException
|
|
{
|
|
}
|
|
@Override public void subscriptionStatusChanged(int type, boolean activate) throws android.os.RemoteException
|
|
{
|
|
}
|
|
@Override public void uiccApplicationsEnablementChanged(int type, boolean enabled) throws android.os.RemoteException
|
|
{
|
|
}
|
|
@Override
|
|
public int getInterfaceVersion() {
|
|
return 0;
|
|
}
|
|
@Override
|
|
public String getInterfaceHash() {
|
|
return "";
|
|
}
|
|
@Override
|
|
public android.os.IBinder asBinder() {
|
|
return null;
|
|
}
|
|
}
|
|
/** Local-side IPC implementation stub class. */
|
|
public static abstract class Stub extends android.os.Binder implements android.hardware.radio.sim.IRadioSimIndication
|
|
{
|
|
/** Construct the stub at attach it to the interface. */
|
|
@SuppressWarnings("this-escape")
|
|
public Stub()
|
|
{
|
|
this.markVintfStability();
|
|
this.attachInterface(this, DESCRIPTOR);
|
|
}
|
|
/**
|
|
* Cast an IBinder object into an android.hardware.radio.sim.IRadioSimIndication interface,
|
|
* generating a proxy if needed.
|
|
*/
|
|
public static android.hardware.radio.sim.IRadioSimIndication asInterface(android.os.IBinder obj)
|
|
{
|
|
if ((obj==null)) {
|
|
return null;
|
|
}
|
|
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
|
|
if (((iin!=null)&&(iin instanceof android.hardware.radio.sim.IRadioSimIndication))) {
|
|
return ((android.hardware.radio.sim.IRadioSimIndication)iin);
|
|
}
|
|
return new android.hardware.radio.sim.IRadioSimIndication.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;
|
|
if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) {
|
|
data.enforceInterface(descriptor);
|
|
}
|
|
if (code == INTERFACE_TRANSACTION) {
|
|
reply.writeString(descriptor);
|
|
return true;
|
|
}
|
|
else if (code == TRANSACTION_getInterfaceVersion) {
|
|
reply.writeNoException();
|
|
reply.writeInt(getInterfaceVersion());
|
|
return true;
|
|
}
|
|
else if (code == TRANSACTION_getInterfaceHash) {
|
|
reply.writeNoException();
|
|
reply.writeString(getInterfaceHash());
|
|
return true;
|
|
}
|
|
switch (code)
|
|
{
|
|
case TRANSACTION_carrierInfoForImsiEncryption:
|
|
{
|
|
int _arg0;
|
|
_arg0 = data.readInt();
|
|
data.enforceNoDataAvail();
|
|
this.carrierInfoForImsiEncryption(_arg0);
|
|
break;
|
|
}
|
|
case TRANSACTION_cdmaSubscriptionSourceChanged:
|
|
{
|
|
int _arg0;
|
|
_arg0 = data.readInt();
|
|
int _arg1;
|
|
_arg1 = data.readInt();
|
|
data.enforceNoDataAvail();
|
|
this.cdmaSubscriptionSourceChanged(_arg0, _arg1);
|
|
break;
|
|
}
|
|
case TRANSACTION_simPhonebookChanged:
|
|
{
|
|
int _arg0;
|
|
_arg0 = data.readInt();
|
|
data.enforceNoDataAvail();
|
|
this.simPhonebookChanged(_arg0);
|
|
break;
|
|
}
|
|
case TRANSACTION_simPhonebookRecordsReceived:
|
|
{
|
|
int _arg0;
|
|
_arg0 = data.readInt();
|
|
byte _arg1;
|
|
_arg1 = data.readByte();
|
|
android.hardware.radio.sim.PhonebookRecordInfo[] _arg2;
|
|
_arg2 = data.createTypedArray(android.hardware.radio.sim.PhonebookRecordInfo.CREATOR);
|
|
data.enforceNoDataAvail();
|
|
this.simPhonebookRecordsReceived(_arg0, _arg1, _arg2);
|
|
break;
|
|
}
|
|
case TRANSACTION_simRefresh:
|
|
{
|
|
int _arg0;
|
|
_arg0 = data.readInt();
|
|
android.hardware.radio.sim.SimRefreshResult _arg1;
|
|
_arg1 = data.readTypedObject(android.hardware.radio.sim.SimRefreshResult.CREATOR);
|
|
data.enforceNoDataAvail();
|
|
this.simRefresh(_arg0, _arg1);
|
|
break;
|
|
}
|
|
case TRANSACTION_simStatusChanged:
|
|
{
|
|
int _arg0;
|
|
_arg0 = data.readInt();
|
|
data.enforceNoDataAvail();
|
|
this.simStatusChanged(_arg0);
|
|
break;
|
|
}
|
|
case TRANSACTION_stkEventNotify:
|
|
{
|
|
int _arg0;
|
|
_arg0 = data.readInt();
|
|
java.lang.String _arg1;
|
|
_arg1 = data.readString();
|
|
data.enforceNoDataAvail();
|
|
this.stkEventNotify(_arg0, _arg1);
|
|
break;
|
|
}
|
|
case TRANSACTION_stkProactiveCommand:
|
|
{
|
|
int _arg0;
|
|
_arg0 = data.readInt();
|
|
java.lang.String _arg1;
|
|
_arg1 = data.readString();
|
|
data.enforceNoDataAvail();
|
|
this.stkProactiveCommand(_arg0, _arg1);
|
|
break;
|
|
}
|
|
case TRANSACTION_stkSessionEnd:
|
|
{
|
|
int _arg0;
|
|
_arg0 = data.readInt();
|
|
data.enforceNoDataAvail();
|
|
this.stkSessionEnd(_arg0);
|
|
break;
|
|
}
|
|
case TRANSACTION_subscriptionStatusChanged:
|
|
{
|
|
int _arg0;
|
|
_arg0 = data.readInt();
|
|
boolean _arg1;
|
|
_arg1 = data.readBoolean();
|
|
data.enforceNoDataAvail();
|
|
this.subscriptionStatusChanged(_arg0, _arg1);
|
|
break;
|
|
}
|
|
case TRANSACTION_uiccApplicationsEnablementChanged:
|
|
{
|
|
int _arg0;
|
|
_arg0 = data.readInt();
|
|
boolean _arg1;
|
|
_arg1 = data.readBoolean();
|
|
data.enforceNoDataAvail();
|
|
this.uiccApplicationsEnablementChanged(_arg0, _arg1);
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
return super.onTransact(code, data, reply, flags);
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
private static class Proxy implements android.hardware.radio.sim.IRadioSimIndication
|
|
{
|
|
private android.os.IBinder mRemote;
|
|
Proxy(android.os.IBinder remote)
|
|
{
|
|
mRemote = remote;
|
|
}
|
|
private int mCachedVersion = -1;
|
|
private String mCachedHash = "-1";
|
|
@Override public android.os.IBinder asBinder()
|
|
{
|
|
return mRemote;
|
|
}
|
|
public java.lang.String getInterfaceDescriptor()
|
|
{
|
|
return DESCRIPTOR;
|
|
}
|
|
@Override public void carrierInfoForImsiEncryption(int info) throws android.os.RemoteException
|
|
{
|
|
android.os.Parcel _data = android.os.Parcel.obtain(asBinder());
|
|
try {
|
|
_data.writeInterfaceToken(DESCRIPTOR);
|
|
_data.writeInt(info);
|
|
boolean _status = mRemote.transact(Stub.TRANSACTION_carrierInfoForImsiEncryption, _data, null, android.os.IBinder.FLAG_ONEWAY);
|
|
if (!_status) {
|
|
throw new android.os.RemoteException("Method carrierInfoForImsiEncryption is unimplemented.");
|
|
}
|
|
}
|
|
finally {
|
|
_data.recycle();
|
|
}
|
|
}
|
|
@Override public void cdmaSubscriptionSourceChanged(int type, int cdmaSource) throws android.os.RemoteException
|
|
{
|
|
android.os.Parcel _data = android.os.Parcel.obtain(asBinder());
|
|
try {
|
|
_data.writeInterfaceToken(DESCRIPTOR);
|
|
_data.writeInt(type);
|
|
_data.writeInt(cdmaSource);
|
|
boolean _status = mRemote.transact(Stub.TRANSACTION_cdmaSubscriptionSourceChanged, _data, null, android.os.IBinder.FLAG_ONEWAY);
|
|
if (!_status) {
|
|
throw new android.os.RemoteException("Method cdmaSubscriptionSourceChanged is unimplemented.");
|
|
}
|
|
}
|
|
finally {
|
|
_data.recycle();
|
|
}
|
|
}
|
|
@Override public void simPhonebookChanged(int type) throws android.os.RemoteException
|
|
{
|
|
android.os.Parcel _data = android.os.Parcel.obtain(asBinder());
|
|
try {
|
|
_data.writeInterfaceToken(DESCRIPTOR);
|
|
_data.writeInt(type);
|
|
boolean _status = mRemote.transact(Stub.TRANSACTION_simPhonebookChanged, _data, null, android.os.IBinder.FLAG_ONEWAY);
|
|
if (!_status) {
|
|
throw new android.os.RemoteException("Method simPhonebookChanged is unimplemented.");
|
|
}
|
|
}
|
|
finally {
|
|
_data.recycle();
|
|
}
|
|
}
|
|
@Override public void simPhonebookRecordsReceived(int type, byte status, android.hardware.radio.sim.PhonebookRecordInfo[] records) throws android.os.RemoteException
|
|
{
|
|
android.os.Parcel _data = android.os.Parcel.obtain(asBinder());
|
|
try {
|
|
_data.writeInterfaceToken(DESCRIPTOR);
|
|
_data.writeInt(type);
|
|
_data.writeByte(status);
|
|
_data.writeTypedArray(records, 0);
|
|
boolean _status = mRemote.transact(Stub.TRANSACTION_simPhonebookRecordsReceived, _data, null, android.os.IBinder.FLAG_ONEWAY);
|
|
if (!_status) {
|
|
throw new android.os.RemoteException("Method simPhonebookRecordsReceived is unimplemented.");
|
|
}
|
|
}
|
|
finally {
|
|
_data.recycle();
|
|
}
|
|
}
|
|
@Override public void simRefresh(int type, android.hardware.radio.sim.SimRefreshResult refreshResult) throws android.os.RemoteException
|
|
{
|
|
android.os.Parcel _data = android.os.Parcel.obtain(asBinder());
|
|
try {
|
|
_data.writeInterfaceToken(DESCRIPTOR);
|
|
_data.writeInt(type);
|
|
_data.writeTypedObject(refreshResult, 0);
|
|
boolean _status = mRemote.transact(Stub.TRANSACTION_simRefresh, _data, null, android.os.IBinder.FLAG_ONEWAY);
|
|
if (!_status) {
|
|
throw new android.os.RemoteException("Method simRefresh is unimplemented.");
|
|
}
|
|
}
|
|
finally {
|
|
_data.recycle();
|
|
}
|
|
}
|
|
@Override public void simStatusChanged(int type) throws android.os.RemoteException
|
|
{
|
|
android.os.Parcel _data = android.os.Parcel.obtain(asBinder());
|
|
try {
|
|
_data.writeInterfaceToken(DESCRIPTOR);
|
|
_data.writeInt(type);
|
|
boolean _status = mRemote.transact(Stub.TRANSACTION_simStatusChanged, _data, null, android.os.IBinder.FLAG_ONEWAY);
|
|
if (!_status) {
|
|
throw new android.os.RemoteException("Method simStatusChanged is unimplemented.");
|
|
}
|
|
}
|
|
finally {
|
|
_data.recycle();
|
|
}
|
|
}
|
|
@Override public void stkEventNotify(int type, java.lang.String cmd) throws android.os.RemoteException
|
|
{
|
|
android.os.Parcel _data = android.os.Parcel.obtain(asBinder());
|
|
try {
|
|
_data.writeInterfaceToken(DESCRIPTOR);
|
|
_data.writeInt(type);
|
|
_data.writeString(cmd);
|
|
boolean _status = mRemote.transact(Stub.TRANSACTION_stkEventNotify, _data, null, android.os.IBinder.FLAG_ONEWAY);
|
|
if (!_status) {
|
|
throw new android.os.RemoteException("Method stkEventNotify is unimplemented.");
|
|
}
|
|
}
|
|
finally {
|
|
_data.recycle();
|
|
}
|
|
}
|
|
@Override public void stkProactiveCommand(int type, java.lang.String cmd) throws android.os.RemoteException
|
|
{
|
|
android.os.Parcel _data = android.os.Parcel.obtain(asBinder());
|
|
try {
|
|
_data.writeInterfaceToken(DESCRIPTOR);
|
|
_data.writeInt(type);
|
|
_data.writeString(cmd);
|
|
boolean _status = mRemote.transact(Stub.TRANSACTION_stkProactiveCommand, _data, null, android.os.IBinder.FLAG_ONEWAY);
|
|
if (!_status) {
|
|
throw new android.os.RemoteException("Method stkProactiveCommand is unimplemented.");
|
|
}
|
|
}
|
|
finally {
|
|
_data.recycle();
|
|
}
|
|
}
|
|
@Override public void stkSessionEnd(int type) throws android.os.RemoteException
|
|
{
|
|
android.os.Parcel _data = android.os.Parcel.obtain(asBinder());
|
|
try {
|
|
_data.writeInterfaceToken(DESCRIPTOR);
|
|
_data.writeInt(type);
|
|
boolean _status = mRemote.transact(Stub.TRANSACTION_stkSessionEnd, _data, null, android.os.IBinder.FLAG_ONEWAY);
|
|
if (!_status) {
|
|
throw new android.os.RemoteException("Method stkSessionEnd is unimplemented.");
|
|
}
|
|
}
|
|
finally {
|
|
_data.recycle();
|
|
}
|
|
}
|
|
@Override public void subscriptionStatusChanged(int type, boolean activate) throws android.os.RemoteException
|
|
{
|
|
android.os.Parcel _data = android.os.Parcel.obtain(asBinder());
|
|
try {
|
|
_data.writeInterfaceToken(DESCRIPTOR);
|
|
_data.writeInt(type);
|
|
_data.writeBoolean(activate);
|
|
boolean _status = mRemote.transact(Stub.TRANSACTION_subscriptionStatusChanged, _data, null, android.os.IBinder.FLAG_ONEWAY);
|
|
if (!_status) {
|
|
throw new android.os.RemoteException("Method subscriptionStatusChanged is unimplemented.");
|
|
}
|
|
}
|
|
finally {
|
|
_data.recycle();
|
|
}
|
|
}
|
|
@Override public void uiccApplicationsEnablementChanged(int type, boolean enabled) throws android.os.RemoteException
|
|
{
|
|
android.os.Parcel _data = android.os.Parcel.obtain(asBinder());
|
|
try {
|
|
_data.writeInterfaceToken(DESCRIPTOR);
|
|
_data.writeInt(type);
|
|
_data.writeBoolean(enabled);
|
|
boolean _status = mRemote.transact(Stub.TRANSACTION_uiccApplicationsEnablementChanged, _data, null, android.os.IBinder.FLAG_ONEWAY);
|
|
if (!_status) {
|
|
throw new android.os.RemoteException("Method uiccApplicationsEnablementChanged is unimplemented.");
|
|
}
|
|
}
|
|
finally {
|
|
_data.recycle();
|
|
}
|
|
}
|
|
@Override
|
|
public int getInterfaceVersion() throws android.os.RemoteException {
|
|
if (mCachedVersion == -1) {
|
|
android.os.Parcel data = android.os.Parcel.obtain(asBinder());
|
|
android.os.Parcel reply = android.os.Parcel.obtain();
|
|
try {
|
|
data.writeInterfaceToken(DESCRIPTOR);
|
|
boolean _status = mRemote.transact(Stub.TRANSACTION_getInterfaceVersion, data, reply, 0);
|
|
reply.readException();
|
|
mCachedVersion = reply.readInt();
|
|
} finally {
|
|
reply.recycle();
|
|
data.recycle();
|
|
}
|
|
}
|
|
return mCachedVersion;
|
|
}
|
|
@Override
|
|
public synchronized String getInterfaceHash() throws android.os.RemoteException {
|
|
if ("-1".equals(mCachedHash)) {
|
|
android.os.Parcel data = android.os.Parcel.obtain(asBinder());
|
|
android.os.Parcel reply = android.os.Parcel.obtain();
|
|
try {
|
|
data.writeInterfaceToken(DESCRIPTOR);
|
|
boolean _status = mRemote.transact(Stub.TRANSACTION_getInterfaceHash, data, reply, 0);
|
|
reply.readException();
|
|
mCachedHash = reply.readString();
|
|
} finally {
|
|
reply.recycle();
|
|
data.recycle();
|
|
}
|
|
}
|
|
return mCachedHash;
|
|
}
|
|
}
|
|
static final int TRANSACTION_carrierInfoForImsiEncryption = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
|
|
static final int TRANSACTION_cdmaSubscriptionSourceChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
|
|
static final int TRANSACTION_simPhonebookChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
|
|
static final int TRANSACTION_simPhonebookRecordsReceived = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);
|
|
static final int TRANSACTION_simRefresh = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);
|
|
static final int TRANSACTION_simStatusChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5);
|
|
static final int TRANSACTION_stkEventNotify = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6);
|
|
static final int TRANSACTION_stkProactiveCommand = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7);
|
|
static final int TRANSACTION_stkSessionEnd = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8);
|
|
static final int TRANSACTION_subscriptionStatusChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9);
|
|
static final int TRANSACTION_uiccApplicationsEnablementChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10);
|
|
static final int TRANSACTION_getInterfaceVersion = (android.os.IBinder.FIRST_CALL_TRANSACTION + 16777214);
|
|
static final int TRANSACTION_getInterfaceHash = (android.os.IBinder.FIRST_CALL_TRANSACTION + 16777213);
|
|
}
|
|
/** @hide */
|
|
public static final java.lang.String DESCRIPTOR = "android$hardware$radio$sim$IRadioSimIndication".replace('$', '.');
|
|
public void carrierInfoForImsiEncryption(int info) throws android.os.RemoteException;
|
|
public void cdmaSubscriptionSourceChanged(int type, int cdmaSource) throws android.os.RemoteException;
|
|
public void simPhonebookChanged(int type) throws android.os.RemoteException;
|
|
public void simPhonebookRecordsReceived(int type, byte status, android.hardware.radio.sim.PhonebookRecordInfo[] records) throws android.os.RemoteException;
|
|
public void simRefresh(int type, android.hardware.radio.sim.SimRefreshResult refreshResult) throws android.os.RemoteException;
|
|
public void simStatusChanged(int type) throws android.os.RemoteException;
|
|
public void stkEventNotify(int type, java.lang.String cmd) throws android.os.RemoteException;
|
|
public void stkProactiveCommand(int type, java.lang.String cmd) throws android.os.RemoteException;
|
|
public void stkSessionEnd(int type) throws android.os.RemoteException;
|
|
public void subscriptionStatusChanged(int type, boolean activate) throws android.os.RemoteException;
|
|
public void uiccApplicationsEnablementChanged(int type, boolean enabled) throws android.os.RemoteException;
|
|
public int getInterfaceVersion() throws android.os.RemoteException;
|
|
public String getInterfaceHash() throws android.os.RemoteException;
|
|
}
|