.class public Landroidx/appcompat/widget/SearchView; .super Landroidx/appcompat/widget/LinearLayoutCompat; .source "SearchView.java" # interfaces .implements Landroidx/appcompat/view/CollapsibleActionView; # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Landroidx/appcompat/widget/SearchView$AutoCompleteTextViewReflector;, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;, Landroidx/appcompat/widget/SearchView$SavedState;, Landroidx/appcompat/widget/SearchView$OnSuggestionListener;, Landroidx/appcompat/widget/SearchView$OnCloseListener;, Landroidx/appcompat/widget/SearchView$OnQueryTextListener; } .end annotation # static fields .field public static final DBG:Z = false .field public static final HIDDEN_METHOD_INVOKER:Landroidx/appcompat/widget/SearchView$AutoCompleteTextViewReflector; .field public static final IME_OPTION_NO_MICROPHONE:Ljava/lang/String; = "nm" .field public static final LOG_TAG:Ljava/lang/String; = "SearchView" # instance fields .field public mAppSearchData:Landroid/os/Bundle; .field public mClearingFocus:Z .field public final mCloseButton:Landroid/widget/ImageView; .field public final mCollapsedIcon:Landroid/widget/ImageView; .field public mCollapsedImeOptions:I .field public final mDefaultQueryHint:Ljava/lang/CharSequence; .field public final mDropDownAnchor:Landroid/view/View; .field public mExpandedInActionView:Z .field public final mGoButton:Landroid/widget/ImageView; .field public mIconified:Z .field public mIconifiedByDefault:Z .field public mMaxWidth:I .field public mOldQueryText:Ljava/lang/CharSequence; .field public final mOnClickListener:Landroid/view/View$OnClickListener; .field public mOnCloseListener:Landroidx/appcompat/widget/SearchView$OnCloseListener; .field public final mOnEditorActionListener:Landroid/widget/TextView$OnEditorActionListener; .field public final mOnItemClickListener:Landroid/widget/AdapterView$OnItemClickListener; .field public final mOnItemSelectedListener:Landroid/widget/AdapterView$OnItemSelectedListener; .field public mOnQueryChangeListener:Landroidx/appcompat/widget/SearchView$OnQueryTextListener; .field public mOnQueryTextFocusChangeListener:Landroid/view/View$OnFocusChangeListener; .field public mOnSearchClickListener:Landroid/view/View$OnClickListener; .field public mOnSuggestionListener:Landroidx/appcompat/widget/SearchView$OnSuggestionListener; .field public final mOutsideDrawablesCache:Ljava/util/WeakHashMap; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/WeakHashMap<", "Ljava/lang/String;", "Landroid/graphics/drawable/Drawable$ConstantState;", ">;" } .end annotation .end field .field public mQueryHint:Ljava/lang/CharSequence; .field public mQueryRefinement:Z .field public mReleaseCursorRunnable:Ljava/lang/Runnable; .field public final mSearchButton:Landroid/widget/ImageView; .field public final mSearchEditFrame:Landroid/view/View; .field public final mSearchHintIcon:Landroid/graphics/drawable/Drawable; .field public final mSearchPlate:Landroid/view/View; .field public final mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; .field public mSearchSrcTextViewBounds:Landroid/graphics/Rect; .field public mSearchSrtTextViewBoundsExpanded:Landroid/graphics/Rect; .field public mSearchable:Landroid/app/SearchableInfo; .field public final mSubmitArea:Landroid/view/View; .field public mSubmitButtonEnabled:Z .field public final mSuggestionCommitIconResId:I .field public final mSuggestionRowLayout:I .field public mSuggestionsAdapter:Landroidx/cursoradapter/widget/CursorAdapter; .field public mTemp:[I .field public mTemp2:[I .field public mTextKeyListener:Landroid/view/View$OnKeyListener; .field public mTextWatcher:Landroid/text/TextWatcher; .field public mTouchDelegate:Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate; .field public final mUpdateDrawableStateRunnable:Ljava/lang/Runnable; .field public mUserQuery:Ljava/lang/CharSequence; .field public final mVoiceAppSearchIntent:Landroid/content/Intent; .field public final mVoiceButton:Landroid/widget/ImageView; .field public mVoiceButtonEnabled:Z .field public final mVoiceWebSearchIntent:Landroid/content/Intent; # direct methods .method public static constructor ()V .locals 1 new-instance v0, Landroidx/appcompat/widget/SearchView$AutoCompleteTextViewReflector; invoke-direct {v0}, Landroidx/appcompat/widget/SearchView$AutoCompleteTextViewReflector;->()V sput-object v0, Landroidx/appcompat/widget/SearchView;->HIDDEN_METHOD_INVOKER:Landroidx/appcompat/widget/SearchView$AutoCompleteTextViewReflector; return-void .end method .method public constructor (Landroid/content/Context;)V .locals 1 const/4 v0, 0x0 invoke-direct {p0, p1, v0}, Landroidx/appcompat/widget/SearchView;->(Landroid/content/Context;Landroid/util/AttributeSet;)V return-void .end method .method public constructor (Landroid/content/Context;Landroid/util/AttributeSet;)V .locals 1 sget v0, Landroidx/appcompat/R$attr;->searchViewStyle:I invoke-direct {p0, p1, p2, v0}, Landroidx/appcompat/widget/SearchView;->(Landroid/content/Context;Landroid/util/AttributeSet;I)V return-void .end method .method public constructor (Landroid/content/Context;Landroid/util/AttributeSet;I)V .locals 3 invoke-direct {p0, p1, p2, p3}, Landroidx/appcompat/widget/LinearLayoutCompat;->(Landroid/content/Context;Landroid/util/AttributeSet;I)V new-instance v0, Landroid/graphics/Rect; invoke-direct {v0}, Landroid/graphics/Rect;->()V iput-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextViewBounds:Landroid/graphics/Rect; new-instance v0, Landroid/graphics/Rect; invoke-direct {v0}, Landroid/graphics/Rect;->()V iput-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrtTextViewBoundsExpanded:Landroid/graphics/Rect; const/4 v0, 0x2 new-array v1, v0, [I iput-object v1, p0, Landroidx/appcompat/widget/SearchView;->mTemp:[I new-array v0, v0, [I iput-object v0, p0, Landroidx/appcompat/widget/SearchView;->mTemp2:[I new-instance v0, Landroidx/appcompat/widget/SearchView$1; invoke-direct {v0, p0}, Landroidx/appcompat/widget/SearchView$1;->(Landroidx/appcompat/widget/SearchView;)V iput-object v0, p0, Landroidx/appcompat/widget/SearchView;->mUpdateDrawableStateRunnable:Ljava/lang/Runnable; new-instance v0, Landroidx/appcompat/widget/SearchView$2; invoke-direct {v0, p0}, Landroidx/appcompat/widget/SearchView$2;->(Landroidx/appcompat/widget/SearchView;)V iput-object v0, p0, Landroidx/appcompat/widget/SearchView;->mReleaseCursorRunnable:Ljava/lang/Runnable; new-instance v0, Ljava/util/WeakHashMap; invoke-direct {v0}, Ljava/util/WeakHashMap;->()V iput-object v0, p0, Landroidx/appcompat/widget/SearchView;->mOutsideDrawablesCache:Ljava/util/WeakHashMap; new-instance v0, Landroidx/appcompat/widget/SearchView$5; invoke-direct {v0, p0}, Landroidx/appcompat/widget/SearchView$5;->(Landroidx/appcompat/widget/SearchView;)V iput-object v0, p0, Landroidx/appcompat/widget/SearchView;->mOnClickListener:Landroid/view/View$OnClickListener; new-instance v0, Landroidx/appcompat/widget/SearchView$6; invoke-direct {v0, p0}, Landroidx/appcompat/widget/SearchView$6;->(Landroidx/appcompat/widget/SearchView;)V iput-object v0, p0, Landroidx/appcompat/widget/SearchView;->mTextKeyListener:Landroid/view/View$OnKeyListener; new-instance v0, Landroidx/appcompat/widget/SearchView$7; invoke-direct {v0, p0}, Landroidx/appcompat/widget/SearchView$7;->(Landroidx/appcompat/widget/SearchView;)V iput-object v0, p0, Landroidx/appcompat/widget/SearchView;->mOnEditorActionListener:Landroid/widget/TextView$OnEditorActionListener; new-instance v0, Landroidx/appcompat/widget/SearchView$8; invoke-direct {v0, p0}, Landroidx/appcompat/widget/SearchView$8;->(Landroidx/appcompat/widget/SearchView;)V iput-object v0, p0, Landroidx/appcompat/widget/SearchView;->mOnItemClickListener:Landroid/widget/AdapterView$OnItemClickListener; new-instance v0, Landroidx/appcompat/widget/SearchView$9; invoke-direct {v0, p0}, Landroidx/appcompat/widget/SearchView$9;->(Landroidx/appcompat/widget/SearchView;)V iput-object v0, p0, Landroidx/appcompat/widget/SearchView;->mOnItemSelectedListener:Landroid/widget/AdapterView$OnItemSelectedListener; new-instance v0, Landroidx/appcompat/widget/SearchView$10; invoke-direct {v0, p0}, Landroidx/appcompat/widget/SearchView$10;->(Landroidx/appcompat/widget/SearchView;)V iput-object v0, p0, Landroidx/appcompat/widget/SearchView;->mTextWatcher:Landroid/text/TextWatcher; sget-object v0, Landroidx/appcompat/R$styleable;->SearchView:[I const/4 v1, 0x0 invoke-static {p1, p2, v0, p3, v1}, Landroidx/appcompat/widget/TintTypedArray;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[III)Landroidx/appcompat/widget/TintTypedArray; move-result-object p2 invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater; move-result-object p1 sget p3, Landroidx/appcompat/R$styleable;->SearchView_layout:I sget v0, Landroidx/appcompat/R$layout;->abc_search_view:I invoke-virtual {p2, p3, v0}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I move-result p3 const/4 v0, 0x1 invoke-virtual {p1, p3, p0, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View; sget p1, Landroidx/appcompat/R$id;->search_src_text:I invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View; move-result-object p1 check-cast p1, Landroidx/appcompat/widget/SearchView$SearchAutoComplete; iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {p1, p0}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->setSearchView(Landroidx/appcompat/widget/SearchView;)V sget p1, Landroidx/appcompat/R$id;->search_edit_frame:I invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View; move-result-object p1 iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchEditFrame:Landroid/view/View; sget p1, Landroidx/appcompat/R$id;->search_plate:I invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View; move-result-object p1 iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchPlate:Landroid/view/View; sget p1, Landroidx/appcompat/R$id;->submit_area:I invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View; move-result-object p1 iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSubmitArea:Landroid/view/View; sget p1, Landroidx/appcompat/R$id;->search_button:I invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View; move-result-object p1 check-cast p1, Landroid/widget/ImageView; iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchButton:Landroid/widget/ImageView; sget p1, Landroidx/appcompat/R$id;->search_go_btn:I invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View; move-result-object p1 check-cast p1, Landroid/widget/ImageView; iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mGoButton:Landroid/widget/ImageView; sget p1, Landroidx/appcompat/R$id;->search_close_btn:I invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View; move-result-object p1 check-cast p1, Landroid/widget/ImageView; iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mCloseButton:Landroid/widget/ImageView; sget p1, Landroidx/appcompat/R$id;->search_voice_btn:I invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View; move-result-object p1 check-cast p1, Landroid/widget/ImageView; iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mVoiceButton:Landroid/widget/ImageView; sget p1, Landroidx/appcompat/R$id;->search_mag_icon:I invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View; move-result-object p1 check-cast p1, Landroid/widget/ImageView; iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mCollapsedIcon:Landroid/widget/ImageView; iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchPlate:Landroid/view/View; sget p3, Landroidx/appcompat/R$styleable;->SearchView_queryBackground:I invoke-virtual {p2, p3}, Landroidx/appcompat/widget/TintTypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable; move-result-object p3 invoke-static {p1, p3}, Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSubmitArea:Landroid/view/View; sget p3, Landroidx/appcompat/R$styleable;->SearchView_submitBackground:I invoke-virtual {p2, p3}, Landroidx/appcompat/widget/TintTypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable; move-result-object p3 invoke-static {p1, p3}, Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchButton:Landroid/widget/ImageView; sget p3, Landroidx/appcompat/R$styleable;->SearchView_searchIcon:I invoke-virtual {p2, p3}, Landroidx/appcompat/widget/TintTypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable; move-result-object p3 invoke-virtual {p1, p3}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mGoButton:Landroid/widget/ImageView; sget p3, Landroidx/appcompat/R$styleable;->SearchView_goIcon:I invoke-virtual {p2, p3}, Landroidx/appcompat/widget/TintTypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable; move-result-object p3 invoke-virtual {p1, p3}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mCloseButton:Landroid/widget/ImageView; sget p3, Landroidx/appcompat/R$styleable;->SearchView_closeIcon:I invoke-virtual {p2, p3}, Landroidx/appcompat/widget/TintTypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable; move-result-object p3 invoke-virtual {p1, p3}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mVoiceButton:Landroid/widget/ImageView; sget p3, Landroidx/appcompat/R$styleable;->SearchView_voiceIcon:I invoke-virtual {p2, p3}, Landroidx/appcompat/widget/TintTypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable; move-result-object p3 invoke-virtual {p1, p3}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mCollapsedIcon:Landroid/widget/ImageView; sget p3, Landroidx/appcompat/R$styleable;->SearchView_searchIcon:I invoke-virtual {p2, p3}, Landroidx/appcompat/widget/TintTypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable; move-result-object p3 invoke-virtual {p1, p3}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V sget p1, Landroidx/appcompat/R$styleable;->SearchView_searchHintIcon:I invoke-virtual {p2, p1}, Landroidx/appcompat/widget/TintTypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable; move-result-object p1 iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchHintIcon:Landroid/graphics/drawable/Drawable; iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchButton:Landroid/widget/ImageView; invoke-virtual {p0}, Landroid/view/ViewGroup;->getResources()Landroid/content/res/Resources; move-result-object p3 sget v2, Landroidx/appcompat/R$string;->abc_searchview_description_search:I invoke-virtual {p3, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String; move-result-object p3 invoke-static {p1, p3}, Landroidx/appcompat/widget/TooltipCompat;->setTooltipText(Landroid/view/View;Ljava/lang/CharSequence;)V sget p1, Landroidx/appcompat/R$styleable;->SearchView_suggestionRowLayout:I sget p3, Landroidx/appcompat/R$layout;->abc_search_dropdown_item_icons_2line:I invoke-virtual {p2, p1, p3}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I move-result p1 iput p1, p0, Landroidx/appcompat/widget/SearchView;->mSuggestionRowLayout:I sget p1, Landroidx/appcompat/R$styleable;->SearchView_commitIcon:I invoke-virtual {p2, p1, v1}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I move-result p1 iput p1, p0, Landroidx/appcompat/widget/SearchView;->mSuggestionCommitIconResId:I iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchButton:Landroid/widget/ImageView; iget-object p3, p0, Landroidx/appcompat/widget/SearchView;->mOnClickListener:Landroid/view/View$OnClickListener; invoke-virtual {p1, p3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mCloseButton:Landroid/widget/ImageView; iget-object p3, p0, Landroidx/appcompat/widget/SearchView;->mOnClickListener:Landroid/view/View$OnClickListener; invoke-virtual {p1, p3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mGoButton:Landroid/widget/ImageView; iget-object p3, p0, Landroidx/appcompat/widget/SearchView;->mOnClickListener:Landroid/view/View$OnClickListener; invoke-virtual {p1, p3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mVoiceButton:Landroid/widget/ImageView; iget-object p3, p0, Landroidx/appcompat/widget/SearchView;->mOnClickListener:Landroid/view/View$OnClickListener; invoke-virtual {p1, p3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; iget-object p3, p0, Landroidx/appcompat/widget/SearchView;->mOnClickListener:Landroid/view/View$OnClickListener; invoke-virtual {p1, p3}, Landroid/widget/AutoCompleteTextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; iget-object p3, p0, Landroidx/appcompat/widget/SearchView;->mTextWatcher:Landroid/text/TextWatcher; invoke-virtual {p1, p3}, Landroid/widget/AutoCompleteTextView;->addTextChangedListener(Landroid/text/TextWatcher;)V iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; iget-object p3, p0, Landroidx/appcompat/widget/SearchView;->mOnEditorActionListener:Landroid/widget/TextView$OnEditorActionListener; invoke-virtual {p1, p3}, Landroid/widget/AutoCompleteTextView;->setOnEditorActionListener(Landroid/widget/TextView$OnEditorActionListener;)V iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; iget-object p3, p0, Landroidx/appcompat/widget/SearchView;->mOnItemClickListener:Landroid/widget/AdapterView$OnItemClickListener; invoke-virtual {p1, p3}, Landroid/widget/AutoCompleteTextView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; iget-object p3, p0, Landroidx/appcompat/widget/SearchView;->mOnItemSelectedListener:Landroid/widget/AdapterView$OnItemSelectedListener; invoke-virtual {p1, p3}, Landroid/widget/AutoCompleteTextView;->setOnItemSelectedListener(Landroid/widget/AdapterView$OnItemSelectedListener;)V iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; iget-object p3, p0, Landroidx/appcompat/widget/SearchView;->mTextKeyListener:Landroid/view/View$OnKeyListener; invoke-virtual {p1, p3}, Landroid/widget/AutoCompleteTextView;->setOnKeyListener(Landroid/view/View$OnKeyListener;)V iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; new-instance p3, Landroidx/appcompat/widget/SearchView$3; invoke-direct {p3, p0}, Landroidx/appcompat/widget/SearchView$3;->(Landroidx/appcompat/widget/SearchView;)V invoke-virtual {p1, p3}, Landroid/widget/AutoCompleteTextView;->setOnFocusChangeListener(Landroid/view/View$OnFocusChangeListener;)V sget p1, Landroidx/appcompat/R$styleable;->SearchView_iconifiedByDefault:I invoke-virtual {p2, p1, v0}, Landroidx/appcompat/widget/TintTypedArray;->getBoolean(IZ)Z move-result p1 invoke-virtual {p0, p1}, Landroidx/appcompat/widget/SearchView;->setIconifiedByDefault(Z)V sget p1, Landroidx/appcompat/R$styleable;->SearchView_android_maxWidth:I const/4 p3, -0x1 invoke-virtual {p2, p1, p3}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelSize(II)I move-result p1 if-eq p1, p3, :cond_0 invoke-virtual {p0, p1}, Landroidx/appcompat/widget/SearchView;->setMaxWidth(I)V :cond_0 sget p1, Landroidx/appcompat/R$styleable;->SearchView_defaultQueryHint:I invoke-virtual {p2, p1}, Landroidx/appcompat/widget/TintTypedArray;->getText(I)Ljava/lang/CharSequence; move-result-object p1 iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mDefaultQueryHint:Ljava/lang/CharSequence; sget p1, Landroidx/appcompat/R$styleable;->SearchView_queryHint:I invoke-virtual {p2, p1}, Landroidx/appcompat/widget/TintTypedArray;->getText(I)Ljava/lang/CharSequence; move-result-object p1 iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mQueryHint:Ljava/lang/CharSequence; sget p1, Landroidx/appcompat/R$styleable;->SearchView_android_imeOptions:I invoke-virtual {p2, p1, p3}, Landroidx/appcompat/widget/TintTypedArray;->getInt(II)I move-result p1 if-eq p1, p3, :cond_1 invoke-virtual {p0, p1}, Landroidx/appcompat/widget/SearchView;->setImeOptions(I)V :cond_1 sget p1, Landroidx/appcompat/R$styleable;->SearchView_android_inputType:I invoke-virtual {p2, p1, p3}, Landroidx/appcompat/widget/TintTypedArray;->getInt(II)I move-result p1 if-eq p1, p3, :cond_2 invoke-virtual {p0, p1}, Landroidx/appcompat/widget/SearchView;->setInputType(I)V :cond_2 sget p1, Landroidx/appcompat/R$styleable;->SearchView_android_focusable:I invoke-virtual {p2, p1, v0}, Landroidx/appcompat/widget/TintTypedArray;->getBoolean(IZ)Z move-result p1 invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->setFocusable(Z)V invoke-virtual {p2}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V new-instance p1, Landroid/content/Intent; const-string p2, "android.speech.action.WEB_SEARCH" invoke-direct {p1, p2}, Landroid/content/Intent;->(Ljava/lang/String;)V iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mVoiceWebSearchIntent:Landroid/content/Intent; const/high16 p2, 0x10000000 invoke-virtual {p1, p2}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent; iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mVoiceWebSearchIntent:Landroid/content/Intent; const-string p3, "android.speech.extra.LANGUAGE_MODEL" const-string v0, "web_search" invoke-virtual {p1, p3, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; new-instance p1, Landroid/content/Intent; const-string p3, "android.speech.action.RECOGNIZE_SPEECH" invoke-direct {p1, p3}, Landroid/content/Intent;->(Ljava/lang/String;)V iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mVoiceAppSearchIntent:Landroid/content/Intent; invoke-virtual {p1, p2}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent; iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {p1}, Landroid/widget/AutoCompleteTextView;->getDropDownAnchor()I move-result p1 invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View; move-result-object p1 iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mDropDownAnchor:Landroid/view/View; if-eqz p1, :cond_3 new-instance p2, Landroidx/appcompat/widget/SearchView$4; invoke-direct {p2, p0}, Landroidx/appcompat/widget/SearchView$4;->(Landroidx/appcompat/widget/SearchView;)V invoke-virtual {p1, p2}, Landroid/view/View;->addOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V :cond_3 iget-boolean p1, p0, Landroidx/appcompat/widget/SearchView;->mIconifiedByDefault:Z invoke-direct {p0, p1}, Landroidx/appcompat/widget/SearchView;->updateViewsVisibility(Z)V invoke-direct {p0}, Landroidx/appcompat/widget/SearchView;->updateQueryHint()V return-void .end method .method private createIntent(Ljava/lang/String;Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)Landroid/content/Intent; .locals 1 new-instance v0, Landroid/content/Intent; invoke-direct {v0, p1}, Landroid/content/Intent;->(Ljava/lang/String;)V const/high16 p1, 0x10000000 invoke-virtual {v0, p1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent; if-eqz p2, :cond_0 invoke-virtual {v0, p2}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent; :cond_0 iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mUserQuery:Ljava/lang/CharSequence; const-string p2, "user_query" invoke-virtual {v0, p2, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/CharSequence;)Landroid/content/Intent; if-eqz p4, :cond_1 const-string p1, "query" invoke-virtual {v0, p1, p4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; :cond_1 if-eqz p3, :cond_2 const-string p1, "intent_extra_data_key" invoke-virtual {v0, p1, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; :cond_2 iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mAppSearchData:Landroid/os/Bundle; if-eqz p1, :cond_3 const-string p2, "app_data" invoke-virtual {v0, p2, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent; :cond_3 if-eqz p5, :cond_4 const-string p1, "action_key" invoke-virtual {v0, p1, p5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent; const-string p1, "action_msg" invoke-virtual {v0, p1, p6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; :cond_4 iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchable:Landroid/app/SearchableInfo; invoke-virtual {p1}, Landroid/app/SearchableInfo;->getSearchActivity()Landroid/content/ComponentName; move-result-object p1 invoke-virtual {v0, p1}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent; return-object v0 .end method .method private createIntentFromSuggestion(Landroid/database/Cursor;ILjava/lang/String;)Landroid/content/Intent; .locals 8 const/4 v0, 0x0 :try_start_0 const-string v1, "suggest_intent_action" invoke-static {p1, v1}, Landroidx/appcompat/widget/SuggestionsAdapter;->getColumnString(Landroid/database/Cursor;Ljava/lang/String;)Ljava/lang/String; move-result-object v1 if-nez v1, :cond_0 iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mSearchable:Landroid/app/SearchableInfo; invoke-virtual {v1}, Landroid/app/SearchableInfo;->getSuggestIntentAction()Ljava/lang/String; move-result-object v1 :cond_0 if-nez v1, :cond_1 const-string v1, "android.intent.action.SEARCH" :cond_1 move-object v2, v1 const-string v1, "suggest_intent_data" invoke-static {p1, v1}, Landroidx/appcompat/widget/SuggestionsAdapter;->getColumnString(Landroid/database/Cursor;Ljava/lang/String;)Ljava/lang/String; move-result-object v1 if-nez v1, :cond_2 iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mSearchable:Landroid/app/SearchableInfo; invoke-virtual {v1}, Landroid/app/SearchableInfo;->getSuggestIntentData()Ljava/lang/String; move-result-object v1 :cond_2 if-eqz v1, :cond_3 const-string v3, "suggest_intent_data_id" invoke-static {p1, v3}, Landroidx/appcompat/widget/SuggestionsAdapter;->getColumnString(Landroid/database/Cursor;Ljava/lang/String;)Ljava/lang/String; move-result-object v3 if-eqz v3, :cond_3 new-instance v4, Ljava/lang/StringBuilder; invoke-direct {v4}, Ljava/lang/StringBuilder;->()V invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v1, "/" invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-static {v3}, Landroid/net/Uri;->encode(Ljava/lang/String;)Ljava/lang/String; move-result-object v1 invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 :cond_3 if-nez v1, :cond_4 move-object v3, v0 goto :goto_0 :cond_4 invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri; move-result-object v1 move-object v3, v1 :goto_0 const-string v1, "suggest_intent_query" invoke-static {p1, v1}, Landroidx/appcompat/widget/SuggestionsAdapter;->getColumnString(Landroid/database/Cursor;Ljava/lang/String;)Ljava/lang/String; move-result-object v5 const-string v1, "suggest_intent_extra_data" invoke-static {p1, v1}, Landroidx/appcompat/widget/SuggestionsAdapter;->getColumnString(Landroid/database/Cursor;Ljava/lang/String;)Ljava/lang/String; move-result-object v4 move-object v1, p0 move v6, p2 move-object v7, p3 invoke-direct/range {v1 .. v7}, Landroidx/appcompat/widget/SearchView;->createIntent(Ljava/lang/String;Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)Landroid/content/Intent; move-result-object p1 :try_end_0 .catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0 return-object p1 :catch_0 move-exception p2 :try_start_1 invoke-interface {p1}, Landroid/database/Cursor;->getPosition()I move-result p1 :try_end_1 .catch Ljava/lang/RuntimeException; {:try_start_1 .. :try_end_1} :catch_1 goto :goto_1 :catch_1 const/4 p1, -0x1 :goto_1 new-instance p3, Ljava/lang/StringBuilder; invoke-direct {p3}, Ljava/lang/StringBuilder;->()V const-string v1, "Search suggestions cursor at row " invoke-virtual {p3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; const-string p1, " returned exception." invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 const-string p3, "SearchView" invoke-static {p3, p1, p2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I return-object v0 .end method .method private createVoiceAppSearchIntent(Landroid/content/Intent;Landroid/app/SearchableInfo;)Landroid/content/Intent; .locals 9 invoke-virtual {p2}, Landroid/app/SearchableInfo;->getSearchActivity()Landroid/content/ComponentName; move-result-object v0 new-instance v1, Landroid/content/Intent; const-string v2, "android.intent.action.SEARCH" invoke-direct {v1, v2}, Landroid/content/Intent;->(Ljava/lang/String;)V invoke-virtual {v1, v0}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent; invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context; move-result-object v2 const/4 v3, 0x0 const/high16 v4, 0x40000000 # 2.0f invoke-static {v2, v3, v1, v4}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent; move-result-object v1 new-instance v2, Landroid/os/Bundle; invoke-direct {v2}, Landroid/os/Bundle;->()V iget-object v3, p0, Landroidx/appcompat/widget/SearchView;->mAppSearchData:Landroid/os/Bundle; if-eqz v3, :cond_0 const-string v4, "app_data" invoke-virtual {v2, v4, v3}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V :cond_0 new-instance v3, Landroid/content/Intent; invoke-direct {v3, p1}, Landroid/content/Intent;->(Landroid/content/Intent;)V const/4 p1, 0x1 invoke-virtual {p0}, Landroid/view/ViewGroup;->getResources()Landroid/content/res/Resources; move-result-object v4 invoke-virtual {p2}, Landroid/app/SearchableInfo;->getVoiceLanguageModeId()I move-result v5 if-eqz v5, :cond_1 invoke-virtual {p2}, Landroid/app/SearchableInfo;->getVoiceLanguageModeId()I move-result v5 invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String; move-result-object v5 goto :goto_0 :cond_1 const-string v5, "free_form" :goto_0 invoke-virtual {p2}, Landroid/app/SearchableInfo;->getVoicePromptTextId()I move-result v6 const/4 v7, 0x0 if-eqz v6, :cond_2 invoke-virtual {p2}, Landroid/app/SearchableInfo;->getVoicePromptTextId()I move-result v6 invoke-virtual {v4, v6}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String; move-result-object v6 goto :goto_1 :cond_2 move-object v6, v7 :goto_1 invoke-virtual {p2}, Landroid/app/SearchableInfo;->getVoiceLanguageId()I move-result v8 if-eqz v8, :cond_3 invoke-virtual {p2}, Landroid/app/SearchableInfo;->getVoiceLanguageId()I move-result v8 invoke-virtual {v4, v8}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String; move-result-object v4 goto :goto_2 :cond_3 move-object v4, v7 :goto_2 invoke-virtual {p2}, Landroid/app/SearchableInfo;->getVoiceMaxResults()I move-result v8 if-eqz v8, :cond_4 invoke-virtual {p2}, Landroid/app/SearchableInfo;->getVoiceMaxResults()I move-result p1 :cond_4 const-string p2, "android.speech.extra.LANGUAGE_MODEL" invoke-virtual {v3, p2, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; const-string p2, "android.speech.extra.PROMPT" invoke-virtual {v3, p2, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; const-string p2, "android.speech.extra.LANGUAGE" invoke-virtual {v3, p2, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; const-string p2, "android.speech.extra.MAX_RESULTS" invoke-virtual {v3, p2, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent; if-nez v0, :cond_5 goto :goto_3 :cond_5 invoke-virtual {v0}, Landroid/content/ComponentName;->flattenToShortString()Ljava/lang/String; move-result-object v7 :goto_3 const-string p1, "calling_package" invoke-virtual {v3, p1, v7}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; const-string p1, "android.speech.extra.RESULTS_PENDINGINTENT" invoke-virtual {v3, p1, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent; const-string p1, "android.speech.extra.RESULTS_PENDINGINTENT_BUNDLE" invoke-virtual {v3, p1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent; return-object v3 .end method .method private createVoiceWebSearchIntent(Landroid/content/Intent;Landroid/app/SearchableInfo;)Landroid/content/Intent; .locals 1 new-instance v0, Landroid/content/Intent; invoke-direct {v0, p1}, Landroid/content/Intent;->(Landroid/content/Intent;)V invoke-virtual {p2}, Landroid/app/SearchableInfo;->getSearchActivity()Landroid/content/ComponentName; move-result-object p1 if-nez p1, :cond_0 const/4 p1, 0x0 goto :goto_0 :cond_0 invoke-virtual {p1}, Landroid/content/ComponentName;->flattenToShortString()Ljava/lang/String; move-result-object p1 :goto_0 const-string p2, "calling_package" invoke-virtual {v0, p2, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; return-object v0 .end method .method private dismissSuggestions()V .locals 1 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->dismissDropDown()V return-void .end method .method private getChildBoundsWithinSearchView(Landroid/view/View;Landroid/graphics/Rect;)V .locals 4 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mTemp:[I invoke-virtual {p1, v0}, Landroid/view/View;->getLocationInWindow([I)V iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mTemp2:[I invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->getLocationInWindow([I)V iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mTemp:[I const/4 v1, 0x1 aget v2, v0, v1 iget-object v3, p0, Landroidx/appcompat/widget/SearchView;->mTemp2:[I aget v1, v3, v1 sub-int/2addr v2, v1 const/4 v1, 0x0 aget v0, v0, v1 aget v1, v3, v1 sub-int/2addr v0, v1 invoke-virtual {p1}, Landroid/view/View;->getWidth()I move-result v1 add-int/2addr v1, v0 invoke-virtual {p1}, Landroid/view/View;->getHeight()I move-result p1 add-int/2addr p1, v2 invoke-virtual {p2, v0, v2, v1, p1}, Landroid/graphics/Rect;->set(IIII)V return-void .end method .method private getDecoratedHint(Ljava/lang/CharSequence;)Ljava/lang/CharSequence; .locals 5 iget-boolean v0, p0, Landroidx/appcompat/widget/SearchView;->mIconifiedByDefault:Z if-eqz v0, :cond_1 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchHintIcon:Landroid/graphics/drawable/Drawable; if-nez v0, :cond_0 goto :goto_0 :cond_0 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->getTextSize()F move-result v0 float-to-double v0, v0 const-wide/high16 v2, 0x3ff4000000000000L # 1.25 mul-double v0, v0, v2 double-to-int v0, v0 iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mSearchHintIcon:Landroid/graphics/drawable/Drawable; const/4 v2, 0x0 invoke-virtual {v1, v2, v2, v0, v0}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V new-instance v0, Landroid/text/SpannableStringBuilder; const-string v1, " " invoke-direct {v0, v1}, Landroid/text/SpannableStringBuilder;->(Ljava/lang/CharSequence;)V new-instance v1, Landroid/text/style/ImageSpan; iget-object v2, p0, Landroidx/appcompat/widget/SearchView;->mSearchHintIcon:Landroid/graphics/drawable/Drawable; invoke-direct {v1, v2}, Landroid/text/style/ImageSpan;->(Landroid/graphics/drawable/Drawable;)V const/4 v2, 0x1 const/4 v3, 0x2 const/16 v4, 0x21 invoke-virtual {v0, v1, v2, v3, v4}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V invoke-virtual {v0, p1}, Landroid/text/SpannableStringBuilder;->append(Ljava/lang/CharSequence;)Landroid/text/SpannableStringBuilder; return-object v0 :cond_1 :goto_0 return-object p1 .end method .method private getPreferredHeight()I .locals 2 invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context; move-result-object v0 invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources; move-result-object v0 sget v1, Landroidx/appcompat/R$dimen;->abc_search_view_preferred_height:I invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I move-result v0 return v0 .end method .method private getPreferredWidth()I .locals 2 invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context; move-result-object v0 invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources; move-result-object v0 sget v1, Landroidx/appcompat/R$dimen;->abc_search_view_preferred_width:I invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I move-result v0 return v0 .end method .method private hasVoiceSearch()Z .locals 4 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchable:Landroid/app/SearchableInfo; const/4 v1, 0x0 if-eqz v0, :cond_2 invoke-virtual {v0}, Landroid/app/SearchableInfo;->getVoiceSearchEnabled()Z move-result v0 if-eqz v0, :cond_2 const/4 v0, 0x0 iget-object v2, p0, Landroidx/appcompat/widget/SearchView;->mSearchable:Landroid/app/SearchableInfo; invoke-virtual {v2}, Landroid/app/SearchableInfo;->getVoiceSearchLaunchWebSearch()Z move-result v2 if-eqz v2, :cond_0 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mVoiceWebSearchIntent:Landroid/content/Intent; goto :goto_0 :cond_0 iget-object v2, p0, Landroidx/appcompat/widget/SearchView;->mSearchable:Landroid/app/SearchableInfo; invoke-virtual {v2}, Landroid/app/SearchableInfo;->getVoiceSearchLaunchRecognizer()Z move-result v2 if-eqz v2, :cond_1 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mVoiceAppSearchIntent:Landroid/content/Intent; :cond_1 :goto_0 if-eqz v0, :cond_2 invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context; move-result-object v2 invoke-virtual {v2}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; move-result-object v2 const/high16 v3, 0x10000 invoke-virtual {v2, v0, v3}, Landroid/content/pm/PackageManager;->resolveActivity(Landroid/content/Intent;I)Landroid/content/pm/ResolveInfo; move-result-object v0 if-eqz v0, :cond_2 const/4 v1, 0x1 :cond_2 return v1 .end method .method public static isLandscapeMode(Landroid/content/Context;)Z .locals 1 invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources; move-result-object p0 invoke-virtual {p0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration; move-result-object p0 iget p0, p0, Landroid/content/res/Configuration;->orientation:I const/4 v0, 0x2 if-ne p0, v0, :cond_0 const/4 p0, 0x1 goto :goto_0 :cond_0 const/4 p0, 0x0 :goto_0 return p0 .end method .method private isSubmitAreaEnabled()Z .locals 1 iget-boolean v0, p0, Landroidx/appcompat/widget/SearchView;->mSubmitButtonEnabled:Z if-nez v0, :cond_0 iget-boolean v0, p0, Landroidx/appcompat/widget/SearchView;->mVoiceButtonEnabled:Z if-eqz v0, :cond_1 :cond_0 invoke-virtual {p0}, Landroidx/appcompat/widget/SearchView;->isIconified()Z move-result v0 if-nez v0, :cond_1 const/4 v0, 0x1 goto :goto_0 :cond_1 const/4 v0, 0x0 :goto_0 return v0 .end method .method private launchIntent(Landroid/content/Intent;)V .locals 3 if-nez p1, :cond_0 return-void :cond_0 :try_start_0 invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context; move-result-object v0 invoke-virtual {v0, p1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V :try_end_0 .catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 :catch_0 move-exception v0 new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V const-string v2, "Failed launch activity: " invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 const-string v1, "SearchView" invoke-static {v1, p1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I :goto_0 return-void .end method .method private launchSuggestion(IILjava/lang/String;)Z .locals 1 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSuggestionsAdapter:Landroidx/cursoradapter/widget/CursorAdapter; invoke-virtual {v0}, Landroidx/cursoradapter/widget/CursorAdapter;->getCursor()Landroid/database/Cursor; move-result-object v0 if-eqz v0, :cond_0 invoke-interface {v0, p1}, Landroid/database/Cursor;->moveToPosition(I)Z move-result p1 if-eqz p1, :cond_0 invoke-direct {p0, v0, p2, p3}, Landroidx/appcompat/widget/SearchView;->createIntentFromSuggestion(Landroid/database/Cursor;ILjava/lang/String;)Landroid/content/Intent; move-result-object p1 invoke-direct {p0, p1}, Landroidx/appcompat/widget/SearchView;->launchIntent(Landroid/content/Intent;)V const/4 p1, 0x1 return p1 :cond_0 const/4 p1, 0x0 return p1 .end method .method private postUpdateFocusedState()V .locals 1 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mUpdateDrawableStateRunnable:Ljava/lang/Runnable; invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->post(Ljava/lang/Runnable;)Z return-void .end method .method private rewriteQueryFromSuggestion(I)V .locals 2 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->getText()Landroid/text/Editable; move-result-object v0 iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mSuggestionsAdapter:Landroidx/cursoradapter/widget/CursorAdapter; invoke-virtual {v1}, Landroidx/cursoradapter/widget/CursorAdapter;->getCursor()Landroid/database/Cursor; move-result-object v1 if-nez v1, :cond_0 return-void :cond_0 invoke-interface {v1, p1}, Landroid/database/Cursor;->moveToPosition(I)Z move-result p1 if-eqz p1, :cond_2 iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSuggestionsAdapter:Landroidx/cursoradapter/widget/CursorAdapter; invoke-virtual {p1, v1}, Landroidx/cursoradapter/widget/CursorAdapter;->convertToString(Landroid/database/Cursor;)Ljava/lang/CharSequence; move-result-object p1 if-eqz p1, :cond_1 invoke-direct {p0, p1}, Landroidx/appcompat/widget/SearchView;->setQuery(Ljava/lang/CharSequence;)V goto :goto_0 :cond_1 invoke-direct {p0, v0}, Landroidx/appcompat/widget/SearchView;->setQuery(Ljava/lang/CharSequence;)V goto :goto_0 :cond_2 invoke-direct {p0, v0}, Landroidx/appcompat/widget/SearchView;->setQuery(Ljava/lang/CharSequence;)V :goto_0 return-void .end method .method private setQuery(Ljava/lang/CharSequence;)V .locals 2 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0, p1}, Landroid/widget/AutoCompleteTextView;->setText(Ljava/lang/CharSequence;)V iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z move-result v1 if-eqz v1, :cond_0 const/4 p1, 0x0 goto :goto_0 :cond_0 invoke-interface {p1}, Ljava/lang/CharSequence;->length()I move-result p1 :goto_0 invoke-virtual {v0, p1}, Landroid/widget/AutoCompleteTextView;->setSelection(I)V return-void .end method .method private updateCloseButton()V .locals 4 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->getText()Landroid/text/Editable; move-result-object v0 invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z move-result v0 const/4 v1, 0x1 xor-int/2addr v0, v1 const/4 v2, 0x0 if-nez v0, :cond_1 iget-boolean v3, p0, Landroidx/appcompat/widget/SearchView;->mIconifiedByDefault:Z if-eqz v3, :cond_0 iget-boolean v3, p0, Landroidx/appcompat/widget/SearchView;->mExpandedInActionView:Z if-nez v3, :cond_0 goto :goto_0 :cond_0 const/4 v1, 0x0 :cond_1 :goto_0 iget-object v3, p0, Landroidx/appcompat/widget/SearchView;->mCloseButton:Landroid/widget/ImageView; if-eqz v1, :cond_2 goto :goto_1 :cond_2 const/16 v2, 0x8 :goto_1 invoke-virtual {v3, v2}, Landroid/widget/ImageView;->setVisibility(I)V iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mCloseButton:Landroid/widget/ImageView; invoke-virtual {v1}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable; move-result-object v1 if-eqz v1, :cond_4 if-eqz v0, :cond_3 sget-object v0, Landroid/view/ViewGroup;->ENABLED_STATE_SET:[I goto :goto_2 :cond_3 sget-object v0, Landroid/view/ViewGroup;->EMPTY_STATE_SET:[I :goto_2 invoke-virtual {v1, v0}, Landroid/graphics/drawable/Drawable;->setState([I)Z :cond_4 return-void .end method .method private updateQueryHint()V .locals 2 invoke-virtual {p0}, Landroidx/appcompat/widget/SearchView;->getQueryHint()Ljava/lang/CharSequence; move-result-object v0 iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; if-nez v0, :cond_0 const-string v0, "" :cond_0 invoke-direct {p0, v0}, Landroidx/appcompat/widget/SearchView;->getDecoratedHint(Ljava/lang/CharSequence;)Ljava/lang/CharSequence; move-result-object v0 invoke-virtual {v1, v0}, Landroid/widget/AutoCompleteTextView;->setHint(Ljava/lang/CharSequence;)V return-void .end method .method private updateSearchAutoComplete()V .locals 5 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mSearchable:Landroid/app/SearchableInfo; invoke-virtual {v1}, Landroid/app/SearchableInfo;->getSuggestThreshold()I move-result v1 invoke-virtual {v0, v1}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->setThreshold(I)V iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mSearchable:Landroid/app/SearchableInfo; invoke-virtual {v1}, Landroid/app/SearchableInfo;->getImeOptions()I move-result v1 invoke-virtual {v0, v1}, Landroid/widget/AutoCompleteTextView;->setImeOptions(I)V iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchable:Landroid/app/SearchableInfo; invoke-virtual {v0}, Landroid/app/SearchableInfo;->getInputType()I move-result v0 and-int/lit8 v1, v0, 0xf const/4 v2, 0x1 if-ne v1, v2, :cond_0 const v1, -0x10001 and-int/2addr v0, v1 iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mSearchable:Landroid/app/SearchableInfo; invoke-virtual {v1}, Landroid/app/SearchableInfo;->getSuggestAuthority()Ljava/lang/String; move-result-object v1 if-eqz v1, :cond_0 const/high16 v1, 0x10000 or-int/2addr v0, v1 const/high16 v1, 0x80000 or-int/2addr v0, v1 :cond_0 iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v1, v0}, Landroid/widget/AutoCompleteTextView;->setInputType(I)V iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSuggestionsAdapter:Landroidx/cursoradapter/widget/CursorAdapter; if-eqz v0, :cond_1 const/4 v1, 0x0 invoke-virtual {v0, v1}, Landroidx/cursoradapter/widget/CursorAdapter;->changeCursor(Landroid/database/Cursor;)V :cond_1 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchable:Landroid/app/SearchableInfo; invoke-virtual {v0}, Landroid/app/SearchableInfo;->getSuggestAuthority()Ljava/lang/String; move-result-object v0 if-eqz v0, :cond_3 new-instance v0, Landroidx/appcompat/widget/SuggestionsAdapter; invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context; move-result-object v1 iget-object v3, p0, Landroidx/appcompat/widget/SearchView;->mSearchable:Landroid/app/SearchableInfo; iget-object v4, p0, Landroidx/appcompat/widget/SearchView;->mOutsideDrawablesCache:Ljava/util/WeakHashMap; invoke-direct {v0, v1, p0, v3, v4}, Landroidx/appcompat/widget/SuggestionsAdapter;->(Landroid/content/Context;Landroidx/appcompat/widget/SearchView;Landroid/app/SearchableInfo;Ljava/util/WeakHashMap;)V iput-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSuggestionsAdapter:Landroidx/cursoradapter/widget/CursorAdapter; iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v1, v0}, Landroid/widget/AutoCompleteTextView;->setAdapter(Landroid/widget/ListAdapter;)V iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSuggestionsAdapter:Landroidx/cursoradapter/widget/CursorAdapter; check-cast v0, Landroidx/appcompat/widget/SuggestionsAdapter; iget-boolean v1, p0, Landroidx/appcompat/widget/SearchView;->mQueryRefinement:Z if-eqz v1, :cond_2 const/4 v2, 0x2 :cond_2 invoke-virtual {v0, v2}, Landroidx/appcompat/widget/SuggestionsAdapter;->setQueryRefinement(I)V :cond_3 return-void .end method .method private updateSubmitArea()V .locals 2 invoke-direct {p0}, Landroidx/appcompat/widget/SearchView;->isSubmitAreaEnabled()Z move-result v0 if-eqz v0, :cond_1 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mGoButton:Landroid/widget/ImageView; invoke-virtual {v0}, Landroid/widget/ImageView;->getVisibility()I move-result v0 if-eqz v0, :cond_0 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mVoiceButton:Landroid/widget/ImageView; invoke-virtual {v0}, Landroid/widget/ImageView;->getVisibility()I move-result v0 if-nez v0, :cond_1 :cond_0 const/4 v0, 0x0 goto :goto_0 :cond_1 const/16 v0, 0x8 :goto_0 iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mSubmitArea:Landroid/view/View; invoke-virtual {v1, v0}, Landroid/view/View;->setVisibility(I)V return-void .end method .method private updateSubmitButton(Z)V .locals 1 iget-boolean v0, p0, Landroidx/appcompat/widget/SearchView;->mSubmitButtonEnabled:Z if-eqz v0, :cond_1 invoke-direct {p0}, Landroidx/appcompat/widget/SearchView;->isSubmitAreaEnabled()Z move-result v0 if-eqz v0, :cond_1 invoke-virtual {p0}, Landroid/view/ViewGroup;->hasFocus()Z move-result v0 if-eqz v0, :cond_1 if-nez p1, :cond_0 iget-boolean p1, p0, Landroidx/appcompat/widget/SearchView;->mVoiceButtonEnabled:Z if-nez p1, :cond_1 :cond_0 const/4 p1, 0x0 goto :goto_0 :cond_1 const/16 p1, 0x8 :goto_0 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mGoButton:Landroid/widget/ImageView; invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setVisibility(I)V return-void .end method .method private updateViewsVisibility(Z)V .locals 5 iput-boolean p1, p0, Landroidx/appcompat/widget/SearchView;->mIconified:Z const/4 v0, 0x0 const/16 v1, 0x8 if-eqz p1, :cond_0 const/4 v2, 0x0 goto :goto_0 :cond_0 const/16 v2, 0x8 :goto_0 iget-object v3, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v3}, Landroid/widget/AutoCompleteTextView;->getText()Landroid/text/Editable; move-result-object v3 invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z move-result v3 xor-int/lit8 v3, v3, 0x1 iget-object v4, p0, Landroidx/appcompat/widget/SearchView;->mSearchButton:Landroid/widget/ImageView; invoke-virtual {v4, v2}, Landroid/widget/ImageView;->setVisibility(I)V invoke-direct {p0, v3}, Landroidx/appcompat/widget/SearchView;->updateSubmitButton(Z)V iget-object v2, p0, Landroidx/appcompat/widget/SearchView;->mSearchEditFrame:Landroid/view/View; if-eqz p1, :cond_1 const/16 p1, 0x8 goto :goto_1 :cond_1 const/4 p1, 0x0 :goto_1 invoke-virtual {v2, p1}, Landroid/view/View;->setVisibility(I)V iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mCollapsedIcon:Landroid/widget/ImageView; invoke-virtual {p1}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable; move-result-object p1 if-eqz p1, :cond_2 iget-boolean p1, p0, Landroidx/appcompat/widget/SearchView;->mIconifiedByDefault:Z if-eqz p1, :cond_3 :cond_2 const/16 v0, 0x8 :cond_3 iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mCollapsedIcon:Landroid/widget/ImageView; invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setVisibility(I)V invoke-direct {p0}, Landroidx/appcompat/widget/SearchView;->updateCloseButton()V xor-int/lit8 p1, v3, 0x1 invoke-direct {p0, p1}, Landroidx/appcompat/widget/SearchView;->updateVoiceButton(Z)V invoke-direct {p0}, Landroidx/appcompat/widget/SearchView;->updateSubmitArea()V return-void .end method .method private updateVoiceButton(Z)V .locals 2 iget-boolean v0, p0, Landroidx/appcompat/widget/SearchView;->mVoiceButtonEnabled:Z const/16 v1, 0x8 if-eqz v0, :cond_0 invoke-virtual {p0}, Landroidx/appcompat/widget/SearchView;->isIconified()Z move-result v0 if-nez v0, :cond_0 if-eqz p1, :cond_0 const/4 p1, 0x0 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mGoButton:Landroid/widget/ImageView; invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V const/4 v1, 0x0 :cond_0 iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mVoiceButton:Landroid/widget/ImageView; invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setVisibility(I)V return-void .end method # virtual methods .method public adjustDropDownSizeAndPosition()V .locals 6 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mDropDownAnchor:Landroid/view/View; invoke-virtual {v0}, Landroid/view/View;->getWidth()I move-result v0 const/4 v1, 0x1 if-le v0, v1, :cond_2 invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context; move-result-object v0 invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources; move-result-object v0 iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mSearchPlate:Landroid/view/View; invoke-virtual {v1}, Landroid/view/View;->getPaddingLeft()I move-result v1 new-instance v2, Landroid/graphics/Rect; invoke-direct {v2}, Landroid/graphics/Rect;->()V invoke-static {p0}, Landroidx/appcompat/widget/ViewUtils;->isLayoutRtl(Landroid/view/View;)Z move-result v3 iget-boolean v4, p0, Landroidx/appcompat/widget/SearchView;->mIconifiedByDefault:Z if-eqz v4, :cond_0 sget v4, Landroidx/appcompat/R$dimen;->abc_dropdownitem_icon_width:I invoke-virtual {v0, v4}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I move-result v4 sget v5, Landroidx/appcompat/R$dimen;->abc_dropdownitem_text_padding_left:I invoke-virtual {v0, v5}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I move-result v0 add-int/2addr v0, v4 goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 iget-object v4, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v4}, Landroid/widget/AutoCompleteTextView;->getDropDownBackground()Landroid/graphics/drawable/Drawable; move-result-object v4 invoke-virtual {v4, v2}, Landroid/graphics/drawable/Drawable;->getPadding(Landroid/graphics/Rect;)Z if-eqz v3, :cond_1 iget v3, v2, Landroid/graphics/Rect;->left:I neg-int v3, v3 goto :goto_1 :cond_1 iget v3, v2, Landroid/graphics/Rect;->left:I add-int/2addr v3, v0 sub-int v3, v1, v3 :goto_1 iget-object v4, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v4, v3}, Landroid/widget/AutoCompleteTextView;->setDropDownHorizontalOffset(I)V iget-object v3, p0, Landroidx/appcompat/widget/SearchView;->mDropDownAnchor:Landroid/view/View; invoke-virtual {v3}, Landroid/view/View;->getWidth()I move-result v3 iget v4, v2, Landroid/graphics/Rect;->left:I add-int/2addr v3, v4 iget v2, v2, Landroid/graphics/Rect;->right:I add-int/2addr v3, v2 add-int/2addr v3, v0 sub-int/2addr v3, v1 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0, v3}, Landroid/widget/AutoCompleteTextView;->setDropDownWidth(I)V :cond_2 return-void .end method .method public clearFocus()V .locals 2 const/4 v0, 0x1 iput-boolean v0, p0, Landroidx/appcompat/widget/SearchView;->mClearingFocus:Z invoke-super {p0}, Landroid/view/ViewGroup;->clearFocus()V iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->clearFocus()V iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; const/4 v1, 0x0 invoke-virtual {v0, v1}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->setImeVisibility(Z)V iput-boolean v1, p0, Landroidx/appcompat/widget/SearchView;->mClearingFocus:Z return-void .end method .method public forceSuggestionQuery()V .locals 2 sget v0, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v1, 0x1d if-lt v0, v1, :cond_0 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->refreshAutoCompleteResults()V goto :goto_0 :cond_0 sget-object v0, Landroidx/appcompat/widget/SearchView;->HIDDEN_METHOD_INVOKER:Landroidx/appcompat/widget/SearchView$AutoCompleteTextViewReflector; iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0, v1}, Landroidx/appcompat/widget/SearchView$AutoCompleteTextViewReflector;->doBeforeTextChanged(Landroid/widget/AutoCompleteTextView;)V sget-object v0, Landroidx/appcompat/widget/SearchView;->HIDDEN_METHOD_INVOKER:Landroidx/appcompat/widget/SearchView$AutoCompleteTextViewReflector; iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0, v1}, Landroidx/appcompat/widget/SearchView$AutoCompleteTextViewReflector;->doAfterTextChanged(Landroid/widget/AutoCompleteTextView;)V :goto_0 return-void .end method .method public getImeOptions()I .locals 1 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->getImeOptions()I move-result v0 return v0 .end method .method public getInputType()I .locals 1 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->getInputType()I move-result v0 return v0 .end method .method public getMaxWidth()I .locals 1 iget v0, p0, Landroidx/appcompat/widget/SearchView;->mMaxWidth:I return v0 .end method .method public getQuery()Ljava/lang/CharSequence; .locals 1 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->getText()Landroid/text/Editable; move-result-object v0 return-object v0 .end method .method public getQueryHint()Ljava/lang/CharSequence; .locals 2 .annotation build Landroidx/annotation/Nullable; .end annotation iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mQueryHint:Ljava/lang/CharSequence; if-eqz v0, :cond_0 goto :goto_0 :cond_0 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchable:Landroid/app/SearchableInfo; if-eqz v0, :cond_1 invoke-virtual {v0}, Landroid/app/SearchableInfo;->getHintId()I move-result v0 if-eqz v0, :cond_1 invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context; move-result-object v0 iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mSearchable:Landroid/app/SearchableInfo; invoke-virtual {v1}, Landroid/app/SearchableInfo;->getHintId()I move-result v1 invoke-virtual {v0, v1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence; move-result-object v0 goto :goto_0 :cond_1 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mDefaultQueryHint:Ljava/lang/CharSequence; :goto_0 return-object v0 .end method .method public getSuggestionCommitIconResId()I .locals 1 iget v0, p0, Landroidx/appcompat/widget/SearchView;->mSuggestionCommitIconResId:I return v0 .end method .method public getSuggestionRowLayout()I .locals 1 iget v0, p0, Landroidx/appcompat/widget/SearchView;->mSuggestionRowLayout:I return v0 .end method .method public getSuggestionsAdapter()Landroidx/cursoradapter/widget/CursorAdapter; .locals 1 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSuggestionsAdapter:Landroidx/cursoradapter/widget/CursorAdapter; return-object v0 .end method .method public isIconfiedByDefault()Z .locals 1 iget-boolean v0, p0, Landroidx/appcompat/widget/SearchView;->mIconifiedByDefault:Z return v0 .end method .method public isIconified()Z .locals 1 iget-boolean v0, p0, Landroidx/appcompat/widget/SearchView;->mIconified:Z return v0 .end method .method public isQueryRefinementEnabled()Z .locals 1 iget-boolean v0, p0, Landroidx/appcompat/widget/SearchView;->mQueryRefinement:Z return v0 .end method .method public isSubmitButtonEnabled()Z .locals 1 iget-boolean v0, p0, Landroidx/appcompat/widget/SearchView;->mSubmitButtonEnabled:Z return v0 .end method .method public launchQuerySearch(ILjava/lang/String;Ljava/lang/String;)V .locals 7 const-string v1, "android.intent.action.SEARCH" const/4 v2, 0x0 const/4 v3, 0x0 move-object v0, p0 move-object v4, p3 move v5, p1 move-object v6, p2 invoke-direct/range {v0 .. v6}, Landroidx/appcompat/widget/SearchView;->createIntent(Ljava/lang/String;Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)Landroid/content/Intent; move-result-object p1 invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context; move-result-object p2 invoke-virtual {p2, p1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V return-void .end method .method public onActionViewCollapsed()V .locals 3 const-string v0, "" const/4 v1, 0x0 invoke-virtual {p0, v0, v1}, Landroidx/appcompat/widget/SearchView;->setQuery(Ljava/lang/CharSequence;Z)V invoke-virtual {p0}, Landroidx/appcompat/widget/SearchView;->clearFocus()V const/4 v0, 0x1 invoke-direct {p0, v0}, Landroidx/appcompat/widget/SearchView;->updateViewsVisibility(Z)V iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; iget v2, p0, Landroidx/appcompat/widget/SearchView;->mCollapsedImeOptions:I invoke-virtual {v0, v2}, Landroid/widget/AutoCompleteTextView;->setImeOptions(I)V iput-boolean v1, p0, Landroidx/appcompat/widget/SearchView;->mExpandedInActionView:Z return-void .end method .method public onActionViewExpanded()V .locals 3 iget-boolean v0, p0, Landroidx/appcompat/widget/SearchView;->mExpandedInActionView:Z if-eqz v0, :cond_0 return-void :cond_0 const/4 v0, 0x1 iput-boolean v0, p0, Landroidx/appcompat/widget/SearchView;->mExpandedInActionView:Z iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->getImeOptions()I move-result v0 iput v0, p0, Landroidx/appcompat/widget/SearchView;->mCollapsedImeOptions:I iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; const/high16 v2, 0x2000000 or-int/2addr v0, v2 invoke-virtual {v1, v0}, Landroid/widget/AutoCompleteTextView;->setImeOptions(I)V iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; const-string v1, "" invoke-virtual {v0, v1}, Landroid/widget/AutoCompleteTextView;->setText(Ljava/lang/CharSequence;)V const/4 v0, 0x0 invoke-virtual {p0, v0}, Landroidx/appcompat/widget/SearchView;->setIconified(Z)V return-void .end method .method public onCloseClicked()V .locals 3 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->getText()Landroid/text/Editable; move-result-object v0 invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z move-result v0 const/4 v1, 0x1 if-eqz v0, :cond_1 iget-boolean v0, p0, Landroidx/appcompat/widget/SearchView;->mIconifiedByDefault:Z if-eqz v0, :cond_2 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mOnCloseListener:Landroidx/appcompat/widget/SearchView$OnCloseListener; if-eqz v0, :cond_0 invoke-interface {v0}, Landroidx/appcompat/widget/SearchView$OnCloseListener;->onClose()Z move-result v0 if-nez v0, :cond_2 :cond_0 invoke-virtual {p0}, Landroidx/appcompat/widget/SearchView;->clearFocus()V invoke-direct {p0, v1}, Landroidx/appcompat/widget/SearchView;->updateViewsVisibility(Z)V goto :goto_0 :cond_1 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; const-string v2, "" invoke-virtual {v0, v2}, Landroid/widget/AutoCompleteTextView;->setText(Ljava/lang/CharSequence;)V iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->requestFocus()Z iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0, v1}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->setImeVisibility(Z)V :cond_2 :goto_0 return-void .end method .method public onDetachedFromWindow()V .locals 1 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mUpdateDrawableStateRunnable:Ljava/lang/Runnable; invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->removeCallbacks(Ljava/lang/Runnable;)Z iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mReleaseCursorRunnable:Ljava/lang/Runnable; invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->post(Ljava/lang/Runnable;)Z invoke-super {p0}, Landroid/view/ViewGroup;->onDetachedFromWindow()V return-void .end method .method public onItemClicked(IILjava/lang/String;)Z .locals 0 iget-object p2, p0, Landroidx/appcompat/widget/SearchView;->mOnSuggestionListener:Landroidx/appcompat/widget/SearchView$OnSuggestionListener; const/4 p3, 0x0 if-eqz p2, :cond_1 invoke-interface {p2, p1}, Landroidx/appcompat/widget/SearchView$OnSuggestionListener;->onSuggestionClick(I)Z move-result p2 if-nez p2, :cond_0 goto :goto_0 :cond_0 return p3 :cond_1 :goto_0 const/4 p2, 0x0 invoke-direct {p0, p1, p3, p2}, Landroidx/appcompat/widget/SearchView;->launchSuggestion(IILjava/lang/String;)Z iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {p1, p3}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->setImeVisibility(Z)V invoke-direct {p0}, Landroidx/appcompat/widget/SearchView;->dismissSuggestions()V const/4 p1, 0x1 return p1 .end method .method public onItemSelected(I)Z .locals 1 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mOnSuggestionListener:Landroidx/appcompat/widget/SearchView$OnSuggestionListener; if-eqz v0, :cond_1 invoke-interface {v0, p1}, Landroidx/appcompat/widget/SearchView$OnSuggestionListener;->onSuggestionSelect(I)Z move-result v0 if-nez v0, :cond_0 goto :goto_0 :cond_0 const/4 p1, 0x0 return p1 :cond_1 :goto_0 invoke-direct {p0, p1}, Landroidx/appcompat/widget/SearchView;->rewriteQueryFromSuggestion(I)V const/4 p1, 0x1 return p1 .end method .method public onLayout(ZIIII)V .locals 1 invoke-super/range {p0 .. p5}, Landroidx/appcompat/widget/LinearLayoutCompat;->onLayout(ZIIII)V if-eqz p1, :cond_1 iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; iget-object p2, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextViewBounds:Landroid/graphics/Rect; invoke-direct {p0, p1, p2}, Landroidx/appcompat/widget/SearchView;->getChildBoundsWithinSearchView(Landroid/view/View;Landroid/graphics/Rect;)V iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrtTextViewBoundsExpanded:Landroid/graphics/Rect; iget-object p2, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextViewBounds:Landroid/graphics/Rect; iget p4, p2, Landroid/graphics/Rect;->left:I const/4 v0, 0x0 iget p2, p2, Landroid/graphics/Rect;->right:I sub-int/2addr p5, p3 invoke-virtual {p1, p4, v0, p2, p5}, Landroid/graphics/Rect;->set(IIII)V iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mTouchDelegate:Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate; if-nez p1, :cond_0 new-instance p1, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate; iget-object p2, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrtTextViewBoundsExpanded:Landroid/graphics/Rect; iget-object p3, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextViewBounds:Landroid/graphics/Rect; iget-object p4, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-direct {p1, p2, p3, p4}, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;->(Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/view/View;)V iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mTouchDelegate:Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate; invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->setTouchDelegate(Landroid/view/TouchDelegate;)V goto :goto_0 :cond_0 iget-object p2, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrtTextViewBoundsExpanded:Landroid/graphics/Rect; iget-object p3, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextViewBounds:Landroid/graphics/Rect; invoke-virtual {p1, p2, p3}, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;->setBounds(Landroid/graphics/Rect;Landroid/graphics/Rect;)V :cond_1 :goto_0 return-void .end method .method public onMeasure(II)V .locals 3 invoke-virtual {p0}, Landroidx/appcompat/widget/SearchView;->isIconified()Z move-result v0 if-eqz v0, :cond_0 invoke-super {p0, p1, p2}, Landroidx/appcompat/widget/LinearLayoutCompat;->onMeasure(II)V return-void :cond_0 invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I move-result v0 invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I move-result p1 const/high16 v1, -0x80000000 const/high16 v2, 0x40000000 # 2.0f if-eq v0, v1, :cond_4 if-eqz v0, :cond_2 if-eq v0, v2, :cond_1 goto :goto_0 :cond_1 iget v0, p0, Landroidx/appcompat/widget/SearchView;->mMaxWidth:I if-lez v0, :cond_6 invoke-static {v0, p1}, Ljava/lang/Math;->min(II)I move-result p1 goto :goto_0 :cond_2 iget p1, p0, Landroidx/appcompat/widget/SearchView;->mMaxWidth:I if-lez p1, :cond_3 goto :goto_0 :cond_3 invoke-direct {p0}, Landroidx/appcompat/widget/SearchView;->getPreferredWidth()I move-result p1 goto :goto_0 :cond_4 iget v0, p0, Landroidx/appcompat/widget/SearchView;->mMaxWidth:I if-lez v0, :cond_5 invoke-static {v0, p1}, Ljava/lang/Math;->min(II)I move-result p1 goto :goto_0 :cond_5 invoke-direct {p0}, Landroidx/appcompat/widget/SearchView;->getPreferredWidth()I move-result v0 invoke-static {v0, p1}, Ljava/lang/Math;->min(II)I move-result p1 :cond_6 :goto_0 invoke-static {p2}, Landroid/view/View$MeasureSpec;->getMode(I)I move-result v0 invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I move-result p2 if-eq v0, v1, :cond_8 if-eqz v0, :cond_7 goto :goto_1 :cond_7 invoke-direct {p0}, Landroidx/appcompat/widget/SearchView;->getPreferredHeight()I move-result p2 goto :goto_1 :cond_8 invoke-direct {p0}, Landroidx/appcompat/widget/SearchView;->getPreferredHeight()I move-result v0 invoke-static {v0, p2}, Ljava/lang/Math;->min(II)I move-result p2 :goto_1 invoke-static {p1, v2}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I move-result p1 invoke-static {p2, v2}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I move-result p2 invoke-super {p0, p1, p2}, Landroidx/appcompat/widget/LinearLayoutCompat;->onMeasure(II)V return-void .end method .method public onQueryRefine(Ljava/lang/CharSequence;)V .locals 0 invoke-direct {p0, p1}, Landroidx/appcompat/widget/SearchView;->setQuery(Ljava/lang/CharSequence;)V return-void .end method .method public onRestoreInstanceState(Landroid/os/Parcelable;)V .locals 1 instance-of v0, p1, Landroidx/appcompat/widget/SearchView$SavedState; if-nez v0, :cond_0 invoke-super {p0, p1}, Landroid/view/ViewGroup;->onRestoreInstanceState(Landroid/os/Parcelable;)V return-void :cond_0 check-cast p1, Landroidx/appcompat/widget/SearchView$SavedState; invoke-virtual {p1}, Landroidx/customview/view/AbsSavedState;->getSuperState()Landroid/os/Parcelable; move-result-object v0 invoke-super {p0, v0}, Landroid/view/ViewGroup;->onRestoreInstanceState(Landroid/os/Parcelable;)V iget-boolean p1, p1, Landroidx/appcompat/widget/SearchView$SavedState;->isIconified:Z invoke-direct {p0, p1}, Landroidx/appcompat/widget/SearchView;->updateViewsVisibility(Z)V invoke-virtual {p0}, Landroid/view/ViewGroup;->requestLayout()V return-void .end method .method public onSaveInstanceState()Landroid/os/Parcelable; .locals 2 invoke-super {p0}, Landroid/view/ViewGroup;->onSaveInstanceState()Landroid/os/Parcelable; move-result-object v0 new-instance v1, Landroidx/appcompat/widget/SearchView$SavedState; invoke-direct {v1, v0}, Landroidx/appcompat/widget/SearchView$SavedState;->(Landroid/os/Parcelable;)V invoke-virtual {p0}, Landroidx/appcompat/widget/SearchView;->isIconified()Z move-result v0 iput-boolean v0, v1, Landroidx/appcompat/widget/SearchView$SavedState;->isIconified:Z return-object v1 .end method .method public onSearchClicked()V .locals 2 const/4 v0, 0x0 invoke-direct {p0, v0}, Landroidx/appcompat/widget/SearchView;->updateViewsVisibility(Z)V iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->requestFocus()Z iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; const/4 v1, 0x1 invoke-virtual {v0, v1}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->setImeVisibility(Z)V iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mOnSearchClickListener:Landroid/view/View$OnClickListener; if-eqz v0, :cond_0 invoke-interface {v0, p0}, Landroid/view/View$OnClickListener;->onClick(Landroid/view/View;)V :cond_0 return-void .end method .method public onSubmitQuery()V .locals 3 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->getText()Landroid/text/Editable; move-result-object v0 if-eqz v0, :cond_2 invoke-static {v0}, Landroid/text/TextUtils;->getTrimmedLength(Ljava/lang/CharSequence;)I move-result v1 if-lez v1, :cond_2 iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mOnQueryChangeListener:Landroidx/appcompat/widget/SearchView$OnQueryTextListener; if-eqz v1, :cond_0 invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String; move-result-object v2 invoke-interface {v1, v2}, Landroidx/appcompat/widget/SearchView$OnQueryTextListener;->onQueryTextSubmit(Ljava/lang/String;)Z move-result v1 if-nez v1, :cond_2 :cond_0 iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mSearchable:Landroid/app/SearchableInfo; const/4 v2, 0x0 if-eqz v1, :cond_1 const/4 v1, 0x0 invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String; move-result-object v0 invoke-virtual {p0, v2, v1, v0}, Landroidx/appcompat/widget/SearchView;->launchQuerySearch(ILjava/lang/String;Ljava/lang/String;)V :cond_1 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0, v2}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->setImeVisibility(Z)V invoke-direct {p0}, Landroidx/appcompat/widget/SearchView;->dismissSuggestions()V :cond_2 return-void .end method .method public onSuggestionsKey(Landroid/view/View;ILandroid/view/KeyEvent;)Z .locals 1 iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchable:Landroid/app/SearchableInfo; const/4 v0, 0x0 if-nez p1, :cond_0 return v0 :cond_0 iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSuggestionsAdapter:Landroidx/cursoradapter/widget/CursorAdapter; if-nez p1, :cond_1 return v0 :cond_1 invoke-virtual {p3}, Landroid/view/KeyEvent;->getAction()I move-result p1 if-nez p1, :cond_7 invoke-virtual {p3}, Landroid/view/KeyEvent;->hasNoModifiers()Z move-result p1 if-eqz p1, :cond_7 const/16 p1, 0x42 if-eq p2, p1, :cond_6 const/16 p1, 0x54 if-eq p2, p1, :cond_6 const/16 p1, 0x3d if-ne p2, p1, :cond_2 goto :goto_2 :cond_2 const/16 p1, 0x15 if-eq p2, p1, :cond_4 const/16 p3, 0x16 if-ne p2, p3, :cond_3 goto :goto_0 :cond_3 const/16 p1, 0x13 if-ne p2, p1, :cond_7 iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {p1}, Landroid/widget/AutoCompleteTextView;->getListSelection()I move-result p1 if-nez p1, :cond_7 return v0 :cond_4 :goto_0 if-ne p2, p1, :cond_5 const/4 p1, 0x0 goto :goto_1 :cond_5 iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {p1}, Landroid/widget/AutoCompleteTextView;->length()I move-result p1 :goto_1 iget-object p2, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {p2, p1}, Landroid/widget/AutoCompleteTextView;->setSelection(I)V iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {p1, v0}, Landroid/widget/AutoCompleteTextView;->setListSelection(I)V iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {p1}, Landroid/widget/AutoCompleteTextView;->clearListSelection()V sget-object p1, Landroidx/appcompat/widget/SearchView;->HIDDEN_METHOD_INVOKER:Landroidx/appcompat/widget/SearchView$AutoCompleteTextViewReflector; iget-object p2, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; const/4 p3, 0x1 invoke-virtual {p1, p2, p3}, Landroidx/appcompat/widget/SearchView$AutoCompleteTextViewReflector;->ensureImeVisible(Landroid/widget/AutoCompleteTextView;Z)V return p3 :cond_6 :goto_2 iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {p1}, Landroid/widget/AutoCompleteTextView;->getListSelection()I move-result p1 const/4 p2, 0x0 invoke-virtual {p0, p1, v0, p2}, Landroidx/appcompat/widget/SearchView;->onItemClicked(IILjava/lang/String;)Z move-result p1 return p1 :cond_7 return v0 .end method .method public onTextChanged(Ljava/lang/CharSequence;)V .locals 2 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->getText()Landroid/text/Editable; move-result-object v0 iput-object v0, p0, Landroidx/appcompat/widget/SearchView;->mUserQuery:Ljava/lang/CharSequence; invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z move-result v0 xor-int/lit8 v0, v0, 0x1 invoke-direct {p0, v0}, Landroidx/appcompat/widget/SearchView;->updateSubmitButton(Z)V xor-int/lit8 v0, v0, 0x1 invoke-direct {p0, v0}, Landroidx/appcompat/widget/SearchView;->updateVoiceButton(Z)V invoke-direct {p0}, Landroidx/appcompat/widget/SearchView;->updateCloseButton()V invoke-direct {p0}, Landroidx/appcompat/widget/SearchView;->updateSubmitArea()V iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mOnQueryChangeListener:Landroidx/appcompat/widget/SearchView$OnQueryTextListener; if-eqz v0, :cond_0 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mOldQueryText:Ljava/lang/CharSequence; invoke-static {p1, v0}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z move-result v0 if-nez v0, :cond_0 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mOnQueryChangeListener:Landroidx/appcompat/widget/SearchView$OnQueryTextListener; invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String; move-result-object v1 invoke-interface {v0, v1}, Landroidx/appcompat/widget/SearchView$OnQueryTextListener;->onQueryTextChange(Ljava/lang/String;)Z :cond_0 invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String; move-result-object p1 iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mOldQueryText:Ljava/lang/CharSequence; return-void .end method .method public onTextFocusChanged()V .locals 1 invoke-virtual {p0}, Landroidx/appcompat/widget/SearchView;->isIconified()Z move-result v0 invoke-direct {p0, v0}, Landroidx/appcompat/widget/SearchView;->updateViewsVisibility(Z)V invoke-direct {p0}, Landroidx/appcompat/widget/SearchView;->postUpdateFocusedState()V iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->hasFocus()Z move-result v0 if-eqz v0, :cond_0 invoke-virtual {p0}, Landroidx/appcompat/widget/SearchView;->forceSuggestionQuery()V :cond_0 return-void .end method .method public onVoiceClicked()V .locals 2 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchable:Landroid/app/SearchableInfo; if-nez v0, :cond_0 return-void :cond_0 :try_start_0 invoke-virtual {v0}, Landroid/app/SearchableInfo;->getVoiceSearchLaunchWebSearch()Z move-result v1 if-eqz v1, :cond_1 iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mVoiceWebSearchIntent:Landroid/content/Intent; invoke-direct {p0, v1, v0}, Landroidx/appcompat/widget/SearchView;->createVoiceWebSearchIntent(Landroid/content/Intent;Landroid/app/SearchableInfo;)Landroid/content/Intent; move-result-object v0 invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context; move-result-object v1 invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V goto :goto_0 :cond_1 invoke-virtual {v0}, Landroid/app/SearchableInfo;->getVoiceSearchLaunchRecognizer()Z move-result v1 if-eqz v1, :cond_2 iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mVoiceAppSearchIntent:Landroid/content/Intent; invoke-direct {p0, v1, v0}, Landroidx/appcompat/widget/SearchView;->createVoiceAppSearchIntent(Landroid/content/Intent;Landroid/app/SearchableInfo;)Landroid/content/Intent; move-result-object v0 invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context; move-result-object v1 invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V :try_end_0 .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 :catch_0 const-string v0, "SearchView" const-string v1, "Could not find voice search activity" invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I :cond_2 :goto_0 return-void .end method .method public onWindowFocusChanged(Z)V .locals 0 invoke-super {p0, p1}, Landroid/view/ViewGroup;->onWindowFocusChanged(Z)V invoke-direct {p0}, Landroidx/appcompat/widget/SearchView;->postUpdateFocusedState()V return-void .end method .method public requestFocus(ILandroid/graphics/Rect;)Z .locals 2 iget-boolean v0, p0, Landroidx/appcompat/widget/SearchView;->mClearingFocus:Z const/4 v1, 0x0 if-eqz v0, :cond_0 return v1 :cond_0 invoke-virtual {p0}, Landroid/view/ViewGroup;->isFocusable()Z move-result v0 if-nez v0, :cond_1 return v1 :cond_1 invoke-virtual {p0}, Landroidx/appcompat/widget/SearchView;->isIconified()Z move-result v0 if-nez v0, :cond_3 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0, p1, p2}, Landroid/widget/AutoCompleteTextView;->requestFocus(ILandroid/graphics/Rect;)Z move-result p1 if-eqz p1, :cond_2 invoke-direct {p0, v1}, Landroidx/appcompat/widget/SearchView;->updateViewsVisibility(Z)V :cond_2 return p1 :cond_3 invoke-super {p0, p1, p2}, Landroid/view/ViewGroup;->requestFocus(ILandroid/graphics/Rect;)Z move-result p1 return p1 .end method .method public setAppSearchData(Landroid/os/Bundle;)V .locals 0 .annotation build Landroidx/annotation/RestrictTo; value = { .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope; } .end annotation iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mAppSearchData:Landroid/os/Bundle; return-void .end method .method public setIconified(Z)V .locals 0 if-eqz p1, :cond_0 invoke-virtual {p0}, Landroidx/appcompat/widget/SearchView;->onCloseClicked()V goto :goto_0 :cond_0 invoke-virtual {p0}, Landroidx/appcompat/widget/SearchView;->onSearchClicked()V :goto_0 return-void .end method .method public setIconifiedByDefault(Z)V .locals 1 iget-boolean v0, p0, Landroidx/appcompat/widget/SearchView;->mIconifiedByDefault:Z if-ne v0, p1, :cond_0 return-void :cond_0 iput-boolean p1, p0, Landroidx/appcompat/widget/SearchView;->mIconifiedByDefault:Z invoke-direct {p0, p1}, Landroidx/appcompat/widget/SearchView;->updateViewsVisibility(Z)V invoke-direct {p0}, Landroidx/appcompat/widget/SearchView;->updateQueryHint()V return-void .end method .method public setImeOptions(I)V .locals 1 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0, p1}, Landroid/widget/AutoCompleteTextView;->setImeOptions(I)V return-void .end method .method public setInputType(I)V .locals 1 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0, p1}, Landroid/widget/AutoCompleteTextView;->setInputType(I)V return-void .end method .method public setMaxWidth(I)V .locals 0 iput p1, p0, Landroidx/appcompat/widget/SearchView;->mMaxWidth:I invoke-virtual {p0}, Landroid/view/ViewGroup;->requestLayout()V return-void .end method .method public setOnCloseListener(Landroidx/appcompat/widget/SearchView$OnCloseListener;)V .locals 0 iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mOnCloseListener:Landroidx/appcompat/widget/SearchView$OnCloseListener; return-void .end method .method public setOnQueryTextFocusChangeListener(Landroid/view/View$OnFocusChangeListener;)V .locals 0 iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mOnQueryTextFocusChangeListener:Landroid/view/View$OnFocusChangeListener; return-void .end method .method public setOnQueryTextListener(Landroidx/appcompat/widget/SearchView$OnQueryTextListener;)V .locals 0 iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mOnQueryChangeListener:Landroidx/appcompat/widget/SearchView$OnQueryTextListener; return-void .end method .method public setOnSearchClickListener(Landroid/view/View$OnClickListener;)V .locals 0 iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mOnSearchClickListener:Landroid/view/View$OnClickListener; return-void .end method .method public setOnSuggestionListener(Landroidx/appcompat/widget/SearchView$OnSuggestionListener;)V .locals 0 iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mOnSuggestionListener:Landroidx/appcompat/widget/SearchView$OnSuggestionListener; return-void .end method .method public setQuery(Ljava/lang/CharSequence;Z)V .locals 2 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0, p1}, Landroid/widget/AutoCompleteTextView;->setText(Ljava/lang/CharSequence;)V if-eqz p1, :cond_0 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->length()I move-result v1 invoke-virtual {v0, v1}, Landroid/widget/AutoCompleteTextView;->setSelection(I)V iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mUserQuery:Ljava/lang/CharSequence; :cond_0 if-eqz p2, :cond_1 invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z move-result p1 if-nez p1, :cond_1 invoke-virtual {p0}, Landroidx/appcompat/widget/SearchView;->onSubmitQuery()V :cond_1 return-void .end method .method public setQueryHint(Ljava/lang/CharSequence;)V .locals 0 .param p1 # Ljava/lang/CharSequence; .annotation build Landroidx/annotation/Nullable; .end annotation .end param iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mQueryHint:Ljava/lang/CharSequence; invoke-direct {p0}, Landroidx/appcompat/widget/SearchView;->updateQueryHint()V return-void .end method .method public setQueryRefinementEnabled(Z)V .locals 2 iput-boolean p1, p0, Landroidx/appcompat/widget/SearchView;->mQueryRefinement:Z iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSuggestionsAdapter:Landroidx/cursoradapter/widget/CursorAdapter; instance-of v1, v0, Landroidx/appcompat/widget/SuggestionsAdapter; if-eqz v1, :cond_1 check-cast v0, Landroidx/appcompat/widget/SuggestionsAdapter; if-eqz p1, :cond_0 const/4 p1, 0x2 goto :goto_0 :cond_0 const/4 p1, 0x1 :goto_0 invoke-virtual {v0, p1}, Landroidx/appcompat/widget/SuggestionsAdapter;->setQueryRefinement(I)V :cond_1 return-void .end method .method public setSearchableInfo(Landroid/app/SearchableInfo;)V .locals 1 iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchable:Landroid/app/SearchableInfo; if-eqz p1, :cond_0 invoke-direct {p0}, Landroidx/appcompat/widget/SearchView;->updateSearchAutoComplete()V invoke-direct {p0}, Landroidx/appcompat/widget/SearchView;->updateQueryHint()V :cond_0 invoke-direct {p0}, Landroidx/appcompat/widget/SearchView;->hasVoiceSearch()Z move-result p1 iput-boolean p1, p0, Landroidx/appcompat/widget/SearchView;->mVoiceButtonEnabled:Z if-eqz p1, :cond_1 iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; const-string v0, "nm" invoke-virtual {p1, v0}, Landroid/widget/AutoCompleteTextView;->setPrivateImeOptions(Ljava/lang/String;)V :cond_1 invoke-virtual {p0}, Landroidx/appcompat/widget/SearchView;->isIconified()Z move-result p1 invoke-direct {p0, p1}, Landroidx/appcompat/widget/SearchView;->updateViewsVisibility(Z)V return-void .end method .method public setSubmitButtonEnabled(Z)V .locals 0 iput-boolean p1, p0, Landroidx/appcompat/widget/SearchView;->mSubmitButtonEnabled:Z invoke-virtual {p0}, Landroidx/appcompat/widget/SearchView;->isIconified()Z move-result p1 invoke-direct {p0, p1}, Landroidx/appcompat/widget/SearchView;->updateViewsVisibility(Z)V return-void .end method .method public setSuggestionsAdapter(Landroidx/cursoradapter/widget/CursorAdapter;)V .locals 1 iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSuggestionsAdapter:Landroidx/cursoradapter/widget/CursorAdapter; iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0, p1}, Landroid/widget/AutoCompleteTextView;->setAdapter(Landroid/widget/ListAdapter;)V return-void .end method .method public updateFocusedState()V .locals 2 iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete; invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->hasFocus()Z move-result v0 if-eqz v0, :cond_0 sget-object v0, Landroid/view/ViewGroup;->FOCUSED_STATE_SET:[I goto :goto_0 :cond_0 sget-object v0, Landroid/view/ViewGroup;->EMPTY_STATE_SET:[I :goto_0 iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mSearchPlate:Landroid/view/View; invoke-virtual {v1}, Landroid/view/View;->getBackground()Landroid/graphics/drawable/Drawable; move-result-object v1 if-eqz v1, :cond_1 invoke-virtual {v1, v0}, Landroid/graphics/drawable/Drawable;->setState([I)Z :cond_1 iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mSubmitArea:Landroid/view/View; invoke-virtual {v1}, Landroid/view/View;->getBackground()Landroid/graphics/drawable/Drawable; move-result-object v1 if-eqz v1, :cond_2 invoke-virtual {v1, v0}, Landroid/graphics/drawable/Drawable;->setState([I)Z :cond_2 invoke-virtual {p0}, Landroid/view/ViewGroup;->invalidate()V return-void .end method