what-the-bank/sources/com/google/android/gms/measurement/internal/zzkc.java

72 lines
2.6 KiB
Java

package com.google.android.gms.measurement.internal;
import android.app.ActivityManager;
import android.os.Bundle;
import android.text.TextUtils;
import com.google.android.gms.internal.measurement.zznu;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public final class zzkc {
final zzkd zza;
/* JADX INFO: Access modifiers changed from: package-private */
public final void zza() {
this.zza.zzg();
if (this.zza.zzs.zzm().zzk(this.zza.zzs.zzav().currentTimeMillis())) {
this.zza.zzs.zzm().zzg.zza(true);
ActivityManager.RunningAppProcessInfo runningAppProcessInfo = new ActivityManager.RunningAppProcessInfo();
ActivityManager.getMyMemoryState(runningAppProcessInfo);
if (runningAppProcessInfo.importance == 100) {
this.zza.zzs.zzay().zzj().zza("Detected application was in foreground");
zzc(this.zza.zzs.zzav().currentTimeMillis(), false);
}
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void zzb(long j, boolean z) {
this.zza.zzg();
this.zza.zzm();
if (this.zza.zzs.zzm().zzk(j)) {
this.zza.zzs.zzm().zzg.zza(true);
}
this.zza.zzs.zzm().zzj.zzb(j);
if (this.zza.zzs.zzm().zzg.zzb()) {
zzc(j, z);
}
}
final void zzc(long j, boolean z) {
this.zza.zzg();
if (this.zza.zzs.zzJ()) {
this.zza.zzs.zzm().zzj.zzb(j);
this.zza.zzs.zzay().zzj().zzb("Session started, time", Long.valueOf(this.zza.zzs.zzav().elapsedRealtime()));
Long valueOf = Long.valueOf(j / 1000);
this.zza.zzs.zzq().zzZ("auto", "_sid", valueOf, j);
this.zza.zzs.zzm().zzg.zza(false);
Bundle bundle = new Bundle();
bundle.putLong("_sid", valueOf.longValue());
if (this.zza.zzs.zzf().zzs(null, zzdy.zzad) && z) {
bundle.putLong("_aib", 1L);
}
this.zza.zzs.zzq().zzH("auto", "_s", j, bundle);
zznu.zzc();
if (this.zza.zzs.zzf().zzs(null, zzdy.zzah)) {
String zza = this.zza.zzs.zzm().zzo.zza();
if (TextUtils.isEmpty(zza)) {
return;
}
Bundle bundle2 = new Bundle();
bundle2.putString("_ffr", zza);
this.zza.zzs.zzq().zzH("auto", "_ssr", j, bundle2);
}
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public zzkc(zzkd zzkdVar) {
this.zza = zzkdVar;
}
}