iv.java
3.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
import com.google.android.gms.internal.zzaj.zzc;
import com.google.android.gms.internal.zzaj.zzd;
import com.google.android.gms.internal.zzaj.zzi;
import com.google.android.gms.internal.zzak.zza;
import com.google.android.gms.tagmanager.DataLayer;
import com.google.android.gms.tagmanager.zzbo;
import com.google.android.gms.tagmanager.zzdl;
import java.util.Map;
final class iv
{
private static void a(DataLayer paramDataLayer, zzaj.zzd paramzzd)
{
zzaj.zzc[] arrayOfzzc = paramzzd.zzkB;
int j = arrayOfzzc.length;
int i = 0;
while (i < j)
{
zzaj.zzc localzzc = arrayOfzzc[i];
if (localzzc.zzaB == null)
{
zzbo.zzbh("GaExperimentRandom: No key");
i += 1;
}
else
{
Object localObject = paramDataLayer.get(localzzc.zzaB);
if (!(localObject instanceof Number))
{
paramzzd = null;
label64:
long l1 = localzzc.zzkv;
long l2 = localzzc.zzkw;
if ((!localzzc.zzkx) || (paramzzd == null) || (paramzzd.longValue() < l1) || (paramzzd.longValue() > l2))
{
if (l1 > l2) {
break label236;
}
localObject = Long.valueOf(Math.round(Math.random() * (l2 - l1) + l1));
}
paramDataLayer.a(localzzc.zzaB);
paramzzd = DataLayer.a(localzzc.zzaB, localObject);
if (localzzc.zzky > 0L)
{
if (paramzzd.containsKey("gtm")) {
break label244;
}
paramzzd.put("gtm", DataLayer.mapOf(new Object[] { "lifetime", Long.valueOf(localzzc.zzky) }));
}
}
for (;;)
{
paramDataLayer.push(paramzzd);
break;
paramzzd = Long.valueOf(((Number)localObject).longValue());
break label64;
label236:
zzbo.zzbh("GaExperimentRandom: random range invalid");
break;
label244:
localObject = paramzzd.get("gtm");
if ((localObject instanceof Map)) {
((Map)localObject).put("lifetime", Long.valueOf(localzzc.zzky));
} else {
zzbo.zzbh("GaExperimentRandom: gtm not a map");
}
}
}
}
}
public static void a(DataLayer paramDataLayer, zzaj.zzi paramzzi)
{
if (paramzzi.zzlp == null)
{
zzbo.zzbh("supplemental missing experimentSupplemental");
return;
}
Object localObject = paramzzi.zzlp.zzkA;
int j = localObject.length;
int i = 0;
while (i < j)
{
paramDataLayer.a(zzdl.zze(localObject[i]));
i += 1;
}
zzak.zza[] arrayOfzza = paramzzi.zzlp.zzkz;
j = arrayOfzza.length;
i = 0;
if (i < j)
{
localObject = zzdl.zzj(arrayOfzza[i]);
if (!(localObject instanceof Map))
{
localObject = String.valueOf(localObject);
zzbo.zzbh(String.valueOf(localObject).length() + 36 + "value: " + (String)localObject + " is not a map value, ignored.");
}
for (localObject = null;; localObject = (Map)localObject)
{
if (localObject != null) {
paramDataLayer.push((Map)localObject);
}
i += 1;
break;
}
}
a(paramDataLayer, paramzzi.zzlp);
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/iv.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/