FlixOlé v4.4.0版本的 MD5 值为:50e7f767ca3e8715936523e9ef089581
以下内容为反编译后的 w2.java 源代码,内容仅作参考
package i.d.a.d.j.j;
import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.os.BadParcelableException;
import android.os.Bundle;
import android.os.NetworkOnMainThreadException;
import android.os.RemoteException;
import android.util.Log;
import android.util.Pair;
import com.google.android.gms.dynamite.DynamiteModule;
import com.google.android.gms.dynamite.descriptors.com.google.android.gms.measurement.dynamite.ModuleDescriptor;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.concurrent.ExecutorService;
public final class w2 {
public static volatile w2 f6439i;
public final String a;
public final i.d.a.d.f.t.e b;
public final ExecutorService c;
public final i.d.a.d.k.a.a d;
public final List<Pair<i.d.a.d.k.b.d6, m2>> e;
public int f6440f;
public boolean f6441g;
public volatile f1 f6442h;
public w2(Context context, String str, String str2, String str3, Bundle bundle) {
this.a = (str == null || !m(str2, str3)) ? "FA" : "FA";
this.b = i.d.a.d.f.t.h.c();
this.c = z0.a().a(new f2(this), 1);
this.d = new i.d.a.d.k.a.a(this);
this.e = new ArrayList();
try {
if (i.d.a.d.k.b.o7.c(context, "google_app_id", i.d.a.d.k.b.u4.a(context)) != null && !i()) {
this.f6441g = true;
Log.w(this.a, "Disabling data collection. Found google_app_id in strings.xml but Google Analytics for Firebase is missing. Remove this value or add Google Analytics for Firebase to resume data collection.");
return;
}
} catch (IllegalStateException unused) {
}
if (!m(str2, str3)) {
if (str2 == null || str3 == null) {
if ((str2 == null) ^ (str3 == null)) {
Log.w(this.a, "Specified origin or custom app id is null. Both parameters will be ignored.");
}
} else {
Log.v(this.a, "Deferring to Google Analytics for Firebase for event data collection. https://goo.gl/J1sWQy");
}
}
l(new u1(this, str2, str3, context, bundle));
Application application = (Application) context.getApplicationContext();
if (application == null) {
Log.w(this.a, "Unable to register lifecycle notifications. Application null.");
} else {
application.registerActivityLifecycleCallbacks(new v2(this));
}
}
public static final boolean i() {
try {
Class.forName("com.google.firebase.analytics.FirebaseAnalytics");
return true;
} catch (ClassNotFoundException unused) {
return false;
}
}
public static final boolean m(String str, String str2) {
return (str2 == null || str == null || i()) ? false : true;
}
public static w2 s(Context context, String str, String str2, String str3, Bundle bundle) {
i.d.a.d.f.q.q.k(context);
if (f6439i == null) {
synchronized (w2.class) {
if (f6439i == null) {
f6439i = new w2(context, str, str2, str3, bundle);
}
}
}
return f6439i;
}
public final void D(String str) {
l(new v1(this, str));
}
public final void E(String str, String str2, Bundle bundle) {
l(new r1(this, str, str2, bundle));
}
public final void F(String str) {
l(new w1(this, str));
}
public final void G(String str, Bundle bundle) {
k(null, str, bundle, false, true, null);
}
public final void H(String str, String str2, Bundle bundle) {
k(str, str2, bundle, true, true, null);
}
public final void a(int i2, String str, Object obj, Object obj2, Object obj3) {
l(new e2(this, false, 5, str, obj, null, null));
}
public final void b(i.d.a.d.k.b.d6 d6Var) {
i.d.a.d.f.q.q.k(d6Var);
synchronized (this.e) {
for (int i2 = 0; i2 < this.e.size(); i2++) {
if (d6Var.equals(this.e.get(i2).first)) {
Log.w(this.a, "OnEventListener already registered.");
return;
}
}
m2 m2Var = new m2(d6Var);
this.e.add(new Pair<>(d6Var, m2Var));
if (this.f6442h != null) {
try {
this.f6442h.registerOnMeasurementEventListener(m2Var);
return;
} catch (BadParcelableException | NetworkOnMainThreadException | RemoteException | IllegalArgumentException | IllegalStateException | NullPointerException | SecurityException | UnsupportedOperationException unused) {
Log.w(this.a, "Failed to register event listener on calling thread. Trying again on the dynamite thread.");
}
}
l(new i2(this, m2Var));
}
}
public final void c(Bundle bundle) {
l(new q1(this, bundle));
}
public final void d(Activity activity, String str, String str2) {
l(new t1(this, activity, str, str2));
}
public final void e(boolean z) {
l(new h2(this, z));
}
public final void f(String str, String str2, Object obj, boolean z) {
l(new k2(this, str, str2, obj, z));
}
public final void j(Exception exc, boolean z, boolean z2) {
this.f6441g |= z;
if (z) {
Log.w(this.a, "Data collection startup failed. No data will be collected.", exc);
return;
}
if (z2) {
a(5, "Error with data collection. Data lost.", exc, null, null);
}
Log.w(this.a, "Error with data collection. Data lost.", exc);
}
public final void k(String str, String str2, Bundle bundle, boolean z, boolean z2, Long l2) {
l(new j2(this, l2, str, str2, bundle, z, z2));
}
public final void l(l2 l2Var) {
this.c.execute(l2Var);
}
public final int n(String str) {
b1 b1Var = new b1();
l(new g2(this, str, b1Var));
Integer num = (Integer) b1.s1(b1Var.G(10000L), Integer.class);
if (num == null) {
return 25;
}
return num.intValue();
}
public final long o() {
b1 b1Var = new b1();
l(new a2(this, b1Var));
Long l2 = (Long) b1.s1(b1Var.G(500L), Long.class);
if (l2 == null) {
long nextLong = new Random(System.nanoTime() ^ this.b.a()).nextLong();
int i2 = this.f6440f + 1;
this.f6440f = i2;
return nextLong + i2;
}
return l2.longValue();
}
public final i.d.a.d.k.a.a p() {
return this.d;
}
public final f1 r(Context context, boolean z) {
try {
return e1.asInterface(DynamiteModule.e(context, DynamiteModule.c, ModuleDescriptor.MODULE_ID).d("com.google.android.gms.measurement.internal.AppMeasurementDynamiteService"));
} catch (DynamiteModule.a e) {
j(e, true, false);
return null;
}
}
public final String u() {
b1 b1Var = new b1();
l(new z1(this, b1Var));
return b1Var.K(50L);
}
public final String v() {
b1 b1Var = new b1();
l(new c2(this, b1Var));
return b1Var.K(500L);
}
public final String w() {
b1 b1Var = new b1();
l(new b2(this, b1Var));
return b1Var.K(500L);
}
public final String x() {
b1 b1Var = new b1();
l(new y1(this, b1Var));
return b1Var.K(500L);
}
public final List<Bundle> y(String str, String str2) {
b1 b1Var = new b1();
l(new s1(this, str, str2, b1Var));
List<Bundle> list = (List) b1.s1(b1Var.G(5000L), List.class);
return list == null ? Collections.emptyList() : list;
}
public final Map<String, Object> z(String str, String str2, boolean z) {
b1 b1Var = new b1();
l(new d2(this, str, str2, z, b1Var));
Bundle G = b1Var.G(5000L);
if (G == null || G.size() == 0) {
return Collections.emptyMap();
}
HashMap hashMap = new HashMap(G.size());
for (String str3 : G.keySet()) {
Object obj = G.get(str3);
if ((obj instanceof Double) || (obj instanceof Long) || (obj instanceof String)) {
hashMap.put(str3, obj);
}
}
return hashMap;
}
}