Offset 9, 19 lines modifiedOffset 9, 17 lines modified
9 #·annotations9 #·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·annotation21 .end·annotation
  
  
24 #·static·fields22 #·static·fields
25 .field·public·static·final·INVALID_LATITUDE:D·=·180.023 .field·public·static·final·INVALID_LATITUDE:D·=·180.0
Offset 59, 289 lines modifiedOffset 57, 139 lines modified
  
59 #·direct·methods57 #·direct·methods
60 .method·static·constructor·<clinit>()V58 .method·static·constructor·<clinit>()V
61 ····.locals·159 ····.locals·1
  
62 ····const-string·v0,·"textclassifier"60 ····const-string·v0,·"textclassifier"
  
63 ····.line·3461 ····.line·32
64 ····invoke-static·{v0},·Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V62 ····invoke-static·{v0},·Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V
  
65 ····return-void63 ····return-void
66 .end·method64 .end·method
  
67 .method·public·constructor·<init>(I)V65 .method·public·constructor·<init>(I)V
68 ····.locals·266 ····.locals·2
  
69 ····.line·10167 ····.line·80
70 ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V68 ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V
  
71 ····.line·3169 ····.line·29
72 ····new-instance·v0,·Ljava/util/concurrent/atomic/AtomicBoolean;70 ····new-instance·v0,·Ljava/util/concurrent/atomic/AtomicBoolean;
  
73 ····const/4·v1,·0x071 ····const/4·v1,·0x0
  
74 ····invoke-direct·{v0,·v1},·Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V72 ····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·10274 ····.line·81
77 ····invoke-static·{p1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeNewAnnotator(I)J75 ····invoke-static·{p1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeNewAnnotator(I)J
  
78 ····move-result-wide·v076 ····move-result-wide·v0
  
79 ····iput-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J77 ····iput-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J
  
80 ····const-wide/16·p0,·0x078 ····const-wide/16·p0,·0x0
  
81 ····cmp-long·p0,·v0,·p079 ····cmp-long·p0,·v0,·p0
  
82 ····if-eqz·p0,·:cond_080 ····if-eqz·p0,·:cond_0
  
83 ····return-void81 ····return-void
  
84 ····.line·10482 ····.line·83
85 ····:cond_083 ····: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;)V86 ····invoke-direct·{p0,·p1},·Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
  
89 ····throw·p087 ····throw·p0
90 .end·method88 .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;)V89 .method·public·constructor·<init>(Ljava/lang/String;)V
127 ····.locals·290 ····.locals·2
  
128 ····.line·11291 ····.line·91
129 ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V92 ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V
  
130 ····.line·3193 ····.line·29
131 ····new-instance·v0,·Ljava/util/concurrent/atomic/AtomicBoolean;94 ····new-instance·v0,·Ljava/util/concurrent/atomic/AtomicBoolean;
  
132 ····const/4·v1,·0x095 ····const/4·v1,·0x0
  
133 ····invoke-direct·{v0,·v1},·Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V96 ····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·11398 ····.line·92
136 ····invoke-static·{p1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeNewAnnotatorFromPath(Ljava/lang/String;)J99 ····invoke-static·{p1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeNewAnnotatorFromPath(Ljava/lang/String;)J
  
137 ····move-result-wide·v0100 ····move-result-wide·v0
  
138 ····iput-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J101 ····iput-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J
  
139 ····const-wide/16·p0,·0x0102 ····const-wide/16·p0,·0x0
  
140 ····cmp-long·p0,·v0,·p0103 ····cmp-long·p0,·v0,·p0
  
141 ····if-eqz·p0,·:cond_0104 ····if-eqz·p0,·:cond_0
  
142 ····return-void105 ····return-void
  
143 ····.line·115106 ····.line·94
144 ····:cond_0107 ····: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;)V110 ····invoke-direct·{p0,·p1},·Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
  
148 ····throw·p0111 ····throw·p0
149 .end·method112 .end·method
  
150 .method·public·static·getLocales(I)Ljava/lang/String;113 .method·public·static·getLocales(I)Ljava/lang/String;
151 ····.locals·0114 ····.locals·0
  
152 ····.line·268115 ····.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·p0117 ····move-result-object·p0
  
155 ····return-object·p0118 ····return-object·p0
156 .end·method119 .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·0121 ····.locals·0
  
177 ····.line·294122 ····.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·p0124 ····move-result-object·p0
  
180 ····return-object·p0125 ····return-object·p0
181 .end·method126 .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)I127 .method·public·static·getVersion(I)I
201 ····.locals·0128 ····.locals·0
  
202 ····.line·281129 ····.line·224
203 ····invoke-static·{p0},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeGetVersion(I)I130 ····invoke-static·{p0},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeGetVersion(I)I
  
