Offset 27, 15 lines modifiedOffset 27, 15 lines modified
27 .field·private·final·sampleRate:I27 .field·private·final·sampleRate:I
  
  
28 #·direct·methods28 #·direct·methods
29 .method·public·constructor·<init>(I)V29 .method·public·constructor·<init>(I)V
30 ····.locals·130 ····.locals·1
  
31 ····.line·5131 ····.line·53
32 ····sget-object·v0,·Lcom/android/textclassifier/common/statsd/-$$Lambda$GenerateLinksLogger$Pc3PlDwg4TEgsFqlhikIPj1R5GA;->INSTANCE:Lcom/android/textclassifier/common/statsd/-$$Lambda$GenerateLinksLogger$Pc3PlDwg4TEgsFqlhikIPj1R5GA;32 ····sget-object·v0,·Lcom/android/textclassifier/common/statsd/-$$Lambda$GenerateLinksLogger$Pc3PlDwg4TEgsFqlhikIPj1R5GA;->INSTANCE:Lcom/android/textclassifier/common/statsd/-$$Lambda$GenerateLinksLogger$Pc3PlDwg4TEgsFqlhikIPj1R5GA;
  
33 ····invoke-direct·{p0,·p1,·v0},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;-><init>(ILjava/util/function/Supplier;)V33 ····invoke-direct·{p0,·p1,·v0},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;-><init>(ILjava/util/function/Supplier;)V
  
34 ····return-void34 ····return-void
35 .end·method35 .end·method
  
Offset 46, 78 lines modifiedOffset 46, 78 lines modified
46 ············"(I",46 ············"(I",
47 ············"Ljava/util/function/Supplier<",47 ············"Ljava/util/function/Supplier<",
48 ············"Ljava/lang/String;",48 ············"Ljava/lang/String;",
49 ············">;)V"49 ············">;)V"
50 ········}50 ········}
51 ····.end·annotation51 ····.end·annotation
  
52 ····.line·6152 ····.line·63
53 ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V53 ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V
  
54 ····.line·6254 ····.line·64
55 ····iput·p1,·p0,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;->sampleRate:I55 ····iput·p1,·p0,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;->sampleRate:I
  
56 ····.line·6356 ····.line·65
57 ····new-instance·p1,·Ljava/util/Random;57 ····new-instance·p1,·Ljava/util/Random;
  
58 ····invoke-direct·{p1},·Ljava/util/Random;-><init>()V58 ····invoke-direct·{p1},·Ljava/util/Random;-><init>()V
  
59 ····iput-object·p1,·p0,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;->random:Ljava/util/Random;59 ····iput-object·p1,·p0,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;->random:Ljava/util/Random;
  
60 ····.line·6460 ····.line·66
61 ····invoke-static·{p2},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;61 ····invoke-static·{p2},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
  
62 ····check-cast·p2,·Ljava/util/function/Supplier;62 ····check-cast·p2,·Ljava/util/function/Supplier;
  
63 ····iput-object·p2,·p0,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;->randomUuidSupplier:Ljava/util/function/Supplier;63 ····iput-object·p2,·p0,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;->randomUuidSupplier:Ljava/util/function/Supplier;
  
64 ····return-void64 ····return-void
65 .end·method65 .end·method
  
66 .method·static·synthetic·lambda$logGenerateLinks$1(Ljava/lang/String;)Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;66 .method·static·synthetic·lambda$logGenerateLinks$1(Ljava/lang/String;)Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;
67 ····.locals·167 ····.locals·1
  
68 ····.line·9668 ····.line·98
69 ····new-instance·p0,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;69 ····new-instance·p0,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;
  
70 ····const/4·v0,·0x070 ····const/4·v0,·0x0
  
71 ····invoke-direct·{p0,·v0},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;-><init>(Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$1;)V71 ····invoke-direct·{p0,·v0},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;-><init>(Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$1;)V
  
72 ····return-object·p072 ····return-object·p0
73 .end·method73 .end·method
  
74 .method·static·synthetic·lambda$new$0()Ljava/lang/String;74 .method·static·synthetic·lambda$new$0()Ljava/lang/String;
75 ····.locals·175 ····.locals·1
  
