翰林优商.apk(点击下载) / c.java


package com.mbridge.msdk.optimize.a.b;

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

/* compiled from: OnePlusIDInterface */
public interface c extends IInterface {

    /* compiled from: OnePlusIDInterface */
    public static abstract class a extends Binder implements c {

        /* renamed from: com.mbridge.msdk.optimize.a.b.c$a$a  reason: collision with other inner class name */
        /* compiled from: OnePlusIDInterface */
        public static class C0226a implements c {
            public IBinder a;

            public C0226a(IBinder iBinder) {
                this.a = iBinder;
            }

            /* JADX INFO: finally extract failed */
            public final String a(String str, String str2, String str3) {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.heytap.openid.IOpenID");
                    obtain.writeString(str);
                    obtain.writeString(str2);
                    obtain.writeString(str3);
                    this.a.transact(1, obtain, obtain2, 0);
                    obtain2.readException();
                    String readString = obtain2.readString();
                    obtain.recycle();
                    obtain2.recycle();
                    return readString;
                } catch (Exception e) {
                    e.printStackTrace();
                    obtain.recycle();
                    obtain2.recycle();
                    return null;
                } catch (Throwable th) {
                    obtain.recycle();
                    obtain2.recycle();
                    throw th;
                }
            }

            public final IBinder asBinder() {
                return this.a;
            }
        }

        public static c a(IBinder iBinder) {
            if (iBinder == null) {
                return null;
            }
            try {
                IInterface queryLocalInterface = iBinder.queryLocalInterface("com.heytap.openid.IOpenID");
                if (queryLocalInterface != null) {
                    if (queryLocalInterface instanceof c) {
                        return (c) queryLocalInterface;
                    }
                }
                return new C0226a(iBinder);
            } catch (Throwable unused) {
                return null;
            }
        }
    }
}