Offset 30, 96 lines modifiedOffset 30, 96 lines modified
30 .field·public·final·titleWithoutEntity:Ljava/lang/String;30 .field·public·final·titleWithoutEntity:Ljava/lang/String;
  
  
31 #·direct·methods31 #·direct·methods
32 .method·static·constructor·<clinit>()V32 .method·static·constructor·<clinit>()V
33 ····.locals·133 ····.locals·1
  
34 ····.line·4034 ····.line·39
35 ····sget-object·v0,·Lcom/android/textclassifier/common/intent/-$$Lambda$LabeledIntent$Ef5QLBfEhrkX4H2Of8KdcPhmr-g;->INSTANCE:Lcom/android/textclassifier/common/intent/-$$Lambda$LabeledIntent$Ef5QLBfEhrkX4H2Of8KdcPhmr-g;35 ····sget-object·v0,·Lcom/android/textclassifier/common/intent/-$$Lambda$LabeledIntent$Ef5QLBfEhrkX4H2Of8KdcPhmr-g;->INSTANCE:Lcom/android/textclassifier/common/intent/-$$Lambda$LabeledIntent$Ef5QLBfEhrkX4H2Of8KdcPhmr-g;
  
36 ····sput-object·v0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->DEFAULT_TITLE_CHOOSER:Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser;36 ····sput-object·v0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->DEFAULT_TITLE_CHOOSER:Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser;
  
37 ····return-void37 ····return-void
38 .end·method38 .end·method
  
39 .method·public·constructor·<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/content/Intent;I)V39 .method·public·constructor·<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/content/Intent;I)V
40 ····.locals·140 ····.locals·1
  
41 ····.line·7341 ····.line·72
42 ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V42 ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V
  
43 ····.line·7443 ····.line·73
44 ····invoke-static·{p2},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z44 ····invoke-static·{p2},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
  
45 ····move-result·v045 ····move-result·v0
  
46 ····if-eqz·v0,·:cond_146 ····if-eqz·v0,·:cond_1
  
47 ····invoke-static·{p1},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z47 ····invoke-static·{p1},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
  
48 ····move-result·v048 ····move-result·v0
  
49 ····if-nez·v0,·:cond_049 ····if-nez·v0,·:cond_0
  
50 ····goto·:goto_050 ····goto·:goto_0
  
51 ····.line·7551 ····.line·74
52 ····:cond_052 ····:cond_0
53 ····new-instance·p0,·Ljava/lang/IllegalArgumentException;53 ····new-instance·p0,·Ljava/lang/IllegalArgumentException;
  
54 ····const-string·p1,·"titleWithEntity·and·titleWithoutEntity·should·not·be·both·null"54 ····const-string·p1,·"titleWithEntity·and·titleWithoutEntity·should·not·be·both·null"
  
55 ····invoke-direct·{p0,·p1},·Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V55 ····invoke-direct·{p0,·p1},·Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
  
56 ····throw·p056 ····throw·p0
  
57 ····.line·7857 ····.line·77
58 ····:cond_158 ····:cond_1
59 ····:goto_059 ····:goto_0
60 ····iput-object·p1,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->titleWithoutEntity:Ljava/lang/String;60 ····iput-object·p1,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->titleWithoutEntity:Ljava/lang/String;
  
61 ····.line·7961 ····.line·78
62 ····iput-object·p2,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->titleWithEntity:Ljava/lang/String;62 ····iput-object·p2,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->titleWithEntity:Ljava/lang/String;
  
63 ····.line·8063 ····.line·79
64 ····invoke-static·{p3},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;64 ····invoke-static·{p3},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
  
65 ····check-cast·p3,·Ljava/lang/String;65 ····check-cast·p3,·Ljava/lang/String;
  
66 ····iput-object·p3,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->description:Ljava/lang/String;66 ····iput-object·p3,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->description:Ljava/lang/String;
  
67 ····.line·8167 ····.line·80
68 ····iput-object·p4,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->descriptionWithAppName:Ljava/lang/String;68 ····iput-object·p4,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->descriptionWithAppName:Ljava/lang/String;
  
69 ····.line·8269 ····.line·81
70 ····invoke-static·{p5},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;70 ····invoke-static·{p5},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
  
71 ····check-cast·p5,·Landroid/content/Intent;71 ····check-cast·p5,·Landroid/content/Intent;
  
72 ····iput-object·p5,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->intent:Landroid/content/Intent;72 ····iput-object·p5,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->intent:Landroid/content/Intent;
  
73 ····.line·8373 ····.line·82
74 ····iput·p6,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->requestCode:I74 ····iput·p6,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->requestCode:I
  
75 ····return-void75 ····return-void
76 .end·method76 .end·method
  