76 ····.line·5176 ····.line·53
77 ····invoke-static·{},·Ljava/util/UUID;->randomUUID()Ljava/util/UUID;77 ····invoke-static·{},·Ljava/util/UUID;->randomUUID()Ljava/util/UUID;
  
78 ····move-result-object·v078 ····move-result-object·v0
  
79 ····invoke-virtual·{v0},·Ljava/util/UUID;->toString()Ljava/lang/String;79 ····invoke-virtual·{v0},·Ljava/util/UUID;->toString()Ljava/lang/String;
  
80 ····move-result-object·v080 ····move-result-object·v0
  
81 ····return-object·v081 ····return-object·v0
82 .end·method82 .end·method
  
83 .method·private·shouldLog()Z83 .method·private·shouldLog()Z
84 ····.locals·284 ····.locals·2
  
85 ····.line·12485 ····.line·126
86 ····iget·v0,·p0,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;->sampleRate:I86 ····iget·v0,·p0,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;->sampleRate:I
  
87 ····const/4·v1,·0x187 ····const/4·v1,·0x1
  
88 ····if-gt·v0,·v1,·:cond_088 ····if-gt·v0,·v1,·:cond_0
  
89 ····return·v189 ····return·v1
  
90 ····.line·12790 ····.line·129
91 ····:cond_091 ····:cond_0
92 ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;->random:Ljava/util/Random;92 ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;->random:Ljava/util/Random;
  
93 ····invoke-virtual·{p0,·v0},·Ljava/util/Random;->nextInt(I)I93 ····invoke-virtual·{p0,·v0},·Ljava/util/Random;->nextInt(I)I
  
94 ····move-result·p094 ····move-result·p0
  
Offset 129, 15 lines modifiedOffset 129, 15 lines modified
129 ····const/4·v1,·0x0129 ····const/4·v1,·0x0
  
130 ····:goto_0130 ····:goto_0
131 ····return·v1131 ····return·v1
132 .end·method132 .end·method
  
133 .method·private·static·writeStats(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;Ljava/lang/CharSequence;JLcom/google/common/base/Optional;Lcom/google/common/base/Optional;)V133 .method·private·static·writeStats(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;Ljava/lang/CharSequence;JLcom/google/common/base/Optional;Lcom/google/common/base/Optional;)V
134 ····.locals·17134 ····.locals·3
135 ····.annotation·system·Ldalvik/annotation/Signature;135 ····.annotation·system·Ldalvik/annotation/Signature;
136 ········value·=·{136 ········value·=·{
137 ············"(",137 ············"(",
138 ············"Ljava/lang/String;",138 ············"Ljava/lang/String;",
139 ············"Ljava/lang/String;",139 ············"Ljava/lang/String;",
140 ············"Ljava/lang/String;",140 ············"Ljava/lang/String;",
141 ············"Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;",141 ············"Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;",
Offset 148, 168 lines modifiedOffset 148, 224 lines modified
148 ············">;",148 ············">;",
149 ············"Lcom/google/common/base/Optional<",149 ············"Lcom/google/common/base/Optional<",
150 ············"Lcom/android/textclassifier/common/logging/ResultIdUtils$ModelInfo;",150 ············"Lcom/android/textclassifier/common/logging/ResultIdUtils$ModelInfo;",
151 ············">;)V"151 ············">;)V"
152 ········}152 ········}
153 ····.end·annotation153 ····.end·annotation
  
154 ····move-object/from16·v0,·p3154 ····.line·143
 155 ····sget-object·v0,·Lcom/android/textclassifier/common/statsd/-$$Lambda$oDz1qPSnjjDY1RvRhoswzP9Xa8s;->INSTANCE:Lcom/android/textclassifier/common/statsd/-$$Lambda$oDz1qPSnjjDY1RvRhoswzP9Xa8s;
  
 156 ····invoke-virtual·{p7,·v0},·Lcom/google/common/base/Optional;->transform(Lcom/google/common/base/Function;)Lcom/google/common/base/Optional;
  
 157 ····move-result-object·p7
  
 158 ····const-string·v0,·""
  
 159 ····invoke-virtual·{p7,·v0},·Lcom/google/common/base/Optional;->or(Ljava/lang/Object;)Ljava/lang/Object;
  
