Offset 12, 280 lines modifiedOffset 12, 280 lines modified
12 .end·annotation12 .end·annotation
  
  
13 #·direct·methods13 #·direct·methods
14 .method·public·static·fromBundle(Landroid/os/Bundle;)Landroidx/autofill/inline/v1/InlineSuggestionUi$Style;14 .method·public·static·fromBundle(Landroid/os/Bundle;)Landroidx/autofill/inline/v1/InlineSuggestionUi$Style;
15 ····.locals·115 ····.locals·1
  
16 ····.line·24416 ····.line·114
17 ····new-instance·v0,·Landroidx/autofill/inline/v1/InlineSuggestionUi$Style;17 ····new-instance·v0,·Landroidx/autofill/inline/v1/InlineSuggestionUi$Style;
  
18 ····invoke-direct·{v0,·p0},·Landroidx/autofill/inline/v1/InlineSuggestionUi$Style;-><init>(Landroid/os/Bundle;)V18 ····invoke-direct·{v0,·p0},·Landroidx/autofill/inline/v1/InlineSuggestionUi$Style;-><init>(Landroid/os/Bundle;)V
  
19 ····.line·24519 ····.line·115
20 ····invoke-virtual·{v0},·Landroidx/autofill/inline/common/BundledStyle;->isValid()Z20 ····invoke-virtual·{v0},·Landroidx/autofill/inline/common/BundledStyle;->isValid()Z
  
21 ····move-result·p021 ····move-result·p0
  
22 ····if-nez·p0,·:cond_022 ····if-nez·p0,·:cond_0
  
23 ····const-string·p0,·"InlineSuggestionUi"23 ····const-string·p0,·"InlineSuggestionUi"
  
24 ····const-string·v0,·"Invalid·style·for·androidx.autofill.inline.ui.version:v1"24 ····const-string·v0,·"Invalid·style·for·androidx.autofill.inline.ui.version:v1"
  
25 ····.line·24625 ····.line·116
26 ····invoke-static·{p0,·v0},·Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I26 ····invoke-static·{p0,·v0},·Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
  
27 ····const/4·p0,·0x027 ····const/4·p0,·0x0
  
28 ····return-object·p028 ····return-object·p0
  
29 ····:cond_029 ····:cond_0
30 ····return-object·v030 ····return-object·v0
31 .end·method31 .end·method
  
32 .method·public·static·fromSlice(Landroid/app/slice/Slice;)Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;32 .method·public·static·fromSlice(Landroid/app/slice/Slice;)Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;
33 ····.locals·133 ····.locals·1
  
34 ····.line·22834 ····.line·98
35 ····new-instance·v0,·Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;35 ····new-instance·v0,·Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;
  
36 ····invoke-direct·{v0,·p0},·Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;-><init>(Landroid/app/slice/Slice;)V36 ····invoke-direct·{v0,·p0},·Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;-><init>(Landroid/app/slice/Slice;)V
  
37 ····.line·22937 ····.line·99
38 ····invoke-virtual·{v0},·Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;->isValid()Z38 ····invoke-virtual·{v0},·Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;->isValid()Z
  
39 ····move-result·p039 ····move-result·p0
  
40 ····if-nez·p0,·:cond_040 ····if-nez·p0,·:cond_0
  
41 ····const-string·p0,·"InlineSuggestionUi"41 ····const-string·p0,·"InlineSuggestionUi"
  
42 ····const-string·v0,·"Invalid·content·for·androidx.autofill.inline.ui.version:v1"42 ····const-string·v0,·"Invalid·content·for·androidx.autofill.inline.ui.version:v1"
  
43 ····.line·23043 ····.line·100
44 ····invoke-static·{p0,·v0},·Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I44 ····invoke-static·{p0,·v0},·Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
  
45 ····const/4·p0,·0x045 ····const/4·p0,·0x0
  
46 ····return-object·p046 ····return-object·p0
  
47 ····:cond_047 ····:cond_0
48 ····return-object·v048 ····return-object·v0
49 .end·method49 .end·method
  
50 .method·public·static·getAttributionIntent(Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;)Landroid/app/PendingIntent;50 .method·public·static·getAttributionIntent(Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;)Landroid/app/PendingIntent;
51 ····.locals·051 ····.locals·0
  
52 ····.line·31952 ····.line·189
53 ····invoke-virtual·{p0},·Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;->getAttributionIntent()Landroid/app/PendingIntent;53 ····invoke-virtual·{p0},·Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;->getAttributionIntent()Landroid/app/PendingIntent;
  
54 ····move-result-object·p054 ····move-result-object·p0
  
55 ····return-object·p055 ····return-object·p0
56 .end·method56 .end·method
  
57 .method·private·static·getDefaultContextThemeWrapper(Landroid/content/Context;)Landroid/content/Context;57 .method·private·static·getDefaultContextThemeWrapper(Landroid/content/Context;)Landroid/content/Context;
58 ····.locals·358 ····.locals·3
  
