| | | |
Offset 9, 19 lines modified | Offset 9, 17 lines modified |
9 | #·annotations | 9 | #·annotations |
10 | .annotation·system·Ldalvik/annotation/MemberClasses; | 10 | .annotation·system·Ldalvik/annotation/MemberClasses; |
11 | ····value·=·{ | 11 | ····value·=·{ |
12 | ········Lcom/google/android/textclassifier/AnnotatorModel$AnnotationOptions;, | 12 | ········Lcom/google/android/textclassifier/AnnotatorModel$AnnotationOptions;, |
13 | ········Lcom/google/android/textclassifier/AnnotatorModel$ClassificationOptions;, | 13 | ········Lcom/google/android/textclassifier/AnnotatorModel$ClassificationOptions;, |
14 | ········Lcom/google/android/textclassifier/AnnotatorModel$SelectionOptions;, | 14 | ········Lcom/google/android/textclassifier/AnnotatorModel$SelectionOptions;, |
15 | ········Lcom/google/android/textclassifier/AnnotatorModel$InputFragment;, | 15 | ········Lcom/google/android/textclassifier/AnnotatorModel$InputFragment;, |
16 | ········Lcom/google/android/textclassifier/AnnotatorModel$Annotations;, | |
17 | ········Lcom/google/android/textclassifier/AnnotatorModel$AnnotatedSpan;, | 16 | ········Lcom/google/android/textclassifier/AnnotatorModel$AnnotatedSpan;, |
18 | ········Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult;, | 17 | ········Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult;, |
19 | ········Lcom/google/android/textclassifier/AnnotatorModel$DatetimeResult;, | 18 | ········Lcom/google/android/textclassifier/AnnotatorModel$DatetimeResult;, |
20 | ········Lcom/google/android/textclassifier/AnnotatorModel$AnnotateMode;, | |
21 | ········Lcom/google/android/textclassifier/AnnotatorModel$AnnotationUsecase; | 19 | ········Lcom/google/android/textclassifier/AnnotatorModel$AnnotationUsecase; |
22 | ····} | 20 | ····} |
23 | .end·annotation | 21 | .end·annotation |
| |
| |
24 | #·static·fields | 22 | #·static·fields |
25 | .field·public·static·final·INVALID_LATITUDE:D·=·180.0 | 23 | .field·public·static·final·INVALID_LATITUDE:D·=·180.0 |
Offset 59, 289 lines modified | Offset 57, 139 lines modified |
| |
59 | #·direct·methods | 57 | #·direct·methods |
60 | .method·static·constructor·<clinit>()V | 58 | .method·static·constructor·<clinit>()V |
61 | ····.locals·1 | 59 | ····.locals·1 |
| |
62 | ····const-string·v0,·"textclassifier" | 60 | ····const-string·v0,·"textclassifier" |
| |
63 | ····.line·34 | 61 | ····.line·32 |
64 | ····invoke-static·{v0},·Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V | 62 | ····invoke-static·{v0},·Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V |
| |
65 | ····return-void | 63 | ····return-void |
66 | .end·method | 64 | .end·method |
| |
67 | .method·public·constructor·<init>(I)V | 65 | .method·public·constructor·<init>(I)V |
68 | ····.locals·2 | 66 | ····.locals·2 |
| |
69 | ····.line·101 | 67 | ····.line·80 |
70 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V | 68 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V |
| |
71 | ····.line·31 | 69 | ····.line·29 |
72 | ····new-instance·v0,·Ljava/util/concurrent/atomic/AtomicBoolean; | 70 | ····new-instance·v0,·Ljava/util/concurrent/atomic/AtomicBoolean; |
| |
73 | ····const/4·v1,·0x0 | 71 | ····const/4·v1,·0x0 |
| |
74 | ····invoke-direct·{v0,·v1},·Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V | 72 | ····invoke-direct·{v0,·v1},·Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V |
| |
75 | ····iput-object·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->isClosed:Ljava/util/concurrent/atomic/AtomicBoolean; | 73 | ····iput-object·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->isClosed:Ljava/util/concurrent/atomic/AtomicBoolean; |
| |
76 | ····.line·102 | 74 | ····.line·81 |
77 | ····invoke-static·{p1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeNewAnnotator(I)J | 75 | ····invoke-static·{p1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeNewAnnotator(I)J |
| |
78 | ····move-result-wide·v0 | 76 | ····move-result-wide·v0 |
| |
79 | ····iput-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J | 77 | ····iput-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J |
| |
80 | ····const-wide/16·p0,·0x0 | 78 | ····const-wide/16·p0,·0x0 |
| |
81 | ····cmp-long·p0,·v0,·p0 | 79 | ····cmp-long·p0,·v0,·p0 |
| |
82 | ····if-eqz·p0,·:cond_0 | 80 | ····if-eqz·p0,·:cond_0 |
| |
83 | ····return-void | 81 | ····return-void |
| |
84 | ····.line·104 | 82 | ····.line·83 |
85 | ····:cond_0 | 83 | ····:cond_0 |
86 | ····new-instance·p0,·Ljava/lang/IllegalArgumentException; | 84 | ····new-instance·p0,·Ljava/lang/IllegalArgumentException; |
| |
87 | ····const-string·p1,·"Couldn\'t·initialize·TC·from·file·descriptor." | 85 | ····const-string·p1,·"Couldn\'t·initialize·TC·from·file·descriptor." |
| |
88 | ····invoke-direct·{p0,·p1},·Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V | 86 | ····invoke-direct·{p0,·p1},·Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
| |
89 | ····throw·p0 | 87 | ····throw·p0 |
90 | .end·method | 88 | .end·method |
| |
91 | .method·public·constructor·<init>(Landroid/content/res/AssetFileDescriptor;)V | |
92 | ····.locals·5 | |
| |
93 | ····.line·123 | |
94 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V | |
| |
95 | ····.line·31 | |
96 | ····new-instance·v0,·Ljava/util/concurrent/atomic/AtomicBoolean; | |
| |
97 | ····const/4·v1,·0x0 | |
| |
98 | ····invoke-direct·{v0,·v1},·Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V | |
| |
99 | ····iput-object·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->isClosed:Ljava/util/concurrent/atomic/AtomicBoolean; | |
| |
100 | ····.line·126 | |
101 | ····invoke-virtual·{p1},·Landroid/content/res/AssetFileDescriptor;->getParcelFileDescriptor()Landroid/os/ParcelFileDescriptor; | |
| |
102 | ····move-result-object·v0 | |
| |
103 | ····invoke-virtual·{v0},·Landroid/os/ParcelFileDescriptor;->getFd()I | |
| |
104 | ····move-result·v0 | |
| |
105 | ····.line·127 | |
106 | ····invoke-virtual·{p1},·Landroid/content/res/AssetFileDescriptor;->getStartOffset()J | |
| |
107 | ····move-result-wide·v1 | |
| |
108 | ····.line·128 | |
109 | ····invoke-virtual·{p1},·Landroid/content/res/AssetFileDescriptor;->getLength()J | |
| |
110 | ····move-result-wide·v3 | |
| |
111 | ····.line·125 | |
112 | ····invoke-static·{v0,·v1,·v2,·v3,·v4},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeNewAnnotatorWithOffset(IJJ)J | |
| |
113 | ····move-result-wide·v0 | |
| |
114 | ····iput-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J | |
| |
115 | ····const-wide/16·p0,·0x0 | |
| |
116 | ····cmp-long·p0,·v0,·p0 | |
| |
117 | ····if-eqz·p0,·:cond_0 | |
| |
118 | ····return-void | |
| |
119 | ····.line·130 | |
120 | ····:cond_0 | |
121 | ····new-instance·p0,·Ljava/lang/IllegalArgumentException; | |
| |
122 | ····const-string·p1,·"Couldn\'t·initialize·TC·from·asset·file·descriptor." | |
| |
123 | ····invoke-direct·{p0,·p1},·Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V | |
| |
124 | ····throw·p0 | |
125 | .end·method | |
| |
126 | .method·public·constructor·<init>(Ljava/lang/String;)V | 89 | .method·public·constructor·<init>(Ljava/lang/String;)V |
127 | ····.locals·2 | 90 | ····.locals·2 |
| |
128 | ····.line·112 | 91 | ····.line·91 |
129 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V | 92 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V |
| |
130 | ····.line·31 | 93 | ····.line·29 |
131 | ····new-instance·v0,·Ljava/util/concurrent/atomic/AtomicBoolean; | 94 | ····new-instance·v0,·Ljava/util/concurrent/atomic/AtomicBoolean; |
| |
132 | ····const/4·v1,·0x0 | 95 | ····const/4·v1,·0x0 |
| |
133 | ····invoke-direct·{v0,·v1},·Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V | 96 | ····invoke-direct·{v0,·v1},·Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V |
| |
134 | ····iput-object·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->isClosed:Ljava/util/concurrent/atomic/AtomicBoolean; | 97 | ····iput-object·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->isClosed:Ljava/util/concurrent/atomic/AtomicBoolean; |
| |
135 | ····.line·113 | 98 | ····.line·92 |
136 | ····invoke-static·{p1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeNewAnnotatorFromPath(Ljava/lang/String;)J | 99 | ····invoke-static·{p1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeNewAnnotatorFromPath(Ljava/lang/String;)J |
| |
137 | ····move-result-wide·v0 | 100 | ····move-result-wide·v0 |
| |
138 | ····iput-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J | 101 | ····iput-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J |
| |
139 | ····const-wide/16·p0,·0x0 | 102 | ····const-wide/16·p0,·0x0 |
| |
140 | ····cmp-long·p0,·v0,·p0 | 103 | ····cmp-long·p0,·v0,·p0 |
| |
141 | ····if-eqz·p0,·:cond_0 | 104 | ····if-eqz·p0,·:cond_0 |
| |
142 | ····return-void | 105 | ····return-void |
| |
143 | ····.line·115 | 106 | ····.line·94 |
144 | ····:cond_0 | 107 | ····:cond_0 |
145 | ····new-instance·p0,·Ljava/lang/IllegalArgumentException; | 108 | ····new-instance·p0,·Ljava/lang/IllegalArgumentException; |
| |
146 | ····const-string·p1,·"Couldn\'t·initialize·TC·from·given·file." | 109 | ····const-string·p1,·"Couldn\'t·initialize·TC·from·given·file." |
| |
147 | ····invoke-direct·{p0,·p1},·Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V | 110 | ····invoke-direct·{p0,·p1},·Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
| |
148 | ····throw·p0 | 111 | ····throw·p0 |
149 | .end·method | 112 | .end·method |
| |
150 | .method·public·static·getLocales(I)Ljava/lang/String; | 113 | .method·public·static·getLocales(I)Ljava/lang/String; |
151 | ····.locals·0 | 114 | ····.locals·0 |
| |
152 | ····.line·268 | 115 | ····.line·219 |
153 | ····invoke-static·{p0},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeGetLocales(I)Ljava/lang/String; | 116 | ····invoke-static·{p0},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeGetLocales(I)Ljava/lang/String; |
| |
154 | ····move-result-object·p0 | 117 | ····move-result-object·p0 |
| |
155 | ····return-object·p0 | 118 | ····return-object·p0 |
156 | .end·method | 119 | .end·method |
| |
157 | .method·public·static·getLocales(Landroid/content/res/AssetFileDescriptor;)Ljava/lang/String; | |
158 | ····.locals·5 | |
| |
159 | ····.line·274 | |
160 | ····invoke-virtual·{p0},·Landroid/content/res/AssetFileDescriptor;->getParcelFileDescriptor()Landroid/os/ParcelFileDescriptor; | |
| |
161 | ····move-result-object·v0 | |
| |
162 | ····invoke-virtual·{v0},·Landroid/os/ParcelFileDescriptor;->getFd()I | |
| |
163 | ····move-result·v0 | |
| |
164 | ····.line·275 | |
165 | ····invoke-virtual·{p0},·Landroid/content/res/AssetFileDescriptor;->getStartOffset()J | |
| |
166 | ····move-result-wide·v1 | |
| |
167 | ····.line·276 | |
168 | ····invoke-virtual·{p0},·Landroid/content/res/AssetFileDescriptor;->getLength()J | |
| |
169 | ····move-result-wide·v3 | |
| |
170 | ····.line·273 | |
171 | ····invoke-static·{v0,·v1,·v2,·v3,·v4},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeGetLocalesWithOffset(IJJ)Ljava/lang/String; | |
| |
172 | ····move-result-object·p0 | |
| |
173 | ····return-object·p0 | |
174 | .end·method | |
| |
175 | .method·public·static·getName(I)Ljava/lang/String; | 120 | .method·public·static·getName(I)Ljava/lang/String; |
176 | ····.locals·0 | 121 | ····.locals·0 |
| |
177 | ····.line·294 | 122 | ····.line·229 |
178 | ····invoke-static·{p0},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeGetName(I)Ljava/lang/String; | 123 | ····invoke-static·{p0},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeGetName(I)Ljava/lang/String; |
| |
179 | ····move-result-object·p0 | 124 | ····move-result-object·p0 |
| |
180 | ····return-object·p0 | 125 | ····return-object·p0 |
181 | .end·method | 126 | .end·method |
| |
182 | .method·public·static·getName(Landroid/content/res/AssetFileDescriptor;)Ljava/lang/String; | |
183 | ····.locals·5 | |
| |
184 | ····.line·300 | |
185 | ····invoke-virtual·{p0},·Landroid/content/res/AssetFileDescriptor;->getParcelFileDescriptor()Landroid/os/ParcelFileDescriptor; | |
| |
186 | ····move-result-object·v0 | |
| |
187 | ····invoke-virtual·{v0},·Landroid/os/ParcelFileDescriptor;->getFd()I | |
| |
188 | ····move-result·v0 | |
| |
189 | ····.line·301 | |
190 | ····invoke-virtual·{p0},·Landroid/content/res/AssetFileDescriptor;->getStartOffset()J | |
| |
191 | ····move-result-wide·v1 | |
| |
192 | ····.line·302 | |
193 | ····invoke-virtual·{p0},·Landroid/content/res/AssetFileDescriptor;->getLength()J | |
| |
194 | ····move-result-wide·v3 | |
| |
195 | ····.line·299 | |
196 | ····invoke-static·{v0,·v1,·v2,·v3,·v4},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeGetNameWithOffset(IJJ)Ljava/lang/String; | |
| |
197 | ····move-result-object·p0 | |
| |
198 | ····return-object·p0 | |
199 | .end·method | |
| |
200 | .method·public·static·getVersion(I)I | 127 | .method·public·static·getVersion(I)I |
201 | ····.locals·0 | 128 | ····.locals·0 |
| |
202 | ····.line·281 | 129 | ····.line·224 |
203 | ····invoke-static·{p0},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeGetVersion(I)I | 130 | ····invoke-static·{p0},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeGetVersion(I)I |
| |
204 | ····move-result·p0 | 131 | ····move-result·p0 |
| |
205 | ····return·p0 | 132 | ····return·p0 |
206 | .end·method | 133 | .end·method |
| |
207 | .method·public·static·getVersion(Landroid/content/res/AssetFileDescriptor;)I | |
208 | ····.locals·5 | |
| |
209 | ····.line·287 | |
210 | ····invoke-virtual·{p0},·Landroid/content/res/AssetFileDescriptor;->getParcelFileDescriptor()Landroid/os/ParcelFileDescriptor; | |
| |
211 | ····move-result-object·v0 | |
| |
212 | ····invoke-virtual·{v0},·Landroid/os/ParcelFileDescriptor;->getFd()I | |
| |
213 | ····move-result·v0 | |
| |
214 | ····.line·288 | |
215 | ····invoke-virtual·{p0},·Landroid/content/res/AssetFileDescriptor;->getStartOffset()J | |
| |
216 | ····move-result-wide·v1 | |
| |
217 | ····.line·289 | |
218 | ····invoke-virtual·{p0},·Landroid/content/res/AssetFileDescriptor;->getLength()J | |
| |
219 | ····move-result-wide·v3 | |
| |
220 | ····.line·286 | |
221 | ····invoke-static·{v0,·v1,·v2,·v3,·v4},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeGetVersionWithOffset(IJJ)I | |
| |
222 | ····move-result·p0 | |
| |
223 | ····return·p0 | |
224 | .end·method | |
| |
225 | .method·private·native·nativeAnnotate(JLjava/lang/String;Lcom/google/android/textclassifier/AnnotatorModel$AnnotationOptions;)[Lcom/google/android/textclassifier/AnnotatorModel$AnnotatedSpan; | 134 | .method·private·native·nativeAnnotate(JLjava/lang/String;Lcom/google/android/textclassifier/AnnotatorModel$AnnotationOptions;)[Lcom/google/android/textclassifier/AnnotatorModel$AnnotatedSpan; |
226 | .end·method | 135 | .end·method |
| |
227 | .method·private·native·nativeAnnotateStructuredInput(J[Lcom/google/android/textclassifier/AnnotatorModel$InputFragment;Lcom/google/android/textclassifier/AnnotatorModel$AnnotationOptions;)Lcom/google/android/textclassifier/AnnotatorModel$Annotations; | 136 | .method·private·native·nativeAnnotateStructuredInput(J[Lcom/google/android/textclassifier/AnnotatorModel$InputFragment;Lcom/google/android/textclassifier/AnnotatorModel$AnnotationOptions;)[[Lcom/google/android/textclassifier/AnnotatorModel$AnnotatedSpan; |
228 | .end·method | 137 | .end·method |
| |
229 | .method·private·native·nativeClassifyText(JLjava/lang/String;IILcom/google/android/textclassifier/AnnotatorModel$ClassificationOptions;Ljava/lang/Object;Ljava/lang/String;)[Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult; | 138 | .method·private·native·nativeClassifyText(JLjava/lang/String;IILcom/google/android/textclassifier/AnnotatorModel$ClassificationOptions;Ljava/lang/Object;Ljava/lang/String;)[Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult; |
230 | .end·method | 139 | .end·method |
| |
231 | .method·private·native·nativeCloseAnnotator(J)V | 140 | .method·private·native·nativeCloseAnnotator(J)V |
232 | .end·method | 141 | .end·method |
Offset 398, 31 lines modified | Offset 246, 31 lines modified |
398 | .end·method | 246 | .end·method |
| |
| |
399 | #·virtual·methods | 247 | #·virtual·methods |
400 | .method·public·annotate(Ljava/lang/String;Lcom/google/android/textclassifier/AnnotatorModel$AnnotationOptions;)[Lcom/google/android/textclassifier/AnnotatorModel$AnnotatedSpan; | 248 | .method·public·annotate(Ljava/lang/String;Lcom/google/android/textclassifier/AnnotatorModel$AnnotationOptions;)[Lcom/google/android/textclassifier/AnnotatorModel$AnnotatedSpan; |
401 | ····.locals·2 | 249 | ····.locals·2 |
| |
402 | ····.line·229 | 250 | ····.line·179 |
403 | ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J | 251 | ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J |
| |
404 | ····invoke-direct·{p0,·v0,·v1,·p1,·p2},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeAnnotate(JLjava/lang/String;Lcom/google/android/textclassifier/AnnotatorModel$AnnotationOptions;)[Lcom/google/android/textclassifier/AnnotatorModel$AnnotatedSpan; | 252 | ····invoke-direct·{p0,·v0,·v1,·p1,·p2},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeAnnotate(JLjava/lang/String;Lcom/google/android/textclassifier/AnnotatorModel$AnnotationOptions;)[Lcom/google/android/textclassifier/AnnotatorModel$AnnotatedSpan; |
| |
405 | ····move-result-object·p0 | 253 | ····move-result-object·p0 |
| |
406 | ····return-object·p0 | 254 | ····return-object·p0 |
407 | .end·method | 255 | .end·method |
| |
408 | .method·public·annotateStructuredInput([Lcom/google/android/textclassifier/AnnotatorModel$InputFragment;Lcom/google/android/textclassifier/AnnotatorModel$AnnotationOptions;)Lcom/google/android/textclassifier/AnnotatorModel$Annotations; | 256 | .method·public·annotateStructuredInput([Lcom/google/android/textclassifier/AnnotatorModel$InputFragment;Lcom/google/android/textclassifier/AnnotatorModel$AnnotationOptions;)[[Lcom/google/android/textclassifier/AnnotatorModel$AnnotatedSpan; |
409 | ····.locals·2 | 257 | ····.locals·2 |
| |
410 | ····.line·237 | 258 | ····.line·188 |
411 | ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J | 259 | ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J |
| |
412 | ····invoke-direct·{p0,·v0,·v1,·p1,·p2},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeAnnotateStructuredInput(J[Lcom/google/android/textclassifier/AnnotatorModel$InputFragment;Lcom/google/android/textclassifier/AnnotatorModel$AnnotationOptions;)Lcom/google/android/textclassifier/AnnotatorModel$Annotations; | 260 | ····invoke-direct·{p0,·v0,·v1,·p1,·p2},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeAnnotateStructuredInput(J[Lcom/google/android/textclassifier/AnnotatorModel$InputFragment;Lcom/google/android/textclassifier/AnnotatorModel$AnnotationOptions;)[[Lcom/google/android/textclassifier/AnnotatorModel$AnnotatedSpan; |
| |
413 | ····move-result-object·p0 | 261 | ····move-result-object·p0 |
| |
414 | ····return-object·p0 | 262 | ····return-object·p0 |
415 | .end·method | 263 | .end·method |
| |
416 | .method·public·classifyText(Ljava/lang/String;IILcom/google/android/textclassifier/AnnotatorModel$ClassificationOptions;)[Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult; | 264 | .method·public·classifyText(Ljava/lang/String;IILcom/google/android/textclassifier/AnnotatorModel$ClassificationOptions;)[Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult; |
Offset 438, 26 lines modified | Offset 286, 26 lines modified |
| |
438 | ····move·v2,·p2 | 286 | ····move·v2,·p2 |
| |
439 | ····move·v3,·p3 | 287 | ····move·v3,·p3 |
| |
440 | ····move-object·v4,·p4 | 288 | ····move-object·v4,·p4 |
| |
441 | ····.line·204 | 289 | ····.line·154 |
442 | ····invoke-virtual/range·{v0·..·v6},·Lcom/google/android/textclassifier/AnnotatorModel;->classifyText(Ljava/lang/String;IILcom/google/android/textclassifier/AnnotatorModel$ClassificationOptions;Ljava/lang/Object;Ljava/lang/String;)[Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult; | 290 | ····invoke-virtual/range·{v0·..·v6},·Lcom/google/android/textclassifier/AnnotatorModel;->classifyText(Ljava/lang/String;IILcom/google/android/textclassifier/AnnotatorModel$ClassificationOptions;Ljava/lang/Object;Ljava/lang/String;)[Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult; |
| |
443 | ····move-result-object·p0 | 291 | ····move-result-object·p0 |
| |
444 | ····return-object·p0 | 292 | ····return-object·p0 |
445 | .end·method | 293 | .end·method |
| |
446 | .method·public·classifyText(Ljava/lang/String;IILcom/google/android/textclassifier/AnnotatorModel$ClassificationOptions;Ljava/lang/Object;Ljava/lang/String;)[Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult; | 294 | .method·public·classifyText(Ljava/lang/String;IILcom/google/android/textclassifier/AnnotatorModel$ClassificationOptions;Ljava/lang/Object;Ljava/lang/String;)[Lcom/google/android/textclassifier/AnnotatorModel$ClassificationResult; |
447 | ····.locals·9 | 295 | ····.locals·9 |
| |
448 | ····.line·220 | 296 | ····.line·170 |
449 | ····iget-wide·v1,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J | 297 | ····iget-wide·v1,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J |
| |
450 | ····move-object·v0,·p0 | 298 | ····move-object·v0,·p0 |
| |
451 | ····move-object·v3,·p1 | 299 | ····move-object·v3,·p1 |
| |
452 | ····move·v4,·p2 | 300 | ····move·v4,·p2 |
Offset 476, 224 lines modified | Offset 324, 177 lines modified |
| |
476 | ····return-object·p0 | 324 | ····return-object·p0 |
477 | .end·method | 325 | .end·method |
| |
478 | .method·public·close()V | 326 | .method·public·close()V |
479 | ····.locals·3 | 327 | ····.locals·3 |
| |
480 | ····.line·251 | 328 | ····.line·202 |
481 | ····iget-object·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->isClosed:Ljava/util/concurrent/atomic/AtomicBoolean; | 329 | ····iget-object·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->isClosed:Ljava/util/concurrent/atomic/AtomicBoolean; |
| |
482 | ····const/4·v1,·0x0 | 330 | ····const/4·v1,·0x0 |
| |
483 | ····const/4·v2,·0x1 | 331 | ····const/4·v2,·0x1 |
| |
484 | ····invoke-virtual·{v0,·v1,·v2},·Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z | 332 | ····invoke-virtual·{v0,·v1,·v2},·Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z |
| |
485 | ····move-result·v0 | 333 | ····move-result·v0 |
| |
486 | ····if-eqz·v0,·:cond_0 | 334 | ····if-eqz·v0,·:cond_0 |
| |
487 | ····.line·252 | 335 | ····.line·203 |
488 | ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J | 336 | ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J |
| |
489 | ····invoke-direct·{p0,·v0,·v1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeCloseAnnotator(J)V | 337 | ····invoke-direct·{p0,·v0,·v1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeCloseAnnotator(J)V |
| |
490 | ····const-wide/16·v0,·0x0 | 338 | ····const-wide/16·v0,·0x0 |
| |
491 | ····.line·253 | 339 | ····.line·204 |
492 | ····iput-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J | 340 | ····iput-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J |
| |
493 | ····:cond_0 | 341 | ····:cond_0 |
494 | ····return-void | 342 | ····return-void |
495 | .end·method | 343 | .end·method |
| |
496 | .method·protected·finalize()V | 344 | .method·protected·finalize()V |
497 | ····.locals·1 | 345 | ····.locals·1 |
498 | ····.annotation·system·Ldalvik/annotation/Throws; | 346 | ····.annotation·system·Ldalvik/annotation/Throws; |
499 | ········value·=·{ | 347 | ········value·=·{ |
500 | ············Ljava/lang/Throwable; | 348 | ············Ljava/lang/Throwable; |
501 | ········} | 349 | ········} |
502 | ····.end·annotation | 350 | ····.end·annotation |
| |
503 | ····.line·260 | 351 | ····.line·211 |
504 | ····:try_start_0 | 352 | ····:try_start_0 |
505 | ····invoke-virtual·{p0},·Lcom/google/android/textclassifier/AnnotatorModel;->close()V | 353 | ····invoke-virtual·{p0},·Lcom/google/android/textclassifier/AnnotatorModel;->close()V |
506 | ····:try_end_0 | 354 | ····:try_end_0 |
507 | ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0 | 355 | ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0 |
| |
508 | ····.line·262 | 356 | ····.line·213 |
509 | ····invoke-super·{p0},·Ljava/lang/Object;->finalize()V | 357 | ····invoke-super·{p0},·Ljava/lang/Object;->finalize()V |
| |
510 | ····return-void | 358 | ····return-void |
| |
511 | ····:catchall_0 | 359 | ····:catchall_0 |
512 | ····move-exception·v0 | 360 | ····move-exception·v0 |
| |
513 | ····invoke-super·{p0},·Ljava/lang/Object;->finalize()V | 361 | ····invoke-super·{p0},·Ljava/lang/Object;->finalize()V |
| |
514 | ····.line·263 | 362 | ····.line·214 |
515 | ····throw·v0 | 363 | ····throw·v0 |
516 | .end·method | 364 | .end·method |
| |
517 | .method·getNativeAnnotatorPointer()J | 365 | .method·getNativeAnnotatorPointer()J |
518 | ····.locals·2 | 366 | ····.locals·2 |
| |
519 | ····.line·1116 | 367 | ····.line·769 |
520 | ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J | 368 | ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J |
| |
521 | ····invoke-direct·{p0,·v0,·v1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeGetNativeModelPtr(J)J | 369 | ····invoke-direct·{p0,·v0,·v1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeGetNativeModelPtr(J)J |
| |
522 | ····move-result-wide·v0 | 370 | ····move-result-wide·v0 |
| |
523 | ····return-wide·v0 | 371 | ····return-wide·v0 |
524 | .end·method | 372 | .end·method |
| |
525 | .method·public·initializeContactEngine([B)V | 373 | .method·public·initializeContactEngine([B)V |
526 | ····.locals·2 | 374 | ····.locals·2 |
| |
527 | ····.line·143 | 375 | ····.line·107 |
528 | ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J | 376 | ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J |
| |
529 | ····invoke-direct·{p0,·v0,·v1,·p1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeInitializeContactEngine(J[B)Z | 377 | ····invoke-direct·{p0,·v0,·v1,·p1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeInitializeContactEngine(J[B)Z |
| |
530 | ····move-result·p0 | 378 | ····move-result·p0 |
| |
531 | ····if-eqz·p0,·:cond_0 | 379 | ····if-eqz·p0,·:cond_0 |
| |
532 | ····return-void | 380 | ····return-void |
| |
533 | ····.line·144 | 381 | ····.line·108 |
534 | ····:cond_0 | 382 | ····:cond_0 |
535 | ····new-instance·p0,·Ljava/lang/IllegalArgumentException; | 383 | ····new-instance·p0,·Ljava/lang/IllegalArgumentException; |
| |
536 | ····const-string·p1,·"Couldn\'t·initialize·the·contact·engine" | 384 | ····const-string·p1,·"Couldn\'t·initialize·the·contact·engine" |
| |
537 | ····invoke-direct·{p0,·p1},·Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V | 385 | ····invoke-direct·{p0,·p1},·Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
| |
538 | ····throw·p0 | 386 | ····throw·p0 |
539 | .end·method | 387 | .end·method |
| |
540 | .method·public·initializeInstalledAppEngine([B)V | 388 | .method·public·initializeInstalledAppEngine([B)V |
541 | ····.locals·2 | 389 | ····.locals·2 |
| |
542 | ····.line·150 | 390 | ····.line·114 |
543 | ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J | 391 | ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J |
| |
544 | ····invoke-direct·{p0,·v0,·v1,·p1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeInitializeInstalledAppEngine(J[B)Z | 392 | ····invoke-direct·{p0,·v0,·v1,·p1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeInitializeInstalledAppEngine(J[B)Z |
| |
545 | ····move-result·p0 | 393 | ····move-result·p0 |
| |
546 | ····if-eqz·p0,·:cond_0 | 394 | ····if-eqz·p0,·:cond_0 |
| |
547 | ····return-void | 395 | ····return-void |
| |
548 | ····.line·151 | 396 | ····.line·115 |
549 | ····:cond_0 | 397 | ····:cond_0 |
550 | ····new-instance·p0,·Ljava/lang/IllegalArgumentException; | 398 | ····new-instance·p0,·Ljava/lang/IllegalArgumentException; |
| |
551 | ····const-string·p1,·"Couldn\'t·initialize·the·installed·app·engine" | 399 | ····const-string·p1,·"Couldn\'t·initialize·the·installed·app·engine" |
| |
552 | ····invoke-direct·{p0,·p1},·Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V | 400 | ····invoke-direct·{p0,·p1},·Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
| |
553 | ····throw·p0 | 401 | ····throw·p0 |
554 | .end·method | 402 | .end·method |
| |
555 | .method·public·initializeKnowledgeEngine([B)V | 403 | .method·public·initializeKnowledgeEngine([B)V |
556 | ····.locals·2 | 404 | ····.locals·2 |
| |
557 | ····.line·136 | 405 | ····.line·100 |
558 | ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J | 406 | ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J |
| |
559 | ····invoke-direct·{p0,·v0,·v1,·p1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeInitializeKnowledgeEngine(J[B)Z | 407 | ····invoke-direct·{p0,·v0,·v1,·p1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeInitializeKnowledgeEngine(J[B)Z |
| |
560 | ····move-result·p0 | 408 | ····move-result·p0 |
| |
561 | ····if-eqz·p0,·:cond_0 | 409 | ····if-eqz·p0,·:cond_0 |
| |
562 | ····return-void | 410 | ····return-void |
| |
563 | ····.line·137 | 411 | ····.line·101 |
564 | ····:cond_0 | 412 | ····:cond_0 |
565 | ····new-instance·p0,·Ljava/lang/IllegalArgumentException; | 413 | ····new-instance·p0,·Ljava/lang/IllegalArgumentException; |
| |
566 | ····const-string·p1,·"Couldn\'t·initialize·the·KG·engine" | 414 | ····const-string·p1,·"Couldn\'t·initialize·the·KG·engine" |
| |
567 | ····invoke-direct·{p0,·p1},·Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V | 415 | ····invoke-direct·{p0,·p1},·Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
| |
568 | ····throw·p0 | 416 | ····throw·p0 |
569 | .end·method | 417 | .end·method |
| |
570 | .method·public·initializePersonNameEngine(Landroid/content/res/AssetFileDescriptor;)V | |
571 | ····.locals·8 | |
| |
572 | ····.line·170 | |
573 | ····iget-wide·v1,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J | |
| |
574 | ····.line·172 | |
575 | ····invoke-virtual·{p1},·Landroid/content/res/AssetFileDescriptor;->getParcelFileDescriptor()Landroid/os/ParcelFileDescriptor; | |
| |
576 | ····move-result-object·v0 | |
| |
577 | ····invoke-virtual·{v0},·Landroid/os/ParcelFileDescriptor;->getFd()I | |
| |
578 | ····move-result·v3 | |
| |
579 | ····.line·173 | |
580 | ····invoke-virtual·{p1},·Landroid/content/res/AssetFileDescriptor;->getStartOffset()J | |
| |
581 | ····move-result-wide·v4 | |
| |
582 | ····.line·174 | |
583 | ····invoke-virtual·{p1},·Landroid/content/res/AssetFileDescriptor;->getLength()J | |
| |
584 | ····move-result-wide·v6 | |
| |
585 | ····move-object·v0,·p0 | |
| |
586 | ····.line·170 | |
587 | ····invoke-direct/range·{v0·..·v7},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeInitializePersonNameEngine(JIJJ)Z | |
| |
588 | ····move-result·p0 | |
| |
589 | ····if-eqz·p0,·:cond_0 | |
| |
590 | ····return-void | |
| |
591 | ····.line·175 | |
592 | ····:cond_0 | |
593 | ····new-instance·p0,·Ljava/lang/IllegalArgumentException; | |
| |
594 | ····const-string·p1,·"Couldn\'t·initialize·the·person·name·engine" | |
| |
595 | ····invoke-direct·{p0,·p1},·Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V | |
| |
596 | ····throw·p0 | |
597 | .end·method | |
| |
598 | .method·public·lookUpKnowledgeEntity(Ljava/lang/String;)[B | 418 | .method·public·lookUpKnowledgeEntity(Ljava/lang/String;)[B |
599 | ····.locals·2 | 419 | ····.locals·2 |
| |
600 | ····.line·245 | 420 | ····.line·196 |
601 | ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J | 421 | ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J |
| |
602 | ····invoke-direct·{p0,·v0,·v1,·p1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeLookUpKnowledgeEntity(JLjava/lang/String;)[B | 422 | ····invoke-direct·{p0,·v0,·v1,·p1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeLookUpKnowledgeEntity(JLjava/lang/String;)[B |
| |
603 | ····move-result-object·p0 | 423 | ····move-result-object·p0 |
| |
604 | ····return-object·p0 | 424 | ····return-object·p0 |
605 | .end·method | 425 | .end·method |
| |
606 | .method·public·setLangIdModel(Lcom/google/android/textclassifier/LangIdModel;)V | 426 | .method·public·setLangIdModel(Lcom/google/android/textclassifier/LangIdModel;)V |
607 | ····.locals·4 | 427 | ····.locals·4 |
| |
608 | ····.line·161 | 428 | ····.line·125 |
609 | ····iput-object·p1,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->langIdModel:Lcom/google/android/textclassifier/LangIdModel; | 429 | ····iput-object·p1,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->langIdModel:Lcom/google/android/textclassifier/LangIdModel; |
| |
610 | ····.line·162 | 430 | ····.line·126 |
611 | ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J | 431 | ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J |
| |
612 | ····if-nez·p1,·:cond_0 | 432 | ····if-nez·p1,·:cond_0 |
| |
613 | ····const-wide/16·v2,·0x0 | 433 | ····const-wide/16·v2,·0x0 |
| |
614 | ····goto·:goto_0 | 434 | ····goto·:goto_0 |
Offset 708, 15 lines modified | Offset 509, 15 lines modified |
| |
708 | ····return-void | 509 | ····return-void |
709 | .end·method | 510 | .end·method |
| |
710 | .method·public·suggestSelection(Ljava/lang/String;IILcom/google/android/textclassifier/AnnotatorModel$SelectionOptions;)[I | 511 | .method·public·suggestSelection(Ljava/lang/String;IILcom/google/android/textclassifier/AnnotatorModel$SelectionOptions;)[I |
711 | ····.locals·7 | 512 | ····.locals·7 |
| |
712 | ····.line·191 | 513 | ····.line·141 |
713 | ····iget-wide·v1,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J | 514 | ····iget-wide·v1,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J |
| |
714 | ····move-object·v0,·p0 | 515 | ····move-object·v0,·p0 |
| |
715 | ····move-object·v3,·p1 | 516 | ····move-object·v3,·p1 |
| |
716 | ····move·v4,·p2 | 517 | ····move·v4,·p2 |