Offset 1, 140 lines modifiedOffset 1, 256 lines modified
1 .class·final·Lcom/android/textclassifier/TextClassifierImpl;1 .class·final·Lcom/android/textclassifier/TextClassifierImpl;
2 .super·Ljava/lang/Object;2 .super·Ljava/lang/Object;
3 .source·"TextClassifierImpl.java"3 .source·"TextClassifierImpl.java"
  
  
 4 #·static·fields
 5 .field·private·static·final·ANNOTATOR_UPDATED_MODEL_FILE:Ljava/io/File;
  
 6 .field·private·static·final·FACTORY_MODEL_DIR:Ljava/io/File;
  
 7 .field·private·static·final·UPDATED_ACTIONS_MODEL:Ljava/io/File;
  
 8 .field·private·static·final·UPDATED_LANG_ID_MODEL_FILE:Ljava/io/File;
  
  
4 #·instance·fields9 #·instance·fields
5 .field·private·actionModelInUse:Lcom/android/textclassifier/ModelFileManager$ModelFile;10 .field·private·actionModelInUse:Lcom/android/textclassifier/ModelFileManager$ModelFile;
  
6 .field·private·actionsImpl:Lcom/google/android/textclassifier/ActionsSuggestionsModel;11 .field·private·actionsImpl:Lcom/google/android/textclassifier/ActionsSuggestionsModel;
  
 12 .field·private·final·actionsModelFileManager:Lcom/android/textclassifier/ModelFileManager;
  
7 .field·private·annotatorImpl:Lcom/google/android/textclassifier/AnnotatorModel;13 .field·private·annotatorImpl:Lcom/google/android/textclassifier/AnnotatorModel;
  
 14 .field·private·final·annotatorModelFileManager:Lcom/android/textclassifier/ModelFileManager;
  
8 .field·private·annotatorModelInUse:Lcom/android/textclassifier/ModelFileManager$ModelFile;15 .field·private·annotatorModelInUse:Lcom/android/textclassifier/ModelFileManager$ModelFile;
  
9 .field·private·final·context:Landroid/content/Context;16 .field·private·final·context:Landroid/content/Context;
  
10 .field·private·final·fallback:Landroid/view/textclassifier/TextClassifier;17 .field·private·final·fallback:Landroid/view/textclassifier/TextClassifier;
  
11 .field·private·final·generateLinksLogger:Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;18 .field·private·final·generateLinksLogger:Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;
  
12 .field·private·langIdImpl:Lcom/google/android/textclassifier/LangIdModel;19 .field·private·langIdImpl:Lcom/google/android/textclassifier/LangIdModel;
  
 20 .field·private·final·langIdModelFileManager:Lcom/android/textclassifier/ModelFileManager;
  
13 .field·private·langIdModelInUse:Lcom/android/textclassifier/ModelFileManager$ModelFile;21 .field·private·langIdModelInUse:Lcom/android/textclassifier/ModelFileManager$ModelFile;
  
14 .field·private·final·lock:Ljava/lang/Object;22 .field·private·final·lock:Ljava/lang/Object;
  
15 .field·private·final·modelFileManager:Lcom/android/textclassifier/ModelFileManager; 
  
16 .field·private·final·settings:Lcom/android/textclassifier/TextClassifierSettings;23 .field·private·final·settings:Lcom/android/textclassifier/TextClassifierSettings;
  
17 .field·private·final·templateIntentFactory:Lcom/android/textclassifier/common/intent/TemplateIntentFactory;24 .field·private·final·templateIntentFactory:Lcom/android/textclassifier/common/intent/TemplateIntentFactory;
  
18 .field·private·final·textClassifierEventLogger:Lcom/android/textclassifier/common/statsd/TextClassifierEventLogger;25 .field·private·final·textClassifierEventLogger:Lcom/android/textclassifier/common/statsd/TextClassifierEventLogger;
  
  
19 #·direct·methods26 #·direct·methods
20 .method·constructor·<init>(Landroid/content/Context;Lcom/android/textclassifier/TextClassifierSettings;Lcom/android/textclassifier/ModelFileManager;)V27 .method·static·constructor·<clinit>()V
 28 ····.locals·2
  
 29 ····.line·87
 30 ····new-instance·v0,·Ljava/io/File;
  
 31 ····const-string·v1,·"/etc/textclassifier/"
  
 32 ····invoke-direct·{v0,·v1},·Ljava/io/File;-><init>(Ljava/lang/String;)V
  
 33 ····sput-object·v0,·Lcom/android/textclassifier/TextClassifierImpl;->FACTORY_MODEL_DIR:Ljava/io/File;
  
 34 ····.line·91
 35 ····new-instance·v0,·Ljava/io/File;
  
 36 ····const-string·v1,·"/data/misc/textclassifier/textclassifier.model"
  
 37 ····invoke-direct·{v0,·v1},·Ljava/io/File;-><init>(Ljava/lang/String;)V
  
 38 ····sput-object·v0,·Lcom/android/textclassifier/TextClassifierImpl;->ANNOTATOR_UPDATED_MODEL_FILE:Ljava/io/File;
  
 39 ····.line·96
 40 ····new-instance·v0,·Ljava/io/File;
  
 41 ····const-string·v1,·"/data/misc/textclassifier/lang_id.model"
  
 42 ····invoke-direct·{v0,·v1},·Ljava/io/File;-><init>(Ljava/lang/String;)V
  
 43 ····sput-object·v0,·Lcom/android/textclassifier/TextClassifierImpl;->UPDATED_LANG_ID_MODEL_FILE:Ljava/io/File;
  
 44 ····.line·102
 45 ····new-instance·v0,·Ljava/io/File;
  
 46 ····const-string·v1,·"/data/misc/textclassifier/actions_suggestions.model"
  
 47 ····invoke-direct·{v0,·v1},·Ljava/io/File;-><init>(Ljava/lang/String;)V
  
 48 ····sput-object·v0,·Lcom/android/textclassifier/TextClassifierImpl;->UPDATED_ACTIONS_MODEL:Ljava/io/File;
  
 49 ····return-void
 50 .end·method
  
 51 .method·constructor·<init>(Landroid/content/Context;Lcom/android/textclassifier/TextClassifierSettings;)V
21 ····.locals·152 ····.locals·1
  
22 ····.line·13653 ····.line·173
23 ····sget-object·v0,·Landroid/view/textclassifier/TextClassifier;->NO_OP:Landroid/view/textclassifier/TextClassifier;54 ····sget-object·v0,·Landroid/view/textclassifier/TextClassifier;->NO_OP:Landroid/view/textclassifier/TextClassifier;
  
24 ····invoke-direct·{p0,·p1,·p2,·p3,·v0},·Lcom/android/textclassifier/TextClassifierImpl;-><init>(Landroid/content/Context;Lcom/android/textclassifier/TextClassifierSettings;Lcom/android/textclassifier/ModelFileManager;Landroid/view/textclassifier/TextClassifier;)V55 ····invoke-direct·{p0,·p1,·p2,·v0},·Lcom/android/textclassifier/TextClassifierImpl;-><init>(Landroid/content/Context;Lcom/android/textclassifier/TextClassifierSettings;Landroid/view/textclassifier/TextClassifier;)V
  
25 ····return-void56 ····return-void
26 .end·method57 .end·method
  
27 .method·constructor·<init>(Landroid/content/Context;Lcom/android/textclassifier/TextClassifierSettings;Lcom/android/textclassifier/ModelFileManager;Landroid/view/textclassifier/TextClassifier;)V58 .method·constructor·<init>(Landroid/content/Context;Lcom/android/textclassifier/TextClassifierSettings;Landroid/view/textclassifier/TextClassifier;)V
28 ····.locals·159 ····.locals·6
  
29 ····.line·12460 ····.line·139
30 ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V61 ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V
  
31 ····.line·9362 ····.line·109
32 ····new-instance·v0,·Ljava/lang/Object;63 ····new-instance·v0,·Ljava/lang/Object;
  
33 ····invoke-direct·{v0},·Ljava/lang/Object;-><init>()V64 ····invoke-direct·{v0},·Ljava/lang/Object;-><init>()V
  
34 ····iput-object·v0,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->lock:Ljava/lang/Object;65 ····iput-object·v0,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->lock:Ljava/lang/Object;
  
35 ····.line·11366 ····.line·129
36 ····new-instance·v0,·Lcom/android/textclassifier/common/statsd/TextClassifierEventLogger;67 ····new-instance·v0,·Lcom/android/textclassifier/common/statsd/TextClassifierEventLogger;
  
37 ····invoke-direct·{v0},·Lcom/android/textclassifier/common/statsd/TextClassifierEventLogger;-><init>()V68 ····invoke-direct·{v0},·Lcom/android/textclassifier/common/statsd/TextClassifierEventLogger;-><init>()V
  
38 ····iput-object·v0,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->textClassifierEventLogger:Lcom/android/textclassifier/common/statsd/TextClassifierEventLogger;69 ····iput-object·v0,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->textClassifierEventLogger:Lcom/android/textclassifier/common/statsd/TextClassifierEventLogger;
  
39 ····.line·12570 ····.line·140
40 ····invoke-static·{p1},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;71 ····invoke-static·{p1},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
  
41 ····check-cast·p1,·Landroid/content/Context;72 ····check-cast·p1,·Landroid/content/Context;
  
42 ····iput-object·p1,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->context:Landroid/content/Context;73 ····iput-object·p1,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->context:Landroid/content/Context;
  
43 ····.line·12674 ····.line·141
 75 ····invoke-static·{p3},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
  
 76 ····check-cast·p3,·Landroid/view/textclassifier/TextClassifier;
  
 77 ····iput-object·p3,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->fallback:Landroid/view/textclassifier/TextClassifier;
  
 78 ····.line·142
44 ····invoke-static·{p2},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;79 ····invoke-static·{p2},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
  
45 ····check-cast·p2,·Lcom/android/textclassifier/TextClassifierSettings;80 ····check-cast·p2,·Lcom/android/textclassifier/TextClassifierSettings;
  
46 ····iput-object·p2,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->settings:Lcom/android/textclassifier/TextClassifierSettings;81 ····iput-object·p2,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->settings:Lcom/android/textclassifier/TextClassifierSettings;
  
47 ····.line·12782 ····.line·143
48 ····invoke-static·{p3},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;83 ····new-instance·p1,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;
  
