Offset 1, 8 lines modifiedOffset 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·fields4 #·static·fields
5 .field·static·final·LANGUAGE_INDEPENDENT:Ljava/lang/String;·=·"*"5 .field·static·final·LANGUAGE_INDEPENDENT:Ljava/lang/String;·=·"*"
  
Offset 25, 30 lines modifiedOffset 25, 30 lines modified
25 .method·constructor·<init>(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Z)V25 .method·constructor·<init>(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Z)V
26 ····.locals·026 ····.locals·0
  
27 ····.line·127 ····.line·1
28 ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V28 ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V
  
29 ····.line·229 ····.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·331 ····.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·433 ····.line·4
34 ····iput·p3,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->version:I34 ····iput·p3,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->version:I
  
35 ····const-string·p1,·"*"35 ····const-string·p1,·"*"
  
36 ····.line·536 ····.line·5
37 ····invoke-virtual·{p1,·p4},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z37 ····invoke-virtual·{p1,·p4},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z
  
38 ····move-result·p138 ····move-result·p1
  
39 ····iput-boolean·p1,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->languageIndependent:Z39 ····iput-boolean·p1,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->languageIndependent:Z
  
40 ····if-eqz·p1,·:cond_040 ····if-eqz·p1,·:cond_0
  
41 ····.line·641 ····.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·p143 ····move-result-object·p1
Offset 58, 23 lines modifiedOffset 58, 23 lines modified
58 ····.line·758 ····.line·7
59 ····:cond_059 ····: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·p161 ····move-result-object·p1
  
62 ····:goto_062 ····: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·864 ····.line·8
65 ····iput-boolean·p5,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->isAsset:Z65 ····iput-boolean·p5,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->isAsset:Z
  
66 ····return-void66 ····return-void
67 .end·method67 .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·169 ····.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·annotation74 ····.end·annotation
  
Offset 83, 15 lines modifiedOffset 83, 15 lines modified
  
83 ····move-result-object·p083 ····move-result-object·p0
  
84 ····const/4·v0,·0x184 ····const/4·v0,·0x1
  
85 ····.line·285 ····.line·2
86 ····:try_start_086 ····: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·p188 ····move-result-object·p1
89 ····:try_end_089 ····:try_end_0
90 ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_090 ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0
  
91 ····if-eqz·p0,·:cond_091 ····if-eqz·p0,·:cond_0
  
Offset 120, 49 lines modifiedOffset 120, 49 lines modified
120 ····invoke-virtual·{p1,·p0},·Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V120 ····invoke-virtual·{p1,·p0},·Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
  
121 ····:cond_1121 ····:cond_1
122 ····:goto_0122 ····:goto_0
123 ····throw·p1123 ····throw·p1
124 .end·method124 .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·8126 ····.locals·8
  
127 ····.line·1127 ····.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·v0129 ····move-result-object·v0
  
130 ····.line·2130 ····.line·2
131 ····new-instance·v7,·Lcom/android/textclassifier/ModelFileManager$ModelFile;131 ····new-instance·v7,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;
  
132 ····.line·3132 ····.line·3
133 ····invoke-virtual·{v0,·p2},·Lcom/android/textclassifier/ModelFileManager$ModelInfoFetcher;->getVersion(Landroid/content/res/AssetFileDescriptor;)I133 ····invoke-virtual·{v0,·p2},·Lcom/android/textclassifier/common/ModelFileManager$ModelInfoFetcher;->getVersion(Landroid/content/res/AssetFileDescriptor;)I
  
134 ····move-result·v4134 ····move-result·v4
  
135 ····.line·4135 ····.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·v5137 ····move-result-object·v5
  
138 ····move-object·v1,·v7138 ····move-object·v1,·v7
  
139 ····move-object·v2,·p1139 ····move-object·v2,·p1
  
140 ····move-object·v3,·p0140 ····move-object·v3,·p0
  
141 ····move·v6,·p3141 ····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)V142 ····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·v7143 ····return-object·v7
144 .end·method144 .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·7146 ····.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·annotation151 ····.end·annotation
  
Offset 191, 15 lines modifiedOffset 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·p0192 ····move-result-object·p0
  
193 ····const/4·v1,·0x0193 ····const/4·v1,·0x0
  
194 ····.line·4194 ····.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·p0196 ····move-result-object·p0
197 ····:try_end_0197 ····:try_end_0
198 ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0198 ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0
  
199 ····.line·5199 ····.line·5
200 ····invoke-virtual·{v0},·Landroid/content/res/AssetFileDescriptor;->close()V200 ····invoke-virtual·{v0},·Landroid/content/res/AssetFileDescriptor;->close()V
Offset 230, 27 lines modifiedOffset 230, 27 lines modified
230 ····.locals·2230 ····.locals·2
  
