package o; import android.os.IBinder; import android.os.IInterface; import android.os.RemoteException; import android.util.Log; import java.util.Iterator; /* loaded from: classes2.dex */ final class hRI extends AbstractRunnableC16156liu { private ServiceConnectionC17033tQF b; private IBinder d; /* JADX INFO: Access modifiers changed from: package-private */ public hRI(ServiceConnectionC17033tQF serviceConnectionC17033tQF, IBinder iBinder) { this.b = serviceConnectionC17033tQF; this.d = iBinder; } @Override // o.AbstractRunnableC16156liu public final void e() { C16741qpn c16741qpn = this.b.b; c16741qpn.l = (IInterface) c16741qpn.f.NH_(this.d); C16741qpn c16741qpn2 = this.b.b; C16916sOz c16916sOz = c16741qpn2.c; Object[] objArr = new Object[0]; if (Log.isLoggable("PlayCore", 4)) { C16916sOz.c(c16916sOz.d, "linkToDeath", objArr); } try { c16741qpn2.l.asBinder().linkToDeath(c16741qpn2.m, 0); } catch (RemoteException unused) { C16916sOz c16916sOz2 = c16741qpn2.c; Object[] objArr2 = new Object[0]; if (Log.isLoggable("PlayCore", 6)) { C16916sOz.c(c16916sOz2.d, "linkToDeath failed", objArr2); } } this.b.b.i = false; Iterator it = this.b.b.d.iterator(); while (it.hasNext()) { ((Runnable) it.next()).run(); } this.b.b.d.clear(); } }