zzaum.java
3.92 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
package com.google.android.gms.internal;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import android.os.IBinder;
import android.support.annotation.MainThread;
import com.google.android.gms.common.internal.zzac;
public final class zzaum
{
private final Handler a;
private final Context b;
private final zza c;
public zzaum(zza paramzza)
{
this.b = paramzza.getContext();
zzac.zzw(this.b);
this.c = paramzza;
this.a = new Handler();
}
private zzatx a()
{
return zzaue.zzbM(this.b).zzKl();
}
public static boolean zzj(Context paramContext, boolean paramBoolean)
{
zzac.zzw(paramContext);
if (paramBoolean) {}
for (String str = "com.google.android.gms.measurement.PackageMeasurementService";; str = "com.google.android.gms.measurement.AppMeasurementService") {
return zzaut.zzy(paramContext, str);
}
}
@MainThread
public final IBinder onBind(Intent paramIntent)
{
if (paramIntent == null)
{
a().zzLY().log("onBind called with null intent");
return null;
}
paramIntent = paramIntent.getAction();
if ("com.google.android.gms.measurement.START".equals(paramIntent)) {
return new zzauf(zzaue.zzbM(this.b));
}
a().zzMa().zzj("onBind received unknown action", paramIntent);
return null;
}
@MainThread
public final void onCreate()
{
zzaue localzzaue = zzaue.zzbM(this.b);
zzatx localzzatx = localzzaue.zzKl();
localzzaue.zzKn().zzLg();
localzzatx.zzMe().log("Local AppMeasurementService is starting up");
}
@MainThread
public final void onDestroy()
{
zzaue localzzaue = zzaue.zzbM(this.b);
zzatx localzzatx = localzzaue.zzKl();
localzzaue.zzKn().zzLg();
localzzatx.zzMe().log("Local AppMeasurementService is shutting down");
}
@MainThread
public final void onRebind(Intent paramIntent)
{
if (paramIntent == null)
{
a().zzLY().log("onRebind called with null intent");
return;
}
paramIntent = paramIntent.getAction();
a().zzMe().zzj("onRebind called. action", paramIntent);
}
@MainThread
public final int onStartCommand(Intent paramIntent, int paramInt1, final int paramInt2)
{
final zzaue localzzaue = zzaue.zzbM(this.b);
final zzatx localzzatx = localzzaue.zzKl();
if (paramIntent == null) {
localzzatx.zzMa().log("AppMeasurementService started with null intent");
}
do
{
return 2;
paramIntent = paramIntent.getAction();
localzzaue.zzKn().zzLg();
localzzatx.zzMe().zze("Local AppMeasurementService called. startId, action", Integer.valueOf(paramInt2), paramIntent);
} while (!"com.google.android.gms.measurement.UPLOAD".equals(paramIntent));
localzzaue.zzKk().zzm(new Runnable()
{
public final void run()
{
localzzaue.c();
localzzaue.zzMG();
zzaum.b(zzaum.this).post(new Runnable()
{
public final void run()
{
if (zzaum.a(zzaum.this).callServiceStopSelfResult(zzaum.1.this.b))
{
zzaum.1.this.a.zzKn().zzLg();
zzaum.1.this.c.zzMe().log("Local AppMeasurementService processed last upload request");
}
}
});
}
});
return 2;
}
@MainThread
public final boolean onUnbind(Intent paramIntent)
{
if (paramIntent == null)
{
a().zzLY().log("onUnbind called with null intent");
return true;
}
paramIntent = paramIntent.getAction();
a().zzMe().zzj("onUnbind called for intent. action", paramIntent);
return true;
}
public static abstract interface zza
{
public abstract boolean callServiceStopSelfResult(int paramInt);
public abstract Context getContext();
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/google/android/gms/internal/zzaum.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/