231 ····.line·1231 ····.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·p0233 ····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·2235 ····.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·p0237 ····move-result-object·p0
  
238 ····.line·3238 ····.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·v0240 ····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·v0243 ····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 modifiedOffset 270, 70 lines modified
  
270 ····if-ne·p0,·p1,·:cond_0270 ····if-ne·p0,·p1,·:cond_0
  
271 ····return·v0271 ····return·v0
  
272 ····.line·1272 ····.line·1
273 ····:cond_0273 ····: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,·0x0275 ····const/4·v2,·0x0
  
276 ····if-nez·v1,·:cond_1276 ····if-nez·v1,·:cond_1
  
277 ····return·v2277 ····return·v2
  
278 ····.line·2278 ····.line·2
279 ····:cond_1279 ····:cond_1
280 ····check-cast·p1,·Lcom/android/textclassifier/ModelFileManager$ModelFile;280 ····check-cast·p1,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;
  
281 ····.line·3281 ····.line·3
282 ····iget·v1,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->version:I282 ····iget·v1,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->version:I
  
283 ····iget·v3,·p1,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->version:I283 ····iget·v3,·p1,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->version:I
  
284 ····if-ne·v1,·v3,·:cond_2284 ····if-ne·v1,·v3,·:cond_2
  
285 ····iget-boolean·v1,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->languageIndependent:Z285 ····iget-boolean·v1,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->languageIndependent:Z
  
286 ····iget-boolean·v3,·p1,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->languageIndependent:Z286 ····iget-boolean·v3,·p1,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->languageIndependent:Z
  
287 ····if-ne·v1,·v3,·:cond_2287 ····if-ne·v1,·v3,·:cond_2
  
288 ····iget-boolean·v1,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->isAsset:Z288 ····iget-boolean·v1,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->isAsset:Z
  
289 ····iget-boolean·v3,·p1,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->isAsset:Z289 ····iget-boolean·v3,·p1,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->isAsset:Z
  
290 ····if-ne·v1,·v3,·:cond_2290 ····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·4293 ····.line·4
294 ····invoke-static·{v1,·v3},·Ljava/util/Objects;->equals(Ljava/lang/Object;Ljava/lang/Object;)Z294 ····invoke-static·{v1,·v3},·Ljava/util/Objects;->equals(Ljava/lang/Object;Ljava/lang/Object;)Z
  
295 ····move-result·v1295 ····move-result·v1
  
296 ····if-eqz·v1,·:cond_2296 ····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·5299 ····.line·5
300 ····invoke-static·{v1,·v3},·Ljava/util/Objects;->equals(Ljava/lang/Object;Ljava/lang/Object;)Z300 ····invoke-static·{v1,·v3},·Ljava/util/Objects;->equals(Ljava/lang/Object;Ljava/lang/Object;)Z
  
301 ····move-result·v1301 ····move-result·v1
  
302 ····if-eqz·v1,·:cond_2302 ····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·6305 ····.line·6
306 ····invoke-static·{p0,·p1},·Ljava/util/Objects;->equals(Ljava/lang/Object;Ljava/lang/Object;)Z306 ····invoke-static·{p0,·p1},·Ljava/util/Objects;->equals(Ljava/lang/Object;Ljava/lang/Object;)Z
  
307 ····move-result·p0307 ····move-result·p0
  
308 ····if-eqz·p0,·:cond_2308 ····if-eqz·p0,·:cond_2
Offset 351, 54 lines modifiedOffset 351, 54 lines modified
351 ····.locals·3351 ····.locals·3
  
352 ····const/4·v0,·0x6352 ····const/4·v0,·0x6
  
