apkfuckery/com.discord/smali/androidx/appcompat/widget/SearchView.smali

3485 lines
105 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public Landroidx/appcompat/widget/SearchView;
.super Landroidx/appcompat/widget/LinearLayoutCompat;
2019-02-04 20:29:01 +00:00
.source "SearchView.java"
2019-02-04 20:08:30 +00:00
# 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 static final DBG:Z = false
.field static final HIDDEN_METHOD_INVOKER:Landroidx/appcompat/widget/SearchView$AutoCompleteTextViewReflector;
.field private static final IME_OPTION_NO_MICROPHONE:Ljava/lang/String; = "nm"
.field static final LOG_TAG:Ljava/lang/String; = "SearchView"
# instance fields
.field private mAppSearchData:Landroid/os/Bundle;
.field private mClearingFocus:Z
.field final mCloseButton:Landroid/widget/ImageView;
.field private final mCollapsedIcon:Landroid/widget/ImageView;
.field private mCollapsedImeOptions:I
.field private final mDefaultQueryHint:Ljava/lang/CharSequence;
.field private final mDropDownAnchor:Landroid/view/View;
.field private mExpandedInActionView:Z
.field final mGoButton:Landroid/widget/ImageView;
.field private mIconified:Z
.field private mIconifiedByDefault:Z
.field private mMaxWidth:I
.field private mOldQueryText:Ljava/lang/CharSequence;
.field private final mOnClickListener:Landroid/view/View$OnClickListener;
.field private mOnCloseListener:Landroidx/appcompat/widget/SearchView$OnCloseListener;
.field private final mOnEditorActionListener:Landroid/widget/TextView$OnEditorActionListener;
.field private final mOnItemClickListener:Landroid/widget/AdapterView$OnItemClickListener;
.field private final mOnItemSelectedListener:Landroid/widget/AdapterView$OnItemSelectedListener;
.field private mOnQueryChangeListener:Landroidx/appcompat/widget/SearchView$OnQueryTextListener;
.field mOnQueryTextFocusChangeListener:Landroid/view/View$OnFocusChangeListener;
.field private mOnSearchClickListener:Landroid/view/View$OnClickListener;
.field private mOnSuggestionListener:Landroidx/appcompat/widget/SearchView$OnSuggestionListener;
.field private 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 private mQueryHint:Ljava/lang/CharSequence;
.field private mQueryRefinement:Z
.field private mReleaseCursorRunnable:Ljava/lang/Runnable;
.field final mSearchButton:Landroid/widget/ImageView;
.field private final mSearchEditFrame:Landroid/view/View;
.field private final mSearchHintIcon:Landroid/graphics/drawable/Drawable;
.field private final mSearchPlate:Landroid/view/View;
.field final mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete;
.field private mSearchSrcTextViewBounds:Landroid/graphics/Rect;
.field private mSearchSrtTextViewBoundsExpanded:Landroid/graphics/Rect;
.field mSearchable:Landroid/app/SearchableInfo;
.field private final mSubmitArea:Landroid/view/View;
.field private mSubmitButtonEnabled:Z
.field private final mSuggestionCommitIconResId:I
.field private final mSuggestionRowLayout:I
.field mSuggestionsAdapter:Landroidx/cursoradapter/widget/CursorAdapter;
.field private mTemp:[I
.field private mTemp2:[I
.field mTextKeyListener:Landroid/view/View$OnKeyListener;
.field private mTextWatcher:Landroid/text/TextWatcher;
.field private mTouchDelegate:Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;
.field private final mUpdateDrawableStateRunnable:Ljava/lang/Runnable;
.field private mUserQuery:Ljava/lang/CharSequence;
.field private final mVoiceAppSearchIntent:Landroid/content/Intent;
.field final mVoiceButton:Landroid/widget/ImageView;
.field private mVoiceButtonEnabled:Z
.field private final mVoiceWebSearchIntent:Landroid/content/Intent;
# direct methods
.method static constructor <clinit>()V
.locals 1
new-instance v0, Landroidx/appcompat/widget/SearchView$AutoCompleteTextViewReflector;
invoke-direct {v0}, Landroidx/appcompat/widget/SearchView$AutoCompleteTextViewReflector;-><init>()V
sput-object v0, Landroidx/appcompat/widget/SearchView;->HIDDEN_METHOD_INVOKER:Landroidx/appcompat/widget/SearchView$AutoCompleteTextViewReflector;
return-void
.end method
.method public constructor <init>(Landroid/content/Context;)V
.locals 1
const/4 v0, 0x0
invoke-direct {p0, p1, v0}, Landroidx/appcompat/widget/SearchView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-void
.end method
.method public constructor <init>(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;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.locals 3
invoke-direct {p0, p1, p2, p3}, Landroidx/appcompat/widget/LinearLayoutCompat;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
new-instance v0, Landroid/graphics/Rect;
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()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;-><init>()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;-><init>(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;-><init>(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;-><init>()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;-><init>(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;-><init>(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;-><init>(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;-><init>(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;-><init>(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;-><init>(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}, Landroidx/appcompat/widget/SearchView;->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;
iget-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}, Landroidx/appcompat/widget/SearchView;->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}, Landroidx/appcompat/widget/SearchView;->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}, Landroidx/appcompat/widget/SearchView;->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}, Landroidx/appcompat/widget/SearchView;->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}, Landroidx/appcompat/widget/SearchView;->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}, Landroidx/appcompat/widget/SearchView;->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}, Landroidx/appcompat/widget/SearchView;->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}, Landroidx/appcompat/widget/SearchView;->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}, Landroidx/appcompat/widget/SearchView;->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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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;-><init>(Landroidx/appcompat/widget/SearchView;)V
invoke-virtual {p1, p3}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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}, Landroidx/appcompat/widget/SearchView;->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;-><init>(Ljava/lang/String;)V
iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mVoiceWebSearchIntent:Landroid/content/Intent;
iget-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;-><init>(Ljava/lang/String;)V
iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mVoiceAppSearchIntent:Landroid/content/Intent;
iget-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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->getDropDownAnchor()I
move-result p1
invoke-virtual {p0, p1}, Landroidx/appcompat/widget/SearchView;->findViewById(I)Landroid/view/View;
move-result-object p1
iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mDropDownAnchor:Landroid/view/View;
iget-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;-><init>(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;-><init>(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
const-string p1, "user_query"
iget-object p2, p0, Landroidx/appcompat/widget/SearchView;->mUserQuery:Ljava/lang/CharSequence;
invoke-virtual {v0, p1, p2}, 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
2019-02-04 20:29:01 +00:00
const-string p2, "app_data"
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-virtual {v0, p2, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent;
2019-02-04 20:08:30 +00:00
: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"
2019-02-04 20:29:01 +00:00
move-object v2, v1
goto :goto_0
2019-02-04 20:08:30 +00:00
:cond_1
move-object v2, v1
2019-02-04 20:29:01 +00:00
:goto_0
2019-02-04 20:08:30 +00:00
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;-><init>()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
2019-02-04 20:29:01 +00:00
goto :goto_1
2019-02-04 20:08:30 +00:00
:cond_4
invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v1
move-object v3, v1
2019-02-04 20:29:01 +00:00
:goto_1
2019-02-04 20:08:30 +00:00
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;
2019-02-04 20:29:01 +00:00
move-result-object p1
2019-02-04 20:08:30 +00:00
:try_end_0
.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0
2019-02-04 20:29:01 +00:00
return-object p1
2019-02-04 20:08:30 +00:00
: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
2019-02-04 20:29:01 +00:00
goto :goto_2
2019-02-04 20:08:30 +00:00
:catch_1
const/4 p1, -0x1
2019-02-04 20:29:01 +00:00
:goto_2
2019-02-04 20:08:30 +00:00
const-string p3, "SearchView"
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "Search suggestions cursor at row "
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p1, " returned exception."
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
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;-><init>(Ljava/lang/String;)V
invoke-virtual {v1, v0}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;
invoke-virtual {p0}, Landroidx/appcompat/widget/SearchView;->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;-><init>()V
iget-object v3, p0, Landroidx/appcompat/widget/SearchView;->mAppSearchData:Landroid/os/Bundle;
if-eqz v3, :cond_0
2019-02-04 20:29:01 +00:00
const-string v4, "app_data"
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-virtual {v2, v4, v3}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
2019-02-04 20:08:30 +00:00
:cond_0
new-instance v3, Landroid/content/Intent;
invoke-direct {v3, p1}, Landroid/content/Intent;-><init>(Landroid/content/Intent;)V
const-string p1, "free_form"
const/4 v4, 0x1
invoke-virtual {p0}, Landroidx/appcompat/widget/SearchView;->getResources()Landroid/content/res/Resources;
move-result-object v5
invoke-virtual {p2}, Landroid/app/SearchableInfo;->getVoiceLanguageModeId()I
move-result v6
if-eqz v6, :cond_1
invoke-virtual {p2}, Landroid/app/SearchableInfo;->getVoiceLanguageModeId()I
move-result p1
invoke-virtual {v5, p1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object p1
:cond_1
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 {v5, v6}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object v6
goto :goto_0
:cond_2
move-object v6, v7
:goto_0
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 {v5, v8}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object v5
goto :goto_1
:cond_3
move-object v5, v7
:goto_1
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 v4
:cond_4
const-string p2, "android.speech.extra.LANGUAGE_MODEL"
invoke-virtual {v3, p2, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
const-string p1, "android.speech.extra.PROMPT"
invoke-virtual {v3, p1, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
const-string p1, "android.speech.extra.LANGUAGE"
invoke-virtual {v3, p1, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
const-string p1, "android.speech.extra.MAX_RESULTS"
invoke-virtual {v3, p1, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
const-string p1, "calling_package"
if-nez v0, :cond_5
goto :goto_2
:cond_5
invoke-virtual {v0}, Landroid/content/ComponentName;->flattenToShortString()Ljava/lang/String;
move-result-object v7
:goto_2
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;-><init>(Landroid/content/Intent;)V
invoke-virtual {p2}, Landroid/app/SearchableInfo;->getSearchActivity()Landroid/content/ComponentName;
move-result-object p1
const-string p2, "calling_package"
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
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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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}, Landroidx/appcompat/widget/SearchView;->getLocationInWindow([I)V
iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mTemp:[I
const/4 v1, 0x1
2019-02-04 20:29:01 +00:00
aget v2, v0, v1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
iget-object v3, p0, Landroidx/appcompat/widget/SearchView;->mTemp2:[I
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
aget v1, v3, v1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
sub-int/2addr v2, v1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
const/4 v1, 0x0
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
aget v0, v0, v1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
aget v1, v3, v1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
sub-int/2addr v0, v1
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Landroid/view/View;->getWidth()I
2019-02-04 20:29:01 +00:00
move-result v1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
add-int/2addr v1, v0
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Landroid/view/View;->getHeight()I
move-result p1
2019-02-04 20:29:01 +00:00
add-int/2addr p1, v2
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-virtual {p2, v0, v2, v1, p1}, Landroid/graphics/Rect;->set(IIII)V
2019-02-04 20:08:30 +00:00
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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->getTextSize()F
move-result v0
float-to-double v0, v0
const-wide/high16 v2, 0x3ff4000000000000L # 1.25
invoke-static {v0, v1}, Ljava/lang/Double;->isNaN(D)Z
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;-><init>(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;-><init>(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}, Landroidx/appcompat/widget/SearchView;->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}, Landroidx/appcompat/widget/SearchView;->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
2019-02-04 20:29:01 +00:00
if-eqz v0, :cond_3
2019-02-04 20:08:30 +00:00
invoke-virtual {v0}, Landroid/app/SearchableInfo;->getVoiceSearchEnabled()Z
move-result v0
2019-02-04 20:29:01 +00:00
if-eqz v0, :cond_3
2019-02-04 20:08:30 +00:00
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
2019-02-04 20:29:01 +00:00
if-eqz v0, :cond_3
2019-02-04 20:08:30 +00:00
invoke-virtual {p0}, Landroidx/appcompat/widget/SearchView;->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 v0, 0x1
return v0
:cond_2
return v1
2019-02-04 20:29:01 +00:00
:cond_3
return v1
2019-02-04 20:08:30 +00:00
.end method
.method 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
return p0
:cond_0
const/4 p0, 0x0
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
return v0
:cond_1
const/4 v0, 0x0
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}, Landroidx/appcompat/widget/SearchView;->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
return-void
:catch_0
move-exception v0
const-string v1, "SearchView"
const-string v2, "Failed launch activity: "
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-virtual {v2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-static {v1, p1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
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}, Landroidx/appcompat/widget/SearchView;->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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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
return-void
:cond_1
invoke-direct {p0, v0}, Landroidx/appcompat/widget/SearchView;->setQuery(Ljava/lang/CharSequence;)V
return-void
:cond_2
invoke-direct {p0, v0}, Landroidx/appcompat/widget/SearchView;->setQuery(Ljava/lang/CharSequence;)V
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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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, Landroidx/appcompat/widget/SearchView;->ENABLED_STATE_SET:[I
goto :goto_2
:cond_3
sget-object v0, Landroidx/appcompat/widget/SearchView;->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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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}, Landroidx/appcompat/widget/SearchView;->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;-><init>(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 v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete;
iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mSuggestionsAdapter:Landroidx/cursoradapter/widget/CursorAdapter;
invoke-virtual {v0, v1}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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}, Landroidx/appcompat/widget/SearchView;->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 6
iput-boolean p1, p0, Landroidx/appcompat/widget/SearchView;->mIconified:Z
const/16 v0, 0x8
const/4 v1, 0x0
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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->getText()Landroid/text/Editable;
move-result-object v3
invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v3
const/4 v4, 0x1
xor-int/2addr v3, v4
iget-object v5, p0, Landroidx/appcompat/widget/SearchView;->mSearchButton:Landroid/widget/ImageView;
invoke-virtual {v5, 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_3
iget-boolean p1, p0, Landroidx/appcompat/widget/SearchView;->mIconifiedByDefault:Z
if-eqz p1, :cond_2
goto :goto_2
:cond_2
const/4 v0, 0x0
:cond_3
:goto_2
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
if-nez v3, :cond_4
const/4 v1, 0x1
:cond_4
invoke-direct {p0, v1}, 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
goto :goto_0
:cond_0
const/16 p1, 0x8
:goto_0
iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mVoiceButton:Landroid/widget/ImageView;
invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setVisibility(I)V
return-void
.end method
# virtual methods
.method 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}, Landroidx/appcompat/widget/SearchView;->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;-><init>()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 v4, v0
goto :goto_0
:cond_0
const/4 v4, 0x0
:goto_0
iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete;
invoke-virtual {v0}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->getDropDownBackground()Landroid/graphics/drawable/Drawable;
move-result-object v0
invoke-virtual {v0, v2}, Landroid/graphics/drawable/Drawable;->getPadding(Landroid/graphics/Rect;)Z
if-eqz v3, :cond_1
iget v0, v2, Landroid/graphics/Rect;->left:I
neg-int v0, v0
goto :goto_1
:cond_1
iget v0, v2, Landroid/graphics/Rect;->left:I
add-int/2addr v0, v4
sub-int v0, v1, v0
:goto_1
iget-object v3, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete;
invoke-virtual {v3, v0}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->setDropDownHorizontalOffset(I)V
iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mDropDownAnchor:Landroid/view/View;
invoke-virtual {v0}, Landroid/view/View;->getWidth()I
move-result v0
iget v3, v2, Landroid/graphics/Rect;->left:I
add-int/2addr v0, v3
iget v2, v2, Landroid/graphics/Rect;->right:I
add-int/2addr v0, v2
add-int/2addr v0, v4
sub-int/2addr v0, v1
iget-object v1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete;
invoke-virtual {v1, v0}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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}, Landroidx/appcompat/widget/LinearLayoutCompat;->clearFocus()V
iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete;
invoke-virtual {v0}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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 forceSuggestionQuery()V
.locals 2
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
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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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}, Landroidx/appcompat/widget/SearchView;->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 getSuggestionCommitIconResId()I
.locals 1
iget v0, p0, Landroidx/appcompat/widget/SearchView;->mSuggestionCommitIconResId:I
return v0
.end method
.method 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 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}, Landroidx/appcompat/widget/SearchView;->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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->getImeOptions()I
move-result v0
iput v0, p0, Landroidx/appcompat/widget/SearchView;->mCollapsedImeOptions:I
iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete;
iget v1, p0, Landroidx/appcompat/widget/SearchView;->mCollapsedImeOptions:I
const/high16 v2, 0x2000000
or-int/2addr v1, v2
invoke-virtual {v0, v1}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->setImeOptions(I)V
iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete;
const-string v1, ""
invoke-virtual {v0, v1}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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 onCloseClicked()V
.locals 3
iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete;
invoke-virtual {v0}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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
return-void
:cond_1
iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete;
const-string v2, ""
invoke-virtual {v0, v2}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->setText(Ljava/lang/CharSequence;)V
iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete;
invoke-virtual {v0}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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
return-void
.end method
.method protected onDetachedFromWindow()V
.locals 1
iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mUpdateDrawableStateRunnable:Ljava/lang/Runnable;
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/SearchView;->removeCallbacks(Ljava/lang/Runnable;)Z
iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mReleaseCursorRunnable:Ljava/lang/Runnable;
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/SearchView;->post(Ljava/lang/Runnable;)Z
invoke-super {p0}, Landroidx/appcompat/widget/LinearLayoutCompat;->onDetachedFromWindow()V
return-void
.end method
.method 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 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 protected 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 p2, p2, Landroid/graphics/Rect;->left:I
const/4 p4, 0x0
iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextViewBounds:Landroid/graphics/Rect;
iget v0, v0, Landroid/graphics/Rect;->right:I
sub-int/2addr p5, p3
invoke-virtual {p1, p2, p4, v0, 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;-><init>(Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/view/View;)V
iput-object p1, p0, Landroidx/appcompat/widget/SearchView;->mTouchDelegate:Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;
iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mTouchDelegate:Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;
invoke-virtual {p0, p1}, Landroidx/appcompat/widget/SearchView;->setTouchDelegate(Landroid/view/TouchDelegate;)V
return-void
: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
return-void
.end method
.method protected 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
2019-02-04 20:29:01 +00:00
goto :goto_0
2019-02-04 20:08:30 +00:00
:cond_1
iget v0, p0, Landroidx/appcompat/widget/SearchView;->mMaxWidth:I
if-lez v0, :cond_6
2019-02-04 20:29:01 +00:00
invoke-static {v0, p1}, Ljava/lang/Math;->min(II)I
move-result p1
2019-02-04 20:08:30 +00:00
goto :goto_0
:cond_2
iget p1, p0, Landroidx/appcompat/widget/SearchView;->mMaxWidth:I
if-lez p1, :cond_3
2019-02-04 20:29:01 +00:00
goto :goto_0
2019-02-04 20:08:30 +00:00
:cond_3
invoke-direct {p0}, Landroidx/appcompat/widget/SearchView;->getPreferredWidth()I
move-result p1
2019-02-04 20:29:01 +00:00
goto :goto_0
2019-02-04 20:08:30 +00:00
: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
2019-02-04 20:29:01 +00:00
goto :goto_0
2019-02-04 20:08:30 +00:00
:cond_5
invoke-direct {p0}, Landroidx/appcompat/widget/SearchView;->getPreferredWidth()I
move-result v0
2019-02-04 20:29:01 +00:00
invoke-static {v0, p1}, Ljava/lang/Math;->min(II)I
move-result p1
2019-02-04 20:08:30 +00:00
:cond_6
2019-02-04 20:29:01 +00:00
:goto_0
2019-02-04 20:08:30 +00:00
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
2019-02-04 20:29:01 +00:00
goto :goto_1
2019-02-04 20:08:30 +00:00
:cond_7
invoke-direct {p0}, Landroidx/appcompat/widget/SearchView;->getPreferredHeight()I
move-result p2
2019-02-04 20:29:01 +00:00
goto :goto_1
2019-02-04 20:08:30 +00:00
: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
2019-02-04 20:29:01 +00:00
:goto_1
2019-02-04 20:08:30 +00:00
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 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 protected 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}, Landroidx/appcompat/widget/LinearLayoutCompat;->onRestoreInstanceState(Landroid/os/Parcelable;)V
return-void
:cond_0
check-cast p1, Landroidx/appcompat/widget/SearchView$SavedState;
invoke-virtual {p1}, Landroidx/appcompat/widget/SearchView$SavedState;->getSuperState()Landroid/os/Parcelable;
move-result-object v0
invoke-super {p0, v0}, Landroidx/appcompat/widget/LinearLayoutCompat;->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}, Landroidx/appcompat/widget/SearchView;->requestLayout()V
return-void
.end method
.method protected onSaveInstanceState()Landroid/os/Parcelable;
.locals 2
invoke-super {p0}, Landroidx/appcompat/widget/LinearLayoutCompat;->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;-><init>(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 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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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 onSubmitQuery()V
.locals 3
iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete;
invoke-virtual {v0}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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 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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->setSelection(I)V
iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete;
invoke-virtual {p1, v0}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->setListSelection(I)V
iget-object p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete;
invoke-virtual {p1}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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 onTextChanged(Ljava/lang/CharSequence;)V
.locals 2
iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete;
invoke-virtual {v0}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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
const/4 v1, 0x1
xor-int/2addr v0, v1
invoke-direct {p0, v0}, Landroidx/appcompat/widget/SearchView;->updateSubmitButton(Z)V
if-nez v0, :cond_0
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
invoke-direct {p0, v1}, 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_1
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_1
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_1
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 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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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 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}, Landroidx/appcompat/widget/SearchView;->getContext()Landroid/content/Context;
move-result-object v1
invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
return-void
: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}, Landroidx/appcompat/widget/SearchView;->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
:cond_2
return-void
: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
return-void
.end method
.method public onWindowFocusChanged(Z)V
.locals 0
invoke-super {p0, p1}, Landroidx/appcompat/widget/LinearLayoutCompat;->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}, Landroidx/appcompat/widget/SearchView;->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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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}, Landroidx/appcompat/widget/LinearLayoutCompat;->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: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
return-void
:cond_0
invoke-virtual {p0}, Landroidx/appcompat/widget/SearchView;->onSearchClicked()V
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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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}, Landroidx/appcompat/widget/SearchView;->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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->setText(Ljava/lang/CharSequence;)V
if-eqz p1, :cond_0
iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete;
2019-02-04 20:29:01 +00:00
invoke-virtual {v0}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->length()I
2019-02-04 20:08:30 +00:00
move-result v1
invoke-virtual {v0, v1}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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
2019-02-04 20:29:01 +00:00
.locals 2
2019-02-04 20:08:30 +00:00
iput-boolean p1, p0, Landroidx/appcompat/widget/SearchView;->mQueryRefinement:Z
iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSuggestionsAdapter:Landroidx/cursoradapter/widget/CursorAdapter;
2019-02-04 20:29:01 +00:00
instance-of v1, v0, Landroidx/appcompat/widget/SuggestionsAdapter;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-eqz v1, :cond_1
2019-02-04 20:08:30 +00:00
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;
iget-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
iget-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}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->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 p1, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete;
iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSuggestionsAdapter:Landroidx/cursoradapter/widget/CursorAdapter;
invoke-virtual {p1, v0}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->setAdapter(Landroid/widget/ListAdapter;)V
return-void
.end method
.method updateFocusedState()V
.locals 2
iget-object v0, p0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete;
invoke-virtual {v0}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->hasFocus()Z
move-result v0
if-eqz v0, :cond_0
sget-object v0, Landroidx/appcompat/widget/SearchView;->FOCUSED_STATE_SET:[I
goto :goto_0
:cond_0
sget-object v0, Landroidx/appcompat/widget/SearchView;->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}, Landroidx/appcompat/widget/SearchView;->invalidate()V
return-void
.end method