zzso.java
4.09 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
package com.google.android.gms.internal;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.Resources.NotFoundException;
import android.content.res.XmlResourceParser;
import android.text.TextUtils;
import ih;
import java.io.IOException;
import org.xmlpull.v1.XmlPullParserException;
public abstract class zzso<T extends ih>
extends zzrz
{
zza<T> a;
public zzso(zzsc paramzzsc, zza<T> paramzza)
{
super(paramzzsc);
this.a = paramzza;
}
private T a(XmlResourceParser paramXmlResourceParser)
{
for (;;)
{
try
{
paramXmlResourceParser.next();
i = paramXmlResourceParser.getEventType();
if (i == 1) {
continue;
}
if (paramXmlResourceParser.getEventType() == 2)
{
str1 = paramXmlResourceParser.getName().toLowerCase();
if (!str1.equals("screenname")) {
continue;
}
str1 = paramXmlResourceParser.getAttributeValue(null, "name");
str2 = paramXmlResourceParser.nextText().trim();
if ((!TextUtils.isEmpty(str1)) && (!TextUtils.isEmpty(str2))) {
this.a.zzp(str1, str2);
}
}
}
catch (XmlPullParserException paramXmlResourceParser)
{
zze("Error parsing tracker configuration file", paramXmlResourceParser);
return this.a.zzoV();
if (!str1.equals("bool")) {
continue;
}
String str2 = paramXmlResourceParser.getAttributeValue(null, "name");
str1 = paramXmlResourceParser.nextText().trim();
if (TextUtils.isEmpty(str2)) {
continue;
}
bool = TextUtils.isEmpty(str1);
if (bool) {
continue;
}
try
{
bool = Boolean.parseBoolean(str1);
this.a.zze(str2, bool);
}
catch (NumberFormatException localNumberFormatException1)
{
zzc("Error parsing bool configuration value", str1, localNumberFormatException1);
}
continue;
}
catch (IOException paramXmlResourceParser)
{
int i;
zze("Error parsing tracker configuration file", paramXmlResourceParser);
continue;
if (!str1.equals("integer")) {
continue;
}
String str3 = paramXmlResourceParser.getAttributeValue(null, "name");
String str1 = paramXmlResourceParser.nextText().trim();
if (TextUtils.isEmpty(str3)) {
continue;
}
boolean bool = TextUtils.isEmpty(str1);
if (bool) {
continue;
}
try
{
i = Integer.parseInt(str1);
this.a.zzd(str3, i);
}
catch (NumberFormatException localNumberFormatException2)
{
zzc("Error parsing int configuration value", str1, localNumberFormatException2);
}
continue;
}
i = paramXmlResourceParser.next();
continue;
if (!str1.equals("string")) {
continue;
}
str1 = paramXmlResourceParser.getAttributeValue(null, "name");
str2 = paramXmlResourceParser.nextText().trim();
if ((!TextUtils.isEmpty(str1)) && (str2 != null)) {
this.a.zzq(str1, str2);
}
}
}
public T zzaI(int paramInt)
{
try
{
ih localih = a(zznQ().zzod().getResources().getXml(paramInt));
return localih;
}
catch (Resources.NotFoundException localNotFoundException)
{
zzd("inflate() called with unknown resourceId", localNotFoundException);
}
return null;
}
public static abstract interface zza<U extends ih>
{
public abstract void zzd(String paramString, int paramInt);
public abstract void zze(String paramString, boolean paramBoolean);
public abstract U zzoV();
public abstract void zzp(String paramString1, String paramString2);
public abstract void zzq(String paramString1, String paramString2);
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/google/android/gms/internal/zzso.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/