mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-13 09:27:16 +01:00
56 lines
1.7 KiB
Java
56 lines
1.7 KiB
Java
package com.google.android.gms.cloudmessaging;
|
|
|
|
import android.os.Bundle;
|
|
import android.util.Log;
|
|
import com.google.android.gms.tasks.TaskCompletionSource;
|
|
import defpackage.a$$ExternalSyntheticOutline0;
|
|
import org.apache.commons.text.StringSubstitutor;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes7.dex */
|
|
abstract class zzp<T> {
|
|
final int zza;
|
|
final TaskCompletionSource<T> zzb = new TaskCompletionSource<>();
|
|
final int zzc;
|
|
final Bundle zzd;
|
|
|
|
public zzp(int i, int i2, Bundle bundle) {
|
|
this.zza = i;
|
|
this.zzc = i2;
|
|
this.zzd = bundle;
|
|
}
|
|
|
|
public final String toString() {
|
|
int i = this.zzc;
|
|
int i2 = this.zza;
|
|
StringBuilder sb = new StringBuilder(55);
|
|
sb.append("Request { what=");
|
|
sb.append(i);
|
|
sb.append(" id=");
|
|
sb.append(i2);
|
|
sb.append(" oneWay=");
|
|
return a$$ExternalSyntheticOutline0.m(sb, zzb(), StringSubstitutor.DEFAULT_VAR_END);
|
|
}
|
|
|
|
public abstract void zza(Bundle bundle);
|
|
|
|
public abstract boolean zzb();
|
|
|
|
public final void zzc(zzq zzqVar) {
|
|
if (Log.isLoggable("MessengerIpcClient", 3)) {
|
|
String valueOf = String.valueOf(this);
|
|
String valueOf2 = String.valueOf(zzqVar);
|
|
new StringBuilder(valueOf.length() + 14 + valueOf2.length());
|
|
}
|
|
this.zzb.setException(zzqVar);
|
|
}
|
|
|
|
public final void zzd(T t) {
|
|
if (Log.isLoggable("MessengerIpcClient", 3)) {
|
|
String valueOf = String.valueOf(this);
|
|
String valueOf2 = String.valueOf(t);
|
|
new StringBuilder(valueOf.length() + 16 + valueOf2.length());
|
|
}
|
|
this.zzb.setResult(t);
|
|
}
|
|
}
|