package com.google.android.play.core.integrity; import android.os.Bundle; import com.google.android.gms.tasks.TaskCompletionSource; /* loaded from: classes2.dex */ final class s extends com.google.android.play.integrity.internal.l { /* renamed from: a, reason: collision with root package name */ final /* synthetic */ t f5220a; /* renamed from: b, reason: collision with root package name */ private final com.google.android.play.integrity.internal.n f5221b = new com.google.android.play.integrity.internal.n("OnRequestIntegrityTokenCallback"); /* renamed from: c, reason: collision with root package name */ private final TaskCompletionSource f5222c; s(t tVar, TaskCompletionSource taskCompletionSource) { this.f5220a = tVar; this.f5222c = taskCompletionSource; } @Override // com.google.android.play.integrity.internal.m public final void b(Bundle bundle) { this.f5220a.f5223a.r(this.f5222c); this.f5221b.d("onRequestIntegrityToken", new Object[0]); int i10 = bundle.getInt("error"); if (i10 != 0) { this.f5222c.trySetException(new IntegrityServiceException(i10, null)); return; } String string = bundle.getString("token"); if (string == null) { this.f5222c.trySetException(new IntegrityServiceException(-100, null)); return; } TaskCompletionSource taskCompletionSource = this.f5222c; d dVar = new d(); dVar.a(string); taskCompletionSource.trySetResult(dVar.b()); } }