package c.i.a.f.d; import android.os.IBinder; import android.os.Messenger; import android.os.RemoteException; import android.util.Log; import androidx.annotation.Nullable; import com.google.android.gms.cloudmessaging.zza; /* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ public final class p { @Nullable public final Messenger a; @Nullable public final zza b; public p(IBinder iBinder) throws RemoteException { String interfaceDescriptor = iBinder.getInterfaceDescriptor(); if ("android.os.IMessenger".equals(interfaceDescriptor)) { this.a = new Messenger(iBinder); this.b = null; } else if ("com.google.android.gms.iid.IMessengerCompat".equals(interfaceDescriptor)) { this.b = new zza(iBinder); this.a = null; } else { String valueOf = String.valueOf(interfaceDescriptor); Log.w("MessengerIpcClient", valueOf.length() != 0 ? "Invalid interface descriptor: ".concat(valueOf) : new String("Invalid interface descriptor: ")); throw new RemoteException(); } } }