141 lines
5.8 KiB
Java
141 lines
5.8 KiB
Java
package com.google.android.gms.internal.gtm;
|
|
|
|
import android.content.Context;
|
|
import com.google.android.gms.common.api.Status;
|
|
import com.google.android.gms.common.util.Clock;
|
|
import com.google.android.gms.common.util.DefaultClock;
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class zzmo {
|
|
private String zzafk;
|
|
private final zzmz zzaso;
|
|
private final Map<String, zzmr<zznm>> zzasp;
|
|
private final Map<String, zznk> zzasq;
|
|
private final Context zzrm;
|
|
private final Clock zzsd;
|
|
|
|
public zzmo(Context context) {
|
|
this(context, new HashMap(), new zzmz(context), DefaultClock.getInstance());
|
|
}
|
|
|
|
private zzmo(Context context, Map<String, zznk> map, zzmz zzmzVar, Clock clock) {
|
|
this.zzafk = null;
|
|
this.zzasp = new HashMap();
|
|
this.zzrm = context.getApplicationContext();
|
|
this.zzsd = clock;
|
|
this.zzaso = zzmzVar;
|
|
this.zzasq = map;
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:4:0x0022, code lost:
|
|
|
|
if (r16.equals(r2.getContainerId()) != false) goto L9;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void zza(java.lang.String r16, java.lang.String r17, java.lang.String r18, java.util.List<java.lang.Integer> r19, com.google.android.gms.internal.gtm.zzmp r20, com.google.android.gms.internal.gtm.zzdz r21) {
|
|
/*
|
|
r15 = this;
|
|
boolean r0 = r19.isEmpty()
|
|
r1 = 1
|
|
r0 = r0 ^ r1
|
|
com.google.android.gms.common.internal.Preconditions.checkArgument(r0)
|
|
com.google.android.gms.internal.gtm.zzmw r0 = new com.google.android.gms.internal.gtm.zzmw
|
|
r0.<init>()
|
|
com.google.android.gms.internal.gtm.zzfd r2 = com.google.android.gms.internal.gtm.zzfd.zzkr()
|
|
boolean r3 = r2.isPreview()
|
|
if (r3 == 0) goto L25
|
|
java.lang.String r2 = r2.getContainerId()
|
|
r4 = r16
|
|
boolean r2 = r4.equals(r2)
|
|
if (r2 == 0) goto L27
|
|
goto L28
|
|
L25:
|
|
r4 = r16
|
|
L27:
|
|
r1 = 0
|
|
L28:
|
|
r7 = r1
|
|
com.google.android.gms.internal.gtm.zzmk r1 = new com.google.android.gms.internal.gtm.zzmk
|
|
com.google.android.gms.internal.gtm.zzfd r2 = com.google.android.gms.internal.gtm.zzfd.zzkr()
|
|
java.lang.String r8 = r2.zzks()
|
|
r3 = r1
|
|
r4 = r16
|
|
r5 = r17
|
|
r6 = r18
|
|
r3.<init>(r4, r5, r6, r7, r8)
|
|
com.google.android.gms.internal.gtm.zzmw r10 = r0.zza(r1)
|
|
java.util.List r11 = java.util.Collections.unmodifiableList(r19)
|
|
r12 = 0
|
|
r9 = r15
|
|
r13 = r20
|
|
r14 = r21
|
|
r9.zza(r10, r11, r12, r13, r14)
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.gtm.zzmo.zza(java.lang.String, java.lang.String, java.lang.String, java.util.List, com.google.android.gms.internal.gtm.zzmp, com.google.android.gms.internal.gtm.zzdz):void");
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* JADX WARN: Code restructure failed: missing block: B:16:0x0148, code lost:
|
|
|
|
r1 = r16.zzasq.get(r17.getId());
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:17:0x0154, code lost:
|
|
|
|
if (r1 != null) goto L35;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:18:0x0156, code lost:
|
|
|
|
r1 = new com.google.android.gms.internal.gtm.zznk();
|
|
r16.zzasq.put(r17.getId(), r1);
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:19:0x0164, code lost:
|
|
|
|
r10 = r1;
|
|
r0 = r0.getContainerId();
|
|
r1 = new java.lang.StringBuilder(java.lang.String.valueOf(r0).length() + 43);
|
|
r1.append("Attempting to fetch container ");
|
|
r1.append(r0);
|
|
r1.append(" from network");
|
|
com.google.android.gms.internal.gtm.zzev.zzab(r1.toString());
|
|
r10.zza(r16.zzrm, r17, 0, new com.google.android.gms.internal.gtm.zzmq(r16, 0, r17, com.google.android.gms.internal.gtm.zzmt.zzasw, r18, r6, r20, r21));
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:20:0x01a6, code lost:
|
|
|
|
return;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void zza(com.google.android.gms.internal.gtm.zzmw r17, java.util.List<java.lang.Integer> r18, int r19, com.google.android.gms.internal.gtm.zzmp r20, com.google.android.gms.internal.gtm.zzdz r21) {
|
|
/*
|
|
Method dump skipped, instructions count: 427
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.gtm.zzmo.zza(com.google.android.gms.internal.gtm.zzmw, java.util.List, int, com.google.android.gms.internal.gtm.zzmp, com.google.android.gms.internal.gtm.zzdz):void");
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public final void zza(Status status, zzmy zzmyVar) {
|
|
String containerId = zzmyVar.zzlp().getContainerId();
|
|
zznm zzlq = zzmyVar.zzlq();
|
|
if (this.zzasp.containsKey(containerId)) {
|
|
zzmr<zznm> zzmrVar = this.zzasp.get(containerId);
|
|
zzmrVar.zzo(this.zzsd.currentTimeMillis());
|
|
if (status == Status.RESULT_SUCCESS) {
|
|
zzmrVar.zzb(status);
|
|
zzmrVar.zzp(zzlq);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
this.zzasp.put(containerId, new zzmr<>(status, zzlq, this.zzsd.currentTimeMillis()));
|
|
}
|
|
}
|