155 ····.line·141160 ····move-result-object·p7
  
 161 ····check-cast·p7,·Ljava/lang/String;
  
 162 ····.line·144
156 ····sget-object·v1,·Lcom/android/textclassifier/common/statsd/-$$Lambda$oDz1qPSnjjDY1RvRhoswzP9Xa8s;->INSTANCE:Lcom/android/textclassifier/common/statsd/-$$Lambda$oDz1qPSnjjDY1RvRhoswzP9Xa8s;163 ····sget-object·v1,·Lcom/android/textclassifier/common/statsd/-$$Lambda$oDz1qPSnjjDY1RvRhoswzP9Xa8s;->INSTANCE:Lcom/android/textclassifier/common/statsd/-$$Lambda$oDz1qPSnjjDY1RvRhoswzP9Xa8s;
  
157 ····move-object/from16·v2,·p7164 ····invoke-virtual·{p8,·v1},·Lcom/google/common/base/Optional;->transform(Lcom/google/common/base/Function;)Lcom/google/common/base/Optional;
  
158 ····invoke-virtual·{v2,·v1},·Lcom/google/common/base/Optional;->transform(Lcom/google/common/base/Function;)Lcom/google/common/base/Optional;165 ····move-result-object·p8
  
159 ····move-result-object·v1166 ····invoke-virtual·{p8,·v0},·Lcom/google/common/base/Optional;->or(Ljava/lang/Object;)Ljava/lang/Object;
  
160 ····const-string·v2,·""167 ····move-result-object·p8
  
161 ····invoke-virtual·{v1,·v2},·Lcom/google/common/base/Optional;->or(Ljava/lang/Object;)Ljava/lang/Object;168 ····check-cast·p8,·Ljava/lang/String;
  
162 ····move-result-object·v1169 ····.line·146
 170 ····invoke-static·{},·Landroid/util/StatsEvent;->newBuilder()Landroid/util/StatsEvent$Builder;
  
163 ····check-cast·v1,·Ljava/lang/String;171 ····move-result-object·v0
  
164 ····.line·142172 ····const/16·v1,·0xdc
165 ····sget-object·v3,·Lcom/android/textclassifier/common/statsd/-$$Lambda$oDz1qPSnjjDY1RvRhoswzP9Xa8s;->INSTANCE:Lcom/android/textclassifier/common/statsd/-$$Lambda$oDz1qPSnjjDY1RvRhoswzP9Xa8s; 
  
166 ····move-object/from16·v4,·p8173 ····.line·147
 174 ····invoke-virtual·{v0,·v1},·Landroid/util/StatsEvent$Builder;->setAtomId(I)Landroid/util/StatsEvent$Builder;
  
167 ····invoke-virtual·{v4,·v3},·Lcom/google/common/base/Optional;->transform(Lcom/google/common/base/Function;)Lcom/google/common/base/Optional;175 ····move-result-object·v0
  
168 ····move-result-object·v3176 ····.line·148
 177 ····invoke-virtual·{v0,·p0},·Landroid/util/StatsEvent$Builder;->writeString(Ljava/lang/String;)Landroid/util/StatsEvent$Builder;
  
169 ····invoke-virtual·{v3,·v2},·Lcom/google/common/base/Optional;->or(Ljava/lang/Object;)Ljava/lang/Object;178 ····move-result-object·v0
  
170 ····move-result-object·v2179 ····const/16·v1,·0x15
  
171 ····check-cast·v2,·Ljava/lang/String;180 ····.line·149
 181 ····invoke-virtual·{v0,·v1},·Landroid/util/StatsEvent$Builder;->writeInt(I)Landroid/util/StatsEvent$Builder;
  
172 ····.line·143182 ····move-result-object·v0
173 ····iget·v10,·v0,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;->numLinks:I 
 183 ····.line·150
 184 ····invoke-virtual·{v0,·p7},·Landroid/util/StatsEvent$Builder;->writeString(Ljava/lang/String;)Landroid/util/StatsEvent$Builder;
  
 185 ····move-result-object·v0
  