77 .method·private·static·createIconFromPackage(Landroid/content/Context;Ljava/lang/String;I)Landroidx/core/graphics/drawable/IconCompat;77 .method·private·static·createIconFromPackage(Landroid/content/Context;Ljava/lang/String;I)Landroidx/core/graphics/drawable/IconCompat;
78 ····.locals·178 ····.locals·1
  
79 ····const/4·v0,·0x079 ····const/4·v0,·0x0
  
80 ····.line·20280 ····.line·157
81 ····:try_start_081 ····:try_start_0
82 ····invoke-virtual·{p0,·p1,·v0},·Landroid/content/Context;->createPackageContext(Ljava/lang/String;I)Landroid/content/Context;82 ····invoke-virtual·{p0,·p1,·v0},·Landroid/content/Context;->createPackageContext(Ljava/lang/String;I)Landroid/content/Context;
  
83 ····move-result-object·p083 ····move-result-object·p0
  
84 ····.line·20384 ····.line·158
85 ····invoke-static·{p0,·p2},·Landroidx/core/graphics/drawable/IconCompat;->createWithResource(Landroid/content/Context;I)Landroidx/core/graphics/drawable/IconCompat;85 ····invoke-static·{p0,·p2},·Landroidx/core/graphics/drawable/IconCompat;->createWithResource(Landroid/content/Context;I)Landroidx/core/graphics/drawable/IconCompat;
  
86 ····move-result-object·p086 ····move-result-object·p0
87 ····:try_end_087 ····:try_end_0
88 ····.catch·Landroid/content/pm/PackageManager$NameNotFoundException;·{:try_start_0·..·:try_end_0}·:catch_088 ····.catch·Landroid/content/pm/PackageManager$NameNotFoundException;·{:try_start_0·..·:try_end_0}·:catch_0
  
89 ····return-object·p089 ····return-object·p0
Offset 127, 292 lines modifiedOffset 127, 169 lines modified
127 ····:catch_0127 ····:catch_0
128 ····move-exception·p0128 ····move-exception·p0
  
129 ····const-string·p1,·"LabeledIntent"129 ····const-string·p1,·"LabeledIntent"
  
130 ····const-string·p2,·"createIconFromPackage:·failed·to·create·package·context"130 ····const-string·p2,·"createIconFromPackage:·failed·to·create·package·context"
  
131 ····.line·205131 ····.line·160
132 ····invoke-static·{p1,·p2,·p0},·Lcom/android/textclassifier/common/base/TcLog;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V132 ····invoke-static·{p1,·p2,·p0},·Lcom/android/textclassifier/common/base/TcLog;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
  
133 ····const/4·p0,·0x0133 ····const/4·p0,·0x0
  
134 ····return-object·p0134 ····return-object·p0
135 .end·method135 .end·method
  
136 .method·private·static·createPendingIntent(Landroid/content/Context;Landroid/content/Intent;I)Landroid/app/PendingIntent;136 .method·private·static·createPendingIntent(Landroid/content/Context;Landroid/content/Intent;I)Landroid/app/PendingIntent;
137 ····.locals·1137 ····.locals·1
  
138 ····const/high16·v0,·0x8000000138 ····const/high16·v0,·0x8000000
  
139 ····.line·212139 ····.line·167
140 ····invoke-static·{p0,·p2,·p1,·v0},·Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;140 ····invoke-static·{p0,·p2,·p1,·v0},·Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
  
141 ····move-result-object·p0141 ····move-result-object·p0
  
142 ····return-object·p0142 ····return-object·p0
143 .end·method143 .end·method
  
144 .method·private·createRemoteAction(Landroid/content/Context;Landroid/content/Intent;Landroidx/core/graphics/drawable/IconCompat;ZLandroid/content/pm/ResolveInfo;Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser;)Landroidx/core/app/RemoteActionCompat; 
145 ····.locals·1 
  
146 ····.line·161 
147 ····iget·v0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->requestCode:I 
  
148 ····invoke-static·{p1,·p2,·v0},·Lcom/android/textclassifier/common/intent/LabeledIntent;->createPendingIntent(Landroid/content/Context;Landroid/content/Intent;I)Landroid/app/PendingIntent; 
  
149 ····move-result-object·p2 
  
150 ····if-nez·p6,·:cond_0 
  
151 ····.line·162 
152 ····sget-object·p6,·Lcom/android/textclassifier/common/intent/LabeledIntent;->DEFAULT_TITLE_CHOOSER:Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser; 
  
153 ····.line·163 
154 ····:cond_0 
155 ····invoke-interface·{p6,·p0,·p5},·Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser;->chooseTitle(Lcom/android/textclassifier/common/intent/LabeledIntent;Landroid/content/pm/ResolveInfo;)Ljava/lang/CharSequence; 
  
156 ····move-result-object·p6 
  
157 ····.line·164 
158 ····invoke-static·{p6},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z 
  
159 ····move-result·v0 
  
160 ····if-eqz·v0,·:cond_1 
  
