| | | |
Offset 1, 8 lines modified | Offset 1, 8 lines modified |
1 | .class·public·Lcom/android/textclassifier/ModelFileManager$ModelFile; | 1 | .class·public·Lcom/android/textclassifier/common/ModelFileManager$ModelFile; |
2 | .super·Ljava/lang/Object; | 2 | .super·Ljava/lang/Object; |
3 | .source·"ModelFileManager.java" | 3 | .source·"ModelFileManager.java" |
| |
| |
4 | #·static·fields | 4 | #·static·fields |
5 | .field·static·final·LANGUAGE_INDEPENDENT:Ljava/lang/String;·=·"*" | 5 | .field·static·final·LANGUAGE_INDEPENDENT:Ljava/lang/String;·=·"*" |
| |
Offset 25, 30 lines modified | Offset 25, 30 lines modified |
25 | .method·constructor·<init>(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Z)V | 25 | .method·constructor·<init>(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Z)V |
26 | ····.locals·0 | 26 | ····.locals·0 |
| |
27 | ····.line·1 | 27 | ····.line·1 |
28 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V | 28 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V |
| |
29 | ····.line·2 | 29 | ····.line·2 |
30 | ····iput-object·p1,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->modelType:Ljava/lang/String; | 30 | ····iput-object·p1,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->modelType:Ljava/lang/String; |
| |
31 | ····.line·3 | 31 | ····.line·3 |
32 | ····iput-object·p2,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->absolutePath:Ljava/lang/String; | 32 | ····iput-object·p2,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->absolutePath:Ljava/lang/String; |
| |
33 | ····.line·4 | 33 | ····.line·4 |
34 | ····iput·p3,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->version:I | 34 | ····iput·p3,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->version:I |
| |
35 | ····const-string·p1,·"*" | 35 | ····const-string·p1,·"*" |
| |
36 | ····.line·5 | 36 | ····.line·5 |
37 | ····invoke-virtual·{p1,·p4},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z | 37 | ····invoke-virtual·{p1,·p4},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z |
| |
38 | ····move-result·p1 | 38 | ····move-result·p1 |
| |
39 | ····iput-boolean·p1,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->languageIndependent:Z | 39 | ····iput-boolean·p1,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->languageIndependent:Z |
| |
40 | ····if-eqz·p1,·:cond_0 | 40 | ····if-eqz·p1,·:cond_0 |
| |
41 | ····.line·6 | 41 | ····.line·6 |
42 | ····invoke-static·{},·Landroid/os/LocaleList;->getEmptyLocaleList()Landroid/os/LocaleList; | 42 | ····invoke-static·{},·Landroid/os/LocaleList;->getEmptyLocaleList()Landroid/os/LocaleList; |
| |
43 | ····move-result-object·p1 | 43 | ····move-result-object·p1 |
Offset 58, 23 lines modified | Offset 58, 23 lines modified |
58 | ····.line·7 | 58 | ····.line·7 |
59 | ····:cond_0 | 59 | ····:cond_0 |
60 | ····invoke-static·{p4},·Landroid/os/LocaleList;->forLanguageTags(Ljava/lang/String;)Landroid/os/LocaleList; | 60 | ····invoke-static·{p4},·Landroid/os/LocaleList;->forLanguageTags(Ljava/lang/String;)Landroid/os/LocaleList; |
| |
61 | ····move-result-object·p1 | 61 | ····move-result-object·p1 |
| |
62 | ····:goto_0 | 62 | ····:goto_0 |
63 | ····iput-object·p1,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->supportedLocales:Landroid/os/LocaleList; | 63 | ····iput-object·p1,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->supportedLocales:Landroid/os/LocaleList; |
| |
64 | ····.line·8 | 64 | ····.line·8 |
65 | ····iput-boolean·p5,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->isAsset:Z | 65 | ····iput-boolean·p5,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->isAsset:Z |
| |
66 | ····return-void | 66 | ····return-void |
67 | .end·method | 67 | .end·method |
| |
68 | .method·public·static·createFromAsset(Landroid/content/res/AssetManager;Ljava/lang/String;Ljava/lang/String;)Lcom/android/textclassifier/ModelFileManager$ModelFile; | 68 | .method·public·static·createFromAsset(Landroid/content/res/AssetManager;Ljava/lang/String;Ljava/lang/String;)Lcom/android/textclassifier/common/ModelFileManager$ModelFile; |
69 | ····.locals·1 | 69 | ····.locals·1 |
70 | ····.annotation·system·Ldalvik/annotation/Throws; | 70 | ····.annotation·system·Ldalvik/annotation/Throws; |
71 | ········value·=·{ | 71 | ········value·=·{ |
72 | ············Ljava/io/IOException; | 72 | ············Ljava/io/IOException; |
73 | ········} | 73 | ········} |
74 | ····.end·annotation | 74 | ····.end·annotation |
| |
Offset 83, 15 lines modified | Offset 83, 15 lines modified |
| |
83 | ····move-result-object·p0 | 83 | ····move-result-object·p0 |
| |
84 | ····const/4·v0,·0x1 | 84 | ····const/4·v0,·0x1 |
| |
85 | ····.line·2 | 85 | ····.line·2 |
86 | ····:try_start_0 | 86 | ····:try_start_0 |
87 | ····invoke-static·{p1,·p2,·p0,·v0},·Lcom/android/textclassifier/ModelFileManager$ModelFile;->createFromAssetFileDescriptor(Ljava/lang/String;Ljava/lang/String;Landroid/content/res/AssetFileDescriptor;Z)Lcom/android/textclassifier/ModelFileManager$ModelFile; | 87 | ····invoke-static·{p1,·p2,·p0,·v0},·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->createFromAssetFileDescriptor(Ljava/lang/String;Ljava/lang/String;Landroid/content/res/AssetFileDescriptor;Z)Lcom/android/textclassifier/common/ModelFileManager$ModelFile; |
| |
88 | ····move-result-object·p1 | 88 | ····move-result-object·p1 |
89 | ····:try_end_0 | 89 | ····:try_end_0 |
90 | ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0 | 90 | ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0 |
| |
91 | ····if-eqz·p0,·:cond_0 | 91 | ····if-eqz·p0,·:cond_0 |
| |
Offset 120, 49 lines modified | Offset 120, 49 lines modified |
120 | ····invoke-virtual·{p1,·p0},·Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V | 120 | ····invoke-virtual·{p1,·p0},·Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V |
| |
121 | ····:cond_1 | 121 | ····:cond_1 |
122 | ····:goto_0 | 122 | ····:goto_0 |
123 | ····throw·p1 | 123 | ····throw·p1 |
124 | .end·method | 124 | .end·method |
| |
125 | .method·private·static·createFromAssetFileDescriptor(Ljava/lang/String;Ljava/lang/String;Landroid/content/res/AssetFileDescriptor;Z)Lcom/android/textclassifier/ModelFileManager$ModelFile; | 125 | .method·private·static·createFromAssetFileDescriptor(Ljava/lang/String;Ljava/lang/String;Landroid/content/res/AssetFileDescriptor;Z)Lcom/android/textclassifier/common/ModelFileManager$ModelFile; |
126 | ····.locals·8 | 126 | ····.locals·8 |
| |
127 | ····.line·1 | 127 | ····.line·1 |
128 | ····invoke-static·{p1},·Lcom/android/textclassifier/ModelFileManager$ModelInfoFetcher;->create(Ljava/lang/String;)Lcom/android/textclassifier/ModelFileManager$ModelInfoFetcher; | 128 | ····invoke-static·{p1},·Lcom/android/textclassifier/common/ModelFileManager$ModelInfoFetcher;->create(Ljava/lang/String;)Lcom/android/textclassifier/common/ModelFileManager$ModelInfoFetcher; |
| |
129 | ····move-result-object·v0 | 129 | ····move-result-object·v0 |
| |
130 | ····.line·2 | 130 | ····.line·2 |
131 | ····new-instance·v7,·Lcom/android/textclassifier/ModelFileManager$ModelFile; | 131 | ····new-instance·v7,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile; |
| |
132 | ····.line·3 | 132 | ····.line·3 |
133 | ····invoke-virtual·{v0,·p2},·Lcom/android/textclassifier/ModelFileManager$ModelInfoFetcher;->getVersion(Landroid/content/res/AssetFileDescriptor;)I | 133 | ····invoke-virtual·{v0,·p2},·Lcom/android/textclassifier/common/ModelFileManager$ModelInfoFetcher;->getVersion(Landroid/content/res/AssetFileDescriptor;)I |
| |
134 | ····move-result·v4 | 134 | ····move-result·v4 |
| |
135 | ····.line·4 | 135 | ····.line·4 |
136 | ····invoke-virtual·{v0,·p2},·Lcom/android/textclassifier/ModelFileManager$ModelInfoFetcher;->getSupportedLocales(Landroid/content/res/AssetFileDescriptor;)Ljava/lang/String; | 136 | ····invoke-virtual·{v0,·p2},·Lcom/android/textclassifier/common/ModelFileManager$ModelInfoFetcher;->getSupportedLocales(Landroid/content/res/AssetFileDescriptor;)Ljava/lang/String; |
| |
137 | ····move-result-object·v5 | 137 | ····move-result-object·v5 |
| |
138 | ····move-object·v1,·v7 | 138 | ····move-object·v1,·v7 |
| |
139 | ····move-object·v2,·p1 | 139 | ····move-object·v2,·p1 |
| |
140 | ····move-object·v3,·p0 | 140 | ····move-object·v3,·p0 |
| |
141 | ····move·v6,·p3 | 141 | ····move·v6,·p3 |
| |
142 | ····invoke-direct/range·{v1·..·v6},·Lcom/android/textclassifier/ModelFileManager$ModelFile;-><init>(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Z)V | 142 | ····invoke-direct/range·{v1·..·v6},·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;-><init>(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Z)V |
| |
143 | ····return-object·v7 | 143 | ····return-object·v7 |
144 | .end·method | 144 | .end·method |
| |
145 | .method·public·static·createFromRegularFile(Ljava/io/File;Ljava/lang/String;)Lcom/android/textclassifier/ModelFileManager$ModelFile; | 145 | .method·public·static·createFromRegularFile(Ljava/io/File;Ljava/lang/String;)Lcom/android/textclassifier/common/ModelFileManager$ModelFile; |
146 | ····.locals·7 | 146 | ····.locals·7 |
147 | ····.annotation·system·Ldalvik/annotation/Throws; | 147 | ····.annotation·system·Ldalvik/annotation/Throws; |
148 | ········value·=·{ | 148 | ········value·=·{ |
149 | ············Ljava/io/IOException; | 149 | ············Ljava/io/IOException; |
150 | ········} | 150 | ········} |
151 | ····.end·annotation | 151 | ····.end·annotation |
| |
Offset 191, 15 lines modified | Offset 191, 15 lines modified |
191 | ····invoke-virtual·{p0},·Ljava/io/File;->getAbsolutePath()Ljava/lang/String; | 191 | ····invoke-virtual·{p0},·Ljava/io/File;->getAbsolutePath()Ljava/lang/String; |
| |
192 | ····move-result-object·p0 | 192 | ····move-result-object·p0 |
| |
193 | ····const/4·v1,·0x0 | 193 | ····const/4·v1,·0x0 |
| |
194 | ····.line·4 | 194 | ····.line·4 |
195 | ····invoke-static·{p0,·p1,·v0,·v1},·Lcom/android/textclassifier/ModelFileManager$ModelFile;->createFromAssetFileDescriptor(Ljava/lang/String;Ljava/lang/String;Landroid/content/res/AssetFileDescriptor;Z)Lcom/android/textclassifier/ModelFileManager$ModelFile; | 195 | ····invoke-static·{p0,·p1,·v0,·v1},·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->createFromAssetFileDescriptor(Ljava/lang/String;Ljava/lang/String;Landroid/content/res/AssetFileDescriptor;Z)Lcom/android/textclassifier/common/ModelFileManager$ModelFile; |
| |
196 | ····move-result-object·p0 | 196 | ····move-result-object·p0 |
197 | ····:try_end_0 | 197 | ····:try_end_0 |
198 | ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0 | 198 | ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0 |
| |
199 | ····.line·5 | 199 | ····.line·5 |
200 | ····invoke-virtual·{v0},·Landroid/content/res/AssetFileDescriptor;->close()V | 200 | ····invoke-virtual·{v0},·Landroid/content/res/AssetFileDescriptor;->close()V |
Offset 230, 27 lines modified | Offset 230, 27 lines modified |
230 | ····.locals·2 | 230 | ····.locals·2 |
| |
231 | ····.line·1 | 231 | ····.line·1 |
232 | ····invoke-static·{p0},·Ljava/util/Arrays;->stream([Ljava/lang/Object;)Ljava/util/stream/Stream; | 232 | ····invoke-static·{p0},·Ljava/util/Arrays;->stream([Ljava/lang/Object;)Ljava/util/stream/Stream; |
| |
233 | ····move-result-object·p0 | 233 | ····move-result-object·p0 |
| |
234 | ····sget-object·v0,·Lcom/android/textclassifier/TextClassifierImpl$$ExternalSyntheticLambda3;->INSTANCE$com$android$textclassifier$ModelFileManager$ModelFile$$InternalSyntheticLambda$1$2610aabcfd40ea4160480dad4f178b6902d83153476ca3ae1881826993bdf5a1$0:Lcom/android/textclassifier/TextClassifierImpl$$ExternalSyntheticLambda3; | 234 | ····sget-object·v0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile$$ExternalSyntheticLambda1;->INSTANCE:Lcom/android/textclassifier/common/ModelFileManager$ModelFile$$ExternalSyntheticLambda1; |
| |
235 | ····.line·2 | 235 | ····.line·2 |
236 | ····invoke-interface·{p0,·v0},·Ljava/util/stream/Stream;->map(Ljava/util/function/Function;)Ljava/util/stream/Stream; | 236 | ····invoke-interface·{p0,·v0},·Ljava/util/stream/Stream;->map(Ljava/util/function/Function;)Ljava/util/stream/Stream; |
| |
237 | ····move-result-object·p0 | 237 | ····move-result-object·p0 |
| |
238 | ····.line·3 | 238 | ····.line·3 |
239 | ····invoke-static·{},·Ljava/util/stream/Collectors;->toList()Ljava/util/stream/Collector; | 239 | ····invoke-static·{},·Ljava/util/stream/Collectors;->toList()Ljava/util/stream/Collector; |
| |
240 | ····move-result-object·v0 | 240 | ····move-result-object·v0 |
| |
241 | ····sget-object·v1,·Lcom/android/textclassifier/TextClassifierImpl$$ExternalSyntheticLambda3;->INSTANCE$com$android$textclassifier$ModelFileManager$ModelFile$$InternalSyntheticLambda$1$2610aabcfd40ea4160480dad4f178b6902d83153476ca3ae1881826993bdf5a1$1:Lcom/android/textclassifier/TextClassifierImpl$$ExternalSyntheticLambda3; | 241 | ····sget-object·v1,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile$$ExternalSyntheticLambda1;->INSTANCE$com$android$textclassifier$common$ModelFileManager$ModelFile$$InternalSyntheticLambda$1$92a1ad3a0a9ae7e4301bb91de022ae52e915c11447752e659522161ccb28ecc7$1:Lcom/android/textclassifier/common/ModelFileManager$ModelFile$$ExternalSyntheticLambda1; |
| |
242 | ····invoke-static·{v0,·v1},·Ljava/util/stream/Collectors;->collectingAndThen(Ljava/util/stream/Collector;Ljava/util/function/Function;)Ljava/util/stream/Collector; | 242 | ····invoke-static·{v0,·v1},·Ljava/util/stream/Collectors;->collectingAndThen(Ljava/util/stream/Collector;Ljava/util/function/Function;)Ljava/util/stream/Collector; |
| |
243 | ····move-result-object·v0 | 243 | ····move-result-object·v0 |
| |
244 | ····invoke-interface·{p0,·v0},·Ljava/util/stream/Stream;->collect(Ljava/util/stream/Collector;)Ljava/lang/Object; | 244 | ····invoke-interface·{p0,·v0},·Ljava/util/stream/Stream;->collect(Ljava/util/stream/Collector;)Ljava/lang/Object; |
| |
Offset 270, 70 lines modified | Offset 270, 70 lines modified |
| |
270 | ····if-ne·p0,·p1,·:cond_0 | 270 | ····if-ne·p0,·p1,·:cond_0 |
| |
271 | ····return·v0 | 271 | ····return·v0 |
| |
272 | ····.line·1 | 272 | ····.line·1 |
273 | ····:cond_0 | 273 | ····:cond_0 |
274 | ····instance-of·v1,·p1,·Lcom/android/textclassifier/ModelFileManager$ModelFile; | 274 | ····instance-of·v1,·p1,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile; |
| |
275 | ····const/4·v2,·0x0 | 275 | ····const/4·v2,·0x0 |
| |
276 | ····if-nez·v1,·:cond_1 | 276 | ····if-nez·v1,·:cond_1 |
| |
277 | ····return·v2 | 277 | ····return·v2 |
| |
278 | ····.line·2 | 278 | ····.line·2 |
279 | ····:cond_1 | 279 | ····:cond_1 |
280 | ····check-cast·p1,·Lcom/android/textclassifier/ModelFileManager$ModelFile; | 280 | ····check-cast·p1,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile; |
| |
281 | ····.line·3 | 281 | ····.line·3 |
282 | ····iget·v1,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->version:I | 282 | ····iget·v1,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->version:I |
| |
283 | ····iget·v3,·p1,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->version:I | 283 | ····iget·v3,·p1,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->version:I |
| |
284 | ····if-ne·v1,·v3,·:cond_2 | 284 | ····if-ne·v1,·v3,·:cond_2 |
| |
285 | ····iget-boolean·v1,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->languageIndependent:Z | 285 | ····iget-boolean·v1,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->languageIndependent:Z |
| |
286 | ····iget-boolean·v3,·p1,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->languageIndependent:Z | 286 | ····iget-boolean·v3,·p1,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->languageIndependent:Z |
| |
287 | ····if-ne·v1,·v3,·:cond_2 | 287 | ····if-ne·v1,·v3,·:cond_2 |
| |
288 | ····iget-boolean·v1,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->isAsset:Z | 288 | ····iget-boolean·v1,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->isAsset:Z |
| |
289 | ····iget-boolean·v3,·p1,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->isAsset:Z | 289 | ····iget-boolean·v3,·p1,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->isAsset:Z |
| |
290 | ····if-ne·v1,·v3,·:cond_2 | 290 | ····if-ne·v1,·v3,·:cond_2 |
| |
291 | ····iget-object·v1,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->modelType:Ljava/lang/String; | 291 | ····iget-object·v1,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->modelType:Ljava/lang/String; |
| |
292 | ····iget-object·v3,·p1,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->modelType:Ljava/lang/String; | 292 | ····iget-object·v3,·p1,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->modelType:Ljava/lang/String; |
| |
293 | ····.line·4 | 293 | ····.line·4 |
294 | ····invoke-static·{v1,·v3},·Ljava/util/Objects;->equals(Ljava/lang/Object;Ljava/lang/Object;)Z | 294 | ····invoke-static·{v1,·v3},·Ljava/util/Objects;->equals(Ljava/lang/Object;Ljava/lang/Object;)Z |
| |
295 | ····move-result·v1 | 295 | ····move-result·v1 |
| |
296 | ····if-eqz·v1,·:cond_2 | 296 | ····if-eqz·v1,·:cond_2 |
| |
297 | ····iget-object·v1,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->absolutePath:Ljava/lang/String; | 297 | ····iget-object·v1,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->absolutePath:Ljava/lang/String; |
| |
298 | ····iget-object·v3,·p1,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->absolutePath:Ljava/lang/String; | 298 | ····iget-object·v3,·p1,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->absolutePath:Ljava/lang/String; |
| |
299 | ····.line·5 | 299 | ····.line·5 |
300 | ····invoke-static·{v1,·v3},·Ljava/util/Objects;->equals(Ljava/lang/Object;Ljava/lang/Object;)Z | 300 | ····invoke-static·{v1,·v3},·Ljava/util/Objects;->equals(Ljava/lang/Object;Ljava/lang/Object;)Z |
| |
301 | ····move-result·v1 | 301 | ····move-result·v1 |
| |
302 | ····if-eqz·v1,·:cond_2 | 302 | ····if-eqz·v1,·:cond_2 |
| |
303 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->supportedLocales:Landroid/os/LocaleList; | 303 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->supportedLocales:Landroid/os/LocaleList; |
| |
304 | ····iget-object·p1,·p1,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->supportedLocales:Landroid/os/LocaleList; | 304 | ····iget-object·p1,·p1,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->supportedLocales:Landroid/os/LocaleList; |
| |
305 | ····.line·6 | 305 | ····.line·6 |
306 | ····invoke-static·{p0,·p1},·Ljava/util/Objects;->equals(Ljava/lang/Object;Ljava/lang/Object;)Z | 306 | ····invoke-static·{p0,·p1},·Ljava/util/Objects;->equals(Ljava/lang/Object;Ljava/lang/Object;)Z |
| |
307 | ····move-result·p0 | 307 | ····move-result·p0 |
| |
308 | ····if-eqz·p0,·:cond_2 | 308 | ····if-eqz·p0,·:cond_2 |
Offset 351, 54 lines modified | Offset 351, 54 lines modified |
351 | ····.locals·3 | 351 | ····.locals·3 |
| |
352 | ····const/4·v0,·0x6 | 352 | ····const/4·v0,·0x6 |
| |
353 | ····new-array·v0,·v0,·[Ljava/lang/Object; | 353 | ····new-array·v0,·v0,·[Ljava/lang/Object; |
| |
354 | ····.line·1 | 354 | ····.line·1 |
355 | ····iget-object·v1,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->modelType:Ljava/lang/String; | 355 | ····iget-object·v1,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->modelType:Ljava/lang/String; |
| |
356 | ····const/4·v2,·0x0 | 356 | ····const/4·v2,·0x0 |
| |
357 | ····aput-object·v1,·v0,·v2 | 357 | ····aput-object·v1,·v0,·v2 |
| |
358 | ····iget-object·v1,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->absolutePath:Ljava/lang/String; | 358 | ····iget-object·v1,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->absolutePath:Ljava/lang/String; |
| |
359 | ····const/4·v2,·0x1 | 359 | ····const/4·v2,·0x1 |
| |
360 | ····aput-object·v1,·v0,·v2 | 360 | ····aput-object·v1,·v0,·v2 |
| |
361 | ····iget·v1,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->version:I | 361 | ····iget·v1,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->version:I |
| |
362 | ····.line·2 | 362 | ····.line·2 |
363 | ····invoke-static·{v1},·Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; | 363 | ····invoke-static·{v1},·Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; |
| |
364 | ····move-result-object·v1 | 364 | ····move-result-object·v1 |
| |
365 | ····const/4·v2,·0x2 | 365 | ····const/4·v2,·0x2 |
| |
366 | ····aput-object·v1,·v0,·v2 | 366 | ····aput-object·v1,·v0,·v2 |
| |
367 | ····iget-object·v1,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->supportedLocales:Landroid/os/LocaleList; | 367 | ····iget-object·v1,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->supportedLocales:Landroid/os/LocaleList; |
| |
368 | ····const/4·v2,·0x3 | 368 | ····const/4·v2,·0x3 |
| |
369 | ····aput-object·v1,·v0,·v2 | 369 | ····aput-object·v1,·v0,·v2 |
| |
370 | ····iget-boolean·v1,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->languageIndependent:Z | 370 | ····iget-boolean·v1,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->languageIndependent:Z |
| |
371 | ····invoke-static·{v1},·Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean; | 371 | ····invoke-static·{v1},·Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean; |
| |
372 | ····move-result-object·v1 | 372 | ····move-result-object·v1 |
| |
373 | ····const/4·v2,·0x4 | 373 | ····const/4·v2,·0x4 |
| |
374 | ····aput-object·v1,·v0,·v2 | 374 | ····aput-object·v1,·v0,·v2 |
| |
375 | ····iget-boolean·p0,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->isAsset:Z | 375 | ····iget-boolean·p0,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->isAsset:Z |
| |
376 | ····invoke-static·{p0},·Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean; | 376 | ····invoke-static·{p0},·Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean; |
| |
377 | ····move-result-object·p0 | 377 | ····move-result-object·p0 |
| |
378 | ····const/4·v1,·0x5 | 378 | ····const/4·v1,·0x5 |
| |
Offset 417, 32 lines modified | Offset 417, 32 lines modified |
417 | ····.annotation·system·Ldalvik/annotation/Throws; | 417 | ····.annotation·system·Ldalvik/annotation/Throws; |
418 | ········value·=·{ | 418 | ········value·=·{ |
419 | ············Ljava/io/IOException; | 419 | ············Ljava/io/IOException; |
420 | ········} | 420 | ········} |
421 | ····.end·annotation | 421 | ····.end·annotation |
| |
422 | ····.line·1 | 422 | ····.line·1 |
423 | ····iget-boolean·v0,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->isAsset:Z | 423 | ····iget-boolean·v0,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->isAsset:Z |
| |
424 | ····if-eqz·v0,·:cond_0 | 424 | ····if-eqz·v0,·:cond_0 |
| |
425 | ····.line·2 | 425 | ····.line·2 |
426 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->absolutePath:Ljava/lang/String; | 426 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->absolutePath:Ljava/lang/String; |
| |
427 | ····invoke-virtual·{p1,·p0},·Landroid/content/res/AssetManager;->openFd(Ljava/lang/String;)Landroid/content/res/AssetFileDescriptor; | 427 | ····invoke-virtual·{p1,·p0},·Landroid/content/res/AssetManager;->openFd(Ljava/lang/String;)Landroid/content/res/AssetFileDescriptor; |
| |
428 | ····move-result-object·p0 | 428 | ····move-result-object·p0 |
| |
429 | ····return-object·p0 | 429 | ····return-object·p0 |
| |
430 | ····.line·3 | 430 | ····.line·3 |
431 | ····:cond_0 | 431 | ····:cond_0 |
432 | ····new-instance·p1,·Ljava/io/File; | 432 | ····new-instance·p1,·Ljava/io/File; |
| |
433 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->absolutePath:Ljava/lang/String; | 433 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->absolutePath:Ljava/lang/String; |
| |
434 | ····invoke-direct·{p1,·p0},·Ljava/io/File;-><init>(Ljava/lang/String;)V | 434 | ····invoke-direct·{p1,·p0},·Ljava/io/File;-><init>(Ljava/lang/String;)V |
| |
435 | ····const/high16·p0,·0x10000000 | 435 | ····const/high16·p0,·0x10000000 |
| |
436 | ····.line·4 | 436 | ····.line·4 |
437 | ····invoke-static·{p1,·p0},·Landroid/os/ParcelFileDescriptor;->open(Ljava/io/File;I)Landroid/os/ParcelFileDescriptor; | 437 | ····invoke-static·{p1,·p0},·Landroid/os/ParcelFileDescriptor;->open(Ljava/io/File;I)Landroid/os/ParcelFileDescriptor; |
Offset 462, 38 lines modified | Offset 462, 27 lines modified |
| |
462 | ····invoke-direct/range·{v0·..·v5},·Landroid/content/res/AssetFileDescriptor;-><init>(Landroid/os/ParcelFileDescriptor;JJ)V | 462 | ····invoke-direct/range·{v0·..·v5},·Landroid/content/res/AssetFileDescriptor;-><init>(Landroid/os/ParcelFileDescriptor;JJ)V |
| |
463 | ····return-object·p0 | 463 | ····return-object·p0 |
464 | .end·method | 464 | .end·method |
| |
465 | .method·public·toModelInfo()Lcom/android/textclassifier/common/logging/ResultIdUtils$ModelInfo; | 465 | .method·public·toModelInfo()Lcom/android/textclassifier/common/logging/ResultIdUtils$ModelInfo; |
466 | ····.locals·3 | 466 | ····.locals·2 |
| |
467 | ····.line·1 | 467 | ····.line·1 |
468 | ····new-instance·v0,·Lcom/android/textclassifier/common/logging/ResultIdUtils$ModelInfo; | 468 | ····new-instance·v0,·Lcom/android/textclassifier/common/logging/ResultIdUtils$ModelInfo; |
| |
469 | ····iget·v1,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->version:I | 469 | ····iget·v1,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->version:I |
| |
470 | ····.line·2 | |
471 | ····iget-boolean·v2,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->languageIndependent:Z | |
| |
472 | ····if-eqz·v2,·:cond_0 | |
| |
473 | ····const-string·p0,·"*" | |
| |
474 | ····goto·:goto_0 | |
| |
475 | ····:cond_0 | |
476 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->supportedLocales:Landroid/os/LocaleList; | 470 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->supportedLocales:Landroid/os/LocaleList; |
| |
477 | ····invoke-virtual·{p0},·Landroid/os/LocaleList;->toLanguageTags()Ljava/lang/String; | 471 | ····invoke-virtual·{p0},·Landroid/os/LocaleList;->toLanguageTags()Ljava/lang/String; |
| |
478 | ····move-result-object·p0 | 472 | ····move-result-object·p0 |
| |
479 | ····:goto_0 | |
480 | ····invoke-direct·{v0,·v1,·p0},·Lcom/android/textclassifier/common/logging/ResultIdUtils$ModelInfo;-><init>(ILjava/lang/String;)V | 473 | ····invoke-direct·{v0,·v1,·p0},·Lcom/android/textclassifier/common/logging/ResultIdUtils$ModelInfo;-><init>(ILjava/lang/String;)V |
| |
481 | ····return-object·v0 | 474 | ····return-object·v0 |
482 | .end·method | 475 | .end·method |
| |
483 | .method·public·toString()Ljava/lang/String; | 476 | .method·public·toString()Ljava/lang/String; |
484 | ····.locals·4 | 477 | ····.locals·4 |
Offset 501, 61 lines modified | Offset 490, 61 lines modified |
501 | ····.line·1 | 490 | ····.line·1 |
502 | ····sget-object·v0,·Ljava/util/Locale;->US:Ljava/util/Locale; | 491 | ····sget-object·v0,·Ljava/util/Locale;->US:Ljava/util/Locale; |
| |
503 | ····const/4·v1,·0x5 | 492 | ····const/4·v1,·0x5 |
| |
504 | ····new-array·v1,·v1,·[Ljava/lang/Object; | 493 | ····new-array·v1,·v1,·[Ljava/lang/Object; |
| |
505 | ····iget-object·v2,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->modelType:Ljava/lang/String; | 494 | ····iget-object·v2,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->modelType:Ljava/lang/String; |
| |
506 | ····const/4·v3,·0x0 | 495 | ····const/4·v3,·0x0 |
| |
507 | ····aput-object·v2,·v1,·v3 | 496 | ····aput-object·v2,·v1,·v3 |
| |
508 | ····iget-object·v2,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->absolutePath:Ljava/lang/String; | 497 | ····iget-object·v2,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->absolutePath:Ljava/lang/String; |
| |
509 | ····const/4·v3,·0x1 | 498 | ····const/4·v3,·0x1 |
| |
510 | ····aput-object·v2,·v1,·v3 | 499 | ····aput-object·v2,·v1,·v3 |
| |
511 | ····iget·v2,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->version:I | 500 | ····iget·v2,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->version:I |
| |
512 | ····.line·2 | 501 | ····.line·2 |
513 | ····invoke-static·{v2},·Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; | 502 | ····invoke-static·{v2},·Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; |
| |
514 | ····move-result-object·v2 | 503 | ····move-result-object·v2 |
| |
515 | ····const/4·v3,·0x2 | 504 | ····const/4·v3,·0x2 |
| |
516 | ····aput-object·v2,·v1,·v3 | 505 | ····aput-object·v2,·v1,·v3 |
| |
517 | ····.line·3 | 506 | ····.line·3 |
518 | ····iget-boolean·v2,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->languageIndependent:Z | 507 | ····iget-boolean·v2,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->languageIndependent:Z |
| |
519 | ····if-eqz·v2,·:cond_0 | 508 | ····if-eqz·v2,·:cond_0 |
| |
520 | ····const-string·v2,·"*" | 509 | ····const-string·v2,·"*" |
| |
521 | ····goto·:goto_0 | 510 | ····goto·:goto_0 |
| |
522 | ····:cond_0 | 511 | ····:cond_0 |
523 | ····iget-object·v2,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->supportedLocales:Landroid/os/LocaleList; | 512 | ····iget-object·v2,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->supportedLocales:Landroid/os/LocaleList; |
| |
524 | ····invoke-virtual·{v2},·Landroid/os/LocaleList;->toLanguageTags()Ljava/lang/String; | 513 | ····invoke-virtual·{v2},·Landroid/os/LocaleList;->toLanguageTags()Ljava/lang/String; |
| |
525 | ····move-result-object·v2 | 514 | ····move-result-object·v2 |
| |
526 | ····:goto_0 | 515 | ····:goto_0 |
527 | ····const/4·v3,·0x3 | 516 | ····const/4·v3,·0x3 |
| |
528 | ····aput-object·v2,·v1,·v3 | 517 | ····aput-object·v2,·v1,·v3 |
| |
529 | ····const/4·v2,·0x4 | 518 | ····const/4·v2,·0x4 |
| |
530 | ····iget-boolean·p0,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->isAsset:Z | 519 | ····iget-boolean·p0,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->isAsset:Z |
| |
531 | ····.line·4 | 520 | ····.line·4 |
532 | ····invoke-static·{p0},·Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean; | 521 | ····invoke-static·{p0},·Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean; |
| |
533 | ····move-result-object·p0 | 522 | ····move-result-object·p0 |
| |
534 | ····aput-object·p0,·v1,·v2 | 523 | ····aput-object·p0,·v1,·v2 |