174 ····iget·v11,·v0,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;->numLinksTextLength:I186 ····const/4·v1,·0x0
  
 187 ····.line·151
 188 ····invoke-virtual·{v0,·v1},·Landroid/util/StatsEvent$Builder;->writeInt(I)Landroid/util/StatsEvent$Builder;
  
 189 ····move-result-object·v0
  
 190 ····.line·152
 191 ····invoke-virtual·{v0,·v1},·Landroid/util/StatsEvent$Builder;->writeInt(I)Landroid/util/StatsEvent$Builder;
  
 192 ····move-result-object·v0
  
175 ····.line·153193 ····.line·153
176 ····invoke-interface/range·{p4·..·p4},·Ljava/lang/CharSequence;->length()I194 ····invoke-virtual·{v0,·p2},·Landroid/util/StatsEvent$Builder;->writeString(Ljava/lang/String;)Landroid/util/StatsEvent$Builder;
  
 195 ····move-result-object·v0
  
177 ····move-result·v12196 ····iget·v2,·p3,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;->numLinks:I
  
178 ····const/16·v3,·0xdc197 ····.line·154
 198 ····invoke-virtual·{v0,·v2},·Landroid/util/StatsEvent$Builder;->writeInt(I)Landroid/util/StatsEvent$Builder;
  
179 ····const/16·v5,·0x15199 ····move-result-object·v0
  
180 ····const/4·v7,·0x0200 ····iget·v2,·p3,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;->numLinksTextLength:I
  
181 ····const/4·v8,·0x0201 ····.line·155
 202 ····invoke-virtual·{v0,·v2},·Landroid/util/StatsEvent$Builder;->writeInt(I)Landroid/util/StatsEvent$Builder;
  
182 ····move-object/from16·v4,·p0203 ····move-result-object·v0
  
183 ····move-object·v6,·v1204 ····.line·156
 205 ····invoke-interface·{p4},·Ljava/lang/CharSequence;->length()I
  
184 ····move-object/from16·v9,·p2206 ····move-result·v2
  
185 ····move-wide/from16·v13,·p5207 ····invoke-virtual·{v0,·v2},·Landroid/util/StatsEvent$Builder;->writeInt(I)Landroid/util/StatsEvent$Builder;
  
186 ····move-object/from16·v15,·p1208 ····move-result-object·v0
  
187 ····move-object/from16·v16,·v2209 ····.line·157
 210 ····invoke-virtual·{v0,·p5,·p6},·Landroid/util/StatsEvent$Builder;->writeLong(J)Landroid/util/StatsEvent$Builder;
  
188 ····.line·143211 ····move-result-object·v0
189 ····invoke-static/range·{v3·..·v16},·Lcom/android/textclassifier/common/statsd/TextClassifierStatsLog;->write(ILjava/lang/String;ILjava/lang/String;IILjava/lang/String;IIIJLjava/lang/String;Ljava/lang/String;)V 
  
190 ····.line·158212 ····.line·158
191 ····sget-boolean·v3,·Lcom/android/textclassifier/common/base/TcLog;->ENABLE_FULL_LOGGING:Z213 ····invoke-virtual·{v0,·p1},·Landroid/util/StatsEvent$Builder;->writeString(Ljava/lang/String;)Landroid/util/StatsEvent$Builder;
  
192 ····if-eqz·v3,·:cond_0214 ····move-result-object·v0
  
193 ····.line·159215 ····.line·159
194 ····sget-object·v3,·Ljava/util/Locale;->US:Ljava/util/Locale;216 ····invoke-virtual·{v0,·p8},·Landroid/util/StatsEvent$Builder;->writeString(Ljava/lang/String;)Landroid/util/StatsEvent$Builder;
  
195 ····const/16·v4,·0x9217 ····move-result-object·v0
  