353 ····new-array·v0,·v0,·[Ljava/lang/Object;353 ····new-array·v0,·v0,·[Ljava/lang/Object;
  
354 ····.line·1354 ····.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,·0x0356 ····const/4·v2,·0x0
  
357 ····aput-object·v1,·v0,·v2357 ····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,·0x1359 ····const/4·v2,·0x1
  
360 ····aput-object·v1,·v0,·v2360 ····aput-object·v1,·v0,·v2
  
361 ····iget·v1,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->version:I361 ····iget·v1,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->version:I
  
362 ····.line·2362 ····.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·v1364 ····move-result-object·v1
  
365 ····const/4·v2,·0x2365 ····const/4·v2,·0x2
  
366 ····aput-object·v1,·v0,·v2366 ····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,·0x3368 ····const/4·v2,·0x3
  
369 ····aput-object·v1,·v0,·v2369 ····aput-object·v1,·v0,·v2
  
370 ····iget-boolean·v1,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->languageIndependent:Z370 ····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·v1372 ····move-result-object·v1
  
373 ····const/4·v2,·0x4373 ····const/4·v2,·0x4
  
374 ····aput-object·v1,·v0,·v2374 ····aput-object·v1,·v0,·v2
  
375 ····iget-boolean·p0,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->isAsset:Z375 ····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·p0377 ····move-result-object·p0
  
378 ····const/4·v1,·0x5378 ····const/4·v1,·0x5
  
Offset 417, 32 lines modifiedOffset 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·annotation421 ····.end·annotation
  
422 ····.line·1422 ····.line·1
423 ····iget-boolean·v0,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->isAsset:Z423 ····iget-boolean·v0,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->isAsset:Z
  
424 ····if-eqz·v0,·:cond_0424 ····if-eqz·v0,·:cond_0
  
425 ····.line·2425 ····.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·p0428 ····move-result-object·p0
  
429 ····return-object·p0429 ····return-object·p0
  
430 ····.line·3430 ····.line·3
431 ····:cond_0431 ····: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;)V434 ····invoke-direct·{p1,·p0},·Ljava/io/File;-><init>(Ljava/lang/String;)V
  
435 ····const/high16·p0,·0x10000000435 ····const/high16·p0,·0x10000000
  
436 ····.line·4436 ····.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 modifiedOffset 462, 27 lines modified
  
462 ····invoke-direct/range·{v0·..·v5},·Landroid/content/res/AssetFileDescriptor;-><init>(Landroid/os/ParcelFileDescriptor;JJ)V462 ····invoke-direct/range·{v0·..·v5},·Landroid/content/res/AssetFileDescriptor;-><init>(Landroid/os/ParcelFileDescriptor;JJ)V
  
463 ····return-object·p0463 ····return-object·p0
464 .end·method464 .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·3466 ····.locals·2
  
467 ····.line·1467 ····.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:I469 ····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·p0472 ····move-result-object·p0
  
479 ····:goto_0 
480 ····invoke-direct·{v0,·v1,·p0},·Lcom/android/textclassifier/common/logging/ResultIdUtils$ModelInfo;-><init>(ILjava/lang/String;)V473 ····invoke-direct·{v0,·v1,·p0},·Lcom/android/textclassifier/common/logging/ResultIdUtils$ModelInfo;-><init>(ILjava/lang/String;)V
  
481 ····return-object·v0474 ····return-object·v0
482 .end·method475 .end·method
  
483 .method·public·toString()Ljava/lang/String;476 .method·public·toString()Ljava/lang/String;
484 ····.locals·4477 ····.locals·4
Offset 501, 61 lines modifiedOffset 490, 61 lines modified
501 ····.line·1490 ····.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,·0x5492 ····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,·0x0495 ····const/4·v3,·0x0
  
507 ····aput-object·v2,·v1,·v3496 ····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,·0x1498 ····const/4·v3,·0x1
  
510 ····aput-object·v2,·v1,·v3499 ····aput-object·v2,·v1,·v3
  
511 ····iget·v2,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->version:I500 ····iget·v2,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->version:I
  
512 ····.line·2501 ····.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·v2503 ····move-result-object·v2
  
515 ····const/4·v3,·0x2504 ····const/4·v3,·0x2
  
516 ····aput-object·v2,·v1,·v3505 ····aput-object·v2,·v1,·v3
  
517 ····.line·3506 ····.line·3
518 ····iget-boolean·v2,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->languageIndependent:Z507 ····iget-boolean·v2,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->languageIndependent:Z
  
519 ····if-eqz·v2,·:cond_0508 ····if-eqz·v2,·:cond_0
  
520 ····const-string·v2,·"*"509 ····const-string·v2,·"*"
  
521 ····goto·:goto_0510 ····goto·:goto_0
  
522 ····:cond_0511 ····: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·v2514 ····move-result-object·v2
  
526 ····:goto_0515 ····:goto_0
527 ····const/4·v3,·0x3516 ····const/4·v3,·0x3
  
528 ····aput-object·v2,·v1,·v3517 ····aput-object·v2,·v1,·v3
  
529 ····const/4·v2,·0x4518 ····const/4·v2,·0x4
  
530 ····iget-boolean·p0,·p0,·Lcom/android/textclassifier/ModelFileManager$ModelFile;->isAsset:Z519 ····iget-boolean·p0,·p0,·Lcom/android/textclassifier/common/ModelFileManager$ModelFile;->isAsset:Z
  
531 ····.line·4520 ····.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·p0522 ····move-result-object·p0
  
534 ····aput-object·p0,·v1,·v2523 ····aput-object·p0,·v1,·v2