CrackMe.apk
Download file
package com.google.android.gms.internal.p002firebaseauthapi;
import java.util.Arrays;
import java.util.Collection;
import java.util.RandomAccess;
/* renamed from: com.google.android.gms.internal.firebase-auth-api.zzacp reason: invalid package */
/* compiled from: com.google.firebase:firebase-auth@@21.1.0 */
final class zzacp extends zzabn implements RandomAccess, zzadk, zzaer {
private static final zzacp zza;
private double[] zzb;
private int zzc;
static {
zzacp zzacp = new zzacp(new double[0], 0);
zza = zzacp;
zzacp.zzb();
}
zzacp() {
this(new double[10], 0);
}
private final String zzf(int i) {
int i2 = this.zzc;
return "Index:" + i + ", Size:" + i2;
}
private final void zzg(int i) {
if (i < 0 || i >= this.zzc) {
throw new IndexOutOfBoundsException(zzf(i));
}
}
public final /* synthetic */ void add(int i, Object obj) {
int i2;
double doubleValue = ((Double) obj).doubleValue();
zza();
if (i < 0 || i > (i2 = this.zzc)) {
throw new IndexOutOfBoundsException(zzf(i));
}
double[] dArr = this.zzb;
if (i2 < dArr.length) {
System.arraycopy(dArr, i, dArr, i + 1, i2 - i);
} else {
double[] dArr2 = new double[(((i2 * 3) / 2) + 1)];
System.arraycopy(dArr, 0, dArr2, 0, i);
System.arraycopy(this.zzb, i, dArr2, i + 1, this.zzc - i);
this.zzb = dArr2;
}
this.zzb[i] = doubleValue;
this.zzc++;
this.modCount++;
}
public final boolean addAll(Collection collection) {
zza();
zzadl.zze(collection);
if (!(collection instanceof zzacp)) {
return super.addAll(collection);
}
zzacp zzacp = (zzacp) collection;
int i = zzacp.zzc;
if (i == 0) {
return false;
}
int i2 = this.zzc;
if (Integer.MAX_VALUE - i2 >= i) {
int i3 = i2 + i;
double[] dArr = this.zzb;
if (i3 > dArr.length) {
this.zzb = Arrays.copyOf(dArr, i3);
}
System.arraycopy(zzacp.zzb, 0, this.zzb, this.zzc, zzacp.zzc);
this.zzc = i3;
this.modCount++;
return true;
}
throw new OutOfMemoryError();
}
public final boolean contains(Object obj) {
return indexOf(obj) != -1;
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof zzacp)) {
return super.equals(obj);
}
zzacp zzacp = (zzacp) obj;
if (this.zzc != zzacp.zzc) {
return false;
}
double[] dArr = zzacp.zzb;
for (int i = 0; i < this.zzc; i++) {
if (Double.doubleToLongBits(this.zzb[i]) != Double.doubleToLongBits(dArr[i])) {
return false;
}
}
return true;
}
public final /* synthetic */ Object get(int i) {
zzg(i);
return Double.valueOf(this.zzb[i]);
}
public final int hashCode() {
int i = 1;
for (int i2 = 0; i2 < this.zzc; i2++) {
i = (i * 31) + zzadl.zzc(Double.doubleToLongBits(this.zzb[i2]));
}
return i;
}
public final int indexOf(Object obj) {
if (!(obj instanceof Double)) {
return -1;
}
double doubleValue = ((Double) obj).doubleValue();
int i = this.zzc;
for (int i2 = 0; i2 < i; i2++) {
if (this.zzb[i2] == doubleValue) {
return i2;
}
}
return -1;
}
public final /* bridge */ /* synthetic */ Object remove(int i) {
zza();
zzg(i);
double[] dArr = this.zzb;
double d = dArr[i];
int i2 = this.zzc;
if (i < i2 - 1) {
System.arraycopy(dArr, i + 1, dArr, i, (i2 - i) - 1);
}
this.zzc--;
this.modCount++;
return Double.valueOf(d);
}
/* access modifiers changed from: protected */
public final void removeRange(int i, int i2) {
zza();
if (i2 >= i) {
double[] dArr = this.zzb;
System.arraycopy(dArr, i2, dArr, i, this.zzc - i2);
this.zzc -= i2 - i;
this.modCount++;
return;
}
throw new IndexOutOfBoundsException("toIndex < fromIndex");
}
public final /* bridge */ /* synthetic */ Object set(int i, Object obj) {
double doubleValue = ((Double) obj).doubleValue();
zza();
zzg(i);
double[] dArr = this.zzb;
double d = dArr[i];
dArr[i] = doubleValue;
return Double.valueOf(d);
}
public final int size() {
return this.zzc;
}
public final /* bridge */ /* synthetic */ zzadk zzd(int i) {
if (i >= this.zzc) {
return new zzacp(Arrays.copyOf(this.zzb, i), this.zzc);
}
throw new IllegalArgumentException();
}
public final void zze(double d) {
zza();
int i = this.zzc;
double[] dArr = this.zzb;
if (i == dArr.length) {
double[] dArr2 = new double[(((i * 3) / 2) + 1)];
System.arraycopy(dArr, 0, dArr2, 0, i);
this.zzb = dArr2;
}
double[] dArr3 = this.zzb;
int i2 = this.zzc;
this.zzc = i2 + 1;
dArr3[i2] = d;
}
private zzacp(double[] dArr, int i) {
this.zzb = dArr;
this.zzc = i;
}
public final /* bridge */ /* synthetic */ boolean add(Object obj) {
zze(((Double) obj).doubleValue());
return true;
}
}
Download file