76 lines
2.4 KiB
Java
76 lines
2.4 KiB
Java
package c.i.a.f.i.b;
|
|
|
|
import android.app.ActivityManager;
|
|
import android.os.Bundle;
|
|
import android.os.SystemClock;
|
|
import android.text.TextUtils;
|
|
import androidx.annotation.WorkerThread;
|
|
import c.i.a.f.e.o.d;
|
|
import c.i.a.f.h.l.a9;
|
|
import java.util.Objects;
|
|
/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
|
|
public final class f9 {
|
|
public final /* synthetic */ w8 a;
|
|
|
|
public f9(w8 w8Var) {
|
|
this.a = w8Var;
|
|
}
|
|
|
|
@WorkerThread
|
|
public final void a() {
|
|
this.a.b();
|
|
d4 l = this.a.l();
|
|
Objects.requireNonNull((d) this.a.a.o);
|
|
if (l.u(System.currentTimeMillis())) {
|
|
this.a.l().f1144s.a(true);
|
|
ActivityManager.RunningAppProcessInfo runningAppProcessInfo = new ActivityManager.RunningAppProcessInfo();
|
|
ActivityManager.getMyMemoryState(runningAppProcessInfo);
|
|
if (runningAppProcessInfo.importance == 100) {
|
|
this.a.g().n.a("Detected application was in foreground");
|
|
Objects.requireNonNull((d) this.a.a.o);
|
|
c(System.currentTimeMillis(), false);
|
|
}
|
|
}
|
|
}
|
|
|
|
@WorkerThread
|
|
public final void b(long j, boolean z2) {
|
|
this.a.b();
|
|
this.a.x();
|
|
if (this.a.l().u(j)) {
|
|
this.a.l().f1144s.a(true);
|
|
}
|
|
this.a.l().v.b(j);
|
|
if (this.a.l().f1144s.b()) {
|
|
c(j, z2);
|
|
}
|
|
}
|
|
|
|
@WorkerThread
|
|
public final void c(long j, boolean z2) {
|
|
this.a.b();
|
|
if (this.a.a.d()) {
|
|
this.a.l().v.b(j);
|
|
Objects.requireNonNull((d) this.a.a.o);
|
|
this.a.g().n.b("Session started, time", Long.valueOf(SystemClock.elapsedRealtime()));
|
|
Long valueOf = Long.valueOf(j / 1000);
|
|
this.a.n().K("auto", "_sid", valueOf, j);
|
|
this.a.l().f1144s.a(false);
|
|
Bundle bundle = new Bundle();
|
|
bundle.putLong("_sid", valueOf.longValue());
|
|
if (this.a.a.h.o(p.k0) && z2) {
|
|
bundle.putLong("_aib", 1);
|
|
}
|
|
this.a.n().E("auto", "_s", j, bundle);
|
|
if (a9.b() && this.a.a.h.o(p.p0)) {
|
|
String a = this.a.l().A.a();
|
|
if (!TextUtils.isEmpty(a)) {
|
|
Bundle bundle2 = new Bundle();
|
|
bundle2.putString("_ffr", a);
|
|
this.a.n().E("auto", "_ssr", j, bundle2);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|