161 ····const-string·p6,·"LabeledIntent" 
  
162 ····const-string·v0,·"Custom·titleChooser·return·null,·fallback·to·the·default·titleChooser" 
  
163 ····.line·165 
164 ····invoke-static·{p6,·v0},·Lcom/android/textclassifier/common/base/TcLog;->w(Ljava/lang/String;Ljava/lang/String;)V 
  
165 ····.line·166 
166 ····sget-object·p6,·Lcom/android/textclassifier/common/intent/LabeledIntent;->DEFAULT_TITLE_CHOOSER:Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser; 
  
167 ····invoke-interface·{p6,·p0,·p5},·Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser;->chooseTitle(Lcom/android/textclassifier/common/intent/LabeledIntent;Landroid/content/pm/ResolveInfo;)Ljava/lang/CharSequence; 
  
168 ····move-result-object·p6 
  
169 ····.line·168 
170 ····:cond_1 
171 ····new-instance·v0,·Landroidx/core/app/RemoteActionCompat; 
  
172 ····.line·172 
173 ····invoke-virtual·{p1},·Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; 
  
174 ····move-result-object·p1 
  
175 ····invoke-direct·{p0,·p5,·p1},·Lcom/android/textclassifier/common/intent/LabeledIntent;->resolveDescription(Landroid/content/pm/ResolveInfo;Landroid/content/pm/PackageManager;)Ljava/lang/String; 
  
176 ····move-result-object·p0 
  