49 ····check-cast·p3,·Lcom/android/textclassifier/ModelFileManager;84 ····invoke-virtual·{p2},·Lcom/android/textclassifier/TextClassifierSettings;->getGenerateLinksLogSampleRate()I
  
50 ····iput-object·p3,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->modelFileManager:Lcom/android/textclassifier/ModelFileManager;85 ····move-result·p2
  
51 ····.line·12886 ····invoke-direct·{p1,·p2},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;-><init>(I)V
52 ····invoke-static·{p4},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; 
  
53 ····check-cast·p4,·Landroid/view/textclassifier/TextClassifier;87 ····iput-object·p1,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->generateLinksLogger:Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;
  
54 ····iput-object·p4,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->fallback:Landroid/view/textclassifier/TextClassifier;88 ····.line·144
 89 ····new-instance·p1,·Lcom/android/textclassifier/ModelFileManager;
  
55 ····.line·13090 ····new-instance·p2,·Lcom/android/textclassifier/ModelFileManager$ModelFileSupplierImpl;
56 ····new-instance·p1,·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger; 
  
57 ····iget-object·p2,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->settings:Lcom/android/textclassifier/TextClassifierSettings;91 ····sget-object·v1,·Lcom/android/textclassifier/TextClassifierImpl;->FACTORY_MODEL_DIR:Ljava/io/File;
  
58 ····invoke-virtual·{p2},·Lcom/android/textclassifier/TextClassifierSettings;->getGenerateLinksLogSampleRate()I92 ····sget-object·v3,·Lcom/android/textclassifier/TextClassifierImpl;->ANNOTATOR_UPDATED_MODEL_FILE:Ljava/io/File;
  
59 ····move-result·p293 ····sget-object·v4,·Lcom/android/textclassifier/-$$Lambda$jJq8RXuVdjYF3lPq-77PEw1NJLM;->INSTANCE:Lcom/android/textclassifier/-$$Lambda$jJq8RXuVdjYF3lPq-77PEw1NJLM;
  
60 ····invoke-direct·{p1,·p2},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;-><init>(I)V94 ····sget-object·v5,·Lcom/android/textclassifier/-$$Lambda$NxwbyZSxofZ4Z5SQhfXmtLQ1nxk;->INSTANCE:Lcom/android/textclassifier/-$$Lambda$NxwbyZSxofZ4Z5SQhfXmtLQ1nxk;
  
61 ····iput-object·p1,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->generateLinksLogger:Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;95 ····const-string·v2,·"textclassifier\\.(.*)\\.model"
  
62 ····.line·13196 ····move-object·v0,·p2
  
 97 ····invoke-direct/range·{v0·..·v5},·Lcom/android/textclassifier/ModelFileManager$ModelFileSupplierImpl;-><init>(Ljava/io/File;Ljava/lang/String;Ljava/io/File;Ljava/util/function/Function;Ljava/util/function/Function;)V
  
 98 ····invoke-direct·{p1,·p2},·Lcom/android/textclassifier/ModelFileManager;-><init>(Ljava/util/function/Supplier;)V
  
 99 ····iput-object·p1,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->annotatorModelFileManager:Lcom/android/textclassifier/ModelFileManager;
  
 100 ····.line·152
 101 ····new-instance·p1,·Lcom/android/textclassifier/ModelFileManager;
  
 102 ····new-instance·p2,·Lcom/android/textclassifier/ModelFileManager$ModelFileSupplierImpl;
  
 103 ····sget-object·v1,·Lcom/android/textclassifier/TextClassifierImpl;->FACTORY_MODEL_DIR:Ljava/io/File;
  
 104 ····sget-object·v3,·Lcom/android/textclassifier/TextClassifierImpl;->UPDATED_LANG_ID_MODEL_FILE:Ljava/io/File;
  
 105 ····sget-object·v4,·Lcom/android/textclassifier/-$$Lambda$0biFK4yZBmWN1EO2wtnXskzuEcE;->INSTANCE:Lcom/android/textclassifier/-$$Lambda$0biFK4yZBmWN1EO2wtnXskzuEcE;
  
 106 ····sget-object·v5,·Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$GgWuU910BaKzzHu6MQGYGCHOgkg;->INSTANCE:Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$GgWuU910BaKzzHu6MQGYGCHOgkg;
  
 107 ····const-string·v2,·"lang_id.model"
  
 108 ····move-object·v0,·p2
  
 109 ····invoke-direct/range·{v0·..·v5},·Lcom/android/textclassifier/ModelFileManager$ModelFileSupplierImpl;-><init>(Ljava/io/File;Ljava/lang/String;Ljava/io/File;Ljava/util/function/Function;Ljava/util/function/Function;)V
  
 110 ····invoke-direct·{p1,·p2},·Lcom/android/textclassifier/ModelFileManager;-><init>(Ljava/util/function/Supplier;)V
  
 111 ····iput-object·p1,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->langIdModelFileManager:Lcom/android/textclassifier/ModelFileManager;
  
 112 ····.line·160
 113 ····new-instance·p1,·Lcom/android/textclassifier/ModelFileManager;
  
 114 ····new-instance·p2,·Lcom/android/textclassifier/ModelFileManager$ModelFileSupplierImpl;
  
 115 ····sget-object·v1,·Lcom/android/textclassifier/TextClassifierImpl;->FACTORY_MODEL_DIR:Ljava/io/File;
  
 116 ····sget-object·v3,·Lcom/android/textclassifier/TextClassifierImpl;->UPDATED_ACTIONS_MODEL:Ljava/io/File;
  
 117 ····sget-object·v4,·Lcom/android/textclassifier/-$$Lambda$9N8WImc0VBjy2oxI_Gk5_Pbye_A;->INSTANCE:Lcom/android/textclassifier/-$$Lambda$9N8WImc0VBjy2oxI_Gk5_Pbye_A;
  
 118 ····sget-object·v5,·Lcom/android/textclassifier/-$$Lambda$XeE_KI7QgMKzF9vYRSoFWAolyuA;->INSTANCE:Lcom/android/textclassifier/-$$Lambda$XeE_KI7QgMKzF9vYRSoFWAolyuA;
  
 119 ····const-string·v2,·"actions_suggestions\\.(.*)\\.model"
  
 120 ····move-object·v0,·p2
  
 121 ····invoke-direct/range·{v0·..·v5},·Lcom/android/textclassifier/ModelFileManager$ModelFileSupplierImpl;-><init>(Ljava/io/File;Ljava/lang/String;Ljava/io/File;Ljava/util/function/Function;Ljava/util/function/Function;)V
  
 122 ····invoke-direct·{p1,·p2},·Lcom/android/textclassifier/ModelFileManager;-><init>(Ljava/util/function/Supplier;)V
  
 123 ····iput-object·p1,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->actionsModelFileManager:Lcom/android/textclassifier/ModelFileManager;
  
 124 ····.line·169
63 ····new-instance·p1,·Lcom/android/textclassifier/common/intent/TemplateIntentFactory;125 ····new-instance·p1,·Lcom/android/textclassifier/common/intent/TemplateIntentFactory;
  
64 ····invoke-direct·{p1},·Lcom/android/textclassifier/common/intent/TemplateIntentFactory;-><init>()V126 ····invoke-direct·{p1},·Lcom/android/textclassifier/common/intent/TemplateIntentFactory;-><init>()V
  
65 ····iput-object·p1,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->templateIntentFactory:Lcom/android/textclassifier/common/intent/TemplateIntentFactory;127 ····iput-object·p1,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->templateIntentFactory:Lcom/android/textclassifier/common/intent/TemplateIntentFactory;
  
66 ····return-void128 ····return-void
67 .end·method129 .end·method
  
68 .method·private·static·checkMainThread()V130 .method·private·static·checkMainThread()V
69 ····.locals·3131 ····.locals·3
  
70 ····.line·770132 ····.line·813
71 ····invoke-static·{},·Landroid/os/Looper;->myLooper()Landroid/os/Looper;133 ····invoke-static·{},·Landroid/os/Looper;->myLooper()Landroid/os/Looper;
  
72 ····move-result-object·v0134 ····move-result-object·v0
  
73 ····invoke-static·{},·Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;135 ····invoke-static·{},·Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
  
74 ····move-result-object·v1136 ····move-result-object·v1
  
75 ····if-ne·v0,·v1,·:cond_0137 ····if-ne·v0,·v1,·:cond_0
  
76 ····.line·771138 ····.line·814
77 ····new-instance·v0,·Ljava/lang/Exception;139 ····new-instance·v0,·Ljava/lang/Exception;
  
78 ····invoke-direct·{v0},·Ljava/lang/Exception;-><init>()V140 ····invoke-direct·{v0},·Ljava/lang/Exception;-><init>()V
  
79 ····const-string·v1,·"TextClassifierImpl"141 ····const-string·v1,·"TextClassifierImpl"
  
80 ····const-string·v2,·"TextClassifier·called·on·main·thread"142 ····const-string·v2,·"TextClassifier·called·on·main·thread"
Offset 150, 45 lines modifiedOffset 266, 45 lines modified
  
150 ····if-nez·p0,·:cond_0266 ····if-nez·p0,·:cond_0
  
151 ····const-string·p0,·""267 ····const-string·p0,·""
  
152 ····goto·:goto_0268 ····goto·:goto_0
  
153 ····.line·592269 ····.line·620
154 ····:cond_0270 ····:cond_0
155 ····invoke-virtual·{p0},·Landroid/os/LocaleList;->toLanguageTags()Ljava/lang/String;271 ····invoke-virtual·{p0},·Landroid/os/LocaleList;->toLanguageTags()Ljava/lang/String;
  
156 ····move-result-object·p0272 ····move-result-object·p0
  
157 ····:goto_0273 ····:goto_0
158 ····return-object·p0274 ····return-object·p0
159 .end·method275 .end·method
  
160 .method·private·createAnnotatorId(Ljava/lang/String;II)Ljava/lang/String;276 .method·private·createAnnotatorId(Ljava/lang/String;II)Ljava/lang/String;
161 ····.locals·5277 ····.locals·5
  
162 ····.line·580278 ····.line·608
163 ····iget-object·v0,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->lock:Ljava/lang/Object;279 ····iget-object·v0,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->lock:Ljava/lang/Object;
  
164 ····monitor-enter·v0280 ····monitor-enter·v0
  
