ViewExposureManager$f.smali
7.9 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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
.class public final Lcom/bytedance/applog/exposure/ViewExposureManager$f;
.super Lkotlin/jvm/internal/Lambda;
.source ""
# interfaces
.implements Lkotlin/jvm/functions/Function0;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/bytedance/applog/exposure/ViewExposureManager;->a(Landroid/view/View;Lcom/bytedance/applog/exposure/ViewExposureData;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/Lambda;",
"Lkotlin/jvm/functions/Function0<",
"Lkotlin/Unit;",
">;"
}
.end annotation
# instance fields
.field public final synthetic a:Lcom/bytedance/applog/exposure/ViewExposureManager;
.field public final synthetic b:Lcom/bytedance/applog/exposure/ViewExposureData;
.field public final synthetic c:Landroid/view/View;
# direct methods
.method public constructor <init>(Lcom/bytedance/applog/exposure/ViewExposureManager;Lcom/bytedance/applog/exposure/ViewExposureData;Landroid/view/View;)V
.locals 0
iput-object p1, p0, Lcom/bytedance/applog/exposure/ViewExposureManager$f;->a:Lcom/bytedance/applog/exposure/ViewExposureManager;
iput-object p2, p0, Lcom/bytedance/applog/exposure/ViewExposureManager$f;->b:Lcom/bytedance/applog/exposure/ViewExposureData;
iput-object p3, p0, Lcom/bytedance/applog/exposure/ViewExposureManager$f;->c:Landroid/view/View;
const/4 p1, 0x0
invoke-direct {p0, p1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
return-void
.end method
# virtual methods
.method public invoke()Ljava/lang/Object;
.locals 8
.line 1
iget-object v0, p0, Lcom/bytedance/applog/exposure/ViewExposureManager$f;->b:Lcom/bytedance/applog/exposure/ViewExposureData;
if-eqz v0, :cond_0
invoke-virtual {v0}, Lcom/bytedance/applog/exposure/ViewExposureData;->getEventName()Ljava/lang/String;
move-result-object v0
if-eqz v0, :cond_0
goto :goto_0
:cond_0
const-string v0, "$bav2b_exposure"
:goto_0
iget-object v1, p0, Lcom/bytedance/applog/exposure/ViewExposureManager$f;->c:Landroid/view/View;
const/4 v2, 0x1
invoke-static {v1, v2}, Lcom/bytedance/bdtracker/n0;->a(Landroid/view/View;Z)Lcom/bytedance/bdtracker/l3;
move-result-object v1
new-instance v3, Lorg/json/JSONObject;
invoke-direct {v3}, Lorg/json/JSONObject;-><init>()V
const-string v4, "page_key"
const/4 v5, 0x0
:try_start_0
iget-object v6, v1, Lcom/bytedance/bdtracker/l3;->v:Ljava/lang/String;
invoke-virtual {v3, v4, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
const-string v4, "page_title"
:try_start_1
iget-object v6, v1, Lcom/bytedance/bdtracker/l3;->w:Ljava/lang/String;
invoke-virtual {v3, v4, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
const-string v4, "element_path"
:try_start_2
iget-object v6, v1, Lcom/bytedance/bdtracker/l3;->x:Ljava/lang/String;
invoke-virtual {v3, v4, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:try_end_2
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
const-string v4, "element_width"
:try_start_3
iget v6, v1, Lcom/bytedance/bdtracker/l3;->C:I
invoke-virtual {v3, v4, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
:try_end_3
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0
const-string v4, "element_height"
:try_start_4
iget v6, v1, Lcom/bytedance/bdtracker/l3;->D:I
invoke-virtual {v3, v4, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
:try_end_4
.catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0
const-string v4, "element_id"
:try_start_5
iget-object v6, v1, Lcom/bytedance/bdtracker/l3;->y:Ljava/lang/String;
invoke-virtual {v3, v4, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:try_end_5
.catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_0
const-string v4, "element_type"
:try_start_6
iget-object v6, v1, Lcom/bytedance/bdtracker/l3;->z:Ljava/lang/String;
invoke-virtual {v3, v4, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
iget-object v4, v1, Lcom/bytedance/bdtracker/l3;->B:Ljava/util/ArrayList;
if-eqz v4, :cond_2
invoke-interface {v4}, Ljava/util/Collection;->isEmpty()Z
move-result v4
:try_end_6
.catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_0
if-eqz v4, :cond_1
goto :goto_1
:cond_1
move v4, v5
goto :goto_2
:cond_2
:goto_1
move v4, v2
:goto_2
if-nez v4, :cond_3
const-string v4, "positions"
:try_start_7
new-instance v6, Lorg/json/JSONArray;
iget-object v7, v1, Lcom/bytedance/bdtracker/l3;->B:Ljava/util/ArrayList;
invoke-direct {v6, v7}, Lorg/json/JSONArray;-><init>(Ljava/util/Collection;)V
invoke-virtual {v3, v4, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:cond_3
iget-object v4, v1, Lcom/bytedance/bdtracker/l3;->A:Ljava/util/ArrayList;
if-eqz v4, :cond_5
invoke-interface {v4}, Ljava/util/Collection;->isEmpty()Z
move-result v4
:try_end_7
.catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_0
if-eqz v4, :cond_4
goto :goto_3
:cond_4
move v2, v5
:cond_5
:goto_3
if-nez v2, :cond_6
const-string v2, "texts"
:try_start_8
new-instance v4, Lorg/json/JSONArray;
iget-object v1, v1, Lcom/bytedance/bdtracker/l3;->A:Ljava/util/ArrayList;
invoke-direct {v4, v1}, Lorg/json/JSONArray;-><init>(Ljava/util/Collection;)V
invoke-virtual {v3, v2, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:cond_6
iget-object v1, p0, Lcom/bytedance/applog/exposure/ViewExposureManager$f;->b:Lcom/bytedance/applog/exposure/ViewExposureData;
if-eqz v1, :cond_7
invoke-virtual {v1}, Lcom/bytedance/applog/exposure/ViewExposureData;->getProperties()Lorg/json/JSONObject;
move-result-object v1
if-eqz v1, :cond_7
invoke-static {v1, v3}, Lcom/bytedance/bdtracker/n0;->b(Lorg/json/JSONObject;Lorg/json/JSONObject;)Lorg/json/JSONObject;
:try_end_8
.catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_0
goto :goto_4
:catch_0
move-exception v1
iget-object v2, p0, Lcom/bytedance/applog/exposure/ViewExposureManager$f;->a:Lcom/bytedance/applog/exposure/ViewExposureManager;
invoke-virtual {v2}, Lcom/bytedance/applog/exposure/ViewExposureManager;->getAppLog()Lcom/bytedance/bdtracker/d;
move-result-object v2
.line 2
iget-object v2, v2, Lcom/bytedance/bdtracker/d;->D:Lcom/bytedance/applog/log/IAppLogLogger;
.line 3
new-array v4, v5, [Ljava/lang/Object;
const/4 v6, 0x7
const-string v7, "JSON handle failed"
invoke-interface {v2, v6, v7, v1, v4}, Lcom/bytedance/applog/log/IAppLogLogger;->error(ILjava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V
:cond_7
:goto_4
iget-object v1, p0, Lcom/bytedance/applog/exposure/ViewExposureManager$f;->a:Lcom/bytedance/applog/exposure/ViewExposureManager;
invoke-virtual {v1}, Lcom/bytedance/applog/exposure/ViewExposureManager;->getAppLog()Lcom/bytedance/bdtracker/d;
move-result-object v1
.line 4
invoke-virtual {v1, v0, v3, v5}, Lcom/bytedance/bdtracker/d;->onEventV3(Ljava/lang/String;Lorg/json/JSONObject;I)V
.line 5
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
return-object v0
.end method