204 ····move-result·p0131 ····move-result·p0
  
205 ····return·p0132 ····return·p0
206 .end·method133 .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·method135 .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·method137 .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·method139 .end·method
  
231 .method·private·native·nativeCloseAnnotator(J)V140 .method·private·native·nativeCloseAnnotator(J)V
232 .end·method141 .end·method
Offset 398, 31 lines modifiedOffset 246, 31 lines modified
398 .end·method246 .end·method
  
  
399 #·virtual·methods247 #·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·2249 ····.locals·2
  
402 ····.line·229250 ····.line·179
403 ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J251 ····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·p0253 ····move-result-object·p0
  
406 ····return-object·p0254 ····return-object·p0
407 .end·method255 .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·2257 ····.locals·2
  
410 ····.line·237258 ····.line·188
411 ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J259 ····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·p0261 ····move-result-object·p0
  
414 ····return-object·p0262 ····return-object·p0
415 .end·method263 .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 modifiedOffset 286, 26 lines modified
  
438 ····move·v2,·p2286 ····move·v2,·p2
  
439 ····move·v3,·p3287 ····move·v3,·p3
  
440 ····move-object·v4,·p4288 ····move-object·v4,·p4
  
441 ····.line·204289 ····.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·p0291 ····move-result-object·p0
  
444 ····return-object·p0292 ····return-object·p0
445 .end·method293 .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·9295 ····.locals·9
  
448 ····.line·220296 ····.line·170
449 ····iget-wide·v1,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J297 ····iget-wide·v1,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J
  
450 ····move-object·v0,·p0298 ····move-object·v0,·p0
  
451 ····move-object·v3,·p1299 ····move-object·v3,·p1
  
452 ····move·v4,·p2300 ····move·v4,·p2
Offset 476, 224 lines modifiedOffset 324, 177 lines modified
  
476 ····return-object·p0324 ····return-object·p0
477 .end·method325 .end·method
  
478 .method·public·close()V326 .method·public·close()V
479 ····.locals·3327 ····.locals·3
  
480 ····.line·251328 ····.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,·0x0330 ····const/4·v1,·0x0
  
483 ····const/4·v2,·0x1331 ····const/4·v2,·0x1
  
484 ····invoke-virtual·{v0,·v1,·v2},·Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z332 ····invoke-virtual·{v0,·v1,·v2},·Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
  
485 ····move-result·v0333 ····move-result·v0
  
486 ····if-eqz·v0,·:cond_0334 ····if-eqz·v0,·:cond_0
  
487 ····.line·252335 ····.line·203
488 ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J336 ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J
  
