| | | |
Offset 47, 228 lines modified | Offset 47, 261 lines modified |
| |
47 | #·direct·methods | 47 | #·direct·methods |
48 | .method·public·constructor·<init>(Landroid/content/Context;)V | 48 | .method·public·constructor·<init>(Landroid/content/Context;)V |
49 | ····.locals·1 | 49 | ····.locals·1 |
| |
50 | ····const/4·v0,·0x0 | 50 | ····const/4·v0,·0x0 |
| |
51 | ····.line·73 | 51 | ····.line·74 |
52 | ····invoke-direct·{p0,·p1,·v0},·Lcom/android/car/ui/toolbar/SearchView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V | 52 | ····invoke-direct·{p0,·p1,·v0},·Lcom/android/car/ui/toolbar/SearchView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V |
| |
53 | ····return-void | 53 | ····return-void |
54 | .end·method | 54 | .end·method |
| |
55 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V | 55 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V |
56 | ····.locals·1 | 56 | ····.locals·1 |
| |
57 | ····const/4·v0,·0x0 | 57 | ····const/4·v0,·0x0 |
| |
58 | ····.line·77 | 58 | ····.line·78 |
59 | ····invoke-direct·{p0,·p1,·p2,·v0},·Lcom/android/car/ui/toolbar/SearchView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V | 59 | ····invoke-direct·{p0,·p1,·p2,·v0},·Lcom/android/car/ui/toolbar/SearchView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V |
| |
60 | ····return-void | 60 | ····return-void |
61 | .end·method | 61 | .end·method |
| |
62 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V | 62 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V |
63 | ····.locals·2 | 63 | ····.locals·2 |
| |
64 | ····.line·81 | 64 | ····.line·82 |
65 | ····invoke-direct·{p0,·p1,·p2,·p3},·Landroidx/constraintlayout/widget/ConstraintLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V | 65 | ····invoke-direct·{p0,·p1,·p2,·p3},·Landroidx/constraintlayout/widget/ConstraintLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V |
| |
66 | ····.line·52 | 66 | ····.line·53 |
67 | ····invoke-static·{},·Ljava/util/Collections;->emptySet()Ljava/util/Set; | 67 | ····invoke-static·{},·Ljava/util/Collections;->emptySet()Ljava/util/Set; |
| |
68 | ····move-result-object·p2 | 68 | ····move-result-object·p2 |
| |
69 | ····iput-object·p2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchListeners:Ljava/util/Set; | 69 | ····iput-object·p2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchListeners:Ljava/util/Set; |
| |
70 | ····.line·54 | 70 | ····.line·55 |
71 | ····invoke-static·{},·Ljava/util/Collections;->emptySet()Ljava/util/Set; | 71 | ····invoke-static·{},·Ljava/util/Collections;->emptySet()Ljava/util/Set; |
| |
72 | ····move-result-object·p2 | 72 | ····move-result-object·p2 |
| |
73 | ····iput-object·p2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchCompletedListeners:Ljava/util/Set; | 73 | ····iput-object·p2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchCompletedListeners:Ljava/util/Set; |
| |
74 | ····.line·55 | 74 | ····.line·56 |
75 | ····new-instance·p2,·Lcom/android/car/ui/toolbar/SearchView$1; | 75 | ····new-instance·p2,·Lcom/android/car/ui/toolbar/SearchView$1; |
| |
76 | ····invoke-direct·{p2,·p0},·Lcom/android/car/ui/toolbar/SearchView$1;-><init>(Lcom/android/car/ui/toolbar/SearchView;)V | 76 | ····invoke-direct·{p2,·p0},·Lcom/android/car/ui/toolbar/SearchView$1;-><init>(Lcom/android/car/ui/toolbar/SearchView;)V |
| |
77 | ····iput-object·p2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mTextWatcher:Landroid/text/TextWatcher; | 77 | ····iput-object·p2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mTextWatcher:Landroid/text/TextWatcher; |
| |
78 | ····const/4·p2,·0x0 | 78 | ····const/4·p2,·0x0 |
| |
79 | ····.line·70 | 79 | ····.line·71 |
80 | ····iput-boolean·p2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mIsPlainText:Z | 80 | ····iput-boolean·p2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mIsPlainText:Z |
| |
81 | ····.line·128 | 81 | ····.line·151 |
82 | ····iput-boolean·p2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mWasShown:Z | 82 | ····iput-boolean·p2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mWasShown:Z |
| |
83 | ····.line·84 | 83 | ····.line·85 |
84 | ····invoke-virtual·{p0},·Landroid/view/ViewGroup;->getContext()Landroid/content/Context; | 84 | ····invoke-virtual·{p0},·Landroid/view/ViewGroup;->getContext()Landroid/content/Context; |
| |
85 | ····move-result-object·p3 | 85 | ····move-result-object·p3 |
| |
86 | ····const-string·v0,·"input_method" | 86 | ····const-string·v0,·"input_method" |
| |
87 | ····invoke-virtual·{p3,·v0},·Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object; | 87 | ····invoke-virtual·{p3,·v0},·Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object; |
| |
88 | ····move-result-object·p3 | 88 | ····move-result-object·p3 |
| |
89 | ····check-cast·p3,·Landroid/view/inputmethod/InputMethodManager; | 89 | ····check-cast·p3,·Landroid/view/inputmethod/InputMethodManager; |
| |
90 | ····iput-object·p3,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mInputMethodManager:Landroid/view/inputmethod/InputMethodManager; | 90 | ····iput-object·p3,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mInputMethodManager:Landroid/view/inputmethod/InputMethodManager; |
| |
91 | ····.line·86 | 91 | ····.line·87 |
92 | ····invoke-static·{p1},·Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater; | 92 | ····invoke-static·{p1},·Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater; |
| |
93 | ····move-result-object·p3 | 93 | ····move-result-object·p3 |
| |
94 | ····.line·87 | 94 | ····.line·88 |
95 | ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_toolbar_search_view:I | 95 | ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_toolbar_search_view:I |
| |
96 | ····const/4·v1,·0x1 | 96 | ····const/4·v1,·0x1 |
| |
97 | ····invoke-virtual·{p3,·v0,·p0,·v1},·Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View; | 97 | ····invoke-virtual·{p3,·v0,·p0,·v1},·Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View; |
| |
98 | ····.line·89 | 98 | ····.line·90 |
99 | ····sget·p3,·Lcom/android/car/ui/R$id;->car_ui_toolbar_search_bar:I | 99 | ····sget·p3,·Lcom/android/car/ui/R$id;->car_ui_toolbar_search_bar:I |
| |
100 | ····invoke-static·{p0,·p3},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; | 100 | ····invoke-static·{p0,·p3},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; |
| |
101 | ····move-result-object·p3 | 101 | ····move-result-object·p3 |
| |
102 | ····check-cast·p3,·Landroid/widget/EditText; | 102 | ····check-cast·p3,·Landroid/widget/EditText; |
| |
103 | ····iput-object·p3,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; | 103 | ····iput-object·p3,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; |
| |
104 | ····.line·90 | 104 | ····.line·91 |
105 | ····sget·p3,·Lcom/android/car/ui/R$id;->car_ui_toolbar_search_icon:I | 105 | ····sget·p3,·Lcom/android/car/ui/R$id;->car_ui_toolbar_search_icon:I |
| |
106 | ····invoke-static·{p0,·p3},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; | 106 | ····invoke-static·{p0,·p3},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; |
| |
107 | ····move-result-object·p3 | 107 | ····move-result-object·p3 |
| |
108 | ····check-cast·p3,·Landroid/widget/ImageView; | 108 | ····check-cast·p3,·Landroid/widget/ImageView; |
| |
109 | ····iput-object·p3,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mIcon:Landroid/widget/ImageView; | 109 | ····iput-object·p3,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mIcon:Landroid/widget/ImageView; |
| |
110 | ····.line·91 | 110 | ····.line·92 |
111 | ····sget·p3,·Lcom/android/car/ui/R$id;->car_ui_toolbar_search_close:I | 111 | ····sget·p3,·Lcom/android/car/ui/R$id;->car_ui_toolbar_search_close:I |
| |
112 | ····invoke-static·{p0,·p3},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; | 112 | ····invoke-static·{p0,·p3},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; |
| |
113 | ····move-result-object·p3 | 113 | ····move-result-object·p3 |
| |
114 | ····iput-object·p3,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mCloseIcon:Landroid/view/View; | 114 | ····iput-object·p3,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mCloseIcon:Landroid/view/View; |
| |
115 | ····.line·93 | 115 | ····.line·94 |
116 | ····new-instance·v0,·Lcom/android/car/ui/toolbar/-$$Lambda$SearchView$X_FGZTNuIRv-v80Y2K7F5FfOzQE; | 116 | ····new-instance·v0,·Lcom/android/car/ui/toolbar/-$$Lambda$SearchView$X_FGZTNuIRv-v80Y2K7F5FfOzQE; |
| |
117 | ····invoke-direct·{v0,·p0},·Lcom/android/car/ui/toolbar/-$$Lambda$SearchView$X_FGZTNuIRv-v80Y2K7F5FfOzQE;-><init>(Lcom/android/car/ui/toolbar/SearchView;)V | 117 | ····invoke-direct·{v0,·p0},·Lcom/android/car/ui/toolbar/-$$Lambda$SearchView$X_FGZTNuIRv-v80Y2K7F5FfOzQE;-><init>(Lcom/android/car/ui/toolbar/SearchView;)V |
| |
118 | ····invoke-virtual·{p3,·v0},·Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V | 118 | ····invoke-virtual·{p3,·v0},·Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V |
| |
119 | ····.line·94 | 119 | ····.line·95 |
120 | ····iget-object·p3,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mCloseIcon:Landroid/view/View; | 120 | ····iget-object·p3,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mCloseIcon:Landroid/view/View; |
| |
121 | ····const/16·v0,·0x8 | 121 | ····const/16·v0,·0x8 |
| |
122 | ····invoke-virtual·{p3,·v0},·Landroid/view/View;->setVisibility(I)V | 122 | ····invoke-virtual·{p3,·v0},·Landroid/view/View;->setVisibility(I)V |
| |
123 | ····.line·96 | 123 | ····.line·97 |
124 | ····iget-object·p3,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; | 124 | ····iget-object·p3,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; |
| |
125 | ····invoke-virtual·{p3},·Landroid/widget/EditText;->getPaddingStart()I | 125 | ····invoke-virtual·{p3},·Landroid/widget/EditText;->getPaddingStart()I |
| |
126 | ····move-result·p3 | 126 | ····move-result·p3 |
| |
127 | ····iput·p3,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mStartPaddingWithoutIcon:I | 127 | ····iput·p3,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mStartPaddingWithoutIcon:I |
| |
128 | ····.line·97 | 128 | ····.line·98 |
129 | ····invoke-virtual·{p1},·Landroid/content/Context;->getResources()Landroid/content/res/Resources; | 129 | ····invoke-virtual·{p1},·Landroid/content/Context;->getResources()Landroid/content/res/Resources; |
| |
130 | ····move-result-object·p3 | 130 | ····move-result-object·p3 |
| |
131 | ····sget·v0,·Lcom/android/car/ui/R$dimen;->car_ui_toolbar_search_search_icon_container_width:I | 131 | ····sget·v0,·Lcom/android/car/ui/R$dimen;->car_ui_toolbar_search_search_icon_container_width:I |
| |
132 | ····invoke-virtual·{p3,·v0},·Landroid/content/res/Resources;->getDimensionPixelSize(I)I | 132 | ····invoke-virtual·{p3,·v0},·Landroid/content/res/Resources;->getDimensionPixelSize(I)I |
| |
133 | ····move-result·p3 | 133 | ····move-result·p3 |
| |
134 | ····iput·p3,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mStartPadding:I | 134 | ····iput·p3,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mStartPadding:I |
| |
135 | ····.line·99 | 135 | ····.line·100 |
136 | ····invoke-virtual·{p1},·Landroid/content/Context;->getResources()Landroid/content/res/Resources; | 136 | ····invoke-virtual·{p1},·Landroid/content/Context;->getResources()Landroid/content/res/Resources; |
| |
137 | ····move-result-object·p1 | 137 | ····move-result-object·p1 |
| |
138 | ····sget·p3,·Lcom/android/car/ui/R$dimen;->car_ui_toolbar_search_close_icon_container_width:I | 138 | ····sget·p3,·Lcom/android/car/ui/R$dimen;->car_ui_toolbar_search_close_icon_container_width:I |
| |
139 | ····invoke-virtual·{p1,·p3},·Landroid/content/res/Resources;->getDimensionPixelSize(I)I | 139 | ····invoke-virtual·{p1,·p3},·Landroid/content/res/Resources;->getDimensionPixelSize(I)I |
| |
140 | ····move-result·p1 | 140 | ····move-result·p1 |
| |
141 | ····iput·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mEndPadding:I | 141 | ····iput·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mEndPadding:I |
| |
142 | ····.line·102 | 142 | ····.line·103 |
143 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; | 143 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; |
| |
144 | ····invoke-virtual·{p1,·p2},·Landroid/widget/EditText;->setSaveEnabled(Z)V | 144 | ····invoke-virtual·{p1,·p2},·Landroid/widget/EditText;->setSaveEnabled(Z)V |
| |
145 | ····.line·103 | 145 | ····.line·104 |
146 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; | 146 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; |
| |
147 | ····iget·p3,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mStartPadding:I | 147 | ····iget·p3,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mStartPadding:I |
| |
148 | ····iget·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mEndPadding:I | 148 | ····iget·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mEndPadding:I |
| |
149 | ····invoke-virtual·{p1,·p3,·p2,·v0,·p2},·Landroid/widget/EditText;->setPaddingRelative(IIII)V | 149 | ····invoke-virtual·{p1,·p3,·p2,·v0,·p2},·Landroid/widget/EditText;->setPaddingRelative(IIII)V |
| |
150 | ····.line·105 | 150 | ····.line·106 |
151 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; | 151 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; |
| |
152 | ····new-instance·p2,·Lcom/android/car/ui/toolbar/-$$Lambda$SearchView$X7fsaGo_U9eNegbbmVXAWpIsYEw; | 152 | ····new-instance·p2,·Lcom/android/car/ui/toolbar/-$$Lambda$SearchView$X7fsaGo_U9eNegbbmVXAWpIsYEw; |
| |
153 | ····invoke-direct·{p2,·p0},·Lcom/android/car/ui/toolbar/-$$Lambda$SearchView$X7fsaGo_U9eNegbbmVXAWpIsYEw;-><init>(Lcom/android/car/ui/toolbar/SearchView;)V | 153 | ····invoke-direct·{p2,·p0},·Lcom/android/car/ui/toolbar/-$$Lambda$SearchView$X7fsaGo_U9eNegbbmVXAWpIsYEw;-><init>(Lcom/android/car/ui/toolbar/SearchView;)V |
| |
154 | ····invoke-virtual·{p1,·p2},·Landroid/widget/EditText;->setOnFocusChangeListener(Landroid/view/View$OnFocusChangeListener;)V | 154 | ····invoke-virtual·{p1,·p2},·Landroid/widget/EditText;->setOnFocusChangeListener(Landroid/view/View$OnFocusChangeListener;)V |
| |
155 | ····.line·114 | 155 | ····.line·115 |
156 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; | 156 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; |
| |
157 | ····iget-object·p2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mTextWatcher:Landroid/text/TextWatcher; | 157 | ····iget-object·p2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mTextWatcher:Landroid/text/TextWatcher; |
| |
158 | ····invoke-virtual·{p1,·p2},·Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V | 158 | ····invoke-virtual·{p1,·p2},·Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V |
| |
159 | ····.line·116 | 159 | ····.line·117 |
160 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; | 160 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; |
| |
161 | ····new-instance·p2,·Lcom/android/car/ui/toolbar/-$$Lambda$SearchView$FG6VZSqwor2f82_F3UfmTiH0ZHc; | 161 | ····new-instance·p2,·Lcom/android/car/ui/toolbar/-$$Lambda$SearchView$FG6VZSqwor2f82_F3UfmTiH0ZHc; |
| |
162 | ····invoke-direct·{p2,·p0},·Lcom/android/car/ui/toolbar/-$$Lambda$SearchView$FG6VZSqwor2f82_F3UfmTiH0ZHc;-><init>(Lcom/android/car/ui/toolbar/SearchView;)V | 162 | ····invoke-direct·{p2,·p0},·Lcom/android/car/ui/toolbar/-$$Lambda$SearchView$FG6VZSqwor2f82_F3UfmTiH0ZHc;-><init>(Lcom/android/car/ui/toolbar/SearchView;)V |
| |
163 | ····invoke-virtual·{p1,·p2},·Landroid/widget/EditText;->setOnEditorActionListener(Landroid/widget/TextView$OnEditorActionListener;)V | 163 | ····invoke-virtual·{p1,·p2},·Landroid/widget/EditText;->setOnEditorActionListener(Landroid/widget/TextView$OnEditorActionListener;)V |
| |
164 | ····return-void | 164 | ····return-void |
165 | .end·method | 165 | .end·method |
| |
166 | .method·static·synthetic·access$000(Lcom/android/car/ui/toolbar/SearchView;Ljava/lang/String;)V | 166 | .method·static·synthetic·access$000(Lcom/android/car/ui/toolbar/SearchView;Ljava/lang/String;)V |
167 | ····.locals·0 | 167 | ····.locals·0 |
| |
168 | ····.line·44 | 168 | ····.line·45 |
169 | ····invoke-direct·{p0,·p1},·Lcom/android/car/ui/toolbar/SearchView;->onSearch(Ljava/lang/String;)V | 169 | ····invoke-direct·{p0,·p1},·Lcom/android/car/ui/toolbar/SearchView;->onSearch(Ljava/lang/String;)V |
| |
170 | ····return-void | 170 | ····return-void |
171 | .end·method | 171 | .end·method |
| |
| 172 | .method·private·isEnter(Landroid/view/KeyEvent;)Z |
| 173 | ····.locals·2 |
| |
| 174 | ····const/4·v0,·0x0 |
| |
| 175 | ····if-eqz·p1,·:cond_1 |
| |
| 176 | ····.line·136 |
| 177 | ····invoke-virtual·{p1},·Landroid/view/KeyEvent;->getKeyCode()I |
| |
| 178 | ····move-result·p1 |
| |
| 179 | ····const/16·v1,·0x42 |
| |
| 180 | ····if-eq·p1,·v1,·:cond_0 |
| |
| 181 | ····const/16·v1,·0xa0 |
| |
| 182 | ····if-eq·p1,·v1,·:cond_0 |
| |
| 183 | ····const/16·v1,·0x54 |
| |
| 184 | ····if-ne·p1,·v1,·:cond_1 |
| |
| 185 | ····:cond_0 |
| 186 | ····const/4·p1,·0x1 |
| |
| 187 | ····move·v0,·p1 |
| |
| 188 | ····:cond_1 |
| 189 | ····return·v0 |
| 190 | .end·method |
| |
172 | .method·private·synthetic·lambda$new$0(Landroid/view/View;)V | 191 | .method·private·synthetic·lambda$new$0(Landroid/view/View;)V |
173 | ····.locals·0 | 192 | ····.locals·0 |
| |
174 | ····.line·93 | 193 | ····.line·94 |
175 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; | 194 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; |
| |
176 | ····invoke-virtual·{p1},·Landroid/widget/EditText;->getText()Landroid/text/Editable; | 195 | ····invoke-virtual·{p1},·Landroid/widget/EditText;->getText()Landroid/text/Editable; |
| |
177 | ····move-result-object·p1 | 196 | ····move-result-object·p1 |
| |
178 | ····invoke-interface·{p1},·Landroid/text/Editable;->clear()V | 197 | ····invoke-interface·{p1},·Landroid/text/Editable;->clear()V |
Offset 279, 22 lines modified | Offset 312, 22 lines modified |
279 | .method·private·synthetic·lambda$new$1(Landroid/view/View;Z)V | 312 | .method·private·synthetic·lambda$new$1(Landroid/view/View;Z)V |
280 | ····.locals·1 | 313 | ····.locals·1 |
| |
281 | ····const/4·v0,·0x0 | 314 | ····const/4·v0,·0x0 |
| |
282 | ····if-eqz·p2,·:cond_0 | 315 | ····if-eqz·p2,·:cond_0 |
| |
283 | ····.line·108 | 316 | ····.line·109 |
284 | ····iget-object·p2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mInputMethodManager:Landroid/view/inputmethod/InputMethodManager; | 317 | ····iget-object·p2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mInputMethodManager:Landroid/view/inputmethod/InputMethodManager; |
| |
285 | ····invoke-virtual·{p2,·p1,·v0},·Landroid/view/inputmethod/InputMethodManager;->showSoftInput(Landroid/view/View;I)Z | 318 | ····invoke-virtual·{p2,·p1,·v0},·Landroid/view/inputmethod/InputMethodManager;->showSoftInput(Landroid/view/View;I)Z |
| |
286 | ····goto·:goto_0 | 319 | ····goto·:goto_0 |
| |
287 | ····.line·110 | 320 | ····.line·111 |
288 | ····:cond_0 | 321 | ····:cond_0 |
289 | ····iget-object·p2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mInputMethodManager:Landroid/view/inputmethod/InputMethodManager; | 322 | ····iget-object·p2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mInputMethodManager:Landroid/view/inputmethod/InputMethodManager; |
| |
290 | ····invoke-virtual·{p1},·Landroid/view/View;->getWindowToken()Landroid/os/IBinder; | 323 | ····invoke-virtual·{p1},·Landroid/view/View;->getWindowToken()Landroid/os/IBinder; |
| |
291 | ····move-result-object·p1 | 324 | ····move-result-object·p1 |
| |
Offset 305, 61 lines modified | Offset 338, 97 lines modified |
305 | .end·method | 338 | .end·method |
| |
306 | .method·private·synthetic·lambda$new$2(Landroid/widget/TextView;ILandroid/view/KeyEvent;)Z | 339 | .method·private·synthetic·lambda$new$2(Landroid/widget/TextView;ILandroid/view/KeyEvent;)Z |
307 | ····.locals·0 | 340 | ····.locals·0 |
| |
308 | ····const/4·p1,·0x6 | 341 | ····const/4·p1,·0x6 |
| |
309 | ····if-eq·p2,·p1,·:cond_0 | 342 | ····if-eq·p2,·p1,·:cond_2 |
| |
310 | ····const/4·p1,·0x3 | 343 | ····const/4·p1,·0x3 |
| |
311 | ····if-ne·p2,·p1,·:cond_1 | 344 | ····if-ne·p2,·p1,·:cond_0 |
| |
| 345 | ····goto·:goto_0 |
| |
312 | ····.line·119 | 346 | ····.line·121 |
313 | ····:cond_0 | 347 | ····:cond_0 |
314 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; | 348 | ····invoke-direct·{p0,·p3},·Lcom/android/car/ui/toolbar/SearchView;->isEnter(Landroid/view/KeyEvent;)Z |
| |
315 | ····invoke-virtual·{p1},·Landroid/widget/EditText;->clearFocus()V | 349 | ····move-result·p1 |
| |
| 350 | ····if-eqz·p1,·:cond_3 |
| |
| 351 | ····.line·122 |
| 352 | ····invoke-virtual·{p3},·Landroid/view/KeyEvent;->getAction()I |
| |
| 353 | ····move-result·p1 |
| |
| 354 | ····const/4·p2,·0x1 |
| |
| 355 | ····if-ne·p1,·p2,·:cond_1 |
| |
| 356 | ····.line·125 |
| 357 | ····invoke-direct·{p0},·Lcom/android/car/ui/toolbar/SearchView;->notifyQuerySubmit()V |
| |
| 358 | ····:cond_1 |
| 359 | ····return·p2 |
| |
316 | ····.line·120 | 360 | ····.line·120 |
317 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchCompletedListeners:Ljava/util/Set; | 361 | ····:cond_2 |
| 362 | ····:goto_0 |
| 363 | ····invoke-direct·{p0},·Lcom/android/car/ui/toolbar/SearchView;->notifyQuerySubmit()V |
| |
318 | ····invoke-interface·{p1},·Ljava/util/Set;->iterator()Ljava/util/Iterator; | 364 | ····:cond_3 |
| 365 | ····const/4·p1,·0x0 |
| |
319 | ····move-result-object·p1 | 366 | ····return·p1 |
| 367 | .end·method |
| |
| 368 | .method·private·notifyQuerySubmit()V |
| 369 | ····.locals·2 |
| |
| 370 | ····.line·145 |
| 371 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; |
| |
| 372 | ····invoke-virtual·{v0},·Landroid/widget/EditText;->clearFocus()V |
| |
| 373 | ····.line·146 |
| 374 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchCompletedListeners:Ljava/util/Set; |
| |
| 375 | ····invoke-interface·{v0},·Ljava/util/Set;->iterator()Ljava/util/Iterator; |
| |
| 376 | ····move-result-object·v0 |
| |
320 | ····:goto_0 | 377 | ····:goto_0 |
321 | ····invoke-interface·{p1},·Ljava/util/Iterator;->hasNext()Z | 378 | ····invoke-interface·{v0},·Ljava/util/Iterator;->hasNext()Z |
| |
322 | ····move-result·p2 | 379 | ····move-result·v1 |
| |
323 | ····if-eqz·p2,·:cond_1 | 380 | ····if-eqz·v1,·:cond_0 |
| |
324 | ····invoke-interface·{p1},·Ljava/util/Iterator;->next()Ljava/lang/Object; | 381 | ····invoke-interface·{v0},·Ljava/util/Iterator;->next()Ljava/lang/Object; |
| |
325 | ····move-result-object·p2 | 382 | ····move-result-object·v1 |
| |
326 | ····check-cast·p2,·Lcom/android/car/ui/toolbar/Toolbar$OnSearchCompletedListener; | 383 | ····check-cast·v1,·Lcom/android/car/ui/toolbar/Toolbar$OnSearchCompletedListener; |
| |
327 | ····.line·121 | 384 | ····.line·147 |
328 | ····invoke-interface·{p2},·Lcom/android/car/ui/toolbar/Toolbar$OnSearchCompletedListener;->onSearchCompleted()V | 385 | ····invoke-interface·{v1},·Lcom/android/car/ui/toolbar/Toolbar$OnSearchCompletedListener;->onSearchCompleted()V |
| |
329 | ····goto·:goto_0 | 386 | ····goto·:goto_0 |
| |
330 | ····:cond_1 | 387 | ····:cond_0 |
331 | ····const/4·p1,·0x0 | 388 | ····return-void |
| |
332 | ····return·p1 | |
333 | .end·method | 389 | .end·method |
| |
334 | .method·private·onSearch(Ljava/lang/String;)V | 390 | .method·private·onSearch(Ljava/lang/String;)V |
335 | ····.locals·2 | 391 | ····.locals·2 |
| |
336 | ····.line·227 | 392 | ····.line·250 |
337 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mCloseIcon:Landroid/view/View; | 393 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mCloseIcon:Landroid/view/View; |
| |
338 | ····invoke-static·{p1},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z | 394 | ····invoke-static·{p1},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z |
| |
339 | ····move-result·v1 | 395 | ····move-result·v1 |
| |
340 | ····if-eqz·v1,·:cond_0 | 396 | ····if-eqz·v1,·:cond_0 |
Offset 370, 15 lines modified | Offset 439, 15 lines modified |
| |
370 | ····:cond_0 | 439 | ····:cond_0 |
371 | ····const/4·v1,·0x0 | 440 | ····const/4·v1,·0x0 |
| |
372 | ····:goto_0 | 441 | ····:goto_0 |
373 | ····invoke-virtual·{v0,·v1},·Landroid/view/View;->setVisibility(I)V | 442 | ····invoke-virtual·{v0,·v1},·Landroid/view/View;->setVisibility(I)V |
| |
374 | ····.line·229 | 443 | ····.line·252 |
375 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchListeners:Ljava/util/Set; | 444 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchListeners:Ljava/util/Set; |
| |
376 | ····invoke-interface·{v0},·Ljava/util/Set;->iterator()Ljava/util/Iterator; | 445 | ····invoke-interface·{v0},·Ljava/util/Set;->iterator()Ljava/util/Iterator; |
| |
377 | ····move-result-object·v0 | 446 | ····move-result-object·v0 |
| |
378 | ····:goto_1 | 447 | ····:goto_1 |
Offset 390, 29 lines modified | Offset 459, 29 lines modified |
| |
390 | ····invoke-interface·{v0},·Ljava/util/Iterator;->next()Ljava/lang/Object; | 459 | ····invoke-interface·{v0},·Ljava/util/Iterator;->next()Ljava/lang/Object; |
| |
391 | ····move-result-object·v1 | 460 | ····move-result-object·v1 |
| |
392 | ····check-cast·v1,·Lcom/android/car/ui/toolbar/Toolbar$OnSearchListener; | 461 | ····check-cast·v1,·Lcom/android/car/ui/toolbar/Toolbar$OnSearchListener; |
| |
393 | ····.line·230 | 462 | ····.line·253 |
394 | ····invoke-interface·{v1,·p1},·Lcom/android/car/ui/toolbar/Toolbar$OnSearchListener;->onSearch(Ljava/lang/String;)V | 463 | ····invoke-interface·{v1,·p1},·Lcom/android/car/ui/toolbar/Toolbar$OnSearchListener;->onSearch(Ljava/lang/String;)V |
| |
395 | ····goto·:goto_1 | 464 | ····goto·:goto_1 |
| |
396 | ····:cond_1 | 465 | ····:cond_1 |
397 | ····return-void | 466 | ····return-void |
398 | .end·method | 467 | .end·method |
| |
| |
399 | #·virtual·methods | 468 | #·virtual·methods |
400 | .method·public·getHint()Ljava/lang/CharSequence; | 469 | .method·public·getHint()Ljava/lang/CharSequence; |
401 | ····.locals·1 | 470 | ····.locals·1 |
| |
402 | ····.line·179 | 471 | ····.line·202 |
403 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; | 472 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; |
| |
404 | ····invoke-virtual·{v0},·Landroid/widget/EditText;->getHint()Ljava/lang/CharSequence; | 473 | ····invoke-virtual·{v0},·Landroid/widget/EditText;->getHint()Ljava/lang/CharSequence; |
| |
405 | ····move-result-object·v0 | 474 | ····move-result-object·v0 |
| |
406 | ····return-object·v0 | 475 | ····return-object·v0 |
Offset 443, 30 lines modified | Offset 512, 30 lines modified |
| |
443 | ····return·p1 | 512 | ····return·p1 |
444 | .end·method | 513 | .end·method |
| |
445 | .method·public·onVisibilityChanged(Landroid/view/View;I)V | 514 | .method·public·onVisibilityChanged(Landroid/view/View;I)V |
446 | ····.locals·2 | 515 | ····.locals·2 |
| |
447 | ····.line·132 | 516 | ····.line·155 |
448 | ····invoke-super·{p0,·p1,·p2},·Landroid/view/ViewGroup;->onVisibilityChanged(Landroid/view/View;I)V | 517 | ····invoke-super·{p0,·p1,·p2},·Landroid/view/ViewGroup;->onVisibilityChanged(Landroid/view/View;I)V |
| |
449 | ····.line·134 | 518 | ····.line·157 |
450 | ····invoke-virtual·{p0},·Landroid/view/ViewGroup;->isShown()Z | 519 | ····invoke-virtual·{p0},·Landroid/view/ViewGroup;->isShown()Z |
| |
451 | ····move-result·p1 | 520 | ····move-result·p1 |
| |
452 | ····if-eqz·p1,·:cond_2 | 521 | ····if-eqz·p1,·:cond_2 |
| |
453 | ····.line·135 | 522 | ····.line·158 |
454 | ····iget-boolean·p2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mWasShown:Z | 523 | ····iget-boolean·p2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mWasShown:Z |
| |
455 | ····if-nez·p2,·:cond_2 | 524 | ····if-nez·p2,·:cond_2 |
| |
456 | ····.line·136 | 525 | ····.line·159 |
457 | ····iget-object·p2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; | 526 | ····iget-object·p2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; |
| |
458 | ····invoke-virtual·{p2},·Landroid/widget/EditText;->getText()Landroid/text/Editable; | 527 | ····invoke-virtual·{p2},·Landroid/widget/EditText;->getText()Landroid/text/Editable; |
| |
459 | ····move-result-object·p2 | 528 | ····move-result-object·p2 |
| |
460 | ····invoke-interface·{p2},·Landroid/text/Editable;->length()I | 529 | ····invoke-interface·{p2},·Landroid/text/Editable;->length()I |
Offset 480, 174 lines modified | Offset 549, 174 lines modified |
480 | ····const/4·p2,·0x1 | 549 | ····const/4·p2,·0x1 |
| |
481 | ····goto·:goto_0 | 550 | ····goto·:goto_0 |
| |
482 | ····:cond_0 | 551 | ····:cond_0 |
483 | ····move·p2,·v0 | 552 | ····move·p2,·v0 |
| |
484 | ····.line·137 | 553 | ····.line·160 |
485 | ····:goto_0 | 554 | ····:goto_0 |
486 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mCloseIcon:Landroid/view/View; | 555 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mCloseIcon:Landroid/view/View; |
| |
487 | ····if-eqz·p2,·:cond_1 | 556 | ····if-eqz·p2,·:cond_1 |
| |
488 | ····goto·:goto_1 | 557 | ····goto·:goto_1 |
| |
489 | ····:cond_1 | 558 | ····:cond_1 |
490 | ····const/16·v0,·0x8 | 559 | ····const/16·v0,·0x8 |
| |
491 | ····:goto_1 | 560 | ····:goto_1 |
492 | ····invoke-virtual·{v1,·v0},·Landroid/view/View;->setVisibility(I)V | 561 | ····invoke-virtual·{v1,·v0},·Landroid/view/View;->setVisibility(I)V |
| |
493 | ····.line·138 | 562 | ····.line·161 |
494 | ····iget-object·p2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; | 563 | ····iget-object·p2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; |
| |
495 | ····invoke-virtual·{p2},·Landroid/widget/EditText;->requestFocus()Z | 564 | ····invoke-virtual·{p2},·Landroid/widget/EditText;->requestFocus()Z |
| |
496 | ····.line·140 | 565 | ····.line·163 |
497 | ····:cond_2 | 566 | ····:cond_2 |
498 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mWasShown:Z | 567 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mWasShown:Z |
| |
499 | ····return-void | 568 | ····return-void |
500 | .end·method | 569 | .end·method |
| |
501 | .method·public·setHint(I)V | 570 | .method·public·setHint(I)V |
502 | ····.locals·1 | 571 | ····.locals·1 |
| |
503 | ····.line·165 | 572 | ····.line·188 |
504 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; | 573 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; |
| |
505 | ····invoke-virtual·{v0,·p1},·Landroid/widget/EditText;->setHint(I)V | 574 | ····invoke-virtual·{v0,·p1},·Landroid/widget/EditText;->setHint(I)V |
| |
506 | ····return-void | 575 | ····return-void |
507 | .end·method | 576 | .end·method |
| |
508 | .method·public·setHint(Ljava/lang/CharSequence;)V | 577 | .method·public·setHint(Ljava/lang/CharSequence;)V |
509 | ····.locals·1 | 578 | ····.locals·1 |
| |
510 | ····.line·174 | 579 | ····.line·197 |
511 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; | 580 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; |
| |
512 | ····invoke-virtual·{v0,·p1},·Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V | 581 | ····invoke-virtual·{v0,·p1},·Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V |
| |
513 | ····return-void | 582 | ····return-void |
514 | .end·method | 583 | .end·method |
| |
515 | .method·public·setIcon(I)V | 584 | .method·public·setIcon(I)V |
516 | ····.locals·1 | 585 | ····.locals·1 |
| |
517 | ····if-nez·p1,·:cond_0 | 586 | ····if-nez·p1,·:cond_0 |
| |
518 | ····.line·198 | 587 | ····.line·221 |
519 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mIcon:Landroid/widget/ImageView; | 588 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mIcon:Landroid/widget/ImageView; |
| |
520 | ····sget·v0,·Lcom/android/car/ui/R$drawable;->car_ui_icon_search:I | 589 | ····sget·v0,·Lcom/android/car/ui/R$drawable;->car_ui_icon_search:I |
| |
521 | ····invoke-virtual·{p1,·v0},·Landroid/widget/ImageView;->setImageResource(I)V | 590 | ····invoke-virtual·{p1,·v0},·Landroid/widget/ImageView;->setImageResource(I)V |
| |
522 | ····goto·:goto_0 | 591 | ····goto·:goto_0 |
| |
523 | ····.line·200 | 592 | ····.line·223 |
524 | ····:cond_0 | 593 | ····:cond_0 |
525 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mIcon:Landroid/widget/ImageView; | 594 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mIcon:Landroid/widget/ImageView; |
| |
526 | ····invoke-virtual·{v0,·p1},·Landroid/widget/ImageView;->setImageResource(I)V | 595 | ····invoke-virtual·{v0,·p1},·Landroid/widget/ImageView;->setImageResource(I)V |
| |
527 | ····:goto_0 | 596 | ····:goto_0 |
528 | ····return-void | 597 | ····return-void |
529 | .end·method | 598 | .end·method |
| |
530 | .method·public·setIcon(Landroid/graphics/drawable/Drawable;)V | 599 | .method·public·setIcon(Landroid/graphics/drawable/Drawable;)V |
531 | ····.locals·1 | 600 | ····.locals·1 |
| |
532 | ····if-nez·p1,·:cond_0 | 601 | ····if-nez·p1,·:cond_0 |
| |
533 | ····.line·187 | 602 | ····.line·210 |
534 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mIcon:Landroid/widget/ImageView; | 603 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mIcon:Landroid/widget/ImageView; |
| |
535 | ····sget·v0,·Lcom/android/car/ui/R$drawable;->car_ui_icon_search:I | 604 | ····sget·v0,·Lcom/android/car/ui/R$drawable;->car_ui_icon_search:I |
| |
536 | ····invoke-virtual·{p1,·v0},·Landroid/widget/ImageView;->setImageResource(I)V | 605 | ····invoke-virtual·{p1,·v0},·Landroid/widget/ImageView;->setImageResource(I)V |
| |
537 | ····goto·:goto_0 | 606 | ····goto·:goto_0 |
| |
538 | ····.line·189 | 607 | ····.line·212 |
539 | ····:cond_0 | 608 | ····:cond_0 |
540 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mIcon:Landroid/widget/ImageView; | 609 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mIcon:Landroid/widget/ImageView; |
| |
541 | ····invoke-virtual·{v0,·p1},·Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V | 610 | ····invoke-virtual·{v0,·p1},·Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V |
| |
542 | ····:goto_0 | 611 | ····:goto_0 |
543 | ····return-void | 612 | ····return-void |
544 | .end·method | 613 | .end·method |
| |
545 | .method·public·setPlainText(Z)V | 614 | .method·public·setPlainText(Z)V |
546 | ····.locals·4 | 615 | ····.locals·4 |
| |
547 | ····.line·209 | 616 | ····.line·232 |
548 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mIsPlainText:Z | 617 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mIsPlainText:Z |
| |
549 | ····if-eq·p1,·v0,·:cond_1 | 618 | ····if-eq·p1,·v0,·:cond_1 |
| |
550 | ····const/4·v0,·0x0 | 619 | ····const/4·v0,·0x0 |
| |
551 | ····if-eqz·p1,·:cond_0 | 620 | ····if-eqz·p1,·:cond_0 |
| |
552 | ····.line·211 | 621 | ····.line·234 |
553 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; | 622 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; |
| |
554 | ····iget·v2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mStartPaddingWithoutIcon:I | 623 | ····iget·v2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mStartPaddingWithoutIcon:I |
| |
555 | ····iget·v3,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mEndPadding:I | 624 | ····iget·v3,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mEndPadding:I |
| |
556 | ····invoke-virtual·{v1,·v2,·v0,·v3,·v0},·Landroid/widget/EditText;->setPaddingRelative(IIII)V | 625 | ····invoke-virtual·{v1,·v2,·v0,·v3,·v0},·Landroid/widget/EditText;->setPaddingRelative(IIII)V |
| |
557 | ····.line·212 | 626 | ····.line·235 |
558 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; | 627 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; |
| |
559 | ····const/4·v1,·0x6 | 628 | ····const/4·v1,·0x6 |
| |
560 | ····invoke-virtual·{v0,·v1},·Landroid/widget/EditText;->setImeOptions(I)V | 629 | ····invoke-virtual·{v0,·v1},·Landroid/widget/EditText;->setImeOptions(I)V |
| |
561 | ····.line·213 | 630 | ····.line·236 |
562 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mIcon:Landroid/widget/ImageView; | 631 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mIcon:Landroid/widget/ImageView; |
| |
563 | ····const/16·v1,·0x8 | 632 | ····const/16·v1,·0x8 |
| |
564 | ····invoke-virtual·{v0,·v1},·Landroid/widget/ImageView;->setVisibility(I)V | 633 | ····invoke-virtual·{v0,·v1},·Landroid/widget/ImageView;->setVisibility(I)V |
| |
565 | ····goto·:goto_0 | 634 | ····goto·:goto_0 |
| |
566 | ····.line·215 | 635 | ····.line·238 |
567 | ····:cond_0 | 636 | ····:cond_0 |
568 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; | 637 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; |
| |
569 | ····iget·v2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mStartPadding:I | 638 | ····iget·v2,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mStartPadding:I |
| |
570 | ····iget·v3,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mEndPadding:I | 639 | ····iget·v3,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mEndPadding:I |
| |
571 | ····invoke-virtual·{v1,·v2,·v0,·v3,·v0},·Landroid/widget/EditText;->setPaddingRelative(IIII)V | 640 | ····invoke-virtual·{v1,·v2,·v0,·v3,·v0},·Landroid/widget/EditText;->setPaddingRelative(IIII)V |
| |
572 | ····.line·216 | 641 | ····.line·239 |
573 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; | 642 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; |
| |
574 | ····const/4·v2,·0x3 | 643 | ····const/4·v2,·0x3 |
| |
575 | ····invoke-virtual·{v1,·v2},·Landroid/widget/EditText;->setImeOptions(I)V | 644 | ····invoke-virtual·{v1,·v2},·Landroid/widget/EditText;->setImeOptions(I)V |
| |
576 | ····.line·217 | 645 | ····.line·240 |
577 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mIcon:Landroid/widget/ImageView; | 646 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mIcon:Landroid/widget/ImageView; |
| |
578 | ····invoke-virtual·{v1,·v0},·Landroid/widget/ImageView;->setVisibility(I)V | 647 | ····invoke-virtual·{v1,·v0},·Landroid/widget/ImageView;->setVisibility(I)V |
| |
579 | ····.line·219 | 648 | ····.line·242 |
580 | ····:goto_0 | 649 | ····:goto_0 |
581 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mIsPlainText:Z | 650 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mIsPlainText:Z |
| |
582 | ····.line·222 | 651 | ····.line·245 |
583 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mInputMethodManager:Landroid/view/inputmethod/InputMethodManager; | 652 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mInputMethodManager:Landroid/view/inputmethod/InputMethodManager; |
| |
584 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; | 653 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; |
| |
585 | ····invoke-virtual·{p1,·v0},·Landroid/view/inputmethod/InputMethodManager;->restartInput(Landroid/view/View;)V | 654 | ····invoke-virtual·{p1,·v0},·Landroid/view/inputmethod/InputMethodManager;->restartInput(Landroid/view/View;)V |
| |
586 | ····:cond_1 | 655 | ····:cond_1 |
Offset 661, 15 lines modified | Offset 730, 15 lines modified |
661 | ············"(", | 730 | ············"(", |
662 | ············"Ljava/util/Set<", | 731 | ············"Ljava/util/Set<", |
663 | ············"Lcom/android/car/ui/toolbar/Toolbar$OnSearchCompletedListener;", | 732 | ············"Lcom/android/car/ui/toolbar/Toolbar$OnSearchCompletedListener;", |
664 | ············">;)V" | 733 | ············">;)V" |
665 | ········} | 734 | ········} |
666 | ····.end·annotation | 735 | ····.end·annotation |
| |
667 | ····.line·156 | 736 | ····.line·179 |
668 | ····iput-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchCompletedListeners:Ljava/util/Set; | 737 | ····iput-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchCompletedListeners:Ljava/util/Set; |
| |
669 | ····return-void | 738 | ····return-void |
670 | .end·method | 739 | .end·method |
| |
671 | .method·public·setSearchListeners(Ljava/util/Set;)V | 740 | .method·public·setSearchListeners(Ljava/util/Set;)V |
672 | ····.locals·0 | 741 | ····.locals·0 |
Offset 678, 29 lines modified | Offset 747, 29 lines modified |
678 | ············"(", | 747 | ············"(", |
679 | ············"Ljava/util/Set<", | 748 | ············"Ljava/util/Set<", |
680 | ············"Lcom/android/car/ui/toolbar/Toolbar$OnSearchListener;", | 749 | ············"Lcom/android/car/ui/toolbar/Toolbar$OnSearchListener;", |
681 | ············">;)V" | 750 | ············">;)V" |
682 | ········} | 751 | ········} |
683 | ····.end·annotation | 752 | ····.end·annotation |
| |
684 | ····.line·148 | 753 | ····.line·171 |
685 | ····iput-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchListeners:Ljava/util/Set; | 754 | ····iput-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchListeners:Ljava/util/Set; |
| |
686 | ····return-void | 755 | ····return-void |
687 | .end·method | 756 | .end·method |
| |
688 | .method·public·setSearchQuery(Ljava/lang/String;)V | 757 | .method·public·setSearchQuery(Ljava/lang/String;)V |
689 | ····.locals·1 | 758 | ····.locals·1 |
| |
690 | ····.line·238 | 759 | ····.line·261 |
691 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; | 760 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; |
| |
692 | ····invoke-virtual·{v0,·p1},·Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V | 761 | ····invoke-virtual·{v0,·p1},·Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V |
| |
693 | ····.line·239 | 762 | ····.line·262 |
694 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; | 763 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/SearchView;->mSearchText:Landroid/widget/EditText; |
| |
695 | ····invoke-virtual·{p1},·Landroid/widget/EditText;->getText()Landroid/text/Editable; | 764 | ····invoke-virtual·{p1},·Landroid/widget/EditText;->getText()Landroid/text/Editable; |
| |
696 | ····move-result-object·v0 | 765 | ····move-result-object·v0 |
| |
697 | ····invoke-interface·{v0},·Landroid/text/Editable;->length()I | 766 | ····invoke-interface·{v0},·Landroid/text/Editable;->length()I |