196 ····new-array·v4,·v4,·[Ljava/lang/Object;218 ····.line·160
 219 ····invoke-virtual·{v0},·Landroid/util/StatsEvent$Builder;->usePooledBuffer()Landroid/util/StatsEvent$Builder;
  
197 ····const/4·v5,·0x0220 ····move-result-object·v0
  
198 ····aput-object·p0,·v4,·v5221 ····.line·161
 222 ····invoke-virtual·{v0},·Landroid/util/StatsEvent$Builder;->build()Landroid/util/StatsEvent;
  
199 ····const/4·v5,·0x1223 ····move-result-object·v0
  
200 ····aput-object·p2,·v4,·v5224 ····.line·162
 225 ····invoke-static·{v0},·Landroid/util/StatsLog;->write(Landroid/util/StatsEvent;)V
  
201 ····const/4·v5,·0x2226 ····.line·164
 227 ····sget-boolean·v0,·Lcom/android/textclassifier/common/base/TcLog;->ENABLE_FULL_LOGGING:Z
  
202 ····iget·v6,·v0,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;->numLinks:I228 ····if-eqz·v0,·:cond_0
  
203 ····.line·166229 ····.line·165
204 ····invoke-static·{v6},·Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;230 ····sget-object·v0,·Ljava/util/Locale;->US:Ljava/util/Locale;
  
205 ····move-result-object·v6231 ····const/16·v2,·0x9
  
206 ····aput-object·v6,·v4,·v5232 ····new-array·v2,·v2,·[Ljava/lang/Object;
  
207 ····const/4·v5,·0x3233 ····aput-object·p0,·v2,·v1
  
208 ····iget·v0,·v0,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;->numLinksTextLength:I234 ····const/4·p0,·0x1
  
209 ····.line·167235 ····aput-object·p2,·v2,·p0
210 ····invoke-static·{v0},·Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; 
  
211 ····move-result-object·v0236 ····const/4·p0,·0x2
  
212 ····aput-object·v0,·v4,·v5237 ····iget·p2,·p3,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;->numLinks:I
  
213 ····const/4·v0,·0x4238 ····.line·172
 239 ····invoke-static·{p2},·Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
  
214 ····.line·168240 ····move-result-object·p2
215 ····invoke-interface/range·{p4·..·p4},·Ljava/lang/CharSequence;->length()I 
  
216 ····move-result·v5241 ····aput-object·p2,·v2,·p0
  
217 ····invoke-static·{v5},·Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;242 ····const/4·p0,·0x3
  
218 ····move-result-object·v5243 ····iget·p2,·p3,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;->numLinksTextLength:I
  
219 ····aput-object·v5,·v4,·v0244 ····.line·173
 245 ····invoke-static·{p2},·Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
  
220 ····const/4·v0,·0x5246 ····move-result-object·p2
  
221 ····.line·169247 ····aput-object·p2,·v2,·p0
222 ····invoke-static/range·{p5·..·p6},·Ljava/lang/Long;->valueOf(J)Ljava/lang/Long; 
  
223 ····move-result-object·v5248 ····const/4·p0,·0x4
  
224 ····aput-object·v5,·v4,·v0249 ····.line·174
 250 ····invoke-interface·{p4},·Ljava/lang/CharSequence;->length()I
  
225 ····const/4·v0,·0x6251 ····move-result·p2
  
226 ····aput-object·p1,·v4,·v0252 ····invoke-static·{p2},·Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
  
227 ····const/4·v0,·0x7253 ····move-result-object·p2
  
228 ····aput-object·v1,·v4,·v0254 ····aput-object·p2,·v2,·p0
  
229 ····const/16·v0,·0x8255 ····const/4·p0,·0x5
  
230 ····aput-object·v2,·v4,·v0256 ····.line·175
 257 ····invoke-static·{p5,·p6},·Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
  
231 ····const-string·v0,·"%s:%s·%d·links·(%d/%d·chars)·%dms·%s·annotator=%s·langid=%s"258 ····move-result-object·p2
  
232 ····.line·161259 ····aput-object·p2,·v2,·p0
233 ····invoke-static·{v3,·v0,·v4},·Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; 
  
234 ····move-result-object·v0260 ····const/4·p0,·0x6
  
235 ····const-string·v1,·"GenerateLinksLogger"261 ····aput-object·p1,·v2,·p0
  
236 ····.line·159262 ····const/4·p0,·0x7
237 ····invoke-static·{v1,·v0},·Lcom/android/textclassifier/common/base/TcLog;->v(Ljava/lang/String;Ljava/lang/String;)V 
 263 ····aput-object·p7,·v2,·p0
  
 264 ····const/16·p0,·0x8
  
 265 ····aput-object·p8,·v2,·p0
  
 266 ····const-string·p0,·"%s:%s·%d·links·(%d/%d·chars)·%dms·%s·annotator=%s·langid=%s"
  
 267 ····.line·167
 268 ····invoke-static·{v0,·p0,·v2},·Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
  
 269 ····move-result-object·p0
  
 270 ····const-string·p1,·"GenerateLinksLogger"
  
 271 ····.line·165
 272 ····invoke-static·{p1,·p0},·Lcom/android/textclassifier/common/base/TcLog;->v(Ljava/lang/String;Ljava/lang/String;)V
  
238 ····:cond_0273 ····:cond_0
239 ····return-void274 ····return-void
240 .end·method275 .end·method
  
  
241 #·virtual·methods276 #·virtual·methods
Offset 327, 46 lines modifiedOffset 383, 46 lines modified
327 ············">;",383 ············">;",
328 ············"Lcom/google/common/base/Optional<",384 ············"Lcom/google/common/base/Optional<",
329 ············"Lcom/android/textclassifier/common/logging/ResultIdUtils$ModelInfo;",385 ············"Lcom/android/textclassifier/common/logging/ResultIdUtils$ModelInfo;",
330 ············">;)V"386 ············">;)V"
331 ········}387 ········}
332 ····.end·annotation388 ····.end·annotation
  