489 ····invoke-direct·{p0,·v0,·v1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeCloseAnnotator(J)V337 ····invoke-direct·{p0,·v0,·v1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeCloseAnnotator(J)V
  
490 ····const-wide/16·v0,·0x0338 ····const-wide/16·v0,·0x0
  
491 ····.line·253339 ····.line·204
492 ····iput-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J340 ····iput-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J
  
493 ····:cond_0341 ····:cond_0
494 ····return-void342 ····return-void
495 .end·method343 .end·method
  
496 .method·protected·finalize()V344 .method·protected·finalize()V
497 ····.locals·1345 ····.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·annotation350 ····.end·annotation
  
503 ····.line·260351 ····.line·211
504 ····:try_start_0352 ····:try_start_0
505 ····invoke-virtual·{p0},·Lcom/google/android/textclassifier/AnnotatorModel;->close()V353 ····invoke-virtual·{p0},·Lcom/google/android/textclassifier/AnnotatorModel;->close()V
506 ····:try_end_0354 ····:try_end_0
507 ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0355 ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0
  
508 ····.line·262356 ····.line·213
509 ····invoke-super·{p0},·Ljava/lang/Object;->finalize()V357 ····invoke-super·{p0},·Ljava/lang/Object;->finalize()V
  
510 ····return-void358 ····return-void
  
511 ····:catchall_0359 ····:catchall_0
512 ····move-exception·v0360 ····move-exception·v0
  
513 ····invoke-super·{p0},·Ljava/lang/Object;->finalize()V361 ····invoke-super·{p0},·Ljava/lang/Object;->finalize()V
  
514 ····.line·263362 ····.line·214
515 ····throw·v0363 ····throw·v0
516 .end·method364 .end·method
  
517 .method·getNativeAnnotatorPointer()J365 .method·getNativeAnnotatorPointer()J
518 ····.locals·2366 ····.locals·2
  
519 ····.line·1116367 ····.line·769
520 ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J368 ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J
  
521 ····invoke-direct·{p0,·v0,·v1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeGetNativeModelPtr(J)J369 ····invoke-direct·{p0,·v0,·v1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeGetNativeModelPtr(J)J
  
522 ····move-result-wide·v0370 ····move-result-wide·v0
  
523 ····return-wide·v0371 ····return-wide·v0
524 .end·method372 .end·method
  
525 .method·public·initializeContactEngine([B)V373 .method·public·initializeContactEngine([B)V
526 ····.locals·2374 ····.locals·2
  
527 ····.line·143375 ····.line·107
528 ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J376 ····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)Z377 ····invoke-direct·{p0,·v0,·v1,·p1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeInitializeContactEngine(J[B)Z
  
530 ····move-result·p0378 ····move-result·p0
  
531 ····if-eqz·p0,·:cond_0379 ····if-eqz·p0,·:cond_0
  
532 ····return-void380 ····return-void
  
533 ····.line·144381 ····.line·108
534 ····:cond_0382 ····: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;)V385 ····invoke-direct·{p0,·p1},·Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
  
538 ····throw·p0386 ····throw·p0
539 .end·method387 .end·method
  
540 .method·public·initializeInstalledAppEngine([B)V388 .method·public·initializeInstalledAppEngine([B)V
541 ····.locals·2389 ····.locals·2
  
542 ····.line·150390 ····.line·114
543 ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J391 ····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)Z392 ····invoke-direct·{p0,·v0,·v1,·p1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeInitializeInstalledAppEngine(J[B)Z
  
545 ····move-result·p0393 ····move-result·p0
  
546 ····if-eqz·p0,·:cond_0394 ····if-eqz·p0,·:cond_0
  
547 ····return-void395 ····return-void
  
548 ····.line·151396 ····.line·115
549 ····:cond_0397 ····: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;)V400 ····invoke-direct·{p0,·p1},·Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
  
553 ····throw·p0401 ····throw·p0
554 .end·method402 .end·method
  
555 .method·public·initializeKnowledgeEngine([B)V403 .method·public·initializeKnowledgeEngine([B)V
556 ····.locals·2404 ····.locals·2
  
557 ····.line·136405 ····.line·100
558 ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J406 ····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)Z407 ····invoke-direct·{p0,·v0,·v1,·p1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeInitializeKnowledgeEngine(J[B)Z
  
560 ····move-result·p0408 ····move-result·p0
  
561 ····if-eqz·p0,·:cond_0409 ····if-eqz·p0,·:cond_0
  
562 ····return-void410 ····return-void
  
563 ····.line·137411 ····.line·101
564 ····:cond_0412 ····: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;)V415 ····invoke-direct·{p0,·p1},·Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
  
568 ····throw·p0416 ····throw·p0
569 .end·method417 .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;)[B418 .method·public·lookUpKnowledgeEntity(Ljava/lang/String;)[B
599 ····.locals·2419 ····.locals·2
  
600 ····.line·245420 ····.line·196
601 ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J421 ····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;)[B422 ····invoke-direct·{p0,·v0,·v1,·p1},·Lcom/google/android/textclassifier/AnnotatorModel;->nativeLookUpKnowledgeEntity(JLjava/lang/String;)[B
  
603 ····move-result-object·p0423 ····move-result-object·p0
  
604 ····return-object·p0424 ····return-object·p0
605 .end·method425 .end·method
  
606 .method·public·setLangIdModel(Lcom/google/android/textclassifier/LangIdModel;)V426 .method·public·setLangIdModel(Lcom/google/android/textclassifier/LangIdModel;)V
607 ····.locals·4427 ····.locals·4
  
608 ····.line·161428 ····.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·162430 ····.line·126
611 ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J431 ····iget-wide·v0,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J
  
612 ····if-nez·p1,·:cond_0432 ····if-nez·p1,·:cond_0
  
613 ····const-wide/16·v2,·0x0433 ····const-wide/16·v2,·0x0
  
614 ····goto·:goto_0434 ····goto·:goto_0
Offset 708, 15 lines modifiedOffset 509, 15 lines modified
  
708 ····return-void509 ····return-void
709 .end·method510 .end·method
  
710 .method·public·suggestSelection(Ljava/lang/String;IILcom/google/android/textclassifier/AnnotatorModel$SelectionOptions;)[I511 .method·public·suggestSelection(Ljava/lang/String;IILcom/google/android/textclassifier/AnnotatorModel$SelectionOptions;)[I
711 ····.locals·7512 ····.locals·7
  
712 ····.line·191513 ····.line·141
713 ····iget-wide·v1,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J514 ····iget-wide·v1,·p0,·Lcom/google/android/textclassifier/AnnotatorModel;->annotatorPtr:J
  
714 ····move-object·v0,·p0515 ····move-object·v0,·p0
  
715 ····move-object·v3,·p1516 ····move-object·v3,·p1
  
716 ····move·v4,·p2517 ····move·v4,·p2