| | | |
Offset 1, 140 lines modified | Offset 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·fields | 9 | #·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·methods | 26 | #·direct·methods |
| 27 | .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 |
| |
20 | .method·constructor·<init>(Landroid/content/Context;Lcom/android/textclassifier/TextClassifierSettings;Lcom/android/textclassifier/ModelFileManager;)V | 51 | .method·constructor·<init>(Landroid/content/Context;Lcom/android/textclassifier/TextClassifierSettings;)V |
21 | ····.locals·1 | 52 | ····.locals·1 |
| |
22 | ····.line·136 | 53 | ····.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;)V | 55 | ····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-void | 56 | ····return-void |
26 | .end·method | 57 | .end·method |
| |
27 | .method·constructor·<init>(Landroid/content/Context;Lcom/android/textclassifier/TextClassifierSettings;Lcom/android/textclassifier/ModelFileManager;Landroid/view/textclassifier/TextClassifier;)V | 58 | .method·constructor·<init>(Landroid/content/Context;Lcom/android/textclassifier/TextClassifierSettings;Landroid/view/textclassifier/TextClassifier;)V |
28 | ····.locals·1 | 59 | ····.locals·6 |
| |
29 | ····.line·124 | 60 | ····.line·139 |
30 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V | 61 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V |
| |
31 | ····.line·93 | 62 | ····.line·109 |
32 | ····new-instance·v0,·Ljava/lang/Object; | 63 | ····new-instance·v0,·Ljava/lang/Object; |
| |
33 | ····invoke-direct·{v0},·Ljava/lang/Object;-><init>()V | 64 | ····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·113 | 66 | ····.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>()V | 68 | ····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·125 | 70 | ····.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; |
| |
| 74 | ····.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; |
| |
43 | ····.line·126 | 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·127 | 82 | ····.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 |
| |
| 86 | ····invoke-direct·{p1,·p2},·Lcom/android/textclassifier/common/statsd/GenerateLinksLogger;-><init>(I)V |
51 | ····.line·128 | |
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; |
| |
| 90 | ····new-instance·p2,·Lcom/android/textclassifier/ModelFileManager$ModelFileSupplierImpl; |
55 | ····.line·130 | |
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()I | 92 | ····sget-object·v3,·Lcom/android/textclassifier/TextClassifierImpl;->ANNOTATOR_UPDATED_MODEL_FILE:Ljava/io/File; |
| |
59 | ····move-result·p2 | 93 | ····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)V | 94 | ····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" |
| |
| 96 | ····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; |
| |
62 | ····.line·131 | 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>()V | 126 | ····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-void | 128 | ····return-void |
67 | .end·method | 129 | .end·method |
| |
68 | .method·private·static·checkMainThread()V | 130 | .method·private·static·checkMainThread()V |
69 | ····.locals·3 | 131 | ····.locals·3 |
| |
70 | ····.line·770 | 132 | ····.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·v0 | 134 | ····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·v1 | 136 | ····move-result-object·v1 |
| |
75 | ····if-ne·v0,·v1,·:cond_0 | 137 | ····if-ne·v0,·v1,·:cond_0 |
| |
76 | ····.line·771 | 138 | ····.line·814 |
77 | ····new-instance·v0,·Ljava/lang/Exception; | 139 | ····new-instance·v0,·Ljava/lang/Exception; |
| |
78 | ····invoke-direct·{v0},·Ljava/lang/Exception;-><init>()V | 140 | ····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 modified | Offset 266, 45 lines modified |
| |
150 | ····if-nez·p0,·:cond_0 | 266 | ····if-nez·p0,·:cond_0 |
| |
151 | ····const-string·p0,·"" | 267 | ····const-string·p0,·"" |
| |
152 | ····goto·:goto_0 | 268 | ····goto·:goto_0 |
| |
153 | ····.line·592 | 269 | ····.line·620 |
154 | ····:cond_0 | 270 | ····: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·p0 | 272 | ····move-result-object·p0 |
| |
157 | ····:goto_0 | 273 | ····:goto_0 |
158 | ····return-object·p0 | 274 | ····return-object·p0 |
159 | .end·method | 275 | .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·5 | 277 | ····.locals·5 |
| |
162 | ····.line·580 | 278 | ····.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·v0 | 280 | ····monitor-enter·v0 |
| |
165 | ····.line·581 | 281 | ····.line·609 |
166 | ····:try_start_0 | 282 | ····: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,·0x2 | 284 | ····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,·0x0 | 286 | ····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·587 | 288 | ····.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·v4 | 290 | ····move-result-object·v4 |
| |
175 | ····aput-object·v4,·v2,·v3 | 291 | ····aput-object·v4,·v2,·v3 |
| |
176 | ····const/4·v3,·0x1 | 292 | ····const/4·v3,·0x1 |
Offset 197, 32 lines modified | Offset 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·p0 | 314 | ····move-result-object·p0 |
| |
199 | ····aput-object·p0,·v2,·v3 | 315 | ····aput-object·p0,·v2,·v3 |
| |
200 | ····.line·586 | 316 | ····.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·p0 | 318 | ····move-result-object·p0 |
| |
203 | ····.line·581 | 319 | ····.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·p0 | 321 | ····move-result-object·p0 |
| |
206 | ····monitor-exit·v0 | 322 | ····monitor-exit·v0 |
| |
207 | ····return-object·p0 | 323 | ····return-object·p0 |
| |
208 | ····:catchall_0 | 324 | ····:catchall_0 |
209 | ····move-exception·p0 | 325 | ····move-exception·p0 |
| |
210 | ····.line·588 | 326 | ····.line·616 |
211 | ····monitor-exit·v0 | 327 | ····monitor-exit·v0 |
212 | ····:try_end_0 | 328 | ····:try_end_0 |
213 | ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0 | 329 | ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0 |
| |
214 | ····throw·p0 | 330 | ····throw·p0 |
215 | .end·method | 331 | .end·method |
| |
Offset 237, 120 lines modified | Offset 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·annotation | 358 | ····.end·annotation |
| |
243 | ····.line·601 | 359 | ····.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·v0 | 361 | ····move-result-object·v0 |
| |
246 | ····.line·602 | 362 | ····.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>()V | 364 | ····invoke-direct·{v1},·Landroid/view/textclassifier/TextClassification$Builder;-><init>()V |
| |
249 | ····.line·603 | 365 | ····.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·v0 | 367 | ····move-result-object·v0 |
| |
252 | ····.line·605 | 368 | ····.line·633 |
253 | ····array-length·v1,·p1 | 369 | ····array-length·v1,·p1 |
| |
254 | ····const/4·v2,·0x0 | 370 | ····const/4·v2,·0x0 |
| |
255 | ····if-lez·v1,·:cond_0 | 371 | ····if-lez·v1,·:cond_0 |
| |
256 | ····.line·607 | 372 | ····.line·635 |
257 | ····aget-object·v3,·p1,·v2 | 373 | ····aget-object·v3,·p1,·v2 |
| |
258 | ····goto·:goto_0 | 374 | ····goto·:goto_0 |
| |
259 | ····:cond_0 | 375 | ····:cond_0 |
260 | ····const/4·v3,·0x0 | 376 | ····const/4·v3,·0x0 |
| |
261 | ····:goto_0 | 377 | ····:goto_0 |
262 | ····move·v4,·v2 | 378 | ····move·v4,·v2 |
| |
263 | ····:goto_1 | 379 | ····:goto_1 |
264 | ····if-ge·v4,·v1,·:cond_2 | 380 | ····if-ge·v4,·v1,·:cond_2 |
| |
265 | ····.line·609 | 381 | ····.line·637 |
266 | ····aget-object·v5,·p1,·v4 | 382 | ····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·v5 | 384 | ····move-result-object·v5 |
| |
269 | ····aget-object·v6,·p1,·v4 | 385 | ····aget-object·v6,·p1,·v4 |
| |
270 | ····invoke-virtual·{v6},·Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult;->getScore()F | 386 | ····invoke-virtual·{v6},·Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult;->getScore()F |
| |
271 | ····move-result·v6 | 387 | ····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·610 | 389 | ····.line·638 |
274 | ····aget-object·v5,·p1,·v4 | 390 | ····aget-object·v5,·p1,·v4 |
| |
275 | ····invoke-virtual·{v5},·Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult;->getScore()F | 391 | ····invoke-virtual·{v5},·Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult;->getScore()F |
| |
276 | ····move-result·v5 | 392 | ····move-result·v5 |
| |
277 | ····invoke-virtual·{v3},·Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult;->getScore()F | 393 | ····invoke-virtual·{v3},·Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult;->getScore()F |
| |
278 | ····move-result·v6 | 394 | ····move-result·v6 |
| |
279 | ····cmpl-float·v5,·v5,·v6 | 395 | ····cmpl-float·v5,·v5,·v6 |
| |
280 | ····if-lez·v5,·:cond_1 | 396 | ····if-lez·v5,·:cond_1 |
| |
281 | ····.line·611 | 397 | ····.line·639 |
282 | ····aget-object·v3,·p1,·v4 | 398 | ····aget-object·v3,·p1,·v4 |
| |
283 | ····:cond_1 | 399 | ····:cond_1 |
284 | ····add-int/lit8·v4,·v4,·0x1 | 400 | ····add-int/lit8·v4,·v4,·0x1 |
| |
285 | ····goto·:goto_1 | 401 | ····goto·:goto_1 |
| |
286 | ····:cond_2 | 402 | ····:cond_2 |
287 | ····if-nez·v3,·:cond_3 | 403 | ····if-nez·v3,·:cond_3 |
| |
288 | ····.line·618 | 404 | ····.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·v1 | 406 | ····move-result-object·v1 |
| |
291 | ····goto·:goto_2 | 407 | ····goto·:goto_2 |
| |
292 | ····.line·619 | 408 | ····.line·647 |
293 | ····:cond_3 | 409 | ····: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·v3 | 412 | ····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·v1 | 414 | ····move-result-object·v1 |
| |
299 | ····.line·620 | 415 | ····.line·648 |
300 | ····:goto_2 | 416 | ····: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·623 | 418 | ····.line·651 |
303 | ····new-instance·v4,·Ljava/util/ArrayList; | 419 | ····new-instance·v4,·Ljava/util/ArrayList; |
| |
304 | ····invoke-direct·{v4},·Ljava/util/ArrayList;-><init>()V | 420 | ····invoke-direct·{v4},·Ljava/util/ArrayList;-><init>()V |
| |
305 | ····.line·624 | 421 | ····.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·v1 | 423 | ····move-result-object·v1 |
| |
308 | ····const/4·v5,·0x1 | 424 | ····const/4·v5,·0x1 |
| |
309 | ····:goto_3 | 425 | ····:goto_3 |
Offset 362, 460 lines modified | Offset 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·v6 | 479 | ····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·625 | 481 | ····.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·v7 | 484 | ····move-result-object·v7 |
| |
369 | ····if-nez·v7,·:cond_4 | 485 | ····if-nez·v7,·:cond_4 |
| |
370 | ····goto·:goto_3 | 486 | ····goto·:goto_3 |
| |
371 | ····.line·630 | 487 | ····.line·658 |
372 | ····:cond_4 | 488 | ····: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·631 | 490 | ····.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·v7 | 493 | ····move-result-object·v7 |
| |
378 | ····if-eqz·v5,·:cond_5 | 494 | ····if-eqz·v5,·:cond_5 |
| |
379 | ····.line·635 | 495 | ····.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·v5 | 497 | ····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·v5 | 500 | ····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·636 | 502 | ····.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·v5 | 504 | ····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·v5 | 506 | ····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·637 | 508 | ····.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·638 | 510 | ····.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:I | 512 | ····iget·v6,·v6,·Lcom/android/textclassifier/common/intent/LabeledIntent;->requestCode:I |
| |
397 | ····.line·640 | 513 | ····.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·v5 | 515 | ····move-result-object·v5 |
| |
400 | ····.line·639 | 516 | ····.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·v5 | 518 | ····move-result-object·v5 |
| |
403 | ····.line·638 | 519 | ····.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,·v2 | 521 | ····move·v5,·v2 |
| |
406 | ····.line·643 | 522 | ····.line·671 |
407 | ····:cond_5 | 523 | ····: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·644 | 525 | ····.line·672 |
410 | ····invoke-virtual·{v4,·v8},·Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z | 526 | ····invoke-virtual·{v4,·v8},·Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z |
| |
411 | ····goto·:goto_3 | 527 | ····goto·:goto_3 |
| |
412 | ····.line·646 | 528 | ····.line·674 |
413 | ····:cond_6 | 529 | ····:cond_6 |
414 | ····new-instance·v1,·Landroid/os/Bundle; | 530 | ····new-instance·v1,·Landroid/os/Bundle; |
| |
415 | ····invoke-direct·{v1},·Landroid/os/Bundle;-><init>()V | 531 | ····invoke-direct·{v1},·Landroid/os/Bundle;-><init>()V |
| |
416 | ····.line·647 | 532 | ····.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;)V | 534 | ····invoke-direct·{v2,·v4},·Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$Qwks3xU-K0S5rmi-r5zY7rcmhrA;-><init>(Ljava/util/ArrayList;)V |
| |
419 | ····.line·649 | 535 | ····.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·p5 | 537 | ····move-result-object·p5 |
| |
422 | ····.line·650 | 538 | ····.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·v2 | 540 | ····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·p5 | 542 | ····move-result-object·p5 |
| |
427 | ····check-cast·p5,·Lcom/google/common/base/Optional; | 543 | ····check-cast·p5,·Lcom/google/common/base/Optional; |
| |
428 | ····.line·651 | 544 | ····.line·679 |
429 | ····invoke-virtual·{p5},·Lcom/google/common/base/Optional;->isPresent()Z | 545 | ····invoke-virtual·{p5},·Lcom/google/common/base/Optional;->isPresent()Z |
| |
430 | ····move-result·v2 | 546 | ····move-result·v2 |
| |
431 | ····if-eqz·v2,·:cond_7 | 547 | ····if-eqz·v2,·:cond_7 |
| |
432 | ····.line·652 | 548 | ····.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·p5 | 550 | ····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;)V | 552 | ····invoke-static·{v1,·p5},·Lcom/android/textclassifier/ExtrasUtils;->putForeignLanguageExtra(Landroid/os/Bundle;Landroid/os/Bundle;)V |
| |
437 | ····.line·654 | 553 | ····.line·682 |
438 | ····:cond_7 | 554 | ····: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·p5 | 556 | ····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;)Z | 558 | ····invoke-interface·{p5,·v2},·Ljava/util/stream/Stream;->anyMatch(Ljava/util/function/Predicate;)Z |
| |
443 | ····move-result·p5 | 559 | ····move-result·p5 |
| |
444 | ····if-eqz·p5,·:cond_8 | 560 | ····if-eqz·p5,·:cond_8 |
| |
445 | ····.line·656 | 561 | ····.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·p5 | 563 | ····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·657 | 565 | ····.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·p5 | 567 | ····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·658 | 569 | ····.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·v2 | 571 | ····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·p5 | 573 | ····move-result-object·p5 |
| |
458 | ····check-cast·p5,·Ljava/util/ArrayList; | 574 | ····check-cast·p5,·Ljava/util/ArrayList; |
| |
459 | ····.line·659 | 575 | ····.line·687 |
460 | ····invoke-static·{v1,·p5},·Lcom/android/textclassifier/ExtrasUtils;->putActionsIntents(Landroid/os/Bundle;Ljava/util/ArrayList;)V | 576 | ····invoke-static·{v1,·p5},·Lcom/android/textclassifier/ExtrasUtils;->putActionsIntents(Landroid/os/Bundle;Ljava/util/ArrayList;)V |
| |
461 | ····.line·661 | 577 | ····.line·689 |
462 | ····:cond_8 | 578 | ····:cond_8 |
463 | ····invoke-static·{v1,·p1},·Lcom/android/textclassifier/ExtrasUtils;->putEntities(Landroid/os/Bundle;[Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult;)V | 579 | ····invoke-static·{v1,·p1},·Lcom/android/textclassifier/ExtrasUtils;->putEntities(Landroid/os/Bundle;[Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult;)V |
| |
464 | ····.line·662 | 580 | ····.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·663 | 582 | ····.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·p0 | 584 | ····move-result-object·p0 |
| |
469 | ····.line·664 | 585 | ····.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·p0 | 587 | ····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·p0 | 589 | ····move-result-object·p0 |
| |
474 | ····return-object·p0 | 590 | ····return-object·p0 |
475 | .end·method | 591 | .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·10 | 593 | ····.locals·10 |
| |
478 | ····.line·432 | 594 | ····.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·v0 | 596 | ····move-result-object·v0 |
| |
481 | ····.line·433 | 597 | ····.line·463 |
482 | ····new-instance·v1,·Ljava/util/ArrayList; | 598 | ····new-instance·v1,·Ljava/util/ArrayList; |
| |
483 | ····invoke-direct·{v1},·Ljava/util/ArrayList;-><init>()V | 599 | ····invoke-direct·{v1},·Ljava/util/ArrayList;-><init>()V |
| |
484 | ····.line·434 | 600 | ····.line·464 |
485 | ····array-length·v2,·p2 | 601 | ····array-length·v2,·p2 |
| |
486 | ····const/4·v3,·0x0 | 602 | ····const/4·v3,·0x0 |
| |
487 | ····move·v4,·v3 | 603 | ····move·v4,·v3 |
| |
488 | ····:goto_0 | 604 | ····:goto_0 |
489 | ····if-ge·v4,·v2,·:cond_2 | 605 | ····if-ge·v4,·v2,·:cond_2 |
| |
490 | ····aget-object·v5,·p2,·v4 | 606 | ····aget-object·v5,·p2,·v4 |
| |
491 | ····.line·435 | 607 | ····.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·v6 | 609 | ····move-result-object·v6 |
| |
494 | ····.line·436 | 610 | ····.line·466 |
495 | ····invoke-interface·{v0,·v6},·Ljava/util/Collection;->contains(Ljava/lang/Object;)Z | 611 | ····invoke-interface·{v0,·v6},·Ljava/util/Collection;->contains(Ljava/lang/Object;)Z |
| |
496 | ····move-result·v7 | 612 | ····move-result·v7 |
| |
497 | ····if-nez·v7,·:cond_0 | 613 | ····if-nez·v7,·:cond_0 |
| |
498 | ····goto·:goto_1 | 614 | ····goto·:goto_1 |
| |
499 | ····.line·439 | 615 | ····.line·469 |
500 | ····:cond_0 | 616 | ····: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·440 | 619 | ····.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·v7 | 621 | ····move-result-object·v7 |
| |
506 | ····const/4·v8,·0x0 | 622 | ····const/4·v8,·0x0 |
| |
507 | ····.line·443 | 623 | ····.line·473 |
508 | ····new-instance·v9,·Landroid/os/Bundle; | 624 | ····new-instance·v9,·Landroid/os/Bundle; |
| |
509 | ····invoke-direct·{v9},·Landroid/os/Bundle;-><init>()V | 625 | ····invoke-direct·{v9},·Landroid/os/Bundle;-><init>()V |
| |
510 | ····if-eqz·v7,·:cond_1 | 626 | ····if-eqz·v7,·:cond_1 |
| |
511 | ····.line·445 | 627 | ····.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·v8 | 630 | ····move-result-object·v8 |
| |
515 | ····.line·446 | 631 | ····.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·447 | 633 | ····.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·v7 | 635 | ····move-result-object·v7 |
| |
520 | ····.line·446 | 636 | ····.line·476 |
521 | ····invoke-static·{v9,·v7},·Lcom/android/textclassifier/ExtrasUtils;->putActionIntent(Landroid/os/Bundle;Landroid/content/Intent;)V | 637 | ····invoke-static·{v9,·v7},·Lcom/android/textclassifier/ExtrasUtils;->putActionIntent(Landroid/os/Bundle;Landroid/content/Intent;)V |
| |
522 | ····.line·449 | 638 | ····.line·479 |
523 | ····:cond_1 | 639 | ····:cond_1 |
524 | ····invoke-virtual·{v5},·Lcom/google/android/textclassifier/ActionsSuggestionsModel$ActionSuggestion;->getSerializedEntityData()[B | 640 | ····invoke-virtual·{v5},·Lcom/google/android/textclassifier/ActionsSuggestionsModel$ActionSuggestion;->getSerializedEntityData()[B |
| |
525 | ····move-result-object·v7 | 641 | ····move-result-object·v7 |
| |
526 | ····invoke-static·{v9,·v7},·Lcom/android/textclassifier/ExtrasUtils;->putSerializedEntityData(Landroid/os/Bundle;[B)V | 642 | ····invoke-static·{v9,·v7},·Lcom/android/textclassifier/ExtrasUtils;->putSerializedEntityData(Landroid/os/Bundle;[B)V |
| |
527 | ····.line·451 | 643 | ····.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·v7 | 645 | ····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·v7 | 647 | ····move-result-object·v7 |
| |
532 | ····.line·450 | 648 | ····.line·480 |
533 | ····invoke-static·{v9,·v7},·Lcom/android/textclassifier/ExtrasUtils;->putEntitiesExtras(Landroid/os/Bundle;Landroid/os/Bundle;)V | 649 | ····invoke-static·{v9,·v7},·Lcom/android/textclassifier/ExtrasUtils;->putEntitiesExtras(Landroid/os/Bundle;Landroid/os/Bundle;)V |
| |
534 | ····.line·452 | 650 | ····.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;)V | 652 | ····invoke-direct·{v7,·v6},·Landroid/view/textclassifier/ConversationAction$Builder;-><init>(Ljava/lang/String;)V |
| |
537 | ····.line·454 | 653 | ····.line·484 |
538 | ····invoke-virtual·{v5},·Lcom/google/android/textclassifier/ActionsSuggestionsModel$ActionSuggestion;->getScore()F | 654 | ····invoke-virtual·{v5},·Lcom/google/android/textclassifier/ActionsSuggestionsModel$ActionSuggestion;->getScore()F |
| |
539 | ····move-result·v6 | 655 | ····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·v6 | 657 | ····move-result-object·v6 |
| |
542 | ····.line·455 | 658 | ····.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·v5 | 660 | ····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·v5 | 662 | ····move-result-object·v5 |
| |
547 | ····.line·456 | 663 | ····.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·v5 | 665 | ····move-result-object·v5 |
| |
550 | ····.line·457 | 666 | ····.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·v5 | 668 | ····move-result-object·v5 |
| |
553 | ····.line·458 | 669 | ····.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·v5 | 671 | ····move-result-object·v5 |
| |
556 | ····.line·452 | 672 | ····.line·482 |
557 | ····invoke-interface·{v1,·v5},·Ljava/util/List;->add(Ljava/lang/Object;)Z | 673 | ····invoke-interface·{v1,·v5},·Ljava/util/List;->add(Ljava/lang/Object;)Z |
| |
558 | ····:goto_1 | 674 | ····:goto_1 |
559 | ····add-int/lit8·v4,·v4,·0x1 | 675 | ····add-int/lit8·v4,·v4,·0x1 |
| |
560 | ····goto·:goto_0 | 676 | ····goto·:goto_0 |
| |
561 | ····.line·460 | 677 | ····.line·490 |
562 | ····:cond_2 | 678 | ····: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·p2 | 680 | ····move-result-object·p2 |
| |
565 | ····.line·461 | 681 | ····.line·491 |
566 | ····invoke-virtual·{p1},·Landroid/view/textclassifier/ConversationActions$Request;->getMaxSuggestions()I | 682 | ····invoke-virtual·{p1},·Landroid/view/textclassifier/ConversationActions$Request;->getMaxSuggestions()I |
| |
567 | ····move-result·v0 | 683 | ····move-result·v0 |
| |
568 | ····if-ltz·v0,·:cond_3 | 684 | ····if-ltz·v0,·:cond_3 |
| |
569 | ····.line·462 | 685 | ····.line·492 |
570 | ····invoke-interface·{p2},·Ljava/util/List;->size()I | 686 | ····invoke-interface·{p2},·Ljava/util/List;->size()I |
| |
571 | ····move-result·v0 | 687 | ····move-result·v0 |
| |
572 | ····invoke-virtual·{p1},·Landroid/view/textclassifier/ConversationActions$Request;->getMaxSuggestions()I | 688 | ····invoke-virtual·{p1},·Landroid/view/textclassifier/ConversationActions$Request;->getMaxSuggestions()I |
| |
573 | ····move-result·v1 | 689 | ····move-result·v1 |
| |
574 | ····if-le·v0,·v1,·:cond_3 | 690 | ····if-le·v0,·v1,·:cond_3 |
| |
575 | ····.line·463 | 691 | ····.line·493 |
576 | ····invoke-virtual·{p1},·Landroid/view/textclassifier/ConversationActions$Request;->getMaxSuggestions()I | 692 | ····invoke-virtual·{p1},·Landroid/view/textclassifier/ConversationActions$Request;->getMaxSuggestions()I |
| |
577 | ····move-result·v0 | 693 | ····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·p2 | 695 | ····move-result-object·p2 |
| |
580 | ····.line·465 | 696 | ····.line·495 |
581 | ····:cond_3 | 697 | ····: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·v0 | 699 | ····monitor-enter·v0 |
| |
584 | ····.line·466 | 700 | ····.line·496 |
585 | ····:try_start_0 | 701 | ····: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·469 | 703 | ····.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·p1 | 705 | ····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·470 | 707 | ····.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·v2 | 709 | ····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·471 | 711 | ····.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·v3 | 713 | ····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·472 | 715 | ····.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·p0 | 717 | ····move-result-object·p0 |
| |
602 | ····.line·467 | 718 | ····.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·p0 | 720 | ····move-result-object·p0 |
| |
605 | ····.line·473 | 721 | ····.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;)V | 723 | ····invoke-direct·{p1,·p2,·p0},·Landroid/view/textclassifier/ConversationActions;-><init>(Ljava/util/List;Ljava/lang/String;)V |
| |
608 | ····monitor-exit·v0 | 724 | ····monitor-exit·v0 |
| |
609 | ····return-object·p1 | 725 | ····return-object·p1 |
| |
610 | ····:catchall_0 | 726 | ····:catchall_0 |
611 | ····move-exception·p0 | 727 | ····move-exception·p0 |
| |
612 | ····.line·474 | 728 | ····.line·504 |
613 | ····monitor-exit·v0 | 729 | ····monitor-exit·v0 |
614 | ····:try_end_0 | 730 | ····:try_end_0 |
615 | ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0 | 731 | ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0 |
| |
616 | ····throw·p0 | 732 | ····throw·p0 |
617 | .end·method | 733 | .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·1 | 735 | ····.locals·1 |
| |
620 | ····.line·668 | 736 | ····.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·669 | 738 | ····.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;)V | 740 | ····invoke-direct·{v0,·p0},·Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$wlF5Lmygug2HifzLlH779V8jReI;-><init>(Landroid/app/PendingIntent;)V |
| |
625 | ····return-object·v0 | 741 | ····return-object·v0 |
626 | .end·method | 742 | .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·1 | 744 | ····.locals·1 |
| |
629 | ····const/high16·v0,·0x8000000 | 745 | ····const/high16·v0,·0x8000000 |
| |
630 | ····.line·777 | 746 | ····.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·p0 | 748 | ····move-result-object·p0 |
| |
633 | ····return-object·p0 | 749 | ····return-object·p0 |
634 | .end·method | 750 | .end·method |
| |
Offset 831, 25 lines modified | Offset 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·annotation | 952 | ····.end·annotation |
| |
837 | ····.line·699 | 953 | ····.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;)V | 955 | ····invoke-direct·{v0,·p0,·p2},·Lcom/android/textclassifier/-$$Lambda$TextClassifierImpl$AY5eoUbVCLXhR9opqmynv0zcSU0;-><init>(Lcom/android/textclassifier/TextClassifierImpl;Ljava/lang/CharSequence;)V |
| |
840 | ····.line·700 | 956 | ····.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·p0 | 958 | ····move-result-object·p0 |
| |
843 | ····.line·706 | 959 | ····.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·p1 | 961 | ····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·p0 | 963 | ····move-result-object·p0 |
Offset 858, 48 lines modified | Offset 974, 48 lines modified |
| |
858 | ····return-object·p0 | 974 | ····return-object·p0 |
859 | .end·method | 975 | .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·4 | 977 | ····.locals·4 |
| |
862 | ····.line·715 | 978 | ····.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·p1 | 980 | ····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·p0 | 982 | ····move-result-object·p0 |
| |
867 | ····.line·716 | 983 | ····.line·744 |
868 | ····new-instance·p1,·Landroid/util/ArrayMap; | 984 | ····new-instance·p1,·Landroid/util/ArrayMap; |
| |
869 | ····invoke-direct·{p1},·Landroid/util/ArrayMap;-><init>()V | 985 | ····invoke-direct·{p1},·Landroid/util/ArrayMap;-><init>()V |
| |
870 | ····.line·717 | 986 | ····.line·745 |
871 | ····array-length·v0,·p0 | 987 | ····array-length·v0,·p0 |
| |
872 | ····const/4·v1,·0x0 | 988 | ····const/4·v1,·0x0 |
| |
873 | ····:goto_0 | 989 | ····:goto_0 |
874 | ····if-ge·v1,·v0,·:cond_1 | 990 | ····if-ge·v1,·v0,·:cond_1 |
| |
875 | ····aget-object·v2,·p0,·v1 | 991 | ····aget-object·v2,·p0,·v1 |
| |
876 | ····.line·718 | 992 | ····.line·746 |
877 | ····invoke-virtual·{v2},·Lcom/google/android/textclassifier/LangIdModel$LanguageResult;->getScore()F | 993 | ····invoke-virtual·{v2},·Lcom/google/android/textclassifier/LangIdModel$LanguageResult;->getScore()F |
| |
878 | ····move-result·v3 | 994 | ····move-result·v3 |
| |
879 | ····cmpl-float·v3,·v3,·p2 | 995 | ····cmpl-float·v3,·v3,·p2 |
| |
880 | ····if-ltz·v3,·:cond_0 | 996 | ····if-ltz·v3,·:cond_0 |
| |
881 | ····.line·719 | 997 | ····.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·v3 | 999 | ····move-result-object·v3 |
| |
884 | ····invoke-virtual·{v2},·Lcom/google/android/textclassifier/LangIdModel$LanguageResult;->getScore()F | 1000 | ····invoke-virtual·{v2},·Lcom/google/android/textclassifier/LangIdModel$LanguageResult;->getScore()F |
| |
885 | ····move-result·v2 | 1001 | ····move-result·v2 |
Offset 911, 15 lines modified | Offset 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_0 | 1028 | ····:cond_0 |
913 | ····add-int/lit8·v1,·v1,·0x1 | 1029 | ····add-int/lit8·v1,·v1,·0x1 |
| |
914 | ····goto·:goto_0 | 1030 | ····goto·:goto_0 |
| |
915 | ····.line·722 | 1031 | ····.line·750 |
916 | ····:cond_1 | 1032 | ····: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;)V | 1034 | ····invoke-direct·{p0,·p1},·Lcom/android/textclassifier/EntityConfidence;-><init>(Ljava/util/Map;)V |
| |
919 | ····return-object·p0 | 1035 | ····return-object·p0 |
920 | .end·method | 1036 | .end·method |
Offset 928, 45 lines modified | Offset 1044, 42 lines modified |
928 | ····.locals·6 | 1044 | ····.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·annotation | 1049 | ····.end·annotation |
| |
934 | ····.line·551 | 1050 | ····.line·580 |
Max diff block lines reached; 109965/151195 bytes (72.73%) of diff not shown.
|