333 ····.line·75389 ····.line·77
334 ····invoke-static/range·{p1·..·p1},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;390 ····invoke-static/range·{p1·..·p1},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
  
335 ····.line·76391 ····.line·78
336 ····invoke-static/range·{p2·..·p2},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;392 ····invoke-static/range·{p2·..·p2},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
  
337 ····.line·77393 ····.line·79
338 ····invoke-static/range·{p3·..·p3},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;394 ····invoke-static/range·{p3·..·p3},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
  
339 ····.line·78395 ····.line·80
340 ····invoke-direct·{p0},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;->shouldLog()Z396 ····invoke-direct·{p0},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;->shouldLog()Z
  
341 ····move-result·v0397 ····move-result·v0
  
342 ····if-nez·v0,·:cond_0398 ····if-nez·v0,·:cond_0
  
343 ····return-void399 ····return-void
  
344 ····.line·83400 ····.line·85
345 ····:cond_0401 ····:cond_0
346 ····new-instance·v4,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;402 ····new-instance·v4,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;
  
347 ····const/4·v0,·0x0403 ····const/4·v0,·0x0
  
348 ····invoke-direct·{v4,·v0},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;-><init>(Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$1;)V404 ····invoke-direct·{v4,·v0},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;-><init>(Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$1;)V
  
349 ····.line·84405 ····.line·86
350 ····new-instance·v0,·Landroidx/collection/ArrayMap;406 ····new-instance·v0,·Landroidx/collection/ArrayMap;
  
351 ····invoke-direct·{v0},·Landroidx/collection/ArrayMap;-><init>()V407 ····invoke-direct·{v0},·Landroidx/collection/ArrayMap;-><init>()V
  
352 ····.line·85408 ····.line·87
353 ····invoke-virtual/range·{p2·..·p2},·Landroid/view/textclassifier/TextLinks;->getLinks()Ljava/util/Collection;409 ····invoke-virtual/range·{p2·..·p2},·Landroid/view/textclassifier/TextLinks;->getLinks()Ljava/util/Collection;
  
354 ····move-result-object·v1410 ····move-result-object·v1
  
355 ····invoke-interface·{v1},·Ljava/util/Collection;->iterator()Ljava/util/Iterator;411 ····invoke-interface·{v1},·Ljava/util/Collection;->iterator()Ljava/util/Iterator;
  
356 ····move-result-object·v1412 ····move-result-object·v1
Offset 381, 58 lines modifiedOffset 437, 58 lines modified
  
381 ····invoke-interface·{v1},·Ljava/util/Iterator;->next()Ljava/lang/Object;437 ····invoke-interface·{v1},·Ljava/util/Iterator;->next()Ljava/lang/Object;
  
382 ····move-result-object·v2438 ····move-result-object·v2
  
383 ····check-cast·v2,·Landroid/view/textclassifier/TextLinks$TextLink;439 ····check-cast·v2,·Landroid/view/textclassifier/TextLinks$TextLink;
  
384 ····.line·86440 ····.line·88
385 ····invoke-virtual·{v2},·Landroid/view/textclassifier/TextLinks$TextLink;->getEntityCount()I441 ····invoke-virtual·{v2},·Landroid/view/textclassifier/TextLinks$TextLink;->getEntityCount()I
  