165 ····.line·581281 ····.line·609
166 ····:try_start_0282 ····:try_start_0
167 ····iget-object·v1,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->context:Landroid/content/Context;283 ····iget-object·v1,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->context:Landroid/content/Context;
  
168 ····const/4·v2,·0x2284 ····const/4·v2,·0x2
  
169 ····new-array·v2,·v2,·[Lcom/google/common/base/Optional;285 ····new-array·v2,·v2,·[Lcom/google/common/base/Optional;
  
170 ····const/4·v3,·0x0286 ····const/4·v3,·0x0
  
171 ····iget-object·v4,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->annotatorModelInUse:Lcom/android/textclassifier/ModelFileManager$ModelFile;287 ····iget-object·v4,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->annotatorModelInUse:Lcom/android/textclassifier/ModelFileManager$ModelFile;
  
172 ····.line·587288 ····.line·615
173 ····invoke-static·{v4},·Lcom/google/common/base/Optional;->fromNullable(Ljava/lang/Object;)Lcom/google/common/base/Optional;289 ····invoke-static·{v4},·Lcom/google/common/base/Optional;->fromNullable(Ljava/lang/Object;)Lcom/google/common/base/Optional;
  
174 ····move-result-object·v4290 ····move-result-object·v4
  
175 ····aput-object·v4,·v2,·v3291 ····aput-object·v4,·v2,·v3
  
176 ····const/4·v3,·0x1292 ····const/4·v3,·0x1
Offset 197, 32 lines modifiedOffset 313, 32 lines modified
  
197 ····invoke-static·{p0},·Lcom/google/common/base/Optional;->fromNullable(Ljava/lang/Object;)Lcom/google/common/base/Optional;313 ····invoke-static·{p0},·Lcom/google/common/base/Optional;->fromNullable(Ljava/lang/Object;)Lcom/google/common/base/Optional;
  
198 ····move-result-object·p0314 ····move-result-object·p0
  
199 ····aput-object·p0,·v2,·v3315 ····aput-object·p0,·v2,·v3
  
200 ····.line·586316 ····.line·614
201 ····invoke-static·{v2},·Lcom/android/textclassifier/ModelFileManager$ModelFile;->toModelInfos([Lcom/google/common/base/Optional;)Lcom/google/common/collect/ImmutableList;317 ····invoke-static·{v2},·Lcom/android/textclassifier/ModelFileManager$ModelFile;->toModelInfos([Lcom/google/common/base/Optional;)Lcom/google/common/collect/ImmutableList;
  
202 ····move-result-object·p0318 ····move-result-object·p0
  
203 ····.line·581319 ····.line·609
204 ····invoke-static·{v1,·p1,·p2,·p3,·p0},·Lcom/android/textclassifier/common/logging/ResultIdUtils;->createId(Landroid/content/Context;Ljava/lang/String;IILjava/util/List;)Ljava/lang/String;320 ····invoke-static·{v1,·p1,·p2,·p3,·p0},·Lcom/android/textclassifier/common/logging/ResultIdUtils;->createId(Landroid/content/Context;Ljava/lang/String;IILjava/util/List;)Ljava/lang/String;
  
205 ····move-result-object·p0321 ····move-result-object·p0
  
206 ····monitor-exit·v0322 ····monitor-exit·v0
  
207 ····return-object·p0323 ····return-object·p0
  
208 ····:catchall_0324 ····:catchall_0
209 ····move-exception·p0325 ····move-exception·p0
  
210 ····.line·588326 ····.line·616
211 ····monitor-exit·v0327 ····monitor-exit·v0
212 ····:try_end_0328 ····:try_end_0
213 ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0329 ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0
  
214 ····throw·p0330 ····throw·p0
215 .end·method331 .end·method
  
Offset 237, 120 lines modifiedOffset 353, 120 lines modified
237 ············"Lcom/google/common/base/Optional<",353 ············"Lcom/google/common/base/Optional<",
238 ············"Lcom/google/android/textclassifier/LangIdModel;",354 ············"Lcom/google/android/textclassifier/LangIdModel;",
239 ············">;)",355 ············">;)",
240 ············"Landroid/view/textclassifier/TextClassification;"356 ············"Landroid/view/textclassifier/TextClassification;"
241 ········}357 ········}
242 ····.end·annotation358 ····.end·annotation
  
243 ····.line·601359 ····.line·629
244 ····invoke-virtual·{p2,·p3,·p4},·Ljava/lang/String;->substring(II)Ljava/lang/String;360 ····invoke-virtual·{p2,·p3,·p4},·Ljava/lang/String;->substring(II)Ljava/lang/String;
  
245 ····move-result-object·v0361 ····move-result-object·v0
  
246 ····.line·602362 ····.line·630
247 ····new-instance·v1,·Landroid/view/textclassifier/TextClassification$Builder;363 ····new-instance·v1,·Landroid/view/textclassifier/TextClassification$Builder;
  
248 ····invoke-direct·{v1},·Landroid/view/textclassifier/TextClassification$Builder;-><init>()V364 ····invoke-direct·{v1},·Landroid/view/textclassifier/TextClassification$Builder;-><init>()V
  
249 ····.line·603365 ····.line·631
250 ····invoke-virtual·{v1,·v0},·Landroid/view/textclassifier/TextClassification$Builder;->setText(Ljava/lang/String;)Landroid/view/textclassifier/TextClassification$Builder;366 ····invoke-virtual·{v1,·v0},·Landroid/view/textclassifier/TextClassification$Builder;->setText(Ljava/lang/String;)Landroid/view/textclassifier/TextClassification$Builder;
  
251 ····move-result-object·v0367 ····move-result-object·v0
  
252 ····.line·605368 ····.line·633
253 ····array-length·v1,·p1369 ····array-length·v1,·p1
  
254 ····const/4·v2,·0x0370 ····const/4·v2,·0x0
  
255 ····if-lez·v1,·:cond_0371 ····if-lez·v1,·:cond_0
  
256 ····.line·607372 ····.line·635
257 ····aget-object·v3,·p1,·v2373 ····aget-object·v3,·p1,·v2
  
258 ····goto·:goto_0374 ····goto·:goto_0
  
259 ····:cond_0375 ····:cond_0
260 ····const/4·v3,·0x0376 ····const/4·v3,·0x0
  
261 ····:goto_0377 ····:goto_0
262 ····move·v4,·v2378 ····move·v4,·v2
  
263 ····:goto_1379 ····:goto_1
264 ····if-ge·v4,·v1,·:cond_2380 ····if-ge·v4,·v1,·:cond_2
  
265 ····.line·609381 ····.line·637
266 ····aget-object·v5,·p1,·v4382 ····aget-object·v5,·p1,·v4
  
267 ····invoke-virtual·{v5},·Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult;->getCollection()Ljava/lang/String;383 ····invoke-virtual·{v5},·Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult;->getCollection()Ljava/lang/String;
  
268 ····move-result-object·v5384 ····move-result-object·v5
  
269 ····aget-object·v6,·p1,·v4385 ····aget-object·v6,·p1,·v4
  
270 ····invoke-virtual·{v6},·Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult;->getScore()F386 ····invoke-virtual·{v6},·Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult;->getScore()F
  
271 ····move-result·v6387 ····move-result·v6
  
272 ····invoke-virtual·{v0,·v5,·v6},·Landroid/view/textclassifier/TextClassification$Builder;->setEntityType(Ljava/lang/String;F)Landroid/view/textclassifier/TextClassification$Builder;388 ····invoke-virtual·{v0,·v5,·v6},·Landroid/view/textclassifier/TextClassification$Builder;->setEntityType(Ljava/lang/String;F)Landroid/view/textclassifier/TextClassification$Builder;
  
273 ····.line·610389 ····.line·638
274 ····aget-object·v5,·p1,·v4390 ····aget-object·v5,·p1,·v4
  
275 ····invoke-virtual·{v5},·Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult;->getScore()F391 ····invoke-virtual·{v5},·Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult;->getScore()F
  
276 ····move-result·v5392 ····move-result·v5
  
277 ····invoke-virtual·{v3},·Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult;->getScore()F393 ····invoke-virtual·{v3},·Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult;->getScore()F
  
278 ····move-result·v6394 ····move-result·v6
  
279 ····cmpl-float·v5,·v5,·v6395 ····cmpl-float·v5,·v5,·v6
  
280 ····if-lez·v5,·:cond_1396 ····if-lez·v5,·:cond_1
  
281 ····.line·611397 ····.line·639
282 ····aget-object·v3,·p1,·v4398 ····aget-object·v3,·p1,·v4
  
283 ····:cond_1399 ····:cond_1
284 ····add-int/lit8·v4,·v4,·0x1400 ····add-int/lit8·v4,·v4,·0x1
  
285 ····goto·:goto_1401 ····goto·:goto_1
  
286 ····:cond_2402 ····:cond_2
287 ····if-nez·v3,·:cond_3403 ····if-nez·v3,·:cond_3
  
288 ····.line·618404 ····.line·646
289 ····invoke-static·{},·Lcom/google/common/collect/ImmutableList;->of()Lcom/google/common/collect/ImmutableList;405 ····invoke-static·{},·Lcom/google/common/collect/ImmutableList;->of()Lcom/google/common/collect/ImmutableList;
  
290 ····move-result-object·v1406 ····move-result-object·v1
  
291 ····goto·:goto_2407 ····goto·:goto_2
  
292 ····.line·619408 ····.line·647
293 ····:cond_3409 ····:cond_3
294 ····iget-object·v1,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->templateIntentFactory:Lcom/android/textclassifier/common/intent/TemplateIntentFactory;410 ····iget-object·v1,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->templateIntentFactory:Lcom/android/textclassifier/common/intent/TemplateIntentFactory;
  
295 ····invoke-virtual·{v3},·Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult;->getRemoteActionTemplates()[Lcom/google/android/textclassifier/RemoteActionTemplate;411 ····invoke-virtual·{v3},·Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult;->getRemoteActionTemplates()[Lcom/google/android/textclassifier/RemoteActionTemplate;
  
296 ····move-result-object·v3412 ····move-result-object·v3
  
297 ····invoke-virtual·{v1,·v3},·Lcom/android/textclassifier/common/intent/TemplateIntentFactory;->create([Lcom/google/android/textclassifier/RemoteActionTemplate;)Lcom/google/common/collect/ImmutableList;413 ····invoke-virtual·{v1,·v3},·Lcom/android/textclassifier/common/intent/TemplateIntentFactory;->create([Lcom/google/android/textclassifier/RemoteActionTemplate;)Lcom/google/common/collect/ImmutableList;
  
298 ····move-result-object·v1414 ····move-result-object·v1
  
299 ····.line·620415 ····.line·648
300 ····:goto_2416 ····:goto_2
301 ····sget-object·v3,·Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$GPO8b-cUZbGymN45fgVNo11JSJ4;->INSTANCE:Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$GPO8b-cUZbGymN45fgVNo11JSJ4;417 ····sget-object·v3,·Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$JRO8dEkAfMFOqu4-iyLbagDQA_o;->INSTANCE:Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$JRO8dEkAfMFOqu4-iyLbagDQA_o;
  
302 ····.line·623418 ····.line·651
303 ····new-instance·v4,·Ljava/util/ArrayList;419 ····new-instance·v4,·Ljava/util/ArrayList;
  
304 ····invoke-direct·{v4},·Ljava/util/ArrayList;-><init>()V420 ····invoke-direct·{v4},·Ljava/util/ArrayList;-><init>()V
  
305 ····.line·624421 ····.line·652
306 ····invoke-virtual·{v1},·Lcom/google/common/collect/ImmutableList;->iterator()Lcom/google/common/collect/UnmodifiableIterator;422 ····invoke-virtual·{v1},·Lcom/google/common/collect/ImmutableList;->iterator()Lcom/google/common/collect/UnmodifiableIterator;
  
307 ····move-result-object·v1423 ····move-result-object·v1
  
308 ····const/4·v5,·0x1424 ····const/4·v5,·0x1
  
309 ····:goto_3425 ····:goto_3
Offset 362, 460 lines modifiedOffset 478, 460 lines modified
  
362 ····invoke-interface·{v1},·Ljava/util/Iterator;->next()Ljava/lang/Object;478 ····invoke-interface·{v1},·Ljava/util/Iterator;->next()Ljava/lang/Object;
  
363 ····move-result-object·v6479 ····move-result-object·v6
  
364 ····check-cast·v6,·Lcom/android/textclassifier/common/intent/LabeledIntent;480 ····check-cast·v6,·Lcom/android/textclassifier/common/intent/LabeledIntent;
  
365 ····.line·625481 ····.line·653
366 ····iget-object·v7,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->context:Landroid/content/Context;482 ····iget-object·v7,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->context:Landroid/content/Context;
  
367 ····invoke-virtual·{v6,·v7,·v3},·Lcom/android/textclassifier/common/intent/LabeledIntent;->resolve(Landroid/content/Context;Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser;)Lcom/android/textclassifier/common/intent/LabeledIntent$Result;483 ····invoke-virtual·{v6,·v7,·v3},·Lcom/android/textclassifier/common/intent/LabeledIntent;->resolve(Landroid/content/Context;Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser;)Lcom/android/textclassifier/common/intent/LabeledIntent$Result;
  
368 ····move-result-object·v7484 ····move-result-object·v7
  
369 ····if-nez·v7,·:cond_4485 ····if-nez·v7,·:cond_4
  
370 ····goto·:goto_3486 ····goto·:goto_3
  
371 ····.line·630487 ····.line·658
372 ····:cond_4488 ····:cond_4
373 ····iget-object·v8,·v7,·Lcom/android/textclassifier/common/intent/LabeledIntent$Result;->resolvedIntent:Landroid/content/Intent;489 ····iget-object·v8,·v7,·Lcom/android/textclassifier/common/intent/LabeledIntent$Result;->resolvedIntent:Landroid/content/Intent;
  
374 ····.line·631490 ····.line·659
375 ····iget-object·v7,·v7,·Lcom/android/textclassifier/common/intent/LabeledIntent$Result;->remoteAction:Landroidx/core/app/RemoteActionCompat;491 ····iget-object·v7,·v7,·Lcom/android/textclassifier/common/intent/LabeledIntent$Result;->remoteAction:Landroidx/core/app/RemoteActionCompat;
  
376 ····invoke-virtual·{v7},·Landroidx/core/app/RemoteActionCompat;->toRemoteAction()Landroid/app/RemoteAction;492 ····invoke-virtual·{v7},·Landroidx/core/app/RemoteActionCompat;->toRemoteAction()Landroid/app/RemoteAction;
  
377 ····move-result-object·v7493 ····move-result-object·v7
  
378 ····if-eqz·v5,·:cond_5494 ····if-eqz·v5,·:cond_5
  
379 ····.line·635495 ····.line·663
380 ····invoke-virtual·{v7},·Landroid/app/RemoteAction;->getIcon()Landroid/graphics/drawable/Icon;496 ····invoke-virtual·{v7},·Landroid/app/RemoteAction;->getIcon()Landroid/graphics/drawable/Icon;
  
381 ····move-result-object·v5497 ····move-result-object·v5
  
382 ····iget-object·v9,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->context:Landroid/content/Context;498 ····iget-object·v9,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->context:Landroid/content/Context;
  
383 ····invoke-virtual·{v5,·v9},·Landroid/graphics/drawable/Icon;->loadDrawable(Landroid/content/Context;)Landroid/graphics/drawable/Drawable;499 ····invoke-virtual·{v5,·v9},·Landroid/graphics/drawable/Icon;->loadDrawable(Landroid/content/Context;)Landroid/graphics/drawable/Drawable;
  
384 ····move-result-object·v5500 ····move-result-object·v5
  
385 ····invoke-virtual·{v0,·v5},·Landroid/view/textclassifier/TextClassification$Builder;->setIcon(Landroid/graphics/drawable/Drawable;)Landroid/view/textclassifier/TextClassification$Builder;501 ····invoke-virtual·{v0,·v5},·Landroid/view/textclassifier/TextClassification$Builder;->setIcon(Landroid/graphics/drawable/Drawable;)Landroid/view/textclassifier/TextClassification$Builder;
  
386 ····.line·636502 ····.line·664
387 ····invoke-virtual·{v7},·Landroid/app/RemoteAction;->getTitle()Ljava/lang/CharSequence;503 ····invoke-virtual·{v7},·Landroid/app/RemoteAction;->getTitle()Ljava/lang/CharSequence;
  
388 ····move-result-object·v5504 ····move-result-object·v5
  
389 ····invoke-interface·{v5},·Ljava/lang/CharSequence;->toString()Ljava/lang/String;505 ····invoke-interface·{v5},·Ljava/lang/CharSequence;->toString()Ljava/lang/String;
  
390 ····move-result-object·v5506 ····move-result-object·v5
  
391 ····invoke-virtual·{v0,·v5},·Landroid/view/textclassifier/TextClassification$Builder;->setLabel(Ljava/lang/String;)Landroid/view/textclassifier/TextClassification$Builder;507 ····invoke-virtual·{v0,·v5},·Landroid/view/textclassifier/TextClassification$Builder;->setLabel(Ljava/lang/String;)Landroid/view/textclassifier/TextClassification$Builder;
  
392 ····.line·637508 ····.line·665
393 ····invoke-virtual·{v0,·v8},·Landroid/view/textclassifier/TextClassification$Builder;->setIntent(Landroid/content/Intent;)Landroid/view/textclassifier/TextClassification$Builder;509 ····invoke-virtual·{v0,·v8},·Landroid/view/textclassifier/TextClassification$Builder;->setIntent(Landroid/content/Intent;)Landroid/view/textclassifier/TextClassification$Builder;
  
394 ····.line·638510 ····.line·666
395 ····iget-object·v5,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->context:Landroid/content/Context;511 ····iget-object·v5,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->context:Landroid/content/Context;
  
396 ····iget·v6,·v6,·Lcom/android/textclassifier/common/intent/LabeledIntent;->requestCode:I512 ····iget·v6,·v6,·Lcom/android/textclassifier/common/intent/LabeledIntent;->requestCode:I
  
397 ····.line·640513 ····.line·668
398 ····invoke-static·{v5,·v8,·v6},·Lcom/android/textclassifier/TextClassifierImpl;->createPendingIntent(Landroid/content/Context;Landroid/content/Intent;I)Landroid/app/PendingIntent;514 ····invoke-static·{v5,·v8,·v6},·Lcom/android/textclassifier/TextClassifierImpl;->createPendingIntent(Landroid/content/Context;Landroid/content/Intent;I)Landroid/app/PendingIntent;
  
399 ····move-result-object·v5515 ····move-result-object·v5
  
400 ····.line·639516 ····.line·667
401 ····invoke-static·{v5},·Lcom/android/textclassifier/TextClassifierImpl;->createIntentOnClickListener(Landroid/app/PendingIntent;)Landroid/view/View$OnClickListener;517 ····invoke-static·{v5},·Lcom/android/textclassifier/TextClassifierImpl;->createIntentOnClickListener(Landroid/app/PendingIntent;)Landroid/view/View$OnClickListener;
  
402 ····move-result-object·v5518 ····move-result-object·v5
  
403 ····.line·638519 ····.line·666
404 ····invoke-virtual·{v0,·v5},·Landroid/view/textclassifier/TextClassification$Builder;->setOnClickListener(Landroid/view/View$OnClickListener;)Landroid/view/textclassifier/TextClassification$Builder;520 ····invoke-virtual·{v0,·v5},·Landroid/view/textclassifier/TextClassification$Builder;->setOnClickListener(Landroid/view/View$OnClickListener;)Landroid/view/textclassifier/TextClassification$Builder;
  
405 ····move·v5,·v2521 ····move·v5,·v2
  
406 ····.line·643522 ····.line·671
407 ····:cond_5523 ····:cond_5
408 ····invoke-virtual·{v0,·v7},·Landroid/view/textclassifier/TextClassification$Builder;->addAction(Landroid/app/RemoteAction;)Landroid/view/textclassifier/TextClassification$Builder;524 ····invoke-virtual·{v0,·v7},·Landroid/view/textclassifier/TextClassification$Builder;->addAction(Landroid/app/RemoteAction;)Landroid/view/textclassifier/TextClassification$Builder;
  
409 ····.line·644525 ····.line·672
410 ····invoke-virtual·{v4,·v8},·Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z526 ····invoke-virtual·{v4,·v8},·Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
  
411 ····goto·:goto_3527 ····goto·:goto_3
  
412 ····.line·646528 ····.line·674
413 ····:cond_6529 ····:cond_6
414 ····new-instance·v1,·Landroid/os/Bundle;530 ····new-instance·v1,·Landroid/os/Bundle;
  
415 ····invoke-direct·{v1},·Landroid/os/Bundle;-><init>()V531 ····invoke-direct·{v1},·Landroid/os/Bundle;-><init>()V
  
416 ····.line·647532 ····.line·675
417 ····new-instance·v2,·Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$SO6kNnhgVauK__jmLEoCiyGozHw;533 ····new-instance·v2,·Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$Qwks3xU-K0S5rmi-r5zY7rcmhrA;
  
418 ····invoke-direct·{v2,·v4},·Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$SO6kNnhgVauK__jmLEoCiyGozHw;-><init>(Ljava/util/ArrayList;)V534 ····invoke-direct·{v2,·v4},·Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$Qwks3xU-K0S5rmi-r5zY7rcmhrA;-><init>(Ljava/util/ArrayList;)V
  
419 ····.line·649535 ····.line·677
420 ····invoke-virtual·{p5,·v2},·Lcom/google/common/base/Optional;->transform(Lcom/google/common/base/Function;)Lcom/google/common/base/Optional;536 ····invoke-virtual·{p5,·v2},·Lcom/google/common/base/Optional;->transform(Lcom/google/common/base/Function;)Lcom/google/common/base/Optional;
  
421 ····move-result-object·p5537 ····move-result-object·p5
  
422 ····.line·650538 ····.line·678
423 ····invoke-static·{},·Lcom/google/common/base/Optional;->absent()Lcom/google/common/base/Optional;539 ····invoke-static·{},·Lcom/google/common/base/Optional;->absent()Lcom/google/common/base/Optional;
  
424 ····move-result-object·v2540 ····move-result-object·v2
  
425 ····invoke-virtual·{p5,·v2},·Lcom/google/common/base/Optional;->or(Ljava/lang/Object;)Ljava/lang/Object;541 ····invoke-virtual·{p5,·v2},·Lcom/google/common/base/Optional;->or(Ljava/lang/Object;)Ljava/lang/Object;
  
426 ····move-result-object·p5542 ····move-result-object·p5
  
427 ····check-cast·p5,·Lcom/google/common/base/Optional;543 ····check-cast·p5,·Lcom/google/common/base/Optional;
  
428 ····.line·651544 ····.line·679
429 ····invoke-virtual·{p5},·Lcom/google/common/base/Optional;->isPresent()Z545 ····invoke-virtual·{p5},·Lcom/google/common/base/Optional;->isPresent()Z
  
430 ····move-result·v2546 ····move-result·v2
  
431 ····if-eqz·v2,·:cond_7547 ····if-eqz·v2,·:cond_7
  
432 ····.line·652548 ····.line·680
433 ····invoke-virtual·{p5},·Lcom/google/common/base/Optional;->get()Ljava/lang/Object;549 ····invoke-virtual·{p5},·Lcom/google/common/base/Optional;->get()Ljava/lang/Object;
  
434 ····move-result-object·p5550 ····move-result-object·p5
  
435 ····check-cast·p5,·Landroid/os/Bundle;551 ····check-cast·p5,·Landroid/os/Bundle;
  
436 ····invoke-static·{v1,·p5},·Lcom/android/textclassifier/ExtrasUtils;->putForeignLanguageExtra(Landroid/os/Bundle;Landroid/os/Bundle;)V552 ····invoke-static·{v1,·p5},·Lcom/android/textclassifier/ExtrasUtils;->putForeignLanguageExtra(Landroid/os/Bundle;Landroid/os/Bundle;)V
  
437 ····.line·654553 ····.line·682
438 ····:cond_7554 ····:cond_7
439 ····invoke-virtual·{v4},·Ljava/util/ArrayList;->stream()Ljava/util/stream/Stream;555 ····invoke-virtual·{v4},·Ljava/util/ArrayList;->stream()Ljava/util/stream/Stream;
  
440 ····move-result-object·p5556 ····move-result-object·p5
  
441 ····sget-object·v2,·Lcom/android/textclassifier/-$$Lambda$L_UQMPjXwBN0ch4zL2dD82nf9RI;->INSTANCE:Lcom/android/textclassifier/-$$Lambda$L_UQMPjXwBN0ch4zL2dD82nf9RI;557 ····sget-object·v2,·Lcom/android/textclassifier/-$$Lambda$L_UQMPjXwBN0ch4zL2dD82nf9RI;->INSTANCE:Lcom/android/textclassifier/-$$Lambda$L_UQMPjXwBN0ch4zL2dD82nf9RI;
  
442 ····invoke-interface·{p5,·v2},·Ljava/util/stream/Stream;->anyMatch(Ljava/util/function/Predicate;)Z558 ····invoke-interface·{p5,·v2},·Ljava/util/stream/Stream;->anyMatch(Ljava/util/function/Predicate;)Z
  
443 ····move-result·p5559 ····move-result·p5
  
444 ····if-eqz·p5,·:cond_8560 ····if-eqz·p5,·:cond_8
  
445 ····.line·656561 ····.line·684
446 ····invoke-virtual·{v4},·Ljava/util/ArrayList;->stream()Ljava/util/stream/Stream;562 ····invoke-virtual·{v4},·Ljava/util/ArrayList;->stream()Ljava/util/stream/Stream;
  
447 ····move-result-object·p5563 ····move-result-object·p5
  
448 ····sget-object·v2,·Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$Lko6ClGZ6OU9F7efqKl9WVqP3kc;->INSTANCE:Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$Lko6ClGZ6OU9F7efqKl9WVqP3kc;564 ····sget-object·v2,·Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$Lko6ClGZ6OU9F7efqKl9WVqP3kc;->INSTANCE:Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$Lko6ClGZ6OU9F7efqKl9WVqP3kc;
  
449 ····.line·657565 ····.line·685
450 ····invoke-interface·{p5,·v2},·Ljava/util/stream/Stream;->map(Ljava/util/function/Function;)Ljava/util/stream/Stream;566 ····invoke-interface·{p5,·v2},·Ljava/util/stream/Stream;->map(Ljava/util/function/Function;)Ljava/util/stream/Stream;
  
451 ····move-result-object·p5567 ····move-result-object·p5
  
452 ····sget-object·v2,·Lcom/android/textclassifier/-$$Lambda$OGSS2qx6njxlnp0dnKb4lA3jnw8;->INSTANCE:Lcom/android/textclassifier/-$$Lambda$OGSS2qx6njxlnp0dnKb4lA3jnw8;568 ····sget-object·v2,·Lcom/android/textclassifier/-$$Lambda$OGSS2qx6njxlnp0dnKb4lA3jnw8;->INSTANCE:Lcom/android/textclassifier/-$$Lambda$OGSS2qx6njxlnp0dnKb4lA3jnw8;
  
453 ····.line·658569 ····.line·686
454 ····invoke-static·{v2},·Ljava/util/stream/Collectors;->toCollection(Ljava/util/function/Supplier;)Ljava/util/stream/Collector;570 ····invoke-static·{v2},·Ljava/util/stream/Collectors;->toCollection(Ljava/util/function/Supplier;)Ljava/util/stream/Collector;
  
455 ····move-result-object·v2571 ····move-result-object·v2
  
456 ····invoke-interface·{p5,·v2},·Ljava/util/stream/Stream;->collect(Ljava/util/stream/Collector;)Ljava/lang/Object;572 ····invoke-interface·{p5,·v2},·Ljava/util/stream/Stream;->collect(Ljava/util/stream/Collector;)Ljava/lang/Object;
  
457 ····move-result-object·p5573 ····move-result-object·p5
  
458 ····check-cast·p5,·Ljava/util/ArrayList;574 ····check-cast·p5,·Ljava/util/ArrayList;
  
459 ····.line·659575 ····.line·687
460 ····invoke-static·{v1,·p5},·Lcom/android/textclassifier/ExtrasUtils;->putActionsIntents(Landroid/os/Bundle;Ljava/util/ArrayList;)V576 ····invoke-static·{v1,·p5},·Lcom/android/textclassifier/ExtrasUtils;->putActionsIntents(Landroid/os/Bundle;Ljava/util/ArrayList;)V
  
461 ····.line·661577 ····.line·689
462 ····:cond_8578 ····:cond_8
463 ····invoke-static·{v1,·p1},·Lcom/android/textclassifier/ExtrasUtils;->putEntities(Landroid/os/Bundle;[Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult;)V579 ····invoke-static·{v1,·p1},·Lcom/android/textclassifier/ExtrasUtils;->putEntities(Landroid/os/Bundle;[Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult;)V
  
464 ····.line·662580 ····.line·690
465 ····invoke-virtual·{v0,·v1},·Landroid/view/textclassifier/TextClassification$Builder;->setExtras(Landroid/os/Bundle;)Landroid/view/textclassifier/TextClassification$Builder;581 ····invoke-virtual·{v0,·v1},·Landroid/view/textclassifier/TextClassification$Builder;->setExtras(Landroid/os/Bundle;)Landroid/view/textclassifier/TextClassification$Builder;
  
466 ····.line·663582 ····.line·691
467 ····invoke-direct·{p0,·p2,·p3,·p4},·Lcom/android/textclassifier/TextClassifierImpl;->createAnnotatorId(Ljava/lang/String;II)Ljava/lang/String;583 ····invoke-direct·{p0,·p2,·p3,·p4},·Lcom/android/textclassifier/TextClassifierImpl;->createAnnotatorId(Ljava/lang/String;II)Ljava/lang/String;
  
468 ····move-result-object·p0584 ····move-result-object·p0
  
469 ····.line·664585 ····.line·692
470 ····invoke-virtual·{v0,·p0},·Landroid/view/textclassifier/TextClassification$Builder;->setId(Ljava/lang/String;)Landroid/view/textclassifier/TextClassification$Builder;586 ····invoke-virtual·{v0,·p0},·Landroid/view/textclassifier/TextClassification$Builder;->setId(Ljava/lang/String;)Landroid/view/textclassifier/TextClassification$Builder;
  
471 ····move-result-object·p0587 ····move-result-object·p0
  
472 ····invoke-virtual·{p0},·Landroid/view/textclassifier/TextClassification$Builder;->build()Landroid/view/textclassifier/TextClassification;588 ····invoke-virtual·{p0},·Landroid/view/textclassifier/TextClassification$Builder;->build()Landroid/view/textclassifier/TextClassification;
  
473 ····move-result-object·p0589 ····move-result-object·p0
  
474 ····return-object·p0590 ····return-object·p0
475 .end·method591 .end·method
  
476 .method·private·createConversationActionResult(Landroid/view/textclassifier/ConversationActions$Request;[Lcom/google/android/textclassifier/ActionsSuggestionsModel$ActionSuggestion;)Landroid/view/textclassifier/ConversationActions;592 .method·private·createConversationActionResult(Landroid/view/textclassifier/ConversationActions$Request;[Lcom/google/android/textclassifier/ActionsSuggestionsModel$ActionSuggestion;)Landroid/view/textclassifier/ConversationActions;
477 ····.locals·10593 ····.locals·10
  
478 ····.line·432594 ····.line·462
479 ····invoke-direct·{p0,·p1},·Lcom/android/textclassifier/TextClassifierImpl;->resolveActionTypesFromRequest(Landroid/view/textclassifier/ConversationActions$Request;)Ljava/util/Collection;595 ····invoke-direct·{p0,·p1},·Lcom/android/textclassifier/TextClassifierImpl;->resolveActionTypesFromRequest(Landroid/view/textclassifier/ConversationActions$Request;)Ljava/util/Collection;
  
480 ····move-result-object·v0596 ····move-result-object·v0
  
481 ····.line·433597 ····.line·463
482 ····new-instance·v1,·Ljava/util/ArrayList;598 ····new-instance·v1,·Ljava/util/ArrayList;
  
483 ····invoke-direct·{v1},·Ljava/util/ArrayList;-><init>()V599 ····invoke-direct·{v1},·Ljava/util/ArrayList;-><init>()V
  
484 ····.line·434600 ····.line·464
485 ····array-length·v2,·p2601 ····array-length·v2,·p2
  
486 ····const/4·v3,·0x0602 ····const/4·v3,·0x0
  
487 ····move·v4,·v3603 ····move·v4,·v3
  
488 ····:goto_0604 ····:goto_0
489 ····if-ge·v4,·v2,·:cond_2605 ····if-ge·v4,·v2,·:cond_2
  
490 ····aget-object·v5,·p2,·v4606 ····aget-object·v5,·p2,·v4
  
491 ····.line·435607 ····.line·465
492 ····invoke-virtual·{v5},·Lcom/google/android/textclassifier/ActionsSuggestionsModel$ActionSuggestion;->getActionType()Ljava/lang/String;608 ····invoke-virtual·{v5},·Lcom/google/android/textclassifier/ActionsSuggestionsModel$ActionSuggestion;->getActionType()Ljava/lang/String;
  
493 ····move-result-object·v6609 ····move-result-object·v6
  
494 ····.line·436610 ····.line·466
495 ····invoke-interface·{v0,·v6},·Ljava/util/Collection;->contains(Ljava/lang/Object;)Z611 ····invoke-interface·{v0,·v6},·Ljava/util/Collection;->contains(Ljava/lang/Object;)Z
  
496 ····move-result·v7612 ····move-result·v7
  
497 ····if-nez·v7,·:cond_0613 ····if-nez·v7,·:cond_0
  
498 ····goto·:goto_1614 ····goto·:goto_1
  
499 ····.line·439615 ····.line·469
500 ····:cond_0616 ····:cond_0
501 ····iget-object·v7,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->context:Landroid/content/Context;617 ····iget-object·v7,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->context:Landroid/content/Context;
  
502 ····iget-object·v8,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->templateIntentFactory:Lcom/android/textclassifier/common/intent/TemplateIntentFactory;618 ····iget-object·v8,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->templateIntentFactory:Lcom/android/textclassifier/common/intent/TemplateIntentFactory;
  
503 ····.line·440619 ····.line·470
504 ····invoke-static·{v7,·v8,·v5},·Lcom/android/textclassifier/ActionsSuggestionsHelper;->createLabeledIntentResult(Landroid/content/Context;Lcom/android/textclassifier/common/intent/TemplateIntentFactory;Lcom/google/android/textclassifier/ActionsSuggestionsModel$ActionSuggestion;)Lcom/android/textclassifier/common/intent/LabeledIntent$Result;620 ····invoke-static·{v7,·v8,·v5},·Lcom/android/textclassifier/ActionsSuggestionsHelper;->createLabeledIntentResult(Landroid/content/Context;Lcom/android/textclassifier/common/intent/TemplateIntentFactory;Lcom/google/android/textclassifier/ActionsSuggestionsModel$ActionSuggestion;)Lcom/android/textclassifier/common/intent/LabeledIntent$Result;
  
505 ····move-result-object·v7621 ····move-result-object·v7
  
506 ····const/4·v8,·0x0622 ····const/4·v8,·0x0
  
507 ····.line·443623 ····.line·473
508 ····new-instance·v9,·Landroid/os/Bundle;624 ····new-instance·v9,·Landroid/os/Bundle;
  
509 ····invoke-direct·{v9},·Landroid/os/Bundle;-><init>()V625 ····invoke-direct·{v9},·Landroid/os/Bundle;-><init>()V
  
510 ····if-eqz·v7,·:cond_1626 ····if-eqz·v7,·:cond_1
  
511 ····.line·445627 ····.line·475
512 ····iget-object·v8,·v7,·Lcom/android/textclassifier/common/intent/LabeledIntent$Result;->remoteAction:Landroidx/core/app/RemoteActionCompat;628 ····iget-object·v8,·v7,·Lcom/android/textclassifier/common/intent/LabeledIntent$Result;->remoteAction:Landroidx/core/app/RemoteActionCompat;
  
513 ····invoke-virtual·{v8},·Landroidx/core/app/RemoteActionCompat;->toRemoteAction()Landroid/app/RemoteAction;629 ····invoke-virtual·{v8},·Landroidx/core/app/RemoteActionCompat;->toRemoteAction()Landroid/app/RemoteAction;
  
514 ····move-result-object·v8630 ····move-result-object·v8
  
515 ····.line·446631 ····.line·476
516 ····iget-object·v7,·v7,·Lcom/android/textclassifier/common/intent/LabeledIntent$Result;->resolvedIntent:Landroid/content/Intent;632 ····iget-object·v7,·v7,·Lcom/android/textclassifier/common/intent/LabeledIntent$Result;->resolvedIntent:Landroid/content/Intent;
  
517 ····.line·447633 ····.line·477
518 ····invoke-static·{v7},·Lcom/android/textclassifier/TextClassifierImpl;->stripPackageInfoFromIntent(Landroid/content/Intent;)Landroid/content/Intent;634 ····invoke-static·{v7},·Lcom/android/textclassifier/TextClassifierImpl;->stripPackageInfoFromIntent(Landroid/content/Intent;)Landroid/content/Intent;
  
519 ····move-result-object·v7635 ····move-result-object·v7
  
520 ····.line·446636 ····.line·476
521 ····invoke-static·{v9,·v7},·Lcom/android/textclassifier/ExtrasUtils;->putActionIntent(Landroid/os/Bundle;Landroid/content/Intent;)V637 ····invoke-static·{v9,·v7},·Lcom/android/textclassifier/ExtrasUtils;->putActionIntent(Landroid/os/Bundle;Landroid/content/Intent;)V
  
522 ····.line·449638 ····.line·479
523 ····:cond_1639 ····:cond_1
524 ····invoke-virtual·{v5},·Lcom/google/android/textclassifier/ActionsSuggestionsModel$ActionSuggestion;->getSerializedEntityData()[B640 ····invoke-virtual·{v5},·Lcom/google/android/textclassifier/ActionsSuggestionsModel$ActionSuggestion;->getSerializedEntityData()[B
  
525 ····move-result-object·v7641 ····move-result-object·v7
  
526 ····invoke-static·{v9,·v7},·Lcom/android/textclassifier/ExtrasUtils;->putSerializedEntityData(Landroid/os/Bundle;[B)V642 ····invoke-static·{v9,·v7},·Lcom/android/textclassifier/ExtrasUtils;->putSerializedEntityData(Landroid/os/Bundle;[B)V
  
527 ····.line·451643 ····.line·481
528 ····invoke-virtual·{v5},·Lcom/google/android/textclassifier/ActionsSuggestionsModel$ActionSuggestion;->getEntityData()[Lcom/google/android/textclassifier/NamedVariant;644 ····invoke-virtual·{v5},·Lcom/google/android/textclassifier/ActionsSuggestionsModel$ActionSuggestion;->getEntityData()[Lcom/google/android/textclassifier/NamedVariant;
  
529 ····move-result-object·v7645 ····move-result-object·v7
  
530 ····invoke-static·{v7},·Lcom/android/textclassifier/common/intent/TemplateIntentFactory;->nameVariantsToBundle([Lcom/google/android/textclassifier/NamedVariant;)Landroid/os/Bundle;646 ····invoke-static·{v7},·Lcom/android/textclassifier/common/intent/TemplateIntentFactory;->nameVariantsToBundle([Lcom/google/android/textclassifier/NamedVariant;)Landroid/os/Bundle;
  
531 ····move-result-object·v7647 ····move-result-object·v7
  
532 ····.line·450648 ····.line·480
533 ····invoke-static·{v9,·v7},·Lcom/android/textclassifier/ExtrasUtils;->putEntitiesExtras(Landroid/os/Bundle;Landroid/os/Bundle;)V649 ····invoke-static·{v9,·v7},·Lcom/android/textclassifier/ExtrasUtils;->putEntitiesExtras(Landroid/os/Bundle;Landroid/os/Bundle;)V
  
534 ····.line·452650 ····.line·482
535 ····new-instance·v7,·Landroid/view/textclassifier/ConversationAction$Builder;651 ····new-instance·v7,·Landroid/view/textclassifier/ConversationAction$Builder;
  
536 ····invoke-direct·{v7,·v6},·Landroid/view/textclassifier/ConversationAction$Builder;-><init>(Ljava/lang/String;)V652 ····invoke-direct·{v7,·v6},·Landroid/view/textclassifier/ConversationAction$Builder;-><init>(Ljava/lang/String;)V
  
537 ····.line·454653 ····.line·484
538 ····invoke-virtual·{v5},·Lcom/google/android/textclassifier/ActionsSuggestionsModel$ActionSuggestion;->getScore()F654 ····invoke-virtual·{v5},·Lcom/google/android/textclassifier/ActionsSuggestionsModel$ActionSuggestion;->getScore()F
  
539 ····move-result·v6655 ····move-result·v6
  
540 ····invoke-virtual·{v7,·v6},·Landroid/view/textclassifier/ConversationAction$Builder;->setConfidenceScore(F)Landroid/view/textclassifier/ConversationAction$Builder;656 ····invoke-virtual·{v7,·v6},·Landroid/view/textclassifier/ConversationAction$Builder;->setConfidenceScore(F)Landroid/view/textclassifier/ConversationAction$Builder;
  
541 ····move-result-object·v6657 ····move-result-object·v6
  
542 ····.line·455658 ····.line·485
543 ····invoke-virtual·{v5},·Lcom/google/android/textclassifier/ActionsSuggestionsModel$ActionSuggestion;->getResponseText()Ljava/lang/String;659 ····invoke-virtual·{v5},·Lcom/google/android/textclassifier/ActionsSuggestionsModel$ActionSuggestion;->getResponseText()Ljava/lang/String;
  
544 ····move-result-object·v5660 ····move-result-object·v5
  
545 ····invoke-virtual·{v6,·v5},·Landroid/view/textclassifier/ConversationAction$Builder;->setTextReply(Ljava/lang/CharSequence;)Landroid/view/textclassifier/ConversationAction$Builder;661 ····invoke-virtual·{v6,·v5},·Landroid/view/textclassifier/ConversationAction$Builder;->setTextReply(Ljava/lang/CharSequence;)Landroid/view/textclassifier/ConversationAction$Builder;
  
546 ····move-result-object·v5662 ····move-result-object·v5
  
547 ····.line·456663 ····.line·486
548 ····invoke-virtual·{v5,·v8},·Landroid/view/textclassifier/ConversationAction$Builder;->setAction(Landroid/app/RemoteAction;)Landroid/view/textclassifier/ConversationAction$Builder;664 ····invoke-virtual·{v5,·v8},·Landroid/view/textclassifier/ConversationAction$Builder;->setAction(Landroid/app/RemoteAction;)Landroid/view/textclassifier/ConversationAction$Builder;
  
549 ····move-result-object·v5665 ····move-result-object·v5
  
550 ····.line·457666 ····.line·487
551 ····invoke-virtual·{v5,·v9},·Landroid/view/textclassifier/ConversationAction$Builder;->setExtras(Landroid/os/Bundle;)Landroid/view/textclassifier/ConversationAction$Builder;667 ····invoke-virtual·{v5,·v9},·Landroid/view/textclassifier/ConversationAction$Builder;->setExtras(Landroid/os/Bundle;)Landroid/view/textclassifier/ConversationAction$Builder;
  
552 ····move-result-object·v5668 ····move-result-object·v5
  
553 ····.line·458669 ····.line·488
554 ····invoke-virtual·{v5},·Landroid/view/textclassifier/ConversationAction$Builder;->build()Landroid/view/textclassifier/ConversationAction;670 ····invoke-virtual·{v5},·Landroid/view/textclassifier/ConversationAction$Builder;->build()Landroid/view/textclassifier/ConversationAction;
  
555 ····move-result-object·v5671 ····move-result-object·v5
  
556 ····.line·452672 ····.line·482
557 ····invoke-interface·{v1,·v5},·Ljava/util/List;->add(Ljava/lang/Object;)Z673 ····invoke-interface·{v1,·v5},·Ljava/util/List;->add(Ljava/lang/Object;)Z
  
558 ····:goto_1674 ····:goto_1
559 ····add-int/lit8·v4,·v4,·0x1675 ····add-int/lit8·v4,·v4,·0x1
  
560 ····goto·:goto_0676 ····goto·:goto_0
  
561 ····.line·460677 ····.line·490
562 ····:cond_2678 ····:cond_2
563 ····invoke-static·{v1},·Lcom/android/textclassifier/ActionsSuggestionsHelper;->removeActionsWithDuplicates(Ljava/util/List;)Ljava/util/List;679 ····invoke-static·{v1},·Lcom/android/textclassifier/ActionsSuggestionsHelper;->removeActionsWithDuplicates(Ljava/util/List;)Ljava/util/List;
  
564 ····move-result-object·p2680 ····move-result-object·p2
  
565 ····.line·461681 ····.line·491
566 ····invoke-virtual·{p1},·Landroid/view/textclassifier/ConversationActions$Request;->getMaxSuggestions()I682 ····invoke-virtual·{p1},·Landroid/view/textclassifier/ConversationActions$Request;->getMaxSuggestions()I
  
567 ····move-result·v0683 ····move-result·v0
  
568 ····if-ltz·v0,·:cond_3684 ····if-ltz·v0,·:cond_3
  
569 ····.line·462685 ····.line·492
570 ····invoke-interface·{p2},·Ljava/util/List;->size()I686 ····invoke-interface·{p2},·Ljava/util/List;->size()I
  
571 ····move-result·v0687 ····move-result·v0
  
572 ····invoke-virtual·{p1},·Landroid/view/textclassifier/ConversationActions$Request;->getMaxSuggestions()I688 ····invoke-virtual·{p1},·Landroid/view/textclassifier/ConversationActions$Request;->getMaxSuggestions()I
  
573 ····move-result·v1689 ····move-result·v1
  
574 ····if-le·v0,·v1,·:cond_3690 ····if-le·v0,·v1,·:cond_3
  
575 ····.line·463691 ····.line·493
576 ····invoke-virtual·{p1},·Landroid/view/textclassifier/ConversationActions$Request;->getMaxSuggestions()I692 ····invoke-virtual·{p1},·Landroid/view/textclassifier/ConversationActions$Request;->getMaxSuggestions()I
  
577 ····move-result·v0693 ····move-result·v0
  
578 ····invoke-interface·{p2,·v3,·v0},·Ljava/util/List;->subList(II)Ljava/util/List;694 ····invoke-interface·{p2,·v3,·v0},·Ljava/util/List;->subList(II)Ljava/util/List;
  
579 ····move-result-object·p2695 ····move-result-object·p2
  
580 ····.line·465696 ····.line·495
581 ····:cond_3697 ····:cond_3
582 ····iget-object·v0,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->lock:Ljava/lang/Object;698 ····iget-object·v0,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->lock:Ljava/lang/Object;
  
583 ····monitor-enter·v0699 ····monitor-enter·v0
  
584 ····.line·466700 ····.line·496
585 ····:try_start_0701 ····:try_start_0
586 ····iget-object·v1,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->context:Landroid/content/Context;702 ····iget-object·v1,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->context:Landroid/content/Context;
  
587 ····.line·469703 ····.line·499
588 ····invoke-virtual·{p1},·Landroid/view/textclassifier/ConversationActions$Request;->getConversation()Ljava/util/List;704 ····invoke-virtual·{p1},·Landroid/view/textclassifier/ConversationActions$Request;->getConversation()Ljava/util/List;
  
589 ····move-result-object·p1705 ····move-result-object·p1
  
590 ····iget-object·v2,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->actionModelInUse:Lcom/android/textclassifier/ModelFileManager$ModelFile;706 ····iget-object·v2,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->actionModelInUse:Lcom/android/textclassifier/ModelFileManager$ModelFile;
  
591 ····.line·470707 ····.line·500
592 ····invoke-static·{v2},·Lcom/google/common/base/Optional;->fromNullable(Ljava/lang/Object;)Lcom/google/common/base/Optional;708 ····invoke-static·{v2},·Lcom/google/common/base/Optional;->fromNullable(Ljava/lang/Object;)Lcom/google/common/base/Optional;
  
593 ····move-result-object·v2709 ····move-result-object·v2
  
594 ····iget-object·v3,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->annotatorModelInUse:Lcom/android/textclassifier/ModelFileManager$ModelFile;710 ····iget-object·v3,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->annotatorModelInUse:Lcom/android/textclassifier/ModelFileManager$ModelFile;
  
595 ····.line·471711 ····.line·501
596 ····invoke-static·{v3},·Lcom/google/common/base/Optional;->fromNullable(Ljava/lang/Object;)Lcom/google/common/base/Optional;712 ····invoke-static·{v3},·Lcom/google/common/base/Optional;->fromNullable(Ljava/lang/Object;)Lcom/google/common/base/Optional;
  
597 ····move-result-object·v3713 ····move-result-object·v3
  
598 ····iget-object·p0,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->langIdModelInUse:Lcom/android/textclassifier/ModelFileManager$ModelFile;714 ····iget-object·p0,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->langIdModelInUse:Lcom/android/textclassifier/ModelFileManager$ModelFile;
  
599 ····.line·472715 ····.line·502
600 ····invoke-static·{p0},·Lcom/google/common/base/Optional;->fromNullable(Ljava/lang/Object;)Lcom/google/common/base/Optional;716 ····invoke-static·{p0},·Lcom/google/common/base/Optional;->fromNullable(Ljava/lang/Object;)Lcom/google/common/base/Optional;
  
601 ····move-result-object·p0717 ····move-result-object·p0
  
602 ····.line·467718 ····.line·497
603 ····invoke-static·{v1,·p1,·v2,·v3,·p0},·Lcom/android/textclassifier/ActionsSuggestionsHelper;->createResultId(Landroid/content/Context;Ljava/util/List;Lcom/google/common/base/Optional;Lcom/google/common/base/Optional;Lcom/google/common/base/Optional;)Ljava/lang/String;719 ····invoke-static·{v1,·p1,·v2,·v3,·p0},·Lcom/android/textclassifier/ActionsSuggestionsHelper;->createResultId(Landroid/content/Context;Ljava/util/List;Lcom/google/common/base/Optional;Lcom/google/common/base/Optional;Lcom/google/common/base/Optional;)Ljava/lang/String;
  
604 ····move-result-object·p0720 ····move-result-object·p0
  
605 ····.line·473721 ····.line·503
606 ····new-instance·p1,·Landroid/view/textclassifier/ConversationActions;722 ····new-instance·p1,·Landroid/view/textclassifier/ConversationActions;
  
607 ····invoke-direct·{p1,·p2,·p0},·Landroid/view/textclassifier/ConversationActions;-><init>(Ljava/util/List;Ljava/lang/String;)V723 ····invoke-direct·{p1,·p2,·p0},·Landroid/view/textclassifier/ConversationActions;-><init>(Ljava/util/List;Ljava/lang/String;)V
  
608 ····monitor-exit·v0724 ····monitor-exit·v0
  
609 ····return-object·p1725 ····return-object·p1
  
610 ····:catchall_0726 ····:catchall_0
611 ····move-exception·p0727 ····move-exception·p0
  
612 ····.line·474728 ····.line·504
613 ····monitor-exit·v0729 ····monitor-exit·v0
614 ····:try_end_0730 ····:try_end_0
615 ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0731 ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0
  
616 ····throw·p0732 ····throw·p0
617 .end·method733 .end·method
  
618 .method·private·static·createIntentOnClickListener(Landroid/app/PendingIntent;)Landroid/view/View$OnClickListener;734 .method·private·static·createIntentOnClickListener(Landroid/app/PendingIntent;)Landroid/view/View$OnClickListener;
619 ····.locals·1735 ····.locals·1
  
620 ····.line·668736 ····.line·696
621 ····invoke-static·{p0},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;737 ····invoke-static·{p0},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
  
622 ····.line·669738 ····.line·697
623 ····new-instance·v0,·Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$2dNQE4N9CXjJ-oio8KtmeiaIZ_M;739 ····new-instance·v0,·Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$wlF5Lmygug2HifzLlH779V8jReI;
  
624 ····invoke-direct·{v0,·p0},·Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$2dNQE4N9CXjJ-oio8KtmeiaIZ_M;-><init>(Landroid/app/PendingIntent;)V740 ····invoke-direct·{v0,·p0},·Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$wlF5Lmygug2HifzLlH779V8jReI;-><init>(Landroid/app/PendingIntent;)V
  
625 ····return-object·v0741 ····return-object·v0
626 .end·method742 .end·method
  
627 .method·private·static·createPendingIntent(Landroid/content/Context;Landroid/content/Intent;I)Landroid/app/PendingIntent;743 .method·private·static·createPendingIntent(Landroid/content/Context;Landroid/content/Intent;I)Landroid/app/PendingIntent;
628 ····.locals·1744 ····.locals·1
  
629 ····const/high16·v0,·0x8000000745 ····const/high16·v0,·0x8000000
  
630 ····.line·777746 ····.line·820
631 ····invoke-static·{p0,·p2,·p1,·v0},·Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;747 ····invoke-static·{p0,·p2,·p1,·v0},·Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
  
632 ····move-result-object·p0748 ····move-result-object·p0
  
633 ····return-object·p0749 ····return-object·p0
634 .end·method750 .end·method
  
Offset 831, 25 lines modifiedOffset 947, 25 lines modified
831 ············")",947 ············")",
832 ············"Lcom/google/common/collect/ImmutableList<",948 ············"Lcom/google/common/collect/ImmutableList<",
833 ············"Ljava/lang/String;",949 ············"Ljava/lang/String;",
834 ············">;"950 ············">;"
835 ········}951 ········}
836 ····.end·annotation952 ····.end·annotation
  
837 ····.line·699953 ····.line·727
838 ····new-instance·v0,·Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$rAyJ3L-N3WE5epfPetkTw3MVoy4;954 ····new-instance·v0,·Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$AY5eoUbVCLXhR9opqmynv0zcSU0;
  
839 ····invoke-direct·{v0,·p0,·p2},·Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$rAyJ3L-N3WE5epfPetkTw3MVoy4;-><init>(Lcom/android/textclassifier/TextClassifierImpl;Ljava/lang/CharSequence;)V955 ····invoke-direct·{v0,·p0,·p2},·Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$AY5eoUbVCLXhR9opqmynv0zcSU0;-><init>(Lcom/android/textclassifier/TextClassifierImpl;Ljava/lang/CharSequence;)V
  
840 ····.line·700956 ····.line·728
841 ····invoke-virtual·{p1,·v0},·Lcom/google/common/base/Optional;->transform(Lcom/google/common/base/Function;)Lcom/google/common/base/Optional;957 ····invoke-virtual·{p1,·v0},·Lcom/google/common/base/Optional;->transform(Lcom/google/common/base/Function;)Lcom/google/common/base/Optional;
  
842 ····move-result-object·p0958 ····move-result-object·p0
  
843 ····.line·706959 ····.line·734
844 ····invoke-static·{},·Lcom/google/common/collect/ImmutableList;->of()Lcom/google/common/collect/ImmutableList;960 ····invoke-static·{},·Lcom/google/common/collect/ImmutableList;->of()Lcom/google/common/collect/ImmutableList;
  
845 ····move-result-object·p1961 ····move-result-object·p1
  
846 ····invoke-virtual·{p0,·p1},·Lcom/google/common/base/Optional;->or(Ljava/lang/Object;)Ljava/lang/Object;962 ····invoke-virtual·{p0,·p1},·Lcom/google/common/base/Optional;->or(Ljava/lang/Object;)Ljava/lang/Object;
  
847 ····move-result-object·p0963 ····move-result-object·p0
Offset 858, 48 lines modifiedOffset 974, 48 lines modified
  
858 ····return-object·p0974 ····return-object·p0
859 .end·method975 .end·method
  
860 .method·private·static·detectLanguages(Lcom/google/android/textclassifier/LangIdModel;Ljava/lang/CharSequence;F)Lcom/android/textclassifier/EntityConfidence;976 .method·private·static·detectLanguages(Lcom/google/android/textclassifier/LangIdModel;Ljava/lang/CharSequence;F)Lcom/android/textclassifier/EntityConfidence;
861 ····.locals·4977 ····.locals·4
  
862 ····.line·715978 ····.line·743
863 ····invoke-interface·{p1},·Ljava/lang/CharSequence;->toString()Ljava/lang/String;979 ····invoke-interface·{p1},·Ljava/lang/CharSequence;->toString()Ljava/lang/String;
  
864 ····move-result-object·p1980 ····move-result-object·p1
  
865 ····invoke-virtual·{p0,·p1},·Lcom/google/android/textclassifier/LangIdModel;->detectLanguages(Ljava/lang/String;)[Lcom/google/android/textclassifier/LangIdModel$LanguageResult;981 ····invoke-virtual·{p0,·p1},·Lcom/google/android/textclassifier/LangIdModel;->detectLanguages(Ljava/lang/String;)[Lcom/google/android/textclassifier/LangIdModel$LanguageResult;
  
866 ····move-result-object·p0982 ····move-result-object·p0
  
867 ····.line·716983 ····.line·744
868 ····new-instance·p1,·Landroid/util/ArrayMap;984 ····new-instance·p1,·Landroid/util/ArrayMap;
  
869 ····invoke-direct·{p1},·Landroid/util/ArrayMap;-><init>()V985 ····invoke-direct·{p1},·Landroid/util/ArrayMap;-><init>()V
  
870 ····.line·717986 ····.line·745
871 ····array-length·v0,·p0987 ····array-length·v0,·p0
  
872 ····const/4·v1,·0x0988 ····const/4·v1,·0x0
  
873 ····:goto_0989 ····:goto_0
874 ····if-ge·v1,·v0,·:cond_1990 ····if-ge·v1,·v0,·:cond_1
  
875 ····aget-object·v2,·p0,·v1991 ····aget-object·v2,·p0,·v1
  
876 ····.line·718992 ····.line·746
877 ····invoke-virtual·{v2},·Lcom/google/android/textclassifier/LangIdModel$LanguageResult;->getScore()F993 ····invoke-virtual·{v2},·Lcom/google/android/textclassifier/LangIdModel$LanguageResult;->getScore()F
  
878 ····move-result·v3994 ····move-result·v3
  
879 ····cmpl-float·v3,·v3,·p2995 ····cmpl-float·v3,·v3,·p2
  
880 ····if-ltz·v3,·:cond_0996 ····if-ltz·v3,·:cond_0
  
881 ····.line·719997 ····.line·747
882 ····invoke-virtual·{v2},·Lcom/google/android/textclassifier/LangIdModel$LanguageResult;->getLanguage()Ljava/lang/String;998 ····invoke-virtual·{v2},·Lcom/google/android/textclassifier/LangIdModel$LanguageResult;->getLanguage()Ljava/lang/String;
  
883 ····move-result-object·v3999 ····move-result-object·v3
  
884 ····invoke-virtual·{v2},·Lcom/google/android/textclassifier/LangIdModel$LanguageResult;->getScore()F1000 ····invoke-virtual·{v2},·Lcom/google/android/textclassifier/LangIdModel$LanguageResult;->getScore()F
  
885 ····move-result·v21001 ····move-result·v2
Offset 911, 15 lines modifiedOffset 1027, 15 lines modified
911 ····invoke-interface·{p1,·v3,·v2},·Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;1027 ····invoke-interface·{p1,·v3,·v2},·Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
  
912 ····:cond_01028 ····:cond_0
913 ····add-int/lit8·v1,·v1,·0x11029 ····add-int/lit8·v1,·v1,·0x1
  
914 ····goto·:goto_01030 ····goto·:goto_0
  
915 ····.line·7221031 ····.line·750
916 ····:cond_11032 ····:cond_1
917 ····new-instance·p0,·Lcom/android/textclassifier/EntityConfidence;1033 ····new-instance·p0,·Lcom/android/textclassifier/EntityConfidence;
  
918 ····invoke-direct·{p0,·p1},·Lcom/android/textclassifier/EntityConfidence;-><init>(Ljava/util/Map;)V1034 ····invoke-direct·{p0,·p1},·Lcom/android/textclassifier/EntityConfidence;-><init>(Ljava/util/Map;)V
  
919 ····return-object·p01035 ····return-object·p0
920 .end·method1036 .end·method
Offset 928, 45 lines modifiedOffset 1044, 42 lines modified
928 ····.locals·61044 ····.locals·6
929 ····.annotation·system·Ldalvik/annotation/Throws;1045 ····.annotation·system·Ldalvik/annotation/Throws;
930 ········value·=·{1046 ········value·=·{
931 ············Ljava/io/FileNotFoundException;1047 ············Ljava/io/FileNotFoundException;
932 ········}1048 ········}
933 ····.end·annotation1049 ····.end·annotation
  
934 ····.line·5511050 ····.line·580
935 ····iget-object·v0,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->lock:Ljava/lang/Object;1051 ····iget-object·v0,·p0,·Lcom/android/textclassifier/TextClassifierImpl;->lock:Ljava/lang/Object;
  
Max diff block lines reached; 109941/151195 bytes (72.71%) of diff not shown.