59 ····.line·32359 ····.line·193
60 ····invoke-virtual·{p0},·Landroid/content/Context;->getResources()Landroid/content/res/Resources;60 ····invoke-virtual·{p0},·Landroid/content/Context;->getResources()Landroid/content/res/Resources;
  
61 ····move-result-object·v061 ····move-result-object·v0
  
62 ····invoke-virtual·{v0},·Landroid/content/res/Resources;->newTheme()Landroid/content/res/Resources$Theme;62 ····invoke-virtual·{v0},·Landroid/content/res/Resources;->newTheme()Landroid/content/res/Resources$Theme;
  
63 ····move-result-object·v063 ····move-result-object·v0
  
64 ····.line·32464 ····.line·194
65 ····sget·v1,·Landroidx/autofill/R$style;->Theme_AutofillInlineSuggestion:I65 ····sget·v1,·Landroidx/autofill/R$style;->Theme_AutofillInlineSuggestion:I
  
66 ····const/4·v2,·0x166 ····const/4·v2,·0x1
  
67 ····invoke-virtual·{v0,·v1,·v2},·Landroid/content/res/Resources$Theme;->applyStyle(IZ)V67 ····invoke-virtual·{v0,·v1,·v2},·Landroid/content/res/Resources$Theme;->applyStyle(IZ)V
  
68 ····.line·32568 ····.line·195
69 ····new-instance·v1,·Landroid/view/ContextThemeWrapper;69 ····new-instance·v1,·Landroid/view/ContextThemeWrapper;
  
70 ····invoke-direct·{v1,·p0,·v0},·Landroid/view/ContextThemeWrapper;-><init>(Landroid/content/Context;Landroid/content/res/Resources$Theme;)V70 ····invoke-direct·{v1,·p0,·v0},·Landroid/view/ContextThemeWrapper;-><init>(Landroid/content/Context;Landroid/content/res/Resources$Theme;)V
  
71 ····return-object·v171 ····return-object·v1
72 .end·method72 .end·method
  
73 .method·public·static·render(Landroid/content/Context;Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;Landroidx/autofill/inline/v1/InlineSuggestionUi$Style;)Landroid/view/View;73 .method·public·static·render(Landroid/content/Context;Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;Landroidx/autofill/inline/v1/InlineSuggestionUi$Style;)Landroid/view/View;
74 ····.locals·674 ····.locals·6
  
75 ····.line·26175 ····.line·131
76 ····invoke-static·{p0},·Landroidx/autofill/inline/v1/InlineSuggestionUi;->getDefaultContextThemeWrapper(Landroid/content/Context;)Landroid/content/Context;76 ····invoke-static·{p0},·Landroidx/autofill/inline/v1/InlineSuggestionUi;->getDefaultContextThemeWrapper(Landroid/content/Context;)Landroid/content/Context;
  
77 ····move-result-object·p077 ····move-result-object·p0
  
78 ····.line·26278 ····.line·132
79 ····invoke-static·{p0},·Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;79 ····invoke-static·{p0},·Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
  
80 ····move-result-object·p080 ····move-result-object·p0
  
81 ····.line·26381 ····.line·133
82 ····sget·v0,·Landroidx/autofill/R$layout;->autofill_inline_suggestion:I82 ····sget·v0,·Landroidx/autofill/R$layout;->autofill_inline_suggestion:I
  
83 ····const/4·v1,·0x083 ····const/4·v1,·0x0
  
84 ····.line·26484 ····.line·134
85 ····invoke-virtual·{p0,·v0,·v1},·Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;85 ····invoke-virtual·{p0,·v0,·v1},·Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
  
86 ····move-result-object·p086 ····move-result-object·p0
  
87 ····check-cast·p0,·Landroid/view/ViewGroup;87 ····check-cast·p0,·Landroid/view/ViewGroup;
  
88 ····.line·26688 ····.line·136
89 ····sget·v0,·Landroidx/autofill/R$id;->autofill_inline_suggestion_start_icon:I89 ····sget·v0,·Landroidx/autofill/R$id;->autofill_inline_suggestion_start_icon:I
  
90 ····.line·26790 ····.line·137
91 ····invoke-virtual·{p0,·v0},·Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;91 ····invoke-virtual·{p0,·v0},·Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
  
92 ····move-result-object·v092 ····move-result-object·v0
  
93 ····move-object·v2,·v093 ····move-object·v2,·v0
  
94 ····check-cast·v2,·Landroid/widget/ImageView;94 ····check-cast·v2,·Landroid/widget/ImageView;
  
95 ····.line·26895 ····.line·138
96 ····sget·v0,·Landroidx/autofill/R$id;->autofill_inline_suggestion_title:I96 ····sget·v0,·Landroidx/autofill/R$id;->autofill_inline_suggestion_title:I
  
