zze.java
3.65 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
package com.google.android.gms.analytics;
import com.google.android.gms.common.internal.zzac;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
public final class zze
{
final zzg a;
final com.google.android.gms.common.util.zze b;
boolean c;
long d;
long e;
long f;
boolean g;
private long h;
private long i;
private final Map<Class<? extends zzf>, zzf> j;
private final List<zzi> k;
private zze(zze paramzze)
{
this.a = paramzze.a;
this.b = paramzze.b;
this.d = paramzze.d;
this.e = paramzze.e;
this.f = paramzze.f;
this.h = paramzze.h;
this.i = paramzze.i;
this.k = new ArrayList(paramzze.k);
this.j = new HashMap(paramzze.j.size());
paramzze = paramzze.j.entrySet().iterator();
while (paramzze.hasNext())
{
Map.Entry localEntry = (Map.Entry)paramzze.next();
zzf localzzf = a((Class)localEntry.getKey());
((zzf)localEntry.getValue()).zzb(localzzf);
this.j.put((Class)localEntry.getKey(), localzzf);
}
}
zze(zzg paramzzg, com.google.android.gms.common.util.zze paramzze)
{
zzac.zzw(paramzzg);
zzac.zzw(paramzze);
this.a = paramzzg;
this.b = paramzze;
this.h = 1800000L;
this.i = 3024000000L;
this.j = new HashMap();
this.k = new ArrayList();
}
private static <T extends zzf> T a(Class<T> paramClass)
{
try
{
paramClass = (zzf)paramClass.newInstance();
return paramClass;
}
catch (InstantiationException paramClass)
{
throw new IllegalArgumentException("dataType doesn't have default constructor", paramClass);
}
catch (IllegalAccessException paramClass)
{
throw new IllegalArgumentException("dataType default constructor is not accessible", paramClass);
}
}
public final <T extends zzf> T zza(Class<T> paramClass)
{
return (zzf)this.j.get(paramClass);
}
public final void zza(zzf paramzzf)
{
zzac.zzw(paramzzf);
Class localClass = paramzzf.getClass();
if (localClass.getSuperclass() != zzf.class) {
throw new IllegalArgumentException();
}
paramzzf.zzb(zzb(localClass));
}
public final <T extends zzf> T zzb(Class<T> paramClass)
{
zzf localzzf2 = (zzf)this.j.get(paramClass);
zzf localzzf1 = localzzf2;
if (localzzf2 == null)
{
localzzf1 = a(paramClass);
this.j.put(paramClass, localzzf1);
}
return localzzf1;
}
public final zze zzmC()
{
return new zze(this);
}
public final Collection<zzf> zzmD()
{
return this.j.values();
}
public final List<zzi> zzmE()
{
return this.k;
}
public final long zzmF()
{
return this.d;
}
public final void zzmG()
{
zzh localzzh = this.a.zzmK();
if (this.g) {
throw new IllegalStateException("Measurement prototype can't be submitted");
}
if (zzmH()) {
throw new IllegalStateException("Measurement can only be submitted once");
}
zze localzze = zzmC();
localzze.f = localzze.b.elapsedRealtime();
if (localzze.e != 0L) {}
for (localzze.d = localzze.e;; localzze.d = localzze.b.currentTimeMillis())
{
localzze.c = true;
localzzh.a.execute(new zzh.1(localzzh, localzze));
return;
}
}
public final boolean zzmH()
{
return this.c;
}
public final void zzq(long paramLong)
{
this.e = paramLong;
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/google/android/gms/analytics/zze.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/