164 lines
4.8 KiB
Java
164 lines
4.8 KiB
Java
package com.google.android.gms.internal.measurement;
|
|
|
|
import java.io.IOException;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class zzfy extends zzyc<zzfy> {
|
|
private static volatile zzfy[] e;
|
|
public Integer c = null;
|
|
public long[] d = zzyl.b;
|
|
|
|
public zzfy() {
|
|
this.b = null;
|
|
this.a = -1;
|
|
}
|
|
|
|
public static zzfy[] e() {
|
|
if (e == null) {
|
|
synchronized (zzyg.b) {
|
|
if (e == null) {
|
|
e = new zzfy[0];
|
|
}
|
|
}
|
|
}
|
|
return e;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.measurement.zzyc, com.google.android.gms.internal.measurement.zzyi
|
|
public final void a(zzya zzyaVar) throws IOException {
|
|
Integer num = this.c;
|
|
if (num != null) {
|
|
zzyaVar.b(1, num.intValue());
|
|
}
|
|
long[] jArr = this.d;
|
|
if (jArr != null && jArr.length > 0) {
|
|
int i = 0;
|
|
while (true) {
|
|
long[] jArr2 = this.d;
|
|
if (i >= jArr2.length) {
|
|
break;
|
|
}
|
|
zzyaVar.b(2, jArr2[i]);
|
|
i++;
|
|
}
|
|
}
|
|
super.a(zzyaVar);
|
|
}
|
|
|
|
public final boolean equals(Object obj) {
|
|
if (obj == this) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof zzfy)) {
|
|
return false;
|
|
}
|
|
zzfy zzfyVar = (zzfy) obj;
|
|
Integer num = this.c;
|
|
if (num == null) {
|
|
if (zzfyVar.c != null) {
|
|
return false;
|
|
}
|
|
} else if (!num.equals(zzfyVar.c)) {
|
|
return false;
|
|
}
|
|
if (!zzyg.a(this.d, zzfyVar.d)) {
|
|
return false;
|
|
}
|
|
zzye zzyeVar = this.b;
|
|
if (zzyeVar != null && !zzyeVar.a()) {
|
|
return this.b.equals(zzfyVar.b);
|
|
}
|
|
zzye zzyeVar2 = zzfyVar.b;
|
|
return zzyeVar2 == null || zzyeVar2.a();
|
|
}
|
|
|
|
public final int hashCode() {
|
|
int hashCode = (zzfy.class.getName().hashCode() + 527) * 31;
|
|
Integer num = this.c;
|
|
int i = 0;
|
|
int hashCode2 = (((hashCode + (num == null ? 0 : num.hashCode())) * 31) + zzyg.a(this.d)) * 31;
|
|
zzye zzyeVar = this.b;
|
|
if (zzyeVar != null && !zzyeVar.a()) {
|
|
i = this.b.hashCode();
|
|
}
|
|
return hashCode2 + i;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.measurement.zzyc, com.google.android.gms.internal.measurement.zzyi
|
|
protected final int a() {
|
|
int a = super.a();
|
|
Integer num = this.c;
|
|
if (num != null) {
|
|
a += zzya.c(1, num.intValue());
|
|
}
|
|
long[] jArr = this.d;
|
|
if (jArr == null || jArr.length <= 0) {
|
|
return a;
|
|
}
|
|
int i = 0;
|
|
int i2 = 0;
|
|
while (true) {
|
|
long[] jArr2 = this.d;
|
|
if (i < jArr2.length) {
|
|
i2 += zzya.b(jArr2[i]);
|
|
i++;
|
|
} else {
|
|
return a + i2 + (jArr2.length * 1);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.measurement.zzyi
|
|
public final /* synthetic */ zzyi a(zzxz zzxzVar) throws IOException {
|
|
while (true) {
|
|
int c = zzxzVar.c();
|
|
if (c == 0) {
|
|
return this;
|
|
}
|
|
if (c == 8) {
|
|
this.c = Integer.valueOf(zzxzVar.e());
|
|
} else if (c == 16) {
|
|
int a = zzyl.a(zzxzVar, 16);
|
|
long[] jArr = this.d;
|
|
int length = jArr == null ? 0 : jArr.length;
|
|
long[] jArr2 = new long[a + length];
|
|
if (length != 0) {
|
|
System.arraycopy(this.d, 0, jArr2, 0, length);
|
|
}
|
|
while (length < jArr2.length - 1) {
|
|
jArr2[length] = zzxzVar.f();
|
|
zzxzVar.c();
|
|
length++;
|
|
}
|
|
jArr2[length] = zzxzVar.f();
|
|
this.d = jArr2;
|
|
} else if (c != 18) {
|
|
if (!super.a(zzxzVar, c)) {
|
|
return this;
|
|
}
|
|
} else {
|
|
int c2 = zzxzVar.c(zzxzVar.e());
|
|
int a2 = zzxzVar.a();
|
|
int i = 0;
|
|
while (zzxzVar.i() > 0) {
|
|
zzxzVar.f();
|
|
i++;
|
|
}
|
|
zzxzVar.e(a2);
|
|
long[] jArr3 = this.d;
|
|
int length2 = jArr3 == null ? 0 : jArr3.length;
|
|
long[] jArr4 = new long[i + length2];
|
|
if (length2 != 0) {
|
|
System.arraycopy(this.d, 0, jArr4, 0, length2);
|
|
}
|
|
while (length2 < jArr4.length) {
|
|
jArr4[length2] = zzxzVar.f();
|
|
length2++;
|
|
}
|
|
this.d = jArr4;
|
|
zzxzVar.d(c2);
|
|
}
|
|
}
|
|
}
|
|
}
|