Initial commit
This commit is contained in:
59
sources/com/google/android/gms/common/zze.java
Normal file
59
sources/com/google/android/gms/common/zze.java
Normal file
@@ -0,0 +1,59 @@
|
||||
package com.google.android.gms.common;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import android.util.Log;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||
import com.google.android.gms.dynamic.ObjectWrapper;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Arrays;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
abstract class zze extends com.google.android.gms.common.internal.zzj {
|
||||
private int a;
|
||||
|
||||
protected zze(byte[] bArr) {
|
||||
Preconditions.a(bArr.length == 25);
|
||||
this.a = Arrays.hashCode(bArr);
|
||||
}
|
||||
|
||||
protected static byte[] b(String str) {
|
||||
try {
|
||||
return str.getBytes("ISO-8859-1");
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
throw new AssertionError(e);
|
||||
}
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
IObjectWrapper h;
|
||||
if (obj != null && (obj instanceof com.google.android.gms.common.internal.zzi)) {
|
||||
try {
|
||||
com.google.android.gms.common.internal.zzi zziVar = (com.google.android.gms.common.internal.zzi) obj;
|
||||
if (zziVar.zzc() == hashCode() && (h = zziVar.h()) != null) {
|
||||
return Arrays.equals(i(), (byte[]) ObjectWrapper.a(h));
|
||||
}
|
||||
return false;
|
||||
} catch (RemoteException e) {
|
||||
Log.e("GoogleCertificates", "Failed to get Google certificates from remote", e);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.zzi
|
||||
public final IObjectWrapper h() {
|
||||
return ObjectWrapper.a(i());
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.a;
|
||||
}
|
||||
|
||||
abstract byte[] i();
|
||||
|
||||
@Override // com.google.android.gms.common.internal.zzi
|
||||
public final int zzc() {
|
||||
return hashCode();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user