97 ····.line·26997 ····.line·139
98 ····invoke-virtual·{p0,·v0},·Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;98 ····invoke-virtual·{p0,·v0},·Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
  
99 ····move-result-object·v099 ····move-result-object·v0
  
100 ····move-object·v3,·v0100 ····move-object·v3,·v0
  
101 ····check-cast·v3,·Landroid/widget/TextView;101 ····check-cast·v3,·Landroid/widget/TextView;
  
102 ····.line·270102 ····.line·140
103 ····sget·v0,·Landroidx/autofill/R$id;->autofill_inline_suggestion_subtitle:I103 ····sget·v0,·Landroidx/autofill/R$id;->autofill_inline_suggestion_subtitle:I
  
104 ····.line·271104 ····.line·141
105 ····invoke-virtual·{p0,·v0},·Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;105 ····invoke-virtual·{p0,·v0},·Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
  
106 ····move-result-object·v0106 ····move-result-object·v0
  
107 ····move-object·v4,·v0107 ····move-object·v4,·v0
  
108 ····check-cast·v4,·Landroid/widget/TextView;108 ····check-cast·v4,·Landroid/widget/TextView;
  
109 ····.line·272109 ····.line·142
110 ····sget·v0,·Landroidx/autofill/R$id;->autofill_inline_suggestion_end_icon:I110 ····sget·v0,·Landroidx/autofill/R$id;->autofill_inline_suggestion_end_icon:I
  
111 ····.line·273111 ····.line·143
112 ····invoke-virtual·{p0,·v0},·Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;112 ····invoke-virtual·{p0,·v0},·Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
  
113 ····move-result-object·v0113 ····move-result-object·v0
  
114 ····move-object·v5,·v0114 ····move-object·v5,·v0
  
115 ····check-cast·v5,·Landroid/widget/ImageView;115 ····check-cast·v5,·Landroid/widget/ImageView;
  
116 ····.line·275116 ····.line·145
117 ····invoke-virtual·{p1},·Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;->getTitle()Ljava/lang/CharSequence;117 ····invoke-virtual·{p1},·Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;->getTitle()Ljava/lang/CharSequence;
  
118 ····move-result-object·v0118 ····move-result-object·v0
  
119 ····const/4·v1,·0x0119 ····const/4·v1,·0x0
  
120 ····if-eqz·v0,·:cond_0120 ····if-eqz·v0,·:cond_0
  
121 ····.line·277121 ····.line·147
122 ····invoke-virtual·{v3,·v0},·Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V122 ····invoke-virtual·{v3,·v0},·Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
  
123 ····.line·278123 ····.line·148
124 ····invoke-virtual·{v3,·v1},·Landroid/widget/TextView;->setVisibility(I)V124 ····invoke-virtual·{v3,·v1},·Landroid/widget/TextView;->setVisibility(I)V
  
125 ····.line·280125 ····.line·150
126 ····:cond_0126 ····:cond_0
127 ····invoke-virtual·{p1},·Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;->getSubtitle()Ljava/lang/CharSequence;127 ····invoke-virtual·{p1},·Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;->getSubtitle()Ljava/lang/CharSequence;
  
128 ····move-result-object·v0128 ····move-result-object·v0
  
129 ····if-eqz·v0,·:cond_1129 ····if-eqz·v0,·:cond_1
  
130 ····.line·282130 ····.line·152
131 ····invoke-virtual·{v4,·v0},·Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V131 ····invoke-virtual·{v4,·v0},·Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
  
132 ····.line·283132 ····.line·153
133 ····invoke-virtual·{v4,·v1},·Landroid/widget/TextView;->setVisibility(I)V133 ····invoke-virtual·{v4,·v1},·Landroid/widget/TextView;->setVisibility(I)V
  
134 ····.line·285134 ····.line·155
135 ····:cond_1135 ····:cond_1
136 ····invoke-virtual·{p1},·Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;->getStartIcon()Landroid/graphics/drawable/Icon;136 ····invoke-virtual·{p1},·Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;->getStartIcon()Landroid/graphics/drawable/Icon;
  
137 ····move-result-object·v0137 ····move-result-object·v0
  
138 ····if-eqz·v0,·:cond_2138 ····if-eqz·v0,·:cond_2
  
139 ····.line·287139 ····.line·157
140 ····invoke-virtual·{v2,·v0},·Landroid/widget/ImageView;->setImageIcon(Landroid/graphics/drawable/Icon;)V140 ····invoke-virtual·{v2,·v0},·Landroid/widget/ImageView;->setImageIcon(Landroid/graphics/drawable/Icon;)V
  
