package android.telephony.ims.aidl;

import android.os. Binder;
import android.os. IBinder;
import android.os. IInterface;
import android.os. Parcel;
import android.os. RemoteException;

public interface IImsRcsFeature extends IInterface {

    public static class Default implements IImsRcsFeature {
        @Override // android.os. IInterface
        public IBinder asBinder() {
            return null;
        }
    }

    public static abstract class Stub extends Binder implements IImsRcsFeature {
        private static final String DESCRIPTOR = "android.telephony.ims.aidl. IImsRcsFeature";

        public Stub() {
            attachInterface(this, DESCRIPTOR);
        }

        public static IImsRcsFeature asInterface(IBinder obj) {
            if (obj == null) {
                return null;
            }
            IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
            if (iin == null || !( iin instanceof IImsRcsFeature)) {
                return new Proxy(obj);
            }
            return (IImsRcsFeature) iin;
        }

        @Override // android.os. IInterface
        public IBinder asBinder() {
            return this;
        }

        public static String getDefaultTransactionName(int transactionCode) {
            return null;
        }

        @Override // android.os. Binder
        public String getTransactionName(int transactionCode) {
            return getDefaultTransactionName(transactionCode);
        }

        @Override // android.os. Binder
        public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException {
            if (code ! = 1598968902) {
                return super.onTransact(code, data, reply, flags);
            }
            reply.writeString(DESCRIPTOR);
            return true;
        }

        /* access modifiers changed from: private */
        public static class Proxy implements IImsRcsFeature {
            public static IImsRcsFeature sDefaultImpl;
            private IBinder mRemote;

            Proxy(IBinder remote) {
                this.mRemote = remote;
            }

            @Override // android.os. IInterface
            public IBinder asBinder() {
                return this.mRemote;
            }

            public String getInterfaceDescriptor() {
                return Stub. DESCRIPTOR;
            }
        }

        public static boolean setDefaultImpl(IImsRcsFeature impl) {
            if (Proxy.sDefaultImpl ! = null || impl == null) {
                return false;
            }
            Proxy.sDefaultImpl = impl;
            return true;
        }

        public static IImsRcsFeature getDefaultImpl() {
            return Proxy.sDefaultImpl;
        }
    }
}
