2021-06-27 20:44:35 +00:00
|
|
|
package c.i.a.f.d;
|
|
|
|
|
|
|
|
import android.os.Bundle;
|
|
|
|
import android.util.Log;
|
|
|
|
import c.d.b.a.a;
|
|
|
|
import com.google.android.gms.cloudmessaging.zzp;
|
|
|
|
import com.google.android.gms.tasks.TaskCompletionSource;
|
|
|
|
/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */
|
|
|
|
public abstract class q<T> {
|
|
|
|
public final int a;
|
|
|
|
public final TaskCompletionSource<T> b = new TaskCompletionSource<>();
|
|
|
|
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
2021-07-13 20:23:20 +00:00
|
|
|
public final int f1026c;
|
2021-06-27 20:44:35 +00:00
|
|
|
public final Bundle d;
|
|
|
|
|
|
|
|
public q(int i, int i2, Bundle bundle) {
|
|
|
|
this.a = i;
|
2021-07-13 20:23:20 +00:00
|
|
|
this.f1026c = i2;
|
2021-06-27 20:44:35 +00:00
|
|
|
this.d = bundle;
|
|
|
|
}
|
|
|
|
|
|
|
|
public abstract void a(Bundle bundle);
|
|
|
|
|
|
|
|
public final void b(zzp zzp) {
|
|
|
|
if (Log.isLoggable("MessengerIpcClient", 3)) {
|
|
|
|
String valueOf = String.valueOf(this);
|
|
|
|
String valueOf2 = String.valueOf(zzp);
|
2021-07-13 20:23:20 +00:00
|
|
|
Log.d("MessengerIpcClient", a.g(valueOf2.length() + valueOf.length() + 14, "Failing ", valueOf, " with ", valueOf2));
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
this.b.a.s(zzp);
|
|
|
|
}
|
|
|
|
|
|
|
|
public final void c(T t) {
|
|
|
|
if (Log.isLoggable("MessengerIpcClient", 3)) {
|
|
|
|
String valueOf = String.valueOf(this);
|
|
|
|
String valueOf2 = String.valueOf(t);
|
2021-07-13 20:23:20 +00:00
|
|
|
Log.d("MessengerIpcClient", a.g(valueOf2.length() + valueOf.length() + 16, "Finishing ", valueOf, " with ", valueOf2));
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
this.b.a.t(t);
|
|
|
|
}
|
|
|
|
|
|
|
|
public abstract boolean d();
|
|
|
|
|
|
|
|
public String toString() {
|
2021-07-13 20:23:20 +00:00
|
|
|
int i = this.f1026c;
|
2021-06-27 20:44:35 +00:00
|
|
|
int i2 = this.a;
|
|
|
|
boolean d = d();
|
|
|
|
StringBuilder sb = new StringBuilder(55);
|
|
|
|
sb.append("Request { what=");
|
|
|
|
sb.append(i);
|
|
|
|
sb.append(" id=");
|
|
|
|
sb.append(i2);
|
|
|
|
sb.append(" oneWay=");
|
|
|
|
sb.append(d);
|
|
|
|
sb.append("}");
|
|
|
|
return sb.toString();
|
|
|
|
}
|
|
|
|
}
|