386 ····move-result·v3442 ····move-result·v3
  
387 ····if-nez·v3,·:cond_2443 ····if-nez·v3,·:cond_2
  
388 ····goto·:goto_0444 ····goto·:goto_0
  
389 ····:cond_2445 ····:cond_2
390 ····const/4·v3,·0x0446 ····const/4·v3,·0x0
  
391 ····.line·89447 ····.line·91
392 ····invoke-virtual·{v2,·v3},·Landroid/view/textclassifier/TextLinks$TextLink;->getEntity(I)Ljava/lang/String;448 ····invoke-virtual·{v2,·v3},·Landroid/view/textclassifier/TextLinks$TextLink;->getEntity(I)Ljava/lang/String;
  
393 ····move-result-object·v3449 ····move-result-object·v3
  
394 ····if-eqz·v3,·:cond_1450 ····if-eqz·v3,·:cond_1
  
395 ····const-string·v5,·"other"451 ····const-string·v5,·"other"
  
396 ····.line·91452 ····.line·93
397 ····invoke-virtual·{v5,·v3},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z453 ····invoke-virtual·{v5,·v3},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z
  
398 ····move-result·v5454 ····move-result·v5
  
399 ····if-nez·v5,·:cond_1455 ····if-nez·v5,·:cond_1
  
400 ····const-string·v5,·""456 ····const-string·v5,·""
  
401 ····.line·92457 ····.line·94
402 ····invoke-virtual·{v5,·v3},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z458 ····invoke-virtual·{v5,·v3},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z
  
403 ····move-result·v5459 ····move-result·v5
  
404 ····if-eqz·v5,·:cond_3460 ····if-eqz·v5,·:cond_3
  
405 ····goto·:goto_0461 ····goto·:goto_0
  
406 ····.line·95462 ····.line·97
407 ····:cond_3463 ····:cond_3
408 ····invoke-virtual·{v4,·v2},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;->countLink(Landroid/view/textclassifier/TextLinks$TextLink;)V464 ····invoke-virtual·{v4,·v2},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;->countLink(Landroid/view/textclassifier/TextLinks$TextLink;)V
  
409 ····.line·96465 ····.line·98
410 ····sget-object·v5,·Lcom/android/textclassifier/common/statsd/-$$Lambda$GenerateLinksLogger$Ppb_G2fUFe9AHi7fb5Jb5NKe9nU;->INSTANCE:Lcom/android/textclassifier/common/statsd/-$$Lambda$GenerateLinksLogger$Ppb_G2fUFe9AHi7fb5Jb5NKe9nU;466 ····sget-object·v5,·Lcom/android/textclassifier/common/statsd/-$$Lambda$GenerateLinksLogger$Ppb_G2fUFe9AHi7fb5Jb5NKe9nU;->INSTANCE:Lcom/android/textclassifier/common/statsd/-$$Lambda$GenerateLinksLogger$Ppb_G2fUFe9AHi7fb5Jb5NKe9nU;
  
