| | | |
Offset 27, 15 lines modified | Offset 27, 15 lines modified |
27 | .field·private·final·sampleRate:I | 27 | .field·private·final·sampleRate:I |
| |
| |
28 | #·direct·methods | 28 | #·direct·methods |
29 | .method·public·constructor·<init>(I)V | 29 | .method·public·constructor·<init>(I)V |
30 | ····.locals·1 | 30 | ····.locals·1 |
| |
31 | ····.line·51 | 31 | ····.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;)V | 33 | ····invoke-direct·{p0,·p1,·v0},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;-><init>(ILjava/util/function/Supplier;)V |
| |
34 | ····return-void | 34 | ····return-void |
35 | .end·method | 35 | .end·method |
| |
Offset 46, 78 lines modified | Offset 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·annotation | 51 | ····.end·annotation |
| |
52 | ····.line·61 | 52 | ····.line·63 |
53 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V | 53 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V |
| |
54 | ····.line·62 | 54 | ····.line·64 |
55 | ····iput·p1,·p0,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;->sampleRate:I | 55 | ····iput·p1,·p0,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;->sampleRate:I |
| |
56 | ····.line·63 | 56 | ····.line·65 |
57 | ····new-instance·p1,·Ljava/util/Random; | 57 | ····new-instance·p1,·Ljava/util/Random; |
| |
58 | ····invoke-direct·{p1},·Ljava/util/Random;-><init>()V | 58 | ····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·64 | 60 | ····.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-void | 64 | ····return-void |
65 | .end·method | 65 | .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·1 | 67 | ····.locals·1 |
| |
68 | ····.line·96 | 68 | ····.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,·0x0 | 70 | ····const/4·v0,·0x0 |
| |
71 | ····invoke-direct·{p0,·v0},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;-><init>(Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$1;)V | 71 | ····invoke-direct·{p0,·v0},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;-><init>(Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$1;)V |
| |
72 | ····return-object·p0 | 72 | ····return-object·p0 |
73 | .end·method | 73 | .end·method |
| |
74 | .method·static·synthetic·lambda$new$0()Ljava/lang/String; | 74 | .method·static·synthetic·lambda$new$0()Ljava/lang/String; |
75 | ····.locals·1 | 75 | ····.locals·1 |
| |
76 | ····.line·51 | 76 | ····.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·v0 | 78 | ····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·v0 | 80 | ····move-result-object·v0 |
| |
81 | ····return-object·v0 | 81 | ····return-object·v0 |
82 | .end·method | 82 | .end·method |
| |
83 | .method·private·shouldLog()Z | 83 | .method·private·shouldLog()Z |
84 | ····.locals·2 | 84 | ····.locals·2 |
| |
85 | ····.line·124 | 85 | ····.line·126 |
86 | ····iget·v0,·p0,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;->sampleRate:I | 86 | ····iget·v0,·p0,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;->sampleRate:I |
| |
87 | ····const/4·v1,·0x1 | 87 | ····const/4·v1,·0x1 |
| |
88 | ····if-gt·v0,·v1,·:cond_0 | 88 | ····if-gt·v0,·v1,·:cond_0 |
| |
89 | ····return·v1 | 89 | ····return·v1 |
| |
90 | ····.line·127 | 90 | ····.line·129 |
91 | ····:cond_0 | 91 | ····: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)I | 93 | ····invoke-virtual·{p0,·v0},·Ljava/util/Random;->nextInt(I)I |
| |
94 | ····move-result·p0 | 94 | ····move-result·p0 |
| |
Offset 129, 15 lines modified | Offset 129, 15 lines modified |
129 | ····const/4·v1,·0x0 | 129 | ····const/4·v1,·0x0 |
| |
130 | ····:goto_0 | 130 | ····:goto_0 |
131 | ····return·v1 | 131 | ····return·v1 |
132 | .end·method | 132 | .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;)V | 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;)V |
134 | ····.locals·17 | 134 | ····.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 modified | Offset 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·annotation | 153 | ····.end·annotation |
| |
154 | ····move-object/from16·v0,·p3 | 154 | ····.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·141 | 160 | ····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,·p7 | 164 | ····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·v1 | 166 | ····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·v1 | 169 | ····.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·142 | 172 | ····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,·p8 | 173 | ····.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·v3 | 176 | ····.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·v2 | 179 | ····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·143 | 182 | ····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:I | 186 | ····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·153 | 193 | ····.line·153 |
176 | ····invoke-interface/range·{p4·..·p4},·Ljava/lang/CharSequence;->length()I | 194 | ····invoke-virtual·{v0,·p2},·Landroid/util/StatsEvent$Builder;->writeString(Ljava/lang/String;)Landroid/util/StatsEvent$Builder; |
| |
| 195 | ····move-result-object·v0 |
| |
177 | ····move-result·v12 | 196 | ····iget·v2,·p3,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;->numLinks:I |
| |
178 | ····const/16·v3,·0xdc | 197 | ····.line·154 |
| 198 | ····invoke-virtual·{v0,·v2},·Landroid/util/StatsEvent$Builder;->writeInt(I)Landroid/util/StatsEvent$Builder; |
| |
179 | ····const/16·v5,·0x15 | 199 | ····move-result-object·v0 |
| |
180 | ····const/4·v7,·0x0 | 200 | ····iget·v2,·p3,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;->numLinksTextLength:I |
| |
181 | ····const/4·v8,·0x0 | 201 | ····.line·155 |
| 202 | ····invoke-virtual·{v0,·v2},·Landroid/util/StatsEvent$Builder;->writeInt(I)Landroid/util/StatsEvent$Builder; |
| |
182 | ····move-object/from16·v4,·p0 | 203 | ····move-result-object·v0 |
| |
183 | ····move-object·v6,·v1 | 204 | ····.line·156 |
| 205 | ····invoke-interface·{p4},·Ljava/lang/CharSequence;->length()I |
| |
184 | ····move-object/from16·v9,·p2 | 206 | ····move-result·v2 |
| |
185 | ····move-wide/from16·v13,·p5 | 207 | ····invoke-virtual·{v0,·v2},·Landroid/util/StatsEvent$Builder;->writeInt(I)Landroid/util/StatsEvent$Builder; |
| |
186 | ····move-object/from16·v15,·p1 | 208 | ····move-result-object·v0 |
| |
187 | ····move-object/from16·v16,·v2 | 209 | ····.line·157 |
| 210 | ····invoke-virtual·{v0,·p5,·p6},·Landroid/util/StatsEvent$Builder;->writeLong(J)Landroid/util/StatsEvent$Builder; |
| |
188 | ····.line·143 | 211 | ····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·158 | 212 | ····.line·158 |
191 | ····sget-boolean·v3,·Lcom/android/textclassifier/common/base/TcLog;->ENABLE_FULL_LOGGING:Z | 213 | ····invoke-virtual·{v0,·p1},·Landroid/util/StatsEvent$Builder;->writeString(Ljava/lang/String;)Landroid/util/StatsEvent$Builder; |
| |
192 | ····if-eqz·v3,·:cond_0 | 214 | ····move-result-object·v0 |
| |
193 | ····.line·159 | 215 | ····.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,·0x9 | 217 | ····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,·0x0 | 220 | ····move-result-object·v0 |
| |
198 | ····aput-object·p0,·v4,·v5 | 221 | ····.line·161 |
| 222 | ····invoke-virtual·{v0},·Landroid/util/StatsEvent$Builder;->build()Landroid/util/StatsEvent; |
| |
199 | ····const/4·v5,·0x1 | 223 | ····move-result-object·v0 |
| |
200 | ····aput-object·p2,·v4,·v5 | 224 | ····.line·162 |
| 225 | ····invoke-static·{v0},·Landroid/util/StatsLog;->write(Landroid/util/StatsEvent;)V |
| |
201 | ····const/4·v5,·0x2 | 226 | ····.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:I | 228 | ····if-eqz·v0,·:cond_0 |
| |
203 | ····.line·166 | 229 | ····.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·v6 | 231 | ····const/16·v2,·0x9 |
| |
206 | ····aput-object·v6,·v4,·v5 | 232 | ····new-array·v2,·v2,·[Ljava/lang/Object; |
| |
207 | ····const/4·v5,·0x3 | 233 | ····aput-object·p0,·v2,·v1 |
| |
208 | ····iget·v0,·v0,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;->numLinksTextLength:I | 234 | ····const/4·p0,·0x1 |
| |
209 | ····.line·167 | 235 | ····aput-object·p2,·v2,·p0 |
210 | ····invoke-static·{v0},·Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; | |
| |
211 | ····move-result-object·v0 | 236 | ····const/4·p0,·0x2 |
| |
212 | ····aput-object·v0,·v4,·v5 | 237 | ····iget·p2,·p3,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;->numLinks:I |
| |
213 | ····const/4·v0,·0x4 | 238 | ····.line·172 |
| 239 | ····invoke-static·{p2},·Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; |
| |
214 | ····.line·168 | 240 | ····move-result-object·p2 |
215 | ····invoke-interface/range·{p4·..·p4},·Ljava/lang/CharSequence;->length()I | |
| |
216 | ····move-result·v5 | 241 | ····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·v5 | 243 | ····iget·p2,·p3,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;->numLinksTextLength:I |
| |
219 | ····aput-object·v5,·v4,·v0 | 244 | ····.line·173 |
| 245 | ····invoke-static·{p2},·Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; |
| |
220 | ····const/4·v0,·0x5 | 246 | ····move-result-object·p2 |
| |
221 | ····.line·169 | 247 | ····aput-object·p2,·v2,·p0 |
222 | ····invoke-static/range·{p5·..·p6},·Ljava/lang/Long;->valueOf(J)Ljava/lang/Long; | |
| |
223 | ····move-result-object·v5 | 248 | ····const/4·p0,·0x4 |
| |
224 | ····aput-object·v5,·v4,·v0 | 249 | ····.line·174 |
| 250 | ····invoke-interface·{p4},·Ljava/lang/CharSequence;->length()I |
| |
225 | ····const/4·v0,·0x6 | 251 | ····move-result·p2 |
| |
226 | ····aput-object·p1,·v4,·v0 | 252 | ····invoke-static·{p2},·Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; |
| |
227 | ····const/4·v0,·0x7 | 253 | ····move-result-object·p2 |
| |
228 | ····aput-object·v1,·v4,·v0 | 254 | ····aput-object·p2,·v2,·p0 |
| |
229 | ····const/16·v0,·0x8 | 255 | ····const/4·p0,·0x5 |
| |
230 | ····aput-object·v2,·v4,·v0 | 256 | ····.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·161 | 259 | ····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·v0 | 260 | ····const/4·p0,·0x6 |
| |
235 | ····const-string·v1,·"GenerateLinksLogger" | 261 | ····aput-object·p1,·v2,·p0 |
| |
236 | ····.line·159 | 262 | ····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_0 | 273 | ····:cond_0 |
239 | ····return-void | 274 | ····return-void |
240 | .end·method | 275 | .end·method |
| |
| |
241 | #·virtual·methods | 276 | #·virtual·methods |
Offset 327, 46 lines modified | Offset 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·annotation | 388 | ····.end·annotation |
| |
333 | ····.line·75 | 389 | ····.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·76 | 391 | ····.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·77 | 393 | ····.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·78 | 395 | ····.line·80 |
340 | ····invoke-direct·{p0},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;->shouldLog()Z | 396 | ····invoke-direct·{p0},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;->shouldLog()Z |
| |
341 | ····move-result·v0 | 397 | ····move-result·v0 |
| |
342 | ····if-nez·v0,·:cond_0 | 398 | ····if-nez·v0,·:cond_0 |
| |
343 | ····return-void | 399 | ····return-void |
| |
344 | ····.line·83 | 400 | ····.line·85 |
345 | ····:cond_0 | 401 | ····: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,·0x0 | 403 | ····const/4·v0,·0x0 |
| |
348 | ····invoke-direct·{v4,·v0},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;-><init>(Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$1;)V | 404 | ····invoke-direct·{v4,·v0},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;-><init>(Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$1;)V |
| |
349 | ····.line·84 | 405 | ····.line·86 |
350 | ····new-instance·v0,·Landroidx/collection/ArrayMap; | 406 | ····new-instance·v0,·Landroidx/collection/ArrayMap; |
| |
351 | ····invoke-direct·{v0},·Landroidx/collection/ArrayMap;-><init>()V | 407 | ····invoke-direct·{v0},·Landroidx/collection/ArrayMap;-><init>()V |
| |
352 | ····.line·85 | 408 | ····.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·v1 | 410 | ····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·v1 | 412 | ····move-result-object·v1 |
Offset 381, 58 lines modified | Offset 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·v2 | 438 | ····move-result-object·v2 |
| |
383 | ····check-cast·v2,·Landroid/view/textclassifier/TextLinks$TextLink; | 439 | ····check-cast·v2,·Landroid/view/textclassifier/TextLinks$TextLink; |
| |
384 | ····.line·86 | 440 | ····.line·88 |
385 | ····invoke-virtual·{v2},·Landroid/view/textclassifier/TextLinks$TextLink;->getEntityCount()I | 441 | ····invoke-virtual·{v2},·Landroid/view/textclassifier/TextLinks$TextLink;->getEntityCount()I |
| |
386 | ····move-result·v3 | 442 | ····move-result·v3 |
| |
387 | ····if-nez·v3,·:cond_2 | 443 | ····if-nez·v3,·:cond_2 |
| |
388 | ····goto·:goto_0 | 444 | ····goto·:goto_0 |
| |
389 | ····:cond_2 | 445 | ····:cond_2 |
390 | ····const/4·v3,·0x0 | 446 | ····const/4·v3,·0x0 |
| |
391 | ····.line·89 | 447 | ····.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·v3 | 449 | ····move-result-object·v3 |
| |
394 | ····if-eqz·v3,·:cond_1 | 450 | ····if-eqz·v3,·:cond_1 |
| |
395 | ····const-string·v5,·"other" | 451 | ····const-string·v5,·"other" |
| |
396 | ····.line·91 | 452 | ····.line·93 |
397 | ····invoke-virtual·{v5,·v3},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z | 453 | ····invoke-virtual·{v5,·v3},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z |
| |
398 | ····move-result·v5 | 454 | ····move-result·v5 |
| |
399 | ····if-nez·v5,·:cond_1 | 455 | ····if-nez·v5,·:cond_1 |
| |
400 | ····const-string·v5,·"" | 456 | ····const-string·v5,·"" |
| |
401 | ····.line·92 | 457 | ····.line·94 |
402 | ····invoke-virtual·{v5,·v3},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z | 458 | ····invoke-virtual·{v5,·v3},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z |
| |
403 | ····move-result·v5 | 459 | ····move-result·v5 |
| |
404 | ····if-eqz·v5,·:cond_3 | 460 | ····if-eqz·v5,·:cond_3 |
| |
405 | ····goto·:goto_0 | 461 | ····goto·:goto_0 |
| |
406 | ····.line·95 | 462 | ····.line·97 |
407 | ····:cond_3 | 463 | ····:cond_3 |
408 | ····invoke-virtual·{v4,·v2},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;->countLink(Landroid/view/textclassifier/TextLinks$TextLink;)V | 464 | ····invoke-virtual·{v4,·v2},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;->countLink(Landroid/view/textclassifier/TextLinks$TextLink;)V |
| |
409 | ····.line·96 | 465 | ····.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·v3 | 468 | ····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 modified | Offset 496, 15 lines modified |
440 | ····invoke-virtual·{v3,·v2},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;->countLink(Landroid/view/textclassifier/TextLinks$TextLink;)V | 496 | ····invoke-virtual·{v3,·v2},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger$LinkifyStats;->countLink(Landroid/view/textclassifier/TextLinks$TextLink;)V |
| |
441 | ····goto·:goto_0 | 497 | ····goto·:goto_0 |
| |
442 | ····:cond_4 | 498 | ····:cond_4 |
443 | ····move-object·v2,·p0 | 499 | ····move-object·v2,·p0 |
| |
444 | ····.line·99 | 500 | ····.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·v1 | 503 | ····move-result-object·v1 |
| |
448 | ····move-object·v14,·v1 | 504 | ····move-object·v14,·v1 |
Offset 465, 27 lines modified | Offset 521, 27 lines modified |
| |
465 | ····move-wide/from16·v6,·p4 | 521 | ····move-wide/from16·v6,·p4 |
| |
466 | ····move-object/from16·v8,·p6 | 522 | ····move-object/from16·v8,·p6 |
| |
467 | ····move-object/from16·v9,·p7 | 523 | ····move-object/from16·v9,·p7 |
| |
468 | ····.line·100 | 524 | ····.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;)V | 525 | ····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·104 | 526 | ····.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·v1 | 528 | ····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·v1 | 530 | ····move-result-object·v1 |
| |
475 | ····.line·105 | 531 | ····.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·v1 | 533 | ····move-result-object·v1 |
| |
478 | ····:goto_1 | 534 | ····:goto_1 |
479 | ····invoke-interface·{v1},·Ljava/util/Iterator;->hasNext()Z | 535 | ····invoke-interface·{v1},·Ljava/util/Iterator;->hasNext()Z |
| |
Offset 497, 15 lines modified | Offset 553, 15 lines modified |
| |
497 | ····move-result-object·v2 | 553 | ····move-result-object·v2 |
| |
498 | ····move-object·v7,·v2 | 554 | ····move-object·v7,·v2 |
| |
499 | ····check-cast·v7,·Ljava/lang/String; | 555 | ····check-cast·v7,·Ljava/lang/String; |
| |
500 | ····.line·110 | 556 | ····.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·v2 | 558 | ····move-result-object·v2 |
| |
503 | ····move-object·v8,·v2 | 559 | ····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 modified | Offset 574, 15 lines modified |
| |
518 | ····move-wide/from16·v10,·p4 | 574 | ····move-wide/from16·v10,·p4 |
| |
519 | ····move-object/from16·v12,·p6 | 575 | ····move-object/from16·v12,·p6 |
| |
520 | ····move-object/from16·v13,·p7 | 576 | ····move-object/from16·v13,·p7 |
| |
521 | ····.line·106 | 577 | ····.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;)V | 578 | ····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_1 | 579 | ····goto·:goto_1 |
| |
524 | ····:cond_5 | 580 | ····:cond_5 |
525 | ····return-void | 581 | ····return-void |
526 | .end·method | 582 | .end·method |