291 lines
13 KiB
Java
291 lines
13 KiB
Java
package c.i.a.f.i.b;
|
|
|
|
import androidx.collection.ArrayMap;
|
|
import c.d.b.a.a;
|
|
import c.i.a.f.h.l.a1;
|
|
import c.i.a.f.h.l.c1;
|
|
import c.i.a.f.h.l.f9;
|
|
import c.i.a.f.h.l.l0;
|
|
import c.i.a.f.h.l.m0;
|
|
import java.math.BigDecimal;
|
|
import java.util.HashSet;
|
|
import java.util.Iterator;
|
|
import java.util.Objects;
|
|
/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */
|
|
public final class fa extends ea {
|
|
public l0 g;
|
|
public final /* synthetic */ ba h;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public fa(ba baVar, String str, int i, l0 l0Var) {
|
|
super(str, i);
|
|
this.h = baVar;
|
|
this.g = l0Var;
|
|
}
|
|
|
|
@Override // c.i.a.f.i.b.ea
|
|
public final int a() {
|
|
return this.g.y();
|
|
}
|
|
|
|
@Override // c.i.a.f.i.b.ea
|
|
public final boolean g() {
|
|
return false;
|
|
}
|
|
|
|
@Override // c.i.a.f.i.b.ea
|
|
public final boolean h() {
|
|
return this.g.C();
|
|
}
|
|
|
|
/* JADX DEBUG: Failed to insert an additional move for type inference into block B:192:0x041f */
|
|
/* JADX DEBUG: Multi-variable search result rejected for r9v3, resolved type: java.lang.Boolean */
|
|
/* JADX DEBUG: Multi-variable search result rejected for r9v4, resolved type: java.lang.Boolean */
|
|
/* JADX DEBUG: Multi-variable search result rejected for r9v5, resolved type: java.lang.Boolean */
|
|
/* JADX DEBUG: Multi-variable search result rejected for r9v6, resolved type: java.lang.Boolean */
|
|
/* JADX DEBUG: Multi-variable search result rejected for r9v8, resolved type: java.lang.Boolean */
|
|
/* JADX DEBUG: Multi-variable search result rejected for r9v9, resolved type: java.lang.Boolean */
|
|
/* JADX DEBUG: Multi-variable search result rejected for r9v10, resolved type: java.lang.Boolean */
|
|
/* JADX DEBUG: Multi-variable search result rejected for r9v13, resolved type: java.lang.Boolean */
|
|
/* JADX DEBUG: Multi-variable search result rejected for r9v14, resolved type: java.lang.Boolean */
|
|
/* JADX DEBUG: Multi-variable search result rejected for r9v15, resolved type: java.lang.Boolean */
|
|
/* JADX DEBUG: Multi-variable search result rejected for r9v16, resolved type: java.lang.Boolean */
|
|
/* JADX DEBUG: Multi-variable search result rejected for r9v17, resolved type: java.lang.Boolean */
|
|
/* JADX DEBUG: Multi-variable search result rejected for r9v18, resolved type: java.lang.Boolean */
|
|
/* JADX DEBUG: Multi-variable search result rejected for r9v19, resolved type: java.lang.Boolean */
|
|
/* JADX DEBUG: Multi-variable search result rejected for r9v20, resolved type: java.lang.Boolean */
|
|
/* JADX DEBUG: Multi-variable search result rejected for r9v21, resolved type: java.lang.Boolean */
|
|
/* JADX DEBUG: Multi-variable search result rejected for r9v22, resolved type: java.lang.Boolean */
|
|
/* JADX DEBUG: Multi-variable search result rejected for r9v23, resolved type: java.lang.Boolean */
|
|
/* JADX DEBUG: Multi-variable search result rejected for r9v24, resolved type: java.lang.Boolean */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARNING: Removed duplicated region for block: B:148:0x042a */
|
|
/* JADX WARNING: Removed duplicated region for block: B:151:0x0432 A[RETURN] */
|
|
/* JADX WARNING: Removed duplicated region for block: B:152:0x0433 */
|
|
public final boolean i(Long l, Long l2, a1 a1Var, long j, l lVar, boolean z2) {
|
|
Boolean bool;
|
|
Boolean bool2;
|
|
String str;
|
|
boolean z3 = f9.b() && this.h.a.h.u(this.a, p.f1177c0);
|
|
long j2 = this.g.H() ? lVar.e : j;
|
|
String str2 = "null";
|
|
Integer num = null;
|
|
Integer num2 = null;
|
|
r9 = 0;
|
|
r9 = 0;
|
|
r9 = 0;
|
|
r9 = 0;
|
|
r9 = 0;
|
|
r9 = 0;
|
|
r9 = 0;
|
|
r9 = 0;
|
|
r9 = 0;
|
|
r9 = 0;
|
|
r9 = 0;
|
|
Boolean bool3 = 0;
|
|
if (this.h.g().x(2)) {
|
|
this.h.g().n.d("Evaluating filter. audience, filter, event", Integer.valueOf(this.b), this.g.x() ? Integer.valueOf(this.g.y()) : null, this.h.d().u(this.g.z()));
|
|
s3 s3Var = this.h.g().n;
|
|
q9 m = this.h.m();
|
|
l0 l0Var = this.g;
|
|
Objects.requireNonNull(m);
|
|
if (l0Var == null) {
|
|
str = str2;
|
|
} else {
|
|
StringBuilder L = a.L("\nevent_filter {\n");
|
|
if (l0Var.x()) {
|
|
q9.L(L, 0, "filter_id", Integer.valueOf(l0Var.y()));
|
|
}
|
|
q9.L(L, 0, "event_name", m.d().u(l0Var.z()));
|
|
String A = q9.A(l0Var.E(), l0Var.F(), l0Var.H());
|
|
if (!A.isEmpty()) {
|
|
q9.L(L, 0, "filter_type", A);
|
|
}
|
|
if (l0Var.C()) {
|
|
q9.J(L, 1, "event_count_filter", l0Var.D());
|
|
}
|
|
if (l0Var.B() > 0) {
|
|
L.append(" filters {\n");
|
|
for (m0 m0Var : l0Var.A()) {
|
|
m.I(L, 2, m0Var);
|
|
}
|
|
}
|
|
q9.H(L, 1);
|
|
L.append("}\n}\n");
|
|
str = L.toString();
|
|
}
|
|
s3Var.b("Filter definition", str);
|
|
}
|
|
if (!this.g.x() || this.g.y() > 256) {
|
|
s3 s3Var2 = this.h.g().i;
|
|
Object s2 = q3.s(this.a);
|
|
if (this.g.x()) {
|
|
num = Integer.valueOf(this.g.y());
|
|
}
|
|
s3Var2.c("Invalid event filter ID. appId, id", s2, String.valueOf(num));
|
|
return false;
|
|
}
|
|
boolean z4 = this.g.E() || this.g.F() || this.g.H();
|
|
if (!z2 || z4) {
|
|
l0 l0Var2 = this.g;
|
|
String F = a1Var.F();
|
|
if (l0Var2.C()) {
|
|
Boolean b = ea.b(j2, l0Var2.D());
|
|
if (b != null) {
|
|
if (!b.booleanValue()) {
|
|
bool3 = Boolean.FALSE;
|
|
}
|
|
}
|
|
s3 s3Var3 = this.h.g().n;
|
|
if (bool3 != 0) {
|
|
str2 = bool3;
|
|
}
|
|
s3Var3.b("Event filter result", str2);
|
|
if (bool3 != 0) {
|
|
return false;
|
|
}
|
|
Boolean bool4 = Boolean.TRUE;
|
|
this.f1150c = bool4;
|
|
if (!bool3.booleanValue()) {
|
|
return true;
|
|
}
|
|
this.d = bool4;
|
|
if (z4 && a1Var.G()) {
|
|
Long valueOf = Long.valueOf(a1Var.H());
|
|
if (this.g.F()) {
|
|
if (z3 && this.g.C()) {
|
|
valueOf = l;
|
|
}
|
|
this.f = valueOf;
|
|
} else {
|
|
if (z3 && this.g.C()) {
|
|
valueOf = l2;
|
|
}
|
|
this.e = valueOf;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
HashSet hashSet = new HashSet();
|
|
Iterator<m0> it = l0Var2.A().iterator();
|
|
while (true) {
|
|
if (!it.hasNext()) {
|
|
ArrayMap arrayMap = new ArrayMap();
|
|
Iterator<c1> it2 = a1Var.v().iterator();
|
|
while (true) {
|
|
if (!it2.hasNext()) {
|
|
Iterator<m0> it3 = l0Var2.A().iterator();
|
|
while (true) {
|
|
if (!it3.hasNext()) {
|
|
bool3 = Boolean.TRUE;
|
|
break;
|
|
}
|
|
m0 next = it3.next();
|
|
boolean z5 = next.z() && next.A();
|
|
String C = next.C();
|
|
if (C.isEmpty()) {
|
|
this.h.g().i.b("Event has empty param name. event", this.h.d().u(F));
|
|
break;
|
|
}
|
|
Object obj = arrayMap.get(C);
|
|
if (obj instanceof Long) {
|
|
if (!next.x()) {
|
|
this.h.g().i.c("No number filter for long param. event, param", this.h.d().u(F), this.h.d().x(C));
|
|
break;
|
|
}
|
|
Boolean b2 = ea.b(((Long) obj).longValue(), next.y());
|
|
if (b2 == null) {
|
|
break;
|
|
} else if (b2.booleanValue() == z5) {
|
|
bool3 = Boolean.FALSE;
|
|
break;
|
|
}
|
|
} else if (obj instanceof Double) {
|
|
if (!next.x()) {
|
|
this.h.g().i.c("No number filter for double param. event, param", this.h.d().u(F), this.h.d().x(C));
|
|
break;
|
|
}
|
|
double doubleValue = ((Double) obj).doubleValue();
|
|
try {
|
|
bool = ea.f(new BigDecimal(doubleValue), next.y(), Math.ulp(doubleValue));
|
|
} catch (NumberFormatException unused) {
|
|
bool = null;
|
|
}
|
|
if (bool == null) {
|
|
break;
|
|
} else if (bool.booleanValue() == z5) {
|
|
bool3 = Boolean.FALSE;
|
|
break;
|
|
}
|
|
} else if (obj instanceof String) {
|
|
if (!next.v()) {
|
|
if (!next.x()) {
|
|
this.h.g().i.c("No filter for String param. event, param", this.h.d().u(F), this.h.d().x(C));
|
|
break;
|
|
}
|
|
String str3 = (String) obj;
|
|
if (!q9.P(str3)) {
|
|
this.h.g().i.c("Invalid param value for number filter. event, param", this.h.d().u(F), this.h.d().x(C));
|
|
break;
|
|
}
|
|
bool2 = ea.d(str3, next.y());
|
|
} else {
|
|
bool2 = ea.e((String) obj, next.w(), this.h.g());
|
|
}
|
|
if (bool2 == null) {
|
|
break;
|
|
} else if (bool2.booleanValue() == z5) {
|
|
bool3 = Boolean.FALSE;
|
|
break;
|
|
}
|
|
} else if (obj == null) {
|
|
this.h.g().n.c("Missing param for filter. event, param", this.h.d().u(F), this.h.d().x(C));
|
|
bool3 = Boolean.FALSE;
|
|
} else {
|
|
this.h.g().i.c("Unknown param type. event, param", this.h.d().u(F), this.h.d().x(C));
|
|
}
|
|
}
|
|
} else {
|
|
c1 next2 = it2.next();
|
|
if (hashSet.contains(next2.B())) {
|
|
if (next2.I()) {
|
|
arrayMap.put(next2.B(), next2.I() ? Long.valueOf(next2.J()) : null);
|
|
} else if (!next2.M()) {
|
|
if (!next2.F()) {
|
|
this.h.g().i.c("Unknown value for param. event, param", this.h.d().u(F), this.h.d().x(next2.B()));
|
|
break;
|
|
}
|
|
arrayMap.put(next2.B(), next2.G());
|
|
} else {
|
|
arrayMap.put(next2.B(), next2.M() ? Double.valueOf(next2.N()) : null);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
m0 next3 = it.next();
|
|
if (next3.C().isEmpty()) {
|
|
this.h.g().i.b("null or empty param name in filter. event", this.h.d().u(F));
|
|
break;
|
|
}
|
|
hashSet.add(next3.C());
|
|
}
|
|
}
|
|
s3 s3Var3 = this.h.g().n;
|
|
if (bool3 != 0) {
|
|
}
|
|
s3Var3.b("Event filter result", str2);
|
|
if (bool3 != 0) {
|
|
}
|
|
} else {
|
|
s3 s3Var4 = this.h.g().n;
|
|
Integer valueOf2 = Integer.valueOf(this.b);
|
|
if (this.g.x()) {
|
|
num2 = Integer.valueOf(this.g.y());
|
|
}
|
|
s3Var4.c("Event filter already evaluated true and it is not associated with an enhanced audience. audience ID, filter ID", valueOf2, num2);
|
|
return true;
|
|
}
|
|
}
|
|
}
|