411 ····invoke-interface·{v0,·v3,·v5},·Ljava/util/Map;->computeIfAbsent(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;467 ····invoke-interface·{v0,·v3,·v5},·Ljava/util/Map;->computeIfAbsent(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;
  
412 ····move-result-object·v3468 ····move-result-object·v3
  
413 ····check-cast·v3,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;469 ····check-cast·v3,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;
Offset 440, 15 lines modifiedOffset 496, 15 lines modified
440 ····invoke-virtual·{v3,·v2},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;->countLink(Landroid/view/textclassifier/TextLinks$TextLink;)V496 ····invoke-virtual·{v3,·v2},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;->countLink(Landroid/view/textclassifier/TextLinks$TextLink;)V
  
441 ····goto·:goto_0497 ····goto·:goto_0
  
442 ····:cond_4498 ····:cond_4
443 ····move-object·v2,·p0499 ····move-object·v2,·p0
  
444 ····.line·99500 ····.line·101
445 ····iget-object·v1,·v2,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;->randomUuidSupplier:Ljava/util/function/Supplier;501 ····iget-object·v1,·v2,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;->randomUuidSupplier:Ljava/util/function/Supplier;
  
446 ····invoke-interface·{v1},·Ljava/util/function/Supplier;->get()Ljava/lang/Object;502 ····invoke-interface·{v1},·Ljava/util/function/Supplier;->get()Ljava/lang/Object;
  
447 ····move-result-object·v1503 ····move-result-object·v1
  
448 ····move-object·v14,·v1504 ····move-object·v14,·v1
Offset 465, 27 lines modifiedOffset 521, 27 lines modified
  
465 ····move-wide/from16·v6,·p4521 ····move-wide/from16·v6,·p4
  
466 ····move-object/from16·v8,·p6522 ····move-object/from16·v8,·p6
  
467 ····move-object/from16·v9,·p7523 ····move-object/from16·v9,·p7
  
468 ····.line·100524 ····.line·102
469 ····invoke-static/range·{v1·..·v9},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;->writeStats(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;Ljava/lang/CharSequence;JLcom/google/common/base/Optional;Lcom/google/common/base/Optional;)V525 ····invoke-static/range·{v1·..·v9},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;->writeStats(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;Ljava/lang/CharSequence;JLcom/google/common/base/Optional;Lcom/google/common/base/Optional;)V
  
470 ····.line·104526 ····.line·106
471 ····invoke-interface·{v0},·Ljava/util/Map;->keySet()Ljava/util/Set;527 ····invoke-interface·{v0},·Ljava/util/Map;->keySet()Ljava/util/Set;
  
472 ····move-result-object·v1528 ····move-result-object·v1
  
473 ····invoke-static·{v1},·Lcom/google/common/collect/ImmutableList;->sortedCopyOf(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableList;529 ····invoke-static·{v1},·Lcom/google/common/collect/ImmutableList;->sortedCopyOf(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableList;
  
474 ····move-result-object·v1530 ····move-result-object·v1
  
475 ····.line·105531 ····.line·107
476 ····invoke-virtual·{v1},·Lcom/google/common/collect/ImmutableList;->iterator()Lcom/google/common/collect/UnmodifiableIterator;532 ····invoke-virtual·{v1},·Lcom/google/common/collect/ImmutableList;->iterator()Lcom/google/common/collect/UnmodifiableIterator;
  
477 ····move-result-object·v1533 ····move-result-object·v1
  
478 ····:goto_1534 ····:goto_1
479 ····invoke-interface·{v1},·Ljava/util/Iterator;->hasNext()Z535 ····invoke-interface·{v1},·Ljava/util/Iterator;->hasNext()Z
  
Offset 497, 15 lines modifiedOffset 553, 15 lines modified
  
497 ····move-result-object·v2553 ····move-result-object·v2
  
498 ····move-object·v7,·v2554 ····move-object·v7,·v2
  
499 ····check-cast·v7,·Ljava/lang/String;555 ····check-cast·v7,·Ljava/lang/String;
  
500 ····.line·110556 ····.line·112
501 ····invoke-interface·{v0,·v7},·Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;557 ····invoke-interface·{v0,·v7},·Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
  
502 ····move-result-object·v2558 ····move-result-object·v2
  
503 ····move-object·v8,·v2559 ····move-object·v8,·v2
  
504 ····check-cast·v8,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;560 ····check-cast·v8,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;
Offset 518, 15 lines modifiedOffset 574, 15 lines modified
  
518 ····move-wide/from16·v10,·p4574 ····move-wide/from16·v10,·p4
  
519 ····move-object/from16·v12,·p6575 ····move-object/from16·v12,·p6
  
520 ····move-object/from16·v13,·p7576 ····move-object/from16·v13,·p7
  
521 ····.line·106577 ····.line·108
522 ····invoke-static/range·{v5·..·v13},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;->writeStats(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;Ljava/lang/CharSequence;JLcom/google/common/base/Optional;Lcom/google/common/base/Optional;)V578 ····invoke-static/range·{v5·..·v13},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;->writeStats(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;Ljava/lang/CharSequence;JLcom/google/common/base/Optional;Lcom/google/common/base/Optional;)V
  
523 ····goto·:goto_1579 ····goto·:goto_1
  
524 ····:cond_5580 ····:cond_5
525 ····return-void581 ····return-void
526 .end·method582 .end·method