86 lines
2.5 KiB
Java
86 lines
2.5 KiB
Java
|
package com.google.android.gms.common.api.internal;
|
||
|
|
||
|
import android.os.Bundle;
|
||
|
import com.google.android.gms.common.ConnectionResult;
|
||
|
import java.util.concurrent.locks.Lock;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class zax implements zabz {
|
||
|
final zaaa zaa;
|
||
|
|
||
|
@Override // com.google.android.gms.common.api.internal.zabz
|
||
|
public final void zaa(ConnectionResult connectionResult) {
|
||
|
Lock lock;
|
||
|
Lock lock2;
|
||
|
lock = this.zaa.zam;
|
||
|
lock.lock();
|
||
|
try {
|
||
|
this.zaa.zaj = connectionResult;
|
||
|
zaaa.zap(this.zaa);
|
||
|
} finally {
|
||
|
lock2 = this.zaa.zam;
|
||
|
lock2.unlock();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.common.api.internal.zabz
|
||
|
public final void zab(Bundle bundle) {
|
||
|
Lock lock;
|
||
|
Lock lock2;
|
||
|
lock = this.zaa.zam;
|
||
|
lock.lock();
|
||
|
try {
|
||
|
zaaa.zao(this.zaa, bundle);
|
||
|
this.zaa.zaj = ConnectionResult.RESULT_SUCCESS;
|
||
|
zaaa.zap(this.zaa);
|
||
|
} finally {
|
||
|
lock2 = this.zaa.zam;
|
||
|
lock2.unlock();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.common.api.internal.zabz
|
||
|
public final void zac(int i, boolean z) {
|
||
|
Lock lock;
|
||
|
Lock lock2;
|
||
|
boolean z2;
|
||
|
Lock lock3;
|
||
|
ConnectionResult connectionResult;
|
||
|
ConnectionResult connectionResult2;
|
||
|
zabi zabiVar;
|
||
|
lock = this.zaa.zam;
|
||
|
lock.lock();
|
||
|
try {
|
||
|
zaaa zaaaVar = this.zaa;
|
||
|
z2 = zaaaVar.zal;
|
||
|
if (!z2) {
|
||
|
connectionResult = zaaaVar.zak;
|
||
|
if (connectionResult != null) {
|
||
|
connectionResult2 = zaaaVar.zak;
|
||
|
if (connectionResult2.isSuccess()) {
|
||
|
this.zaa.zal = true;
|
||
|
zabiVar = this.zaa.zae;
|
||
|
zabiVar.onConnectionSuspended(i);
|
||
|
lock3 = this.zaa.zam;
|
||
|
lock3.unlock();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
this.zaa.zal = false;
|
||
|
zaaa.zan(this.zaa, i, z);
|
||
|
lock3 = this.zaa.zam;
|
||
|
lock3.unlock();
|
||
|
} catch (Throwable th) {
|
||
|
lock2 = this.zaa.zam;
|
||
|
lock2.unlock();
|
||
|
throw th;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public /* synthetic */ zax(zaaa zaaaVar, zaw zawVar) {
|
||
|
this.zaa = zaaaVar;
|
||
|
}
|
||
|
}
|