177 ····invoke-direct·{v0,·p3,·p6,·p0,·p2},·Landroidx/core/app/RemoteActionCompat;-><init>(Landroidx/core/graphics/drawable/IconCompat;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V 
  
178 ····.line·174 
179 ····invoke-virtual·{v0,·p4},·Landroidx/core/app/RemoteActionCompat;->setShouldShowIcon(Z)V 
  
180 ····return-object·v0 
181 .end·method 
  
182 .method·private·static·getApplicationName(Landroid/content/pm/ResolveInfo;Landroid/content/pm/PackageManager;)Ljava/lang/String;144 .method·private·static·getApplicationName(Landroid/content/pm/ResolveInfo;Landroid/content/pm/PackageManager;)Ljava/lang/String;
183 ····.locals·3145 ····.locals·3
  
184 ····const/4·v0,·0x0146 ····.line·173
 147 ····iget-object·v0,·p0,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;
  
185 ····if-eqz·p0,·:cond_3148 ····const/4·v1,·0x0
  
186 ····.line·219 
187 ····iget-object·v1,·p0,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo; 
  
188 ····if-nez·v1,·:cond_0149 ····if-nez·v0,·:cond_0
  
189 ····goto·:goto_0150 ····return-object·v1
  
190 ····.line·222151 ····.line·176
191 ····:cond_0152 ····:cond_0
192 ····iget-object·v1,·v1,·Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;153 ····iget-object·v0,·v0,·Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;
  
193 ····const-string·v2,·"android"154 ····const-string·v2,·"android"
  
194 ····invoke-virtual·{v2,·v1},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z155 ····invoke-virtual·{v2,·v0},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z
  
195 ····move-result·v1156 ····move-result·v0
  
196 ····if-eqz·v1,·:cond_1157 ····if-eqz·v0,·:cond_1
  
197 ····return-object·v0158 ····return-object·v1
  
198 ····.line·225159 ····.line·179
199 ····:cond_1160 ····:cond_1
200 ····iget-object·p0,·p0,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;161 ····iget-object·p0,·p0,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;
  
201 ····iget-object·p0,·p0,·Landroid/content/pm/ActivityInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;162 ····iget-object·p0,·p0,·Landroid/content/pm/ActivityInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;
  
202 ····if-nez·p0,·:cond_2163 ····if-nez·p0,·:cond_2
  
203 ····return-object·v0164 ····return-object·v1
  
204 ····.line·228165 ····.line·182
205 ····:cond_2166 ····:cond_2
206 ····invoke-virtual·{p1,·p0},·Landroid/content/pm/PackageManager;->getApplicationLabel(Landroid/content/pm/ApplicationInfo;)Ljava/lang/CharSequence;167 ····invoke-virtual·{p1,·p0},·Landroid/content/pm/PackageManager;->getApplicationLabel(Landroid/content/pm/ApplicationInfo;)Ljava/lang/CharSequence;
  
207 ····move-result-object·p0168 ····move-result-object·p0
  
208 ····invoke-interface·{p0},·Ljava/lang/CharSequence;->toString()Ljava/lang/String;169 ····invoke-interface·{p0},·Ljava/lang/CharSequence;->toString()Ljava/lang/String;
  
209 ····move-result-object·p0170 ····move-result-object·p0
  
210 ····return-object·p0171 ····return-object·p0
  
211 ····:cond_3 
212 ····:goto_0 
213 ····return-object·v0 
214 .end·method172 .end·method
  
215 .method·private·static·hasPermission(Landroid/content/Context;Landroid/content/pm/ActivityInfo;)Z173 .method·private·static·hasPermission(Landroid/content/Context;Landroid/content/pm/ActivityInfo;)Z
216 ····.locals·2174 ····.locals·2
  
217 ····.line·232175 ····.line·186
218 ····iget-boolean·v0,·p1,·Landroid/content/pm/ActivityInfo;->exported:Z176 ····iget-boolean·v0,·p1,·Landroid/content/pm/ActivityInfo;->exported:Z
  
219 ····const/4·v1,·0x0177 ····const/4·v1,·0x0
  
220 ····if-nez·v0,·:cond_0178 ····if-nez·v0,·:cond_0
  
221 ····return·v1179 ····return·v1
  
222 ····.line·235180 ····.line·189
223 ····:cond_0181 ····:cond_0
224 ····iget-object·p1,·p1,·Landroid/content/pm/ActivityInfo;->permission:Ljava/lang/String;182 ····iget-object·p1,·p1,·Landroid/content/pm/ActivityInfo;->permission:Ljava/lang/String;
  
225 ····const/4·v0,·0x1183 ····const/4·v0,·0x1
  
226 ····if-nez·p1,·:cond_1184 ····if-nez·p1,·:cond_1
  
227 ····return·v0185 ····return·v0
  
228 ····.line·238186 ····.line·192
229 ····:cond_1187 ····:cond_1
230 ····invoke-static·{p0,·p1},·Landroidx/core/content/ContextCompat;->checkSelfPermission(Landroid/content/Context;Ljava/lang/String;)I188 ····invoke-static·{p0,·p1},·Landroidx/core/content/ContextCompat;->checkSelfPermission(Landroid/content/Context;Ljava/lang/String;)I
  
231 ····move-result·p0189 ····move-result·p0
  
232 ····if-nez·p0,·:cond_2190 ····if-nez·p0,·:cond_2
  
233 ····move·v1,·v0191 ····move·v1,·v0
  
234 ····:cond_2192 ····:cond_2
235 ····return·v1193 ····return·v1
236 .end·method194 .end·method
  
237 .method·private·isWebIntent()Z 
238 ····.locals·2 
  
239 ····.line·179 
240 ····iget-object·v0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->intent:Landroid/content/Intent; 
  
241 ····invoke-virtual·{v0},·Landroid/content/Intent;->getAction()Ljava/lang/String; 
  
242 ····move-result-object·v0 
  
243 ····const-string·v1,·"android.intent.action.VIEW" 
  
244 ····invoke-virtual·{v1,·v0},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z 
  
245 ····move-result·v0 
  
246 ····const/4·v1,·0x0 
  
247 ····if-nez·v0,·:cond_0 
  
248 ····return·v1 
  
249 ····.line·182 
250 ····:cond_0 
251 ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->intent:Landroid/content/Intent; 
  
252 ····invoke-virtual·{p0},·Landroid/content/Intent;->getScheme()Ljava/lang/String; 
  
253 ····move-result-object·p0 
  
254 ····const-string·v0,·"http" 
  
255 ····.line·183 
256 ····invoke-static·{p0,·v0},·Lcom/google/common/base/Objects;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z 
  
257 ····move-result·v0 
  
258 ····if-nez·v0,·:cond_1 
  
259 ····const-string·v0,·"https" 
  
260 ····invoke-static·{p0,·v0},·Lcom/google/common/base/Objects;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z 
  
261 ····move-result·p0 
  
262 ····if-eqz·p0,·:cond_2 
  
263 ····:cond_1 
264 ····const/4·v1,·0x1 
  
265 ····:cond_2 
266 ····return·v1 
267 .end·method 
  
268 .method·static·synthetic·lambda$static$0(Lcom/android/textclassifier/common/intent/LabeledIntent;Landroid/content/pm/ResolveInfo;)Ljava/lang/CharSequence;195 .method·static·synthetic·lambda$static$0(Lcom/android/textclassifier/common/intent/LabeledIntent;Landroid/content/pm/ResolveInfo;)Ljava/lang/CharSequence;
269 ····.locals·0196 ····.locals·0
  
270 ····.line·42197 ····.line·41
271 ····iget-object·p1,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->titleWithEntity:Ljava/lang/String;198 ····iget-object·p1,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->titleWithEntity:Ljava/lang/String;
  
272 ····invoke-static·{p1},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z199 ····invoke-static·{p1},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
  
273 ····move-result·p1200 ····move-result·p1
  
274 ····if-nez·p1,·:cond_0201 ····if-nez·p1,·:cond_0
  
275 ····.line·43202 ····.line·42
276 ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->titleWithEntity:Ljava/lang/String;203 ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->titleWithEntity:Ljava/lang/String;
  
277 ····return-object·p0204 ····return-object·p0
  
278 ····.line·45205 ····.line·44
279 ····:cond_0206 ····:cond_0
280 ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->titleWithoutEntity:Ljava/lang/String;207 ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->titleWithoutEntity:Ljava/lang/String;
  
281 ····return-object·p0208 ····return-object·p0
282 .end·method209 .end·method
  
283 .method·private·resolveDescription(Landroid/content/pm/ResolveInfo;Landroid/content/pm/PackageManager;)Ljava/lang/String;210 .method·private·resolveDescription(Landroid/content/pm/ResolveInfo;Landroid/content/pm/PackageManager;)Ljava/lang/String;
284 ····.locals·1211 ····.locals·1
  
285 ····.line·188212 ····.line·143
286 ····iget-object·v0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->descriptionWithAppName:Ljava/lang/String;213 ····iget-object·v0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->descriptionWithAppName:Ljava/lang/String;
  
287 ····invoke-static·{v0},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z214 ····invoke-static·{v0},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
  
288 ····move-result·v0215 ····move-result·v0
  
289 ····if-nez·v0,·:cond_0216 ····if-nez·v0,·:cond_0
  
290 ····.line·190217 ····.line·145
291 ····invoke-static·{p1,·p2},·Lcom/android/textclassifier/common/intent/LabeledIntent;->getApplicationName(Landroid/content/pm/ResolveInfo;Landroid/content/pm/PackageManager;)Ljava/lang/String;218 ····invoke-static·{p1,·p2},·Lcom/android/textclassifier/common/intent/LabeledIntent;->getApplicationName(Landroid/content/pm/ResolveInfo;Landroid/content/pm/PackageManager;)Ljava/lang/String;
  
292 ····move-result-object·p1219 ····move-result-object·p1
  
293 ····.line·191220 ····.line·146
294 ····invoke-static·{p1},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z221 ····invoke-static·{p1},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
  
295 ····move-result·p2222 ····move-result·p2
  
296 ····if-nez·p2,·:cond_0223 ····if-nez·p2,·:cond_0
  
297 ····.line·192224 ····.line·147
298 ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->descriptionWithAppName:Ljava/lang/String;225 ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->descriptionWithAppName:Ljava/lang/String;
  
299 ····const/4·p2,·0x1226 ····const/4·p2,·0x1
  
300 ····new-array·p2,·p2,·[Ljava/lang/Object;227 ····new-array·p2,·p2,·[Ljava/lang/Object;
  
301 ····const/4·v0,·0x0228 ····const/4·v0,·0x0
Offset 421, 237 lines modifiedOffset 298, 224 lines modified
  
421 ····invoke-static·{p0,·p2},·Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;298 ····invoke-static·{p0,·p2},·Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
  
422 ····move-result-object·p0299 ····move-result-object·p0
  
423 ····return-object·p0300 ····return-object·p0
  
424 ····.line·195301 ····.line·150
425 ····:cond_0302 ····:cond_0
426 ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->description:Ljava/lang/String;303 ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->description:Ljava/lang/String;
  
427 ····return-object·p0304 ····return-object·p0
428 .end·method305 .end·method
  
  
429 #·virtual·methods306 #·virtual·methods
430 .method·public·resolve(Landroid/content/Context;Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser;)Lcom/android/textclassifier/common/intent/LabeledIntent$Result;307 .method·public·resolve(Landroid/content/Context;Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser;)Lcom/android/textclassifier/common/intent/LabeledIntent$Result;
431 ····.locals·10308 ····.locals·9
  
432 ····.line·94309 ····.line·93
433 ····invoke-virtual·{p1},·Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;310 ····invoke-virtual·{p1},·Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
  
434 ····move-result-object·v0311 ····move-result-object·v0
  
435 ····.line·95312 ····.line·94
436 ····iget-object·v1,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->intent:Landroid/content/Intent;313 ····iget-object·v1,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->intent:Landroid/content/Intent;
  
437 ····const/4·v2,·0x0314 ····const/4·v2,·0x0
  
438 ····invoke-virtual·{v0,·v1,·v2},·Landroid/content/pm/PackageManager;->resolveActivity(Landroid/content/Intent;I)Landroid/content/pm/ResolveInfo;315 ····invoke-virtual·{v0,·v1,·v2},·Landroid/content/pm/PackageManager;->resolveActivity(Landroid/content/Intent;I)Landroid/content/pm/ResolveInfo;
  
439 ····move-result-object·v8316 ····move-result-object·v1
  
440 ····const·v0,·0x1080045 
  
441 ····const-string·v1,·"LabeledIntent" 
  
442 ····const/4·v3,·0x0317 ····const/4·v3,·0x0
  
443 ····if-eqz·v8,·:cond_6318 ····const-string·v4,·"LabeledIntent"
  
444 ····.line·97319 ····if-eqz·v1,·:cond_8
445 ····iget-object·v4,·v8,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo; 
  
446 ····if-nez·v4,·:cond_0320 ····.line·96
 321 ····iget-object·v5,·v1,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;
  
447 ····goto/16·:goto_2322 ····if-nez·v5,·:cond_0
  
448 ····.line·119323 ····goto/16·:goto_1
  
 324 ····.line·100
449 ····:cond_0325 ····:cond_0
450 ····invoke-static·{p1,·v4},·Lcom/android/textclassifier/common/intent/LabeledIntent;->hasPermission(Landroid/content/Context;Landroid/content/pm/ActivityInfo;)Z326 ····invoke-static·{p1,·v5},·Lcom/android/textclassifier/common/intent/LabeledIntent;->hasPermission(Landroid/content/Context;Landroid/content/pm/ActivityInfo;)Z
  
451 ····move-result·v4327 ····move-result·v5
  
452 ····if-nez·v4,·:cond_1328 ····if-nez·v5,·:cond_1
  
453 ····.line·120329 ····.line·101
454 ····new-instance·p0,·Ljava/lang/StringBuilder;330 ····new-instance·p0,·Ljava/lang/StringBuilder;
  
455 ····invoke-direct·{p0},·Ljava/lang/StringBuilder;-><init>()V331 ····invoke-direct·{p0},·Ljava/lang/StringBuilder;-><init>()V
  
456 ····const-string·p1,·"No·permission·to·access:·"332 ····const-string·p1,·"No·permission·to·access:·"
  
457 ····invoke-virtual·{p0,·p1},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;333 ····invoke-virtual·{p0,·p1},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  
458 ····iget-object·p1,·v8,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;334 ····iget-object·p1,·v1,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;
  
459 ····invoke-virtual·{p0,·p1},·Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;335 ····invoke-virtual·{p0,·p1},·Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
  
460 ····invoke-virtual·{p0},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String;336 ····invoke-virtual·{p0},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  
461 ····move-result-object·p0337 ····move-result-object·p0
  
462 ····invoke-static·{v1,·p0},·Lcom/android/textclassifier/common/base/TcLog;->d(Ljava/lang/String;Ljava/lang/String;)V338 ····invoke-static·{v4,·p0},·Lcom/android/textclassifier/common/base/TcLog;->d(Ljava/lang/String;Ljava/lang/String;)V
  
463 ····return-object·v3339 ····return-object·v3
  
464 ····.line·124340 ····.line·105
465 ····:cond_1341 ····:cond_1
466 ····iget-object·v4,·v8,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;342 ····iget-object·v5,·v1,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;
  
467 ····iget-object·v5,·v4,·Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;343 ····iget-object·v6,·v5,·Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;
  
468 ····.line·125344 ····.line·106
469 ····iget-object·v4,·v4,·Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String;345 ····iget-object·v5,·v5,·Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String;
  
470 ····if-eqz·v5,·:cond_5346 ····if-eqz·v6,·:cond_7
  
471 ····if-nez·v4,·:cond_2347 ····if-nez·v5,·:cond_2
  
472 ····goto·:goto_1348 ····goto·:goto_0
  
473 ····.line·130349 ····.line·111
474 ····:cond_2350 ····:cond_2
475 ····new-instance·v1,·Landroid/content/Intent;351 ····new-instance·v7,·Landroid/content/Intent;
  
476 ····iget-object·v6,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->intent:Landroid/content/Intent;352 ····iget-object·v8,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->intent:Landroid/content/Intent;
  
477 ····invoke-direct·{v1,·v6},·Landroid/content/Intent;-><init>(Landroid/content/Intent;)V353 ····invoke-direct·{v7,·v8},·Landroid/content/Intent;-><init>(Landroid/content/Intent;)V
  
478 ····const-string·v6,·"android"354 ····const-string·v8,·"android"
  
479 ····.line·133355 ····.line·114
480 ····invoke-virtual·{v6,·v5},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z356 ····invoke-virtual·{v8,·v6},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z
  
481 ····move-result·v6357 ····move-result·v8
  
482 ····if-nez·v6,·:cond_3358 ····if-nez·v8,·:cond_3
  
483 ····.line·137359 ····.line·118
484 ····new-instance·v6,·Landroid/content/ComponentName;360 ····new-instance·v8,·Landroid/content/ComponentName;
  
485 ····invoke-direct·{v6,·v5,·v4},·Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V361 ····invoke-direct·{v8,·v6,·v5},·Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V
  
486 ····invoke-virtual·{v1,·v6},·Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;362 ····invoke-virtual·{v7,·v8},·Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;
  
487 ····.line·138363 ····.line·119
488 ····iget-object·v4,·v8,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;364 ····iget-object·v5,·v1,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;
  
489 ····invoke-virtual·{v4},·Landroid/content/pm/ActivityInfo;->getIconResource()I365 ····invoke-virtual·{v5},·Landroid/content/pm/ActivityInfo;->getIconResource()I
  
490 ····move-result·v4366 ····move-result·v5
  
491 ····if-eqz·v4,·:cond_3367 ····if-eqz·v5,·:cond_3
  
492 ····.line·139368 ····.line·120
493 ····iget-object·v2,·v8,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;369 ····iget-object·v2,·v1,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;
  
494 ····.line·140370 ····.line·121
495 ····invoke-virtual·{v2},·Landroid/content/pm/ActivityInfo;->getIconResource()I371 ····invoke-virtual·{v2},·Landroid/content/pm/ActivityInfo;->getIconResource()I
  
496 ····move-result·v2372 ····move-result·v2
  
497 ····invoke-static·{p1,·v5,·v2},·Lcom/android/textclassifier/common/intent/LabeledIntent;->createIconFromPackage(Landroid/content/Context;Ljava/lang/String;I)Landroidx/core/graphics/drawable/IconCompat;373 ····invoke-static·{p1,·v6,·v2},·Lcom/android/textclassifier/common/intent/LabeledIntent;->createIconFromPackage(Landroid/content/Context;Ljava/lang/String;I)Landroidx/core/graphics/drawable/IconCompat;
  
498 ····move-result-object·v3374 ····move-result-object·v3
  
499 ····const/4·v2,·0x1375 ····const/4·v2,·0x1
  
500 ····:cond_3376 ····:cond_3
501 ····move·v7,·v2 
  
502 ····if-nez·v3,·:cond_4377 ····if-nez·v3,·:cond_4
  
503 ····.line·146378 ····const·v3,·0x1080045
504 ····invoke-static·{p1,·v0},·Landroidx/core/graphics/drawable/IconCompat;->createWithResource(Landroid/content/Context;I)Landroidx/core/graphics/drawable/IconCompat; 
  
505 ····move-result-object·v0379 ····.line·127
 380 ····invoke-static·{p1,·v3},·Landroidx/core/graphics/drawable/IconCompat;->createWithResource(Landroid/content/Context;I)Landroidx/core/graphics/drawable/IconCompat;
506 ····move-object·v6,·v0 
  
507 ····goto·:goto_0381 ····move-result-object·v3
  
 382 ····.line·129
508 ····:cond_4383 ····:cond_4
509 ····move-object·v6,·v3384 ····iget·v5,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->requestCode:I
  
510 ····:goto_0 
511 ····move-object·v3,·p0 
  
512 ····move-object·v4,·p1 
  
513 ····move-object·v5,·v1 
  
514 ····move-object·v9,·p2 
  
515 ····.line·149385 ····invoke-static·{p1,·v7,·v5},·Lcom/android/textclassifier/common/intent/LabeledIntent;->createPendingIntent(Landroid/content/Context;Landroid/content/Intent;I)Landroid/app/PendingIntent;
516 ····invoke-direct/range·{v3·..·v9},·Lcom/android/textclassifier/common/intent/LabeledIntent;->createRemoteAction(Landroid/content/Context;Landroid/content/Intent;Landroidx/core/graphics/drawable/IconCompat;ZLandroid/content/pm/ResolveInfo;Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser;)Landroidx/core/app/RemoteActionCompat; 
  
517 ····move-result-object·p0386 ····move-result-object·p1
  
518 ····.line·151 
519 ····new-instance·p1,·Lcom/android/textclassifier/common/intent/LabeledIntent$Result; 
  
520 ····invoke-direct·{p1,·v1,·p0},·Lcom/android/textclassifier/common/intent/LabeledIntent$Result;-><init>(Landroid/content/Intent;Landroidx/core/app/RemoteActionCompat;)V387 ····if-nez·p2,·:cond_5
  
521 ····return-object·p1388 ····.line·130
 389 ····sget-object·p2,·Lcom/android/textclassifier/common/intent/LabeledIntent;->DEFAULT_TITLE_CHOOSER:Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser;
  
 390 ····.line·131
522 ····:cond_5391 ····:cond_5
523 ····:goto_1392 ····invoke-interface·{p2,·p0,·v1},·Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser;->chooseTitle(Lcom/android/textclassifier/common/intent/LabeledIntent;Landroid/content/pm/ResolveInfo;)Ljava/lang/CharSequence;
524 ····const-string·p0,·"packageName·or·className·is·null" 
  
525 ····.line·127393 ····move-result-object·p2
526 ····invoke-static·{v1,·p0},·Lcom/android/textclassifier/common/base/TcLog;->w(Ljava/lang/String;Ljava/lang/String;)V 
  
527 ····return-object·v3394 ····.line·132
 395 ····invoke-static·{p2},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
  
528 ····.line·107396 ····move-result·v5
529 ····:cond_6 
530 ····:goto_2 
531 ····invoke-direct·{p0},·Lcom/android/textclassifier/common/intent/LabeledIntent;->isWebIntent()Z 
  
532 ····move-result·v2397 ····if-eqz·v5,·:cond_6
  
533 ····if-eqz·v2,·:cond_7398 ····const-string·p2,·"Custom·titleChooser·return·null,·fallback·to·the·default·titleChooser"
  
534 ····.line·108399 ····.line·133
535 ····invoke-static·{p1,·v0},·Landroidx/core/graphics/drawable/IconCompat;->createWithResource(Landroid/content/Context;I)Landroidx/core/graphics/drawable/IconCompat;400 ····invoke-static·{v4,·p2},·Lcom/android/textclassifier/common/base/TcLog;->w(Ljava/lang/String;Ljava/lang/String;)V
  
536 ····move-result-object·v6401 ····.line·134
 402 ····sget-object·p2,·Lcom/android/textclassifier/common/intent/LabeledIntent;->DEFAULT_TITLE_CHOOSER:Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser;
  
537 ····.line·109403 ····invoke-interface·{p2,·p0,·v1},·Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser;->chooseTitle(Lcom/android/textclassifier/common/intent/LabeledIntent;Landroid/content/pm/ResolveInfo;)Ljava/lang/CharSequence;
538 ····iget-object·v5,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->intent:Landroid/content/Intent; 
  
539 ····const/4·v7,·0x0404 ····move-result-object·p2
  
540 ····move-object·v3,·p0405 ····.line·136
 406 ····:cond_6
 407 ····new-instance·v4,·Landroidx/core/app/RemoteActionCompat;
  
541 ····move-object·v4,·p1408 ····.line·137
 409 ····invoke-direct·{p0,·v1,·v0},·Lcom/android/textclassifier/common/intent/LabeledIntent;->resolveDescription(Landroid/content/pm/ResolveInfo;Landroid/content/pm/PackageManager;)Ljava/lang/String;
  
542 ····move-object·v9,·p2410 ····move-result-object·p0
  
543 ····.line·110411 ····invoke-direct·{v4,·v3,·p2,·p0,·p1},·Landroidx/core/app/RemoteActionCompat;-><init>(Landroidx/core/graphics/drawable/IconCompat;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V
544 ····invoke-direct/range·{v3·..·v9},·Lcom/android/textclassifier/common/intent/LabeledIntent;->createRemoteAction(Landroid/content/Context;Landroid/content/Intent;Landroidx/core/graphics/drawable/IconCompat;ZLandroid/content/pm/ResolveInfo;Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser;)Landroidx/core/app/RemoteActionCompat; 
  
545 ····move-result-object·p1412 ····.line·138
 413 ····invoke-virtual·{v4,·v2},·Landroidx/core/app/RemoteActionCompat;->setShouldShowIcon(Z)V
  
546 ····.line·113414 ····.line·139
547 ····new-instance·p2,·Lcom/android/textclassifier/common/intent/LabeledIntent$Result;415 ····new-instance·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent$Result;
  
548 ····new-instance·v0,·Landroid/content/Intent;416 ····invoke-direct·{p0,·v7,·v4},·Lcom/android/textclassifier/common/intent/LabeledIntent$Result;-><init>(Landroid/content/Intent;Landroidx/core/app/RemoteActionCompat;)V
  
549 ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->intent:Landroid/content/Intent;417 ····return-object·p0
  
550 ····invoke-direct·{v0,·p0},·Landroid/content/Intent;-><init>(Landroid/content/Intent;)V418 ····:cond_7
 419 ····:goto_0
 420 ····const-string·p0,·"packageName·or·className·is·null"
  
551 ····invoke-direct·{p2,·v0,·p1},·Lcom/android/textclassifier/common/intent/LabeledIntent$Result;-><init>(Landroid/content/Intent;Landroidx/core/app/RemoteActionCompat;)V421 ····.line·108
 422 ····invoke-static·{v4,·p0},·Lcom/android/textclassifier/common/base/TcLog;->w(Ljava/lang/String;Ljava/lang/String;)V
  
552 ····return-object·p2423 ····return-object·v3
  
553 ····:cond_7424 ····:cond_8
 425 ····:goto_1
554 ····const-string·p0,·"resolveInfo·or·activityInfo·is·null"426 ····const-string·p0,·"resolveInfo·or·activityInfo·is·null"
  
555 ····.line·115427 ····.line·97
556 ····invoke-static·{v1,·p0},·Lcom/android/textclassifier/common/base/TcLog;->w(Ljava/lang/String;Ljava/lang/String;)V428 ····invoke-static·{v4,·p0},·Lcom/android/textclassifier/common/base/TcLog;->w(Ljava/lang/String;Ljava/lang/String;)V
  
557 ····return-object·v3429 ····return-object·v3
558 .end·method430 .end·method