package com.android.vending.licensing; import android.os.Binder; import android.os.IBinder; import android.os.IInterface; import android.os.Parcel; /* loaded from: classes.dex */ public interface ILicensingService extends IInterface { void checkLicense(long j, String str, ILicenseResultListener iLicenseResultListener); public static abstract class Stub extends Binder implements ILicensingService { public static ILicensingService asInterface(IBinder iBinder) { if (iBinder == null) { return null; } IInterface queryLocalInterface = iBinder.queryLocalInterface("com.android.vending.licensing.ILicensingService"); if (queryLocalInterface != null && (queryLocalInterface instanceof ILicensingService)) { return (ILicensingService) queryLocalInterface; } return new Proxy(iBinder); } public static class Proxy implements ILicensingService { public IBinder mRemote; @Override // android.os.IInterface public IBinder asBinder() { return this.mRemote; } public Proxy(IBinder iBinder) { this.mRemote = iBinder; } @Override // com.android.vending.licensing.ILicensingService public void checkLicense(long j, String str, ILicenseResultListener iLicenseResultListener) { Parcel obtain = Parcel.obtain(); try { obtain.writeInterfaceToken("com.android.vending.licensing.ILicensingService"); obtain.writeLong(j); obtain.writeString(str); obtain.writeStrongBinder(iLicenseResultListener != null ? iLicenseResultListener.asBinder() : null); this.mRemote.transact(1, obtain, null, 1); obtain.recycle(); } catch (Throwable th) { obtain.recycle(); throw th; } } } } }