ConnectionResult.java
5.25 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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
package com.google.android.gms.common;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.IntentSender.SendIntentException;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import android.support.annotation.Nullable;
import com.google.android.gms.common.internal.safeparcel.zza;
import com.google.android.gms.common.internal.zzaa;
import com.google.android.gms.common.internal.zzaa.zza;
public final class ConnectionResult
extends zza
{
public static final int API_UNAVAILABLE = 16;
public static final int CANCELED = 13;
public static final Parcelable.Creator<ConnectionResult> CREATOR = new zzb();
public static final int DEVELOPER_ERROR = 10;
@Deprecated
public static final int DRIVE_EXTERNAL_STORAGE_REQUIRED = 1500;
public static final int INTERNAL_ERROR = 8;
public static final int INTERRUPTED = 15;
public static final int INVALID_ACCOUNT = 5;
public static final int LICENSE_CHECK_FAILED = 11;
public static final int NETWORK_ERROR = 7;
public static final int RESOLUTION_REQUIRED = 6;
public static final int RESTRICTED_PROFILE = 20;
public static final int SERVICE_DISABLED = 3;
public static final int SERVICE_INVALID = 9;
public static final int SERVICE_MISSING = 1;
public static final int SERVICE_MISSING_PERMISSION = 19;
public static final int SERVICE_UPDATING = 18;
public static final int SERVICE_VERSION_UPDATE_REQUIRED = 2;
public static final int SIGN_IN_FAILED = 17;
public static final int SIGN_IN_REQUIRED = 4;
public static final int SUCCESS = 0;
public static final int TIMEOUT = 14;
public static final ConnectionResult zzayj = new ConnectionResult(0);
final int a;
private final int b;
private final PendingIntent c;
private final String d;
public ConnectionResult(int paramInt)
{
this(paramInt, null, null);
}
ConnectionResult(int paramInt1, int paramInt2, PendingIntent paramPendingIntent, String paramString)
{
this.a = paramInt1;
this.b = paramInt2;
this.c = paramPendingIntent;
this.d = paramString;
}
public ConnectionResult(int paramInt, PendingIntent paramPendingIntent)
{
this(paramInt, paramPendingIntent, null);
}
public ConnectionResult(int paramInt, PendingIntent paramPendingIntent, String paramString)
{
this(1, paramInt, paramPendingIntent, paramString);
}
static String a(int paramInt)
{
switch (paramInt)
{
default:
return 31 + "UNKNOWN_ERROR_CODE(" + paramInt + ")";
case 0:
return "SUCCESS";
case 1:
return "SERVICE_MISSING";
case 2:
return "SERVICE_VERSION_UPDATE_REQUIRED";
case 3:
return "SERVICE_DISABLED";
case 4:
return "SIGN_IN_REQUIRED";
case 5:
return "INVALID_ACCOUNT";
case 6:
return "RESOLUTION_REQUIRED";
case 7:
return "NETWORK_ERROR";
case 8:
return "INTERNAL_ERROR";
case 9:
return "SERVICE_INVALID";
case 10:
return "DEVELOPER_ERROR";
case 11:
return "LICENSE_CHECK_FAILED";
case 13:
return "CANCELED";
case 14:
return "TIMEOUT";
case 15:
return "INTERRUPTED";
case 16:
return "API_UNAVAILABLE";
case 17:
return "SIGN_IN_FAILED";
case 18:
return "SERVICE_UPDATING";
case 19:
return "SERVICE_MISSING_PERMISSION";
case 20:
return "RESTRICTED_PROFILE";
case 21:
return "API_VERSION_UPDATE_REQUIRED";
case 1500:
return "DRIVE_EXTERNAL_STORAGE_REQUIRED";
case 99:
return "UNFINISHED";
}
return "UNKNOWN";
}
public final boolean equals(Object paramObject)
{
if (paramObject == this) {}
do
{
return true;
if (!(paramObject instanceof ConnectionResult)) {
return false;
}
paramObject = (ConnectionResult)paramObject;
} while ((this.b == ((ConnectionResult)paramObject).b) && (zzaa.equal(this.c, ((ConnectionResult)paramObject).c)) && (zzaa.equal(this.d, ((ConnectionResult)paramObject).d)));
return false;
}
public final int getErrorCode()
{
return this.b;
}
@Nullable
public final String getErrorMessage()
{
return this.d;
}
@Nullable
public final PendingIntent getResolution()
{
return this.c;
}
public final boolean hasResolution()
{
return (this.b != 0) && (this.c != null);
}
public final int hashCode()
{
return zzaa.hashCode(new Object[] { Integer.valueOf(this.b), this.c, this.d });
}
public final boolean isSuccess()
{
return this.b == 0;
}
public final void startResolutionForResult(Activity paramActivity, int paramInt)
throws IntentSender.SendIntentException
{
if (!hasResolution()) {
return;
}
paramActivity.startIntentSenderForResult(this.c.getIntentSender(), paramInt, null, 0, 0, 0);
}
public final String toString()
{
return zzaa.zzv(this).zzg("statusCode", a(this.b)).zzg("resolution", this.c).zzg("message", this.d).toString();
}
public final void writeToParcel(Parcel paramParcel, int paramInt)
{
zzb.a(this, paramParcel, paramInt);
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/google/android/gms/common/ConnectionResult.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/