141 ····.line·288141 ····.line·158
142 ····invoke-virtual·{v2,·v1},·Landroid/widget/ImageView;->setVisibility(I)V142 ····invoke-virtual·{v2,·v1},·Landroid/widget/ImageView;->setVisibility(I)V
  
143 ····.line·290143 ····.line·160
144 ····:cond_2144 ····:cond_2
145 ····invoke-virtual·{p1},·Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;->getEndIcon()Landroid/graphics/drawable/Icon;145 ····invoke-virtual·{p1},·Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;->getEndIcon()Landroid/graphics/drawable/Icon;
  
146 ····move-result-object·v0146 ····move-result-object·v0
  
147 ····if-eqz·v0,·:cond_3147 ····if-eqz·v0,·:cond_3
  
148 ····.line·292148 ····.line·162
149 ····invoke-virtual·{v5,·v0},·Landroid/widget/ImageView;->setImageIcon(Landroid/graphics/drawable/Icon;)V149 ····invoke-virtual·{v5,·v0},·Landroid/widget/ImageView;->setImageIcon(Landroid/graphics/drawable/Icon;)V
  
150 ····.line·293150 ····.line·163
151 ····invoke-virtual·{v5,·v1},·Landroid/widget/ImageView;->setVisibility(I)V151 ····invoke-virtual·{v5,·v1},·Landroid/widget/ImageView;->setVisibility(I)V
  
152 ····.line·295152 ····.line·165
153 ····:cond_3153 ····:cond_3
154 ····invoke-virtual·{p1},·Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;->getContentDescription()Ljava/lang/CharSequence;154 ····invoke-virtual·{p1},·Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;->getContentDescription()Ljava/lang/CharSequence;
  
155 ····move-result-object·v0155 ····move-result-object·v0
  
156 ····.line·296156 ····.line·166
157 ····invoke-static·{v0},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z157 ····invoke-static·{v0},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
  
158 ····move-result·v1158 ····move-result·v1
  
159 ····if-nez·v1,·:cond_4159 ····if-nez·v1,·:cond_4
  
160 ····.line·297160 ····.line·167
161 ····invoke-virtual·{p0,·v0},·Landroid/view/ViewGroup;->setContentDescription(Ljava/lang/CharSequence;)V161 ····invoke-virtual·{p0,·v0},·Landroid/view/ViewGroup;->setContentDescription(Ljava/lang/CharSequence;)V
  
162 ····.line·300162 ····.line·170
163 ····:cond_4163 ····:cond_4
164 ····invoke-virtual·{p2},·Landroidx/autofill/inline/common/BundledStyle;->isValid()Z164 ····invoke-virtual·{p2},·Landroidx/autofill/inline/common/BundledStyle;->isValid()Z
  
165 ····move-result·v0165 ····move-result·v0
  
166 ····if-eqz·v0,·:cond_6166 ····if-eqz·v0,·:cond_6
  
167 ····.line·301167 ····.line·171
168 ····invoke-virtual·{p1},·Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;->isSingleIconOnly()Z168 ····invoke-virtual·{p1},·Landroidx/autofill/inline/v1/InlineSuggestionUi$Content;->isSingleIconOnly()Z
  
169 ····move-result·p1169 ····move-result·p1
  
170 ····if-eqz·p1,·:cond_5170 ····if-eqz·p1,·:cond_5
  
171 ····.line·302171 ····.line·172
172 ····invoke-virtual·{p2,·p0,·v2},·Landroidx/autofill/inline/v1/InlineSuggestionUi$Style;->applyStyle(Landroid/view/View;Landroid/widget/ImageView;)V172 ····invoke-virtual·{p2,·p0,·v2},·Landroidx/autofill/inline/v1/InlineSuggestionUi$Style;->applyStyle(Landroid/view/View;Landroid/widget/ImageView;)V
  
173 ····goto·:goto_0173 ····goto·:goto_0
  
174 ····:cond_5174 ····:cond_5
175 ····move-object·v0,·p2175 ····move-object·v0,·p2
  
176 ····move-object·v1,·p0176 ····move-object·v1,·p0
  
177 ····.line·304177 ····.line·174
178 ····invoke-virtual/range·{v0·..·v5},·Landroidx/autofill/inline/v1/InlineSuggestionUi$Style;->applyStyle(Landroid/view/View;Landroid/widget/ImageView;Landroid/widget/TextView;Landroid/widget/TextView;Landroid/widget/ImageView;)V178 ····invoke-virtual/range·{v0·..·v5},·Landroidx/autofill/inline/v1/InlineSuggestionUi$Style;->applyStyle(Landroid/view/View;Landroid/widget/ImageView;Landroid/widget/TextView;Landroid/widget/TextView;Landroid/widget/ImageView;)V
  
179 ····:cond_6179 ····:cond_6
180 ····:goto_0180 ····:goto_0
181 ····return-object·p0181 ····return-object·p0
182 .end·method182 .end·method