7034 lines
		
	
	
		
			193 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			7034 lines
		
	
	
		
			193 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public Lcom/google/android/material/chip/ChipDrawable;
 | |
| .super Lcom/google/android/material/shape/MaterialShapeDrawable;
 | |
| .source "ChipDrawable.java"
 | |
| 
 | |
| # interfaces
 | |
| .implements Ld1/j;
 | |
| .implements Landroid/graphics/drawable/Drawable$Callback;
 | |
| .implements Lcom/google/android/material/internal/TextDrawableHelper$TextDrawableDelegate;
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/MemberClasses;
 | |
|     value = {
 | |
|         Lcom/google/android/material/chip/ChipDrawable$Delegate;
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # static fields
 | |
| .field private static final DEBUG:Z = false
 | |
| 
 | |
| .field private static final DEFAULT_STATE:[I
 | |
| 
 | |
| .field private static final MAX_CHIP_ICON_HEIGHT:I = 0x18
 | |
| 
 | |
| .field private static final NAMESPACE_APP:Ljava/lang/String; = "http://schemas.android.com/apk/res-auto"
 | |
| 
 | |
| .field private static final closeIconRippleMask:Landroid/graphics/drawable/ShapeDrawable;
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field private alpha:I
 | |
| 
 | |
| .field private checkable:Z
 | |
| 
 | |
| .field private checkedIcon:Landroid/graphics/drawable/Drawable;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private checkedIconTint:Landroid/content/res/ColorStateList;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private checkedIconVisible:Z
 | |
| 
 | |
| .field private chipBackgroundColor:Landroid/content/res/ColorStateList;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private chipCornerRadius:F
 | |
| 
 | |
| .field private chipEndPadding:F
 | |
| 
 | |
| .field private chipIcon:Landroid/graphics/drawable/Drawable;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private chipIconSize:F
 | |
| 
 | |
| .field private chipIconTint:Landroid/content/res/ColorStateList;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private chipIconVisible:Z
 | |
| 
 | |
| .field private chipMinHeight:F
 | |
| 
 | |
| .field private final chipPaint:Landroid/graphics/Paint;
 | |
| 
 | |
| .field private chipStartPadding:F
 | |
| 
 | |
| .field private chipStrokeColor:Landroid/content/res/ColorStateList;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private chipStrokeWidth:F
 | |
| 
 | |
| .field private chipSurfaceColor:Landroid/content/res/ColorStateList;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private closeIcon:Landroid/graphics/drawable/Drawable;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private closeIconContentDescription:Ljava/lang/CharSequence;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private closeIconEndPadding:F
 | |
| 
 | |
| .field private closeIconRipple:Landroid/graphics/drawable/Drawable;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private closeIconSize:F
 | |
| 
 | |
| .field private closeIconStartPadding:F
 | |
| 
 | |
| .field private closeIconStateSet:[I
 | |
| 
 | |
| .field private closeIconTint:Landroid/content/res/ColorStateList;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private closeIconVisible:Z
 | |
| 
 | |
| .field private colorFilter:Landroid/graphics/ColorFilter;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private compatRippleColor:Landroid/content/res/ColorStateList;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private final context:Landroid/content/Context;
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private currentChecked:Z
 | |
| 
 | |
| .field private currentChipBackgroundColor:I
 | |
|     .annotation build Landroidx/annotation/ColorInt;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private currentChipStrokeColor:I
 | |
|     .annotation build Landroidx/annotation/ColorInt;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private currentChipSurfaceColor:I
 | |
|     .annotation build Landroidx/annotation/ColorInt;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private currentCompatRippleColor:I
 | |
|     .annotation build Landroidx/annotation/ColorInt;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private currentCompositeSurfaceBackgroundColor:I
 | |
|     .annotation build Landroidx/annotation/ColorInt;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private currentTextColor:I
 | |
|     .annotation build Landroidx/annotation/ColorInt;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private currentTint:I
 | |
|     .annotation build Landroidx/annotation/ColorInt;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private final debugPaint:Landroid/graphics/Paint;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private delegate:Ljava/lang/ref/WeakReference;
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Ljava/lang/ref/WeakReference<",
 | |
|             "Lcom/google/android/material/chip/ChipDrawable$Delegate;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private final fontMetrics:Landroid/graphics/Paint$FontMetrics;
 | |
| 
 | |
| .field private hasChipIconTint:Z
 | |
| 
 | |
| .field private hideMotionSpec:Lcom/google/android/material/animation/MotionSpec;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private iconEndPadding:F
 | |
| 
 | |
| .field private iconStartPadding:F
 | |
| 
 | |
| .field private isShapeThemingEnabled:Z
 | |
| 
 | |
| .field private maxWidth:I
 | |
| 
 | |
| .field private final pointF:Landroid/graphics/PointF;
 | |
| 
 | |
| .field private final rectF:Landroid/graphics/RectF;
 | |
| 
 | |
| .field private rippleColor:Landroid/content/res/ColorStateList;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private final shapePath:Landroid/graphics/Path;
 | |
| 
 | |
| .field private shouldDrawText:Z
 | |
| 
 | |
| .field private showMotionSpec:Lcom/google/android/material/animation/MotionSpec;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private text:Ljava/lang/CharSequence;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private final textDrawableHelper:Lcom/google/android/material/internal/TextDrawableHelper;
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private textEndPadding:F
 | |
| 
 | |
| .field private textStartPadding:F
 | |
| 
 | |
| .field private tint:Landroid/content/res/ColorStateList;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private tintFilter:Landroid/graphics/PorterDuffColorFilter;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private tintMode:Landroid/graphics/PorterDuff$Mode;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private truncateAt:Landroid/text/TextUtils$TruncateAt;
 | |
| 
 | |
| .field private useCompatRipple:Z
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public static constructor <clinit>()V
 | |
|     .locals 3
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     new-array v0, v0, [I
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     const v2, 0x101009e
 | |
| 
 | |
|     aput v2, v0, v1
 | |
| 
 | |
|     .line 1
 | |
|     sput-object v0, Lcom/google/android/material/chip/ChipDrawable;->DEFAULT_STATE:[I
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Landroid/graphics/drawable/ShapeDrawable;
 | |
| 
 | |
|     new-instance v1, Landroid/graphics/drawable/shapes/OvalShape;
 | |
| 
 | |
|     invoke-direct {v1}, Landroid/graphics/drawable/shapes/OvalShape;-><init>()V
 | |
| 
 | |
|     invoke-direct {v0, v1}, Landroid/graphics/drawable/ShapeDrawable;-><init>(Landroid/graphics/drawable/shapes/Shape;)V
 | |
| 
 | |
|     sput-object v0, Lcom/google/android/material/chip/ChipDrawable;->closeIconRippleMask:Landroid/graphics/drawable/ShapeDrawable;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p3    # I
 | |
|         .annotation build Landroidx/annotation/AttrRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p4    # I
 | |
|         .annotation build Landroidx/annotation/StyleRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0, p1, p2, p3, p4}, Lcom/google/android/material/shape/MaterialShapeDrawable;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
 | |
| 
 | |
|     const/high16 p2, -0x40800000    # -1.0f
 | |
| 
 | |
|     .line 2
 | |
|     iput p2, p0, Lcom/google/android/material/chip/ChipDrawable;->chipCornerRadius:F
 | |
| 
 | |
|     .line 3
 | |
|     new-instance p2, Landroid/graphics/Paint;
 | |
| 
 | |
|     const/4 p3, 0x1
 | |
| 
 | |
|     invoke-direct {p2, p3}, Landroid/graphics/Paint;-><init>(I)V
 | |
| 
 | |
|     iput-object p2, p0, Lcom/google/android/material/chip/ChipDrawable;->chipPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     .line 4
 | |
|     new-instance p2, Landroid/graphics/Paint$FontMetrics;
 | |
| 
 | |
|     invoke-direct {p2}, Landroid/graphics/Paint$FontMetrics;-><init>()V
 | |
| 
 | |
|     iput-object p2, p0, Lcom/google/android/material/chip/ChipDrawable;->fontMetrics:Landroid/graphics/Paint$FontMetrics;
 | |
| 
 | |
|     .line 5
 | |
|     new-instance p2, Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-direct {p2}, Landroid/graphics/RectF;-><init>()V
 | |
| 
 | |
|     iput-object p2, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     .line 6
 | |
|     new-instance p2, Landroid/graphics/PointF;
 | |
| 
 | |
|     invoke-direct {p2}, Landroid/graphics/PointF;-><init>()V
 | |
| 
 | |
|     iput-object p2, p0, Lcom/google/android/material/chip/ChipDrawable;->pointF:Landroid/graphics/PointF;
 | |
| 
 | |
|     .line 7
 | |
|     new-instance p2, Landroid/graphics/Path;
 | |
| 
 | |
|     invoke-direct {p2}, Landroid/graphics/Path;-><init>()V
 | |
| 
 | |
|     iput-object p2, p0, Lcom/google/android/material/chip/ChipDrawable;->shapePath:Landroid/graphics/Path;
 | |
| 
 | |
|     const/16 p2, 0xff
 | |
| 
 | |
|     .line 8
 | |
|     iput p2, p0, Lcom/google/android/material/chip/ChipDrawable;->alpha:I
 | |
| 
 | |
|     .line 9
 | |
|     sget-object p2, Landroid/graphics/PorterDuff$Mode;->SRC_IN:Landroid/graphics/PorterDuff$Mode;
 | |
| 
 | |
|     iput-object p2, p0, Lcom/google/android/material/chip/ChipDrawable;->tintMode:Landroid/graphics/PorterDuff$Mode;
 | |
| 
 | |
|     .line 10
 | |
|     new-instance p2, Ljava/lang/ref/WeakReference;
 | |
| 
 | |
|     const/4 p4, 0x0
 | |
| 
 | |
|     invoke-direct {p2, p4}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
 | |
| 
 | |
|     iput-object p2, p0, Lcom/google/android/material/chip/ChipDrawable;->delegate:Ljava/lang/ref/WeakReference;
 | |
| 
 | |
|     .line 11
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->initializeElevationOverlay(Landroid/content/Context;)V
 | |
| 
 | |
|     .line 12
 | |
|     iput-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     .line 13
 | |
|     new-instance p2, Lcom/google/android/material/internal/TextDrawableHelper;
 | |
| 
 | |
|     invoke-direct {p2, p0}, Lcom/google/android/material/internal/TextDrawableHelper;-><init>(Lcom/google/android/material/internal/TextDrawableHelper$TextDrawableDelegate;)V
 | |
| 
 | |
|     iput-object p2, p0, Lcom/google/android/material/chip/ChipDrawable;->textDrawableHelper:Lcom/google/android/material/internal/TextDrawableHelper;
 | |
| 
 | |
|     const-string v0, ""
 | |
| 
 | |
|     .line 14
 | |
|     iput-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->text:Ljava/lang/CharSequence;
 | |
| 
 | |
|     .line 15
 | |
|     invoke-virtual {p2}, Lcom/google/android/material/internal/TextDrawableHelper;->getTextPaint()Landroid/text/TextPaint;
 | |
| 
 | |
|     move-result-object p2
 | |
| 
 | |
|     invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     iget p1, p1, Landroid/util/DisplayMetrics;->density:F
 | |
| 
 | |
|     iput p1, p2, Landroid/text/TextPaint;->density:F
 | |
| 
 | |
|     .line 16
 | |
|     iput-object p4, p0, Lcom/google/android/material/chip/ChipDrawable;->debugPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     .line 17
 | |
|     sget-object p1, Lcom/google/android/material/chip/ChipDrawable;->DEFAULT_STATE:[I
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Landroid/graphics/drawable/Drawable;->setState([I)Z
 | |
| 
 | |
|     .line 18
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setCloseIconState([I)Z
 | |
| 
 | |
|     .line 19
 | |
|     iput-boolean p3, p0, Lcom/google/android/material/chip/ChipDrawable;->shouldDrawText:Z
 | |
| 
 | |
|     .line 20
 | |
|     sget-boolean p1, Lcom/google/android/material/ripple/RippleUtils;->USE_FRAMEWORK_RIPPLE:Z
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     .line 21
 | |
|     sget-object p1, Lcom/google/android/material/chip/ChipDrawable;->closeIconRippleMask:Landroid/graphics/drawable/ShapeDrawable;
 | |
| 
 | |
|     const/4 p2, -0x1
 | |
| 
 | |
|     invoke-virtual {p1, p2}, Landroid/graphics/drawable/ShapeDrawable;->setTint(I)V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private applyChildDrawable(Landroid/graphics/drawable/Drawable;)V
 | |
|     .locals 2
 | |
|     .param p1    # Landroid/graphics/drawable/Drawable;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     if-nez p1, :cond_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 1
 | |
|     :cond_0
 | |
|     invoke-virtual {p1, p0}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {p0}, Ld1/c;->f(Landroid/graphics/drawable/Drawable;)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     invoke-static {p1, v0}, Ld1/c;->m(Landroid/graphics/drawable/Drawable;I)Z
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getLevel()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Landroid/graphics/drawable/Drawable;->setLevel(I)Z
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->isVisible()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     invoke-virtual {p1, v0, v1}, Landroid/graphics/drawable/Drawable;->setVisible(ZZ)Z
 | |
| 
 | |
|     .line 5
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     if-ne p1, v0, :cond_2
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->isStateful()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->getCloseIconState()[I
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Landroid/graphics/drawable/Drawable;->setState([I)Z
 | |
| 
 | |
|     .line 8
 | |
|     :cond_1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconTint:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     invoke-static {p1, v0}, Ld1/c;->o(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 9
 | |
|     :cond_2
 | |
|     invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->isStateful()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_3
 | |
| 
 | |
|     .line 10
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getState()[I
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Landroid/graphics/drawable/Drawable;->setState([I)Z
 | |
| 
 | |
|     .line 11
 | |
|     :cond_3
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     if-ne p1, v0, :cond_4
 | |
| 
 | |
|     iget-boolean p1, p0, Lcom/google/android/material/chip/ChipDrawable;->hasChipIconTint:Z
 | |
| 
 | |
|     if-eqz p1, :cond_4
 | |
| 
 | |
|     .line 12
 | |
|     iget-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIconTint:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     invoke-static {v0, p1}, Ld1/c;->o(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     :cond_4
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private calculateChipIconBounds(Landroid/graphics/Rect;Landroid/graphics/RectF;)V
 | |
|     .locals 3
 | |
|     .param p1    # Landroid/graphics/Rect;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Landroid/graphics/RectF;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p2}, Landroid/graphics/RectF;->setEmpty()V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsChipIcon()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCheckedIcon()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipStartPadding:F
 | |
| 
 | |
|     iget v1, p0, Lcom/google/android/material/chip/ChipDrawable;->iconStartPadding:F
 | |
| 
 | |
|     add-float/2addr v0, v1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->getCurrentChipIconWidth()F
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static {p0}, Ld1/c;->f(Landroid/graphics/drawable/Drawable;)I
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     if-nez v2, :cond_1
 | |
| 
 | |
|     .line 6
 | |
|     iget v2, p1, Landroid/graphics/Rect;->left:I
 | |
| 
 | |
|     int-to-float v2, v2
 | |
| 
 | |
|     add-float/2addr v2, v0
 | |
| 
 | |
|     iput v2, p2, Landroid/graphics/RectF;->left:F
 | |
| 
 | |
|     add-float/2addr v2, v1
 | |
| 
 | |
|     .line 7
 | |
|     iput v2, p2, Landroid/graphics/RectF;->right:F
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 8
 | |
|     :cond_1
 | |
|     iget v2, p1, Landroid/graphics/Rect;->right:I
 | |
| 
 | |
|     int-to-float v2, v2
 | |
| 
 | |
|     sub-float/2addr v2, v0
 | |
| 
 | |
|     iput v2, p2, Landroid/graphics/RectF;->right:F
 | |
| 
 | |
|     sub-float/2addr v2, v1
 | |
| 
 | |
|     .line 9
 | |
|     iput v2, p2, Landroid/graphics/RectF;->left:F
 | |
| 
 | |
|     .line 10
 | |
|     :goto_0
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->getCurrentChipIconHeight()F
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 11
 | |
|     invoke-virtual {p1}, Landroid/graphics/Rect;->exactCenterY()F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     const/high16 v1, 0x40000000    # 2.0f
 | |
| 
 | |
|     div-float v1, v0, v1
 | |
| 
 | |
|     sub-float/2addr p1, v1
 | |
| 
 | |
|     iput p1, p2, Landroid/graphics/RectF;->top:F
 | |
| 
 | |
|     add-float/2addr p1, v0
 | |
| 
 | |
|     .line 12
 | |
|     iput p1, p2, Landroid/graphics/RectF;->bottom:F
 | |
| 
 | |
|     :cond_2
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private calculateChipTouchBounds(Landroid/graphics/Rect;Landroid/graphics/RectF;)V
 | |
|     .locals 2
 | |
|     .param p1    # Landroid/graphics/Rect;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Landroid/graphics/RectF;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p2, p1}, Landroid/graphics/RectF;->set(Landroid/graphics/Rect;)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCloseIcon()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 3
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipEndPadding:F
 | |
| 
 | |
|     iget v1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconEndPadding:F
 | |
| 
 | |
|     add-float/2addr v0, v1
 | |
| 
 | |
|     iget v1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconSize:F
 | |
| 
 | |
|     add-float/2addr v0, v1
 | |
| 
 | |
|     iget v1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconStartPadding:F
 | |
| 
 | |
|     add-float/2addr v0, v1
 | |
| 
 | |
|     iget v1, p0, Lcom/google/android/material/chip/ChipDrawable;->textEndPadding:F
 | |
| 
 | |
|     add-float/2addr v0, v1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-static {p0}, Ld1/c;->f(Landroid/graphics/drawable/Drawable;)I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-nez v1, :cond_0
 | |
| 
 | |
|     .line 5
 | |
|     iget p1, p1, Landroid/graphics/Rect;->right:I
 | |
| 
 | |
|     int-to-float p1, p1
 | |
| 
 | |
|     sub-float/2addr p1, v0
 | |
| 
 | |
|     iput p1, p2, Landroid/graphics/RectF;->right:F
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 6
 | |
|     :cond_0
 | |
|     iget p1, p1, Landroid/graphics/Rect;->left:I
 | |
| 
 | |
|     int-to-float p1, p1
 | |
| 
 | |
|     add-float/2addr p1, v0
 | |
| 
 | |
|     iput p1, p2, Landroid/graphics/RectF;->left:F
 | |
| 
 | |
|     :cond_1
 | |
|     :goto_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private calculateCloseIconBounds(Landroid/graphics/Rect;Landroid/graphics/RectF;)V
 | |
|     .locals 2
 | |
|     .param p1    # Landroid/graphics/Rect;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Landroid/graphics/RectF;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p2}, Landroid/graphics/RectF;->setEmpty()V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCloseIcon()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 3
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipEndPadding:F
 | |
| 
 | |
|     iget v1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconEndPadding:F
 | |
| 
 | |
|     add-float/2addr v0, v1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-static {p0}, Ld1/c;->f(Landroid/graphics/drawable/Drawable;)I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-nez v1, :cond_0
 | |
| 
 | |
|     .line 5
 | |
|     iget v1, p1, Landroid/graphics/Rect;->right:I
 | |
| 
 | |
|     int-to-float v1, v1
 | |
| 
 | |
|     sub-float/2addr v1, v0
 | |
| 
 | |
|     iput v1, p2, Landroid/graphics/RectF;->right:F
 | |
| 
 | |
|     .line 6
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconSize:F
 | |
| 
 | |
|     sub-float/2addr v1, v0
 | |
| 
 | |
|     iput v1, p2, Landroid/graphics/RectF;->left:F
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 7
 | |
|     :cond_0
 | |
|     iget v1, p1, Landroid/graphics/Rect;->left:I
 | |
| 
 | |
|     int-to-float v1, v1
 | |
| 
 | |
|     add-float/2addr v1, v0
 | |
| 
 | |
|     iput v1, p2, Landroid/graphics/RectF;->left:F
 | |
| 
 | |
|     .line 8
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconSize:F
 | |
| 
 | |
|     add-float/2addr v1, v0
 | |
| 
 | |
|     iput v1, p2, Landroid/graphics/RectF;->right:F
 | |
| 
 | |
|     .line 9
 | |
|     :goto_0
 | |
|     invoke-virtual {p1}, Landroid/graphics/Rect;->exactCenterY()F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconSize:F
 | |
| 
 | |
|     const/high16 v1, 0x40000000    # 2.0f
 | |
| 
 | |
|     div-float v1, v0, v1
 | |
| 
 | |
|     sub-float/2addr p1, v1
 | |
| 
 | |
|     iput p1, p2, Landroid/graphics/RectF;->top:F
 | |
| 
 | |
|     add-float/2addr p1, v0
 | |
| 
 | |
|     .line 10
 | |
|     iput p1, p2, Landroid/graphics/RectF;->bottom:F
 | |
| 
 | |
|     :cond_1
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private calculateCloseIconTouchBounds(Landroid/graphics/Rect;Landroid/graphics/RectF;)V
 | |
|     .locals 3
 | |
|     .param p1    # Landroid/graphics/Rect;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Landroid/graphics/RectF;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p2}, Landroid/graphics/RectF;->setEmpty()V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCloseIcon()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 3
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipEndPadding:F
 | |
| 
 | |
|     iget v1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconEndPadding:F
 | |
| 
 | |
|     add-float/2addr v0, v1
 | |
| 
 | |
|     iget v1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconSize:F
 | |
| 
 | |
|     add-float/2addr v0, v1
 | |
| 
 | |
|     iget v1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconStartPadding:F
 | |
| 
 | |
|     add-float/2addr v0, v1
 | |
| 
 | |
|     iget v1, p0, Lcom/google/android/material/chip/ChipDrawable;->textEndPadding:F
 | |
| 
 | |
|     add-float/2addr v0, v1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-static {p0}, Ld1/c;->f(Landroid/graphics/drawable/Drawable;)I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-nez v1, :cond_0
 | |
| 
 | |
|     .line 5
 | |
|     iget v1, p1, Landroid/graphics/Rect;->right:I
 | |
| 
 | |
|     int-to-float v1, v1
 | |
| 
 | |
|     iput v1, p2, Landroid/graphics/RectF;->right:F
 | |
| 
 | |
|     sub-float/2addr v1, v0
 | |
| 
 | |
|     .line 6
 | |
|     iput v1, p2, Landroid/graphics/RectF;->left:F
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 7
 | |
|     :cond_0
 | |
|     iget v1, p1, Landroid/graphics/Rect;->left:I
 | |
| 
 | |
|     int-to-float v2, v1
 | |
| 
 | |
|     iput v2, p2, Landroid/graphics/RectF;->left:F
 | |
| 
 | |
|     int-to-float v1, v1
 | |
| 
 | |
|     add-float/2addr v1, v0
 | |
| 
 | |
|     .line 8
 | |
|     iput v1, p2, Landroid/graphics/RectF;->right:F
 | |
| 
 | |
|     .line 9
 | |
|     :goto_0
 | |
|     iget v0, p1, Landroid/graphics/Rect;->top:I
 | |
| 
 | |
|     int-to-float v0, v0
 | |
| 
 | |
|     iput v0, p2, Landroid/graphics/RectF;->top:F
 | |
| 
 | |
|     .line 10
 | |
|     iget p1, p1, Landroid/graphics/Rect;->bottom:I
 | |
| 
 | |
|     int-to-float p1, p1
 | |
| 
 | |
|     iput p1, p2, Landroid/graphics/RectF;->bottom:F
 | |
| 
 | |
|     :cond_1
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private calculateTextBounds(Landroid/graphics/Rect;Landroid/graphics/RectF;)V
 | |
|     .locals 3
 | |
|     .param p1    # Landroid/graphics/Rect;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Landroid/graphics/RectF;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p2}, Landroid/graphics/RectF;->setEmpty()V
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->text:Ljava/lang/CharSequence;
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 3
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipStartPadding:F
 | |
| 
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->calculateChipIconWidth()F
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     add-float/2addr v1, v0
 | |
| 
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->textStartPadding:F
 | |
| 
 | |
|     add-float/2addr v1, v0
 | |
| 
 | |
|     .line 4
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipEndPadding:F
 | |
| 
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->calculateCloseIconWidth()F
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     add-float/2addr v2, v0
 | |
| 
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->textEndPadding:F
 | |
| 
 | |
|     add-float/2addr v2, v0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static {p0}, Ld1/c;->f(Landroid/graphics/drawable/Drawable;)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 6
 | |
|     iget v0, p1, Landroid/graphics/Rect;->left:I
 | |
| 
 | |
|     int-to-float v0, v0
 | |
| 
 | |
|     add-float/2addr v0, v1
 | |
| 
 | |
|     iput v0, p2, Landroid/graphics/RectF;->left:F
 | |
| 
 | |
|     .line 7
 | |
|     iget v0, p1, Landroid/graphics/Rect;->right:I
 | |
| 
 | |
|     int-to-float v0, v0
 | |
| 
 | |
|     sub-float/2addr v0, v2
 | |
| 
 | |
|     iput v0, p2, Landroid/graphics/RectF;->right:F
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 8
 | |
|     :cond_0
 | |
|     iget v0, p1, Landroid/graphics/Rect;->left:I
 | |
| 
 | |
|     int-to-float v0, v0
 | |
| 
 | |
|     add-float/2addr v0, v2
 | |
| 
 | |
|     iput v0, p2, Landroid/graphics/RectF;->left:F
 | |
| 
 | |
|     .line 9
 | |
|     iget v0, p1, Landroid/graphics/Rect;->right:I
 | |
| 
 | |
|     int-to-float v0, v0
 | |
| 
 | |
|     sub-float/2addr v0, v1
 | |
| 
 | |
|     iput v0, p2, Landroid/graphics/RectF;->right:F
 | |
| 
 | |
|     .line 10
 | |
|     :goto_0
 | |
|     iget v0, p1, Landroid/graphics/Rect;->top:I
 | |
| 
 | |
|     int-to-float v0, v0
 | |
| 
 | |
|     iput v0, p2, Landroid/graphics/RectF;->top:F
 | |
| 
 | |
|     .line 11
 | |
|     iget p1, p1, Landroid/graphics/Rect;->bottom:I
 | |
| 
 | |
|     int-to-float p1, p1
 | |
| 
 | |
|     iput p1, p2, Landroid/graphics/RectF;->bottom:F
 | |
| 
 | |
|     :cond_1
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private calculateTextCenterFromBaseline()F
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->textDrawableHelper:Lcom/google/android/material/internal/TextDrawableHelper;
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/internal/TextDrawableHelper;->getTextPaint()Landroid/text/TextPaint;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->fontMetrics:Landroid/graphics/Paint$FontMetrics;
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/text/TextPaint;->getFontMetrics(Landroid/graphics/Paint$FontMetrics;)F
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->fontMetrics:Landroid/graphics/Paint$FontMetrics;
 | |
| 
 | |
|     iget v1, v0, Landroid/graphics/Paint$FontMetrics;->descent:F
 | |
| 
 | |
|     iget v0, v0, Landroid/graphics/Paint$FontMetrics;->ascent:F
 | |
| 
 | |
|     add-float/2addr v1, v0
 | |
| 
 | |
|     const/high16 v0, 0x40000000    # 2.0f
 | |
| 
 | |
|     div-float/2addr v1, v0
 | |
| 
 | |
|     return v1
 | |
| .end method
 | |
| 
 | |
| .method private canShowCheckedIcon()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIconVisible:Z
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->checkable:Z
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public static createFromAttributes(Landroid/content/Context;Landroid/util/AttributeSet;II)Lcom/google/android/material/chip/ChipDrawable;
 | |
|     .locals 1
 | |
|     .param p0    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # Landroid/util/AttributeSet;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # I
 | |
|         .annotation build Landroidx/annotation/AttrRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p3    # I
 | |
|         .annotation build Landroidx/annotation/StyleRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Lcom/google/android/material/chip/ChipDrawable;
 | |
| 
 | |
|     invoke-direct {v0, p0, p1, p2, p3}, Lcom/google/android/material/chip/ChipDrawable;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {v0, p1, p2, p3}, Lcom/google/android/material/chip/ChipDrawable;->loadFromAttributes(Landroid/util/AttributeSet;II)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static createFromResource(Landroid/content/Context;I)Lcom/google/android/material/chip/ChipDrawable;
 | |
|     .locals 2
 | |
|     .param p0    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/XmlRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "chip"
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0, p1, v0}, Lcom/google/android/material/drawable/DrawableUtils;->parseDrawableXml(Landroid/content/Context;ILjava/lang/CharSequence;)Landroid/util/AttributeSet;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     .line 2
 | |
|     invoke-interface {p1}, Landroid/util/AttributeSet;->getStyleAttribute()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     sget v0, Lcom/google/android/material/R$style;->Widget_MaterialComponents_Chip_Entry:I
 | |
| 
 | |
|     .line 4
 | |
|     :cond_0
 | |
|     sget v1, Lcom/google/android/material/R$attr;->chipStandaloneStyle:I
 | |
| 
 | |
|     invoke-static {p0, p1, v1, v0}, Lcom/google/android/material/chip/ChipDrawable;->createFromAttributes(Landroid/content/Context;Landroid/util/AttributeSet;II)Lcom/google/android/material/chip/ChipDrawable;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method private drawCheckedIcon(Landroid/graphics/Canvas;Landroid/graphics/Rect;)V
 | |
|     .locals 5
 | |
|     .param p1    # Landroid/graphics/Canvas;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Landroid/graphics/Rect;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCheckedIcon()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-direct {p0, p2, v0}, Lcom/google/android/material/chip/ChipDrawable;->calculateChipIconBounds(Landroid/graphics/Rect;Landroid/graphics/RectF;)V
 | |
| 
 | |
|     .line 3
 | |
|     iget-object p2, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     iget v0, p2, Landroid/graphics/RectF;->left:F
 | |
| 
 | |
|     .line 4
 | |
|     iget p2, p2, Landroid/graphics/RectF;->top:F
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p1, v0, p2}, Landroid/graphics/Canvas;->translate(FF)V
 | |
| 
 | |
|     .line 6
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     iget-object v2, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-virtual {v2}, Landroid/graphics/RectF;->width()F
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     float-to-int v2, v2
 | |
| 
 | |
|     iget-object v3, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-virtual {v3}, Landroid/graphics/RectF;->height()F
 | |
| 
 | |
|     move-result v3
 | |
| 
 | |
|     float-to-int v3, v3
 | |
| 
 | |
|     const/4 v4, 0x0
 | |
| 
 | |
|     invoke-virtual {v1, v4, v4, v2, v3}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
 | |
| 
 | |
|     .line 7
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-virtual {v1, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V
 | |
| 
 | |
|     neg-float v0, v0
 | |
| 
 | |
|     neg-float p2, p2
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {p1, v0, p2}, Landroid/graphics/Canvas;->translate(FF)V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private drawChipBackground(Landroid/graphics/Canvas;Landroid/graphics/Rect;)V
 | |
|     .locals 3
 | |
|     .param p1    # Landroid/graphics/Canvas;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Landroid/graphics/Rect;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->isShapeThemingEnabled:Z
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     iget v1, p0, Lcom/google/android/material/chip/ChipDrawable;->currentChipBackgroundColor:I
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     sget-object v1, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->getTintColorFilter()Landroid/graphics/ColorFilter;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColorFilter(Landroid/graphics/ColorFilter;)Landroid/graphics/ColorFilter;
 | |
| 
 | |
|     .line 5
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-virtual {v0, p2}, Landroid/graphics/RectF;->set(Landroid/graphics/Rect;)V
 | |
| 
 | |
|     .line 6
 | |
|     iget-object p2, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->getChipCornerRadius()F
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->getChipCornerRadius()F
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     iget-object v2, p0, Lcom/google/android/material/chip/ChipDrawable;->chipPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     invoke-virtual {p1, p2, v0, v1, v2}, Landroid/graphics/Canvas;->drawRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private drawChipIcon(Landroid/graphics/Canvas;Landroid/graphics/Rect;)V
 | |
|     .locals 5
 | |
|     .param p1    # Landroid/graphics/Canvas;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Landroid/graphics/Rect;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsChipIcon()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-direct {p0, p2, v0}, Lcom/google/android/material/chip/ChipDrawable;->calculateChipIconBounds(Landroid/graphics/Rect;Landroid/graphics/RectF;)V
 | |
| 
 | |
|     .line 3
 | |
|     iget-object p2, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     iget v0, p2, Landroid/graphics/RectF;->left:F
 | |
| 
 | |
|     .line 4
 | |
|     iget p2, p2, Landroid/graphics/RectF;->top:F
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p1, v0, p2}, Landroid/graphics/Canvas;->translate(FF)V
 | |
| 
 | |
|     .line 6
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     iget-object v2, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-virtual {v2}, Landroid/graphics/RectF;->width()F
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     float-to-int v2, v2
 | |
| 
 | |
|     iget-object v3, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-virtual {v3}, Landroid/graphics/RectF;->height()F
 | |
| 
 | |
|     move-result v3
 | |
| 
 | |
|     float-to-int v3, v3
 | |
| 
 | |
|     const/4 v4, 0x0
 | |
| 
 | |
|     invoke-virtual {v1, v4, v4, v2, v3}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
 | |
| 
 | |
|     .line 7
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-virtual {v1, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V
 | |
| 
 | |
|     neg-float v0, v0
 | |
| 
 | |
|     neg-float p2, p2
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {p1, v0, p2}, Landroid/graphics/Canvas;->translate(FF)V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private drawChipStroke(Landroid/graphics/Canvas;Landroid/graphics/Rect;)V
 | |
|     .locals 7
 | |
|     .param p1    # Landroid/graphics/Canvas;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Landroid/graphics/Rect;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipStrokeWidth:F
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     cmpl-float v0, v0, v1
 | |
| 
 | |
|     if-lez v0, :cond_1
 | |
| 
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->isShapeThemingEnabled:Z
 | |
| 
 | |
|     if-nez v0, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     iget v1, p0, Lcom/google/android/material/chip/ChipDrawable;->currentChipStrokeColor:I
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     sget-object v1, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V
 | |
| 
 | |
|     .line 4
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->isShapeThemingEnabled:Z
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 5
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->getTintColorFilter()Landroid/graphics/ColorFilter;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColorFilter(Landroid/graphics/ColorFilter;)Landroid/graphics/ColorFilter;
 | |
| 
 | |
|     .line 6
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     iget v1, p2, Landroid/graphics/Rect;->left:I
 | |
| 
 | |
|     int-to-float v1, v1
 | |
| 
 | |
|     iget v2, p0, Lcom/google/android/material/chip/ChipDrawable;->chipStrokeWidth:F
 | |
| 
 | |
|     const/high16 v3, 0x40000000    # 2.0f
 | |
| 
 | |
|     div-float v4, v2, v3
 | |
| 
 | |
|     add-float/2addr v4, v1
 | |
| 
 | |
|     iget v1, p2, Landroid/graphics/Rect;->top:I
 | |
| 
 | |
|     int-to-float v1, v1
 | |
| 
 | |
|     div-float v5, v2, v3
 | |
| 
 | |
|     add-float/2addr v5, v1
 | |
| 
 | |
|     iget v1, p2, Landroid/graphics/Rect;->right:I
 | |
| 
 | |
|     int-to-float v1, v1
 | |
| 
 | |
|     div-float v6, v2, v3
 | |
| 
 | |
|     sub-float/2addr v1, v6
 | |
| 
 | |
|     iget p2, p2, Landroid/graphics/Rect;->bottom:I
 | |
| 
 | |
|     int-to-float p2, p2
 | |
| 
 | |
|     div-float/2addr v2, v3
 | |
| 
 | |
|     sub-float/2addr p2, v2
 | |
| 
 | |
|     invoke-virtual {v0, v4, v5, v1, p2}, Landroid/graphics/RectF;->set(FFFF)V
 | |
| 
 | |
|     .line 7
 | |
|     iget p2, p0, Lcom/google/android/material/chip/ChipDrawable;->chipCornerRadius:F
 | |
| 
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipStrokeWidth:F
 | |
| 
 | |
|     div-float/2addr v0, v3
 | |
| 
 | |
|     sub-float/2addr p2, v0
 | |
| 
 | |
|     .line 8
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     invoke-virtual {p1, v0, p2, p2, v1}, Landroid/graphics/Canvas;->drawRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V
 | |
| 
 | |
|     :cond_1
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private drawChipSurface(Landroid/graphics/Canvas;Landroid/graphics/Rect;)V
 | |
|     .locals 3
 | |
|     .param p1    # Landroid/graphics/Canvas;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Landroid/graphics/Rect;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->isShapeThemingEnabled:Z
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     iget v1, p0, Lcom/google/android/material/chip/ChipDrawable;->currentChipSurfaceColor:I
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     sget-object v1, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-virtual {v0, p2}, Landroid/graphics/RectF;->set(Landroid/graphics/Rect;)V
 | |
| 
 | |
|     .line 5
 | |
|     iget-object p2, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->getChipCornerRadius()F
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->getChipCornerRadius()F
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     iget-object v2, p0, Lcom/google/android/material/chip/ChipDrawable;->chipPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     invoke-virtual {p1, p2, v0, v1, v2}, Landroid/graphics/Canvas;->drawRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private drawCloseIcon(Landroid/graphics/Canvas;Landroid/graphics/Rect;)V
 | |
|     .locals 5
 | |
|     .param p1    # Landroid/graphics/Canvas;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Landroid/graphics/Rect;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCloseIcon()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-direct {p0, p2, v0}, Lcom/google/android/material/chip/ChipDrawable;->calculateCloseIconBounds(Landroid/graphics/Rect;Landroid/graphics/RectF;)V
 | |
| 
 | |
|     .line 3
 | |
|     iget-object p2, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     iget v0, p2, Landroid/graphics/RectF;->left:F
 | |
| 
 | |
|     .line 4
 | |
|     iget p2, p2, Landroid/graphics/RectF;->top:F
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p1, v0, p2}, Landroid/graphics/Canvas;->translate(FF)V
 | |
| 
 | |
|     .line 6
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     iget-object v2, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-virtual {v2}, Landroid/graphics/RectF;->width()F
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     float-to-int v2, v2
 | |
| 
 | |
|     iget-object v3, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-virtual {v3}, Landroid/graphics/RectF;->height()F
 | |
| 
 | |
|     move-result v3
 | |
| 
 | |
|     float-to-int v3, v3
 | |
| 
 | |
|     const/4 v4, 0x0
 | |
| 
 | |
|     invoke-virtual {v1, v4, v4, v2, v3}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
 | |
| 
 | |
|     .line 7
 | |
|     sget-boolean v1, Lcom/google/android/material/ripple/RippleUtils;->USE_FRAMEWORK_RIPPLE:Z
 | |
| 
 | |
|     if-eqz v1, :cond_0
 | |
| 
 | |
|     .line 8
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconRipple:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     iget-object v2, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-virtual {v2}, Landroid/graphics/drawable/Drawable;->getBounds()Landroid/graphics/Rect;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     invoke-virtual {v1, v2}, Landroid/graphics/drawable/Drawable;->setBounds(Landroid/graphics/Rect;)V
 | |
| 
 | |
|     .line 9
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconRipple:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-virtual {v1}, Landroid/graphics/drawable/Drawable;->jumpToCurrentState()V
 | |
| 
 | |
|     .line 10
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconRipple:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-virtual {v1, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 11
 | |
|     :cond_0
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-virtual {v1, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V
 | |
| 
 | |
|     :goto_0
 | |
|     neg-float v0, v0
 | |
| 
 | |
|     neg-float p2, p2
 | |
| 
 | |
|     .line 12
 | |
|     invoke-virtual {p1, v0, p2}, Landroid/graphics/Canvas;->translate(FF)V
 | |
| 
 | |
|     :cond_1
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private drawCompatRipple(Landroid/graphics/Canvas;Landroid/graphics/Rect;)V
 | |
|     .locals 3
 | |
|     .param p1    # Landroid/graphics/Canvas;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Landroid/graphics/Rect;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     iget v1, p0, Lcom/google/android/material/chip/ChipDrawable;->currentCompatRippleColor:I
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     sget-object v1, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-virtual {v0, p2}, Landroid/graphics/RectF;->set(Landroid/graphics/Rect;)V
 | |
| 
 | |
|     .line 4
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->isShapeThemingEnabled:Z
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 5
 | |
|     iget-object p2, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->getChipCornerRadius()F
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->getChipCornerRadius()F
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     iget-object v2, p0, Lcom/google/android/material/chip/ChipDrawable;->chipPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     invoke-virtual {p1, p2, v0, v1, v2}, Landroid/graphics/Canvas;->drawRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 6
 | |
|     :cond_0
 | |
|     new-instance v0, Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-direct {v0, p2}, Landroid/graphics/RectF;-><init>(Landroid/graphics/Rect;)V
 | |
| 
 | |
|     iget-object p2, p0, Lcom/google/android/material/chip/ChipDrawable;->shapePath:Landroid/graphics/Path;
 | |
| 
 | |
|     invoke-virtual {p0, v0, p2}, Lcom/google/android/material/shape/MaterialShapeDrawable;->calculatePathForSize(Landroid/graphics/RectF;Landroid/graphics/Path;)V
 | |
| 
 | |
|     .line 7
 | |
|     iget-object p2, p0, Lcom/google/android/material/chip/ChipDrawable;->chipPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->shapePath:Landroid/graphics/Path;
 | |
| 
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->getBoundsAsRectF()Landroid/graphics/RectF;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-super {p0, p1, p2, v0, v1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->drawShape(Landroid/graphics/Canvas;Landroid/graphics/Paint;Landroid/graphics/Path;Landroid/graphics/RectF;)V
 | |
| 
 | |
|     :goto_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private drawDebug(Landroid/graphics/Canvas;Landroid/graphics/Rect;)V
 | |
|     .locals 9
 | |
|     .param p1    # Landroid/graphics/Canvas;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Landroid/graphics/Rect;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->debugPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     if-eqz v0, :cond_4
 | |
| 
 | |
|     const/high16 v1, -0x1000000
 | |
| 
 | |
|     const/16 v2, 0x7f
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {v1, v2}, Lc1/i;->B(II)I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->debugPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     invoke-virtual {p1, p2, v0}, Landroid/graphics/Canvas;->drawRect(Landroid/graphics/Rect;Landroid/graphics/Paint;)V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsChipIcon()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCheckedIcon()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 5
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-direct {p0, p2, v0}, Lcom/google/android/material/chip/ChipDrawable;->calculateChipIconBounds(Landroid/graphics/Rect;Landroid/graphics/RectF;)V
 | |
| 
 | |
|     .line 6
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->debugPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     invoke-virtual {p1, v0, v1}, Landroid/graphics/Canvas;->drawRect(Landroid/graphics/RectF;Landroid/graphics/Paint;)V
 | |
| 
 | |
|     .line 7
 | |
|     :cond_1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->text:Ljava/lang/CharSequence;
 | |
| 
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     .line 8
 | |
|     iget v0, p2, Landroid/graphics/Rect;->left:I
 | |
| 
 | |
|     int-to-float v4, v0
 | |
| 
 | |
|     .line 9
 | |
|     invoke-virtual {p2}, Landroid/graphics/Rect;->exactCenterY()F
 | |
| 
 | |
|     move-result v5
 | |
| 
 | |
|     iget v0, p2, Landroid/graphics/Rect;->right:I
 | |
| 
 | |
|     int-to-float v6, v0
 | |
| 
 | |
|     invoke-virtual {p2}, Landroid/graphics/Rect;->exactCenterY()F
 | |
| 
 | |
|     move-result v7
 | |
| 
 | |
|     iget-object v8, p0, Lcom/google/android/material/chip/ChipDrawable;->debugPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     move-object v3, p1
 | |
| 
 | |
|     .line 10
 | |
|     invoke-virtual/range {v3 .. v8}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V
 | |
| 
 | |
|     .line 11
 | |
|     :cond_2
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCloseIcon()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_3
 | |
| 
 | |
|     .line 12
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-direct {p0, p2, v0}, Lcom/google/android/material/chip/ChipDrawable;->calculateCloseIconBounds(Landroid/graphics/Rect;Landroid/graphics/RectF;)V
 | |
| 
 | |
|     .line 13
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->debugPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     invoke-virtual {p1, v0, v1}, Landroid/graphics/Canvas;->drawRect(Landroid/graphics/RectF;Landroid/graphics/Paint;)V
 | |
| 
 | |
|     .line 14
 | |
|     :cond_3
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->debugPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     const/high16 v1, -0x10000
 | |
| 
 | |
|     invoke-static {v1, v2}, Lc1/i;->B(II)I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V
 | |
| 
 | |
|     .line 15
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-direct {p0, p2, v0}, Lcom/google/android/material/chip/ChipDrawable;->calculateChipTouchBounds(Landroid/graphics/Rect;Landroid/graphics/RectF;)V
 | |
| 
 | |
|     .line 16
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->debugPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     invoke-virtual {p1, v0, v1}, Landroid/graphics/Canvas;->drawRect(Landroid/graphics/RectF;Landroid/graphics/Paint;)V
 | |
| 
 | |
|     .line 17
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->debugPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     const v1, -0xff0100
 | |
| 
 | |
|     invoke-static {v1, v2}, Lc1/i;->B(II)I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V
 | |
| 
 | |
|     .line 18
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-direct {p0, p2, v0}, Lcom/google/android/material/chip/ChipDrawable;->calculateCloseIconTouchBounds(Landroid/graphics/Rect;Landroid/graphics/RectF;)V
 | |
| 
 | |
|     .line 19
 | |
|     iget-object p2, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->debugPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     invoke-virtual {p1, p2, v0}, Landroid/graphics/Canvas;->drawRect(Landroid/graphics/RectF;Landroid/graphics/Paint;)V
 | |
| 
 | |
|     :cond_4
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private drawText(Landroid/graphics/Canvas;Landroid/graphics/Rect;)V
 | |
|     .locals 9
 | |
|     .param p1    # Landroid/graphics/Canvas;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Landroid/graphics/Rect;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->text:Ljava/lang/CharSequence;
 | |
| 
 | |
|     if-eqz v0, :cond_4
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->pointF:Landroid/graphics/PointF;
 | |
| 
 | |
|     invoke-virtual {p0, p2, v0}, Lcom/google/android/material/chip/ChipDrawable;->calculateTextOriginAndAlignment(Landroid/graphics/Rect;Landroid/graphics/PointF;)Landroid/graphics/Paint$Align;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-direct {p0, p2, v1}, Lcom/google/android/material/chip/ChipDrawable;->calculateTextBounds(Landroid/graphics/Rect;Landroid/graphics/RectF;)V
 | |
| 
 | |
|     .line 4
 | |
|     iget-object p2, p0, Lcom/google/android/material/chip/ChipDrawable;->textDrawableHelper:Lcom/google/android/material/internal/TextDrawableHelper;
 | |
| 
 | |
|     invoke-virtual {p2}, Lcom/google/android/material/internal/TextDrawableHelper;->getTextAppearance()Lcom/google/android/material/resources/TextAppearance;
 | |
| 
 | |
|     move-result-object p2
 | |
| 
 | |
|     if-eqz p2, :cond_0
 | |
| 
 | |
|     .line 5
 | |
|     iget-object p2, p0, Lcom/google/android/material/chip/ChipDrawable;->textDrawableHelper:Lcom/google/android/material/internal/TextDrawableHelper;
 | |
| 
 | |
|     invoke-virtual {p2}, Lcom/google/android/material/internal/TextDrawableHelper;->getTextPaint()Landroid/text/TextPaint;
 | |
| 
 | |
|     move-result-object p2
 | |
| 
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getState()[I
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     iput-object v1, p2, Landroid/text/TextPaint;->drawableState:[I
 | |
| 
 | |
|     .line 6
 | |
|     iget-object p2, p0, Lcom/google/android/material/chip/ChipDrawable;->textDrawableHelper:Lcom/google/android/material/internal/TextDrawableHelper;
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-virtual {p2, v1}, Lcom/google/android/material/internal/TextDrawableHelper;->updateTextPaintDrawState(Landroid/content/Context;)V
 | |
| 
 | |
|     .line 7
 | |
|     :cond_0
 | |
|     iget-object p2, p0, Lcom/google/android/material/chip/ChipDrawable;->textDrawableHelper:Lcom/google/android/material/internal/TextDrawableHelper;
 | |
| 
 | |
|     invoke-virtual {p2}, Lcom/google/android/material/internal/TextDrawableHelper;->getTextPaint()Landroid/text/TextPaint;
 | |
| 
 | |
|     move-result-object p2
 | |
| 
 | |
|     invoke-virtual {p2, v0}, Landroid/text/TextPaint;->setTextAlign(Landroid/graphics/Paint$Align;)V
 | |
| 
 | |
|     .line 8
 | |
|     iget-object p2, p0, Lcom/google/android/material/chip/ChipDrawable;->textDrawableHelper:Lcom/google/android/material/internal/TextDrawableHelper;
 | |
| 
 | |
|     .line 9
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->getText()Ljava/lang/CharSequence;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {p2, v0}, Lcom/google/android/material/internal/TextDrawableHelper;->getTextWidth(Ljava/lang/String;)F
 | |
| 
 | |
|     move-result p2
 | |
| 
 | |
|     invoke-static {p2}, Ljava/lang/Math;->round(F)I
 | |
| 
 | |
|     move-result p2
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     .line 10
 | |
|     invoke-virtual {v0}, Landroid/graphics/RectF;->width()F
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     invoke-static {v0}, Ljava/lang/Math;->round(F)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     if-le p2, v0, :cond_1
 | |
| 
 | |
|     const/4 p2, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     move p2, v1
 | |
| 
 | |
|     :goto_0
 | |
|     if-eqz p2, :cond_2
 | |
| 
 | |
|     .line 11
 | |
|     invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     .line 12
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Landroid/graphics/Canvas;->clipRect(Landroid/graphics/RectF;)Z
 | |
| 
 | |
|     .line 13
 | |
|     :cond_2
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->text:Ljava/lang/CharSequence;
 | |
| 
 | |
|     if-eqz p2, :cond_3
 | |
| 
 | |
|     .line 14
 | |
|     iget-object v2, p0, Lcom/google/android/material/chip/ChipDrawable;->truncateAt:Landroid/text/TextUtils$TruncateAt;
 | |
| 
 | |
|     if-eqz v2, :cond_3
 | |
| 
 | |
|     .line 15
 | |
|     iget-object v2, p0, Lcom/google/android/material/chip/ChipDrawable;->textDrawableHelper:Lcom/google/android/material/internal/TextDrawableHelper;
 | |
| 
 | |
|     .line 16
 | |
|     invoke-virtual {v2}, Lcom/google/android/material/internal/TextDrawableHelper;->getTextPaint()Landroid/text/TextPaint;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     iget-object v3, p0, Lcom/google/android/material/chip/ChipDrawable;->rectF:Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-virtual {v3}, Landroid/graphics/RectF;->width()F
 | |
| 
 | |
|     move-result v3
 | |
| 
 | |
|     iget-object v4, p0, Lcom/google/android/material/chip/ChipDrawable;->truncateAt:Landroid/text/TextUtils$TruncateAt;
 | |
| 
 | |
|     invoke-static {v0, v2, v3, v4}, Landroid/text/TextUtils;->ellipsize(Ljava/lang/CharSequence;Landroid/text/TextPaint;FLandroid/text/TextUtils$TruncateAt;)Ljava/lang/CharSequence;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     :cond_3
 | |
|     move-object v3, v0
 | |
| 
 | |
|     const/4 v4, 0x0
 | |
| 
 | |
|     .line 17
 | |
|     invoke-interface {v3}, Ljava/lang/CharSequence;->length()I
 | |
| 
 | |
|     move-result v5
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->pointF:Landroid/graphics/PointF;
 | |
| 
 | |
|     iget v6, v0, Landroid/graphics/PointF;->x:F
 | |
| 
 | |
|     iget v7, v0, Landroid/graphics/PointF;->y:F
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->textDrawableHelper:Lcom/google/android/material/internal/TextDrawableHelper;
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/internal/TextDrawableHelper;->getTextPaint()Landroid/text/TextPaint;
 | |
| 
 | |
|     move-result-object v8
 | |
| 
 | |
|     move-object v2, p1
 | |
| 
 | |
|     .line 18
 | |
|     invoke-virtual/range {v2 .. v8}, Landroid/graphics/Canvas;->drawText(Ljava/lang/CharSequence;IIFFLandroid/graphics/Paint;)V
 | |
| 
 | |
|     if-eqz p2, :cond_4
 | |
| 
 | |
|     .line 19
 | |
|     invoke-virtual {p1, v1}, Landroid/graphics/Canvas;->restoreToCount(I)V
 | |
| 
 | |
|     :cond_4
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private getCurrentChipIconHeight()F
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->currentChecked:Z
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     .line 2
 | |
|     :goto_0
 | |
|     iget v1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIconSize:F
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     cmpg-float v2, v1, v2
 | |
| 
 | |
|     if-gtz v2, :cond_1
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     const/16 v2, 0x18
 | |
| 
 | |
|     invoke-static {v1, v2}, Lcom/google/android/material/internal/ViewUtils;->dpToPx(Landroid/content/Context;I)F
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     float-to-double v1, v1
 | |
| 
 | |
|     invoke-static {v1, v2}, Ljava/lang/Math;->ceil(D)D
 | |
| 
 | |
|     move-result-wide v1
 | |
| 
 | |
|     double-to-float v1, v1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     int-to-float v2, v2
 | |
| 
 | |
|     cmpg-float v2, v2, v1
 | |
| 
 | |
|     if-gtz v2, :cond_1
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     int-to-float v0, v0
 | |
| 
 | |
|     return v0
 | |
| 
 | |
|     :cond_1
 | |
|     return v1
 | |
| .end method
 | |
| 
 | |
| .method private getCurrentChipIconWidth()F
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->currentChecked:Z
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     .line 2
 | |
|     :goto_0
 | |
|     iget v1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIconSize:F
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     cmpg-float v2, v1, v2
 | |
| 
 | |
|     if-gtz v2, :cond_1
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     int-to-float v0, v0
 | |
| 
 | |
|     return v0
 | |
| 
 | |
|     :cond_1
 | |
|     return v1
 | |
| .end method
 | |
| 
 | |
| .method private getTintColorFilter()Landroid/graphics/ColorFilter;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->colorFilter:Landroid/graphics/ColorFilter;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->tintFilter:Landroid/graphics/PorterDuffColorFilter;
 | |
| 
 | |
|     :goto_0
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method private static hasState([II)Z
 | |
|     .locals 4
 | |
|     .param p0    # [I
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/AttrRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     if-nez p0, :cond_0
 | |
| 
 | |
|     return v0
 | |
| 
 | |
|     .line 1
 | |
|     :cond_0
 | |
|     array-length v1, p0
 | |
| 
 | |
|     move v2, v0
 | |
| 
 | |
|     :goto_0
 | |
|     if-ge v2, v1, :cond_2
 | |
| 
 | |
|     aget v3, p0, v2
 | |
| 
 | |
|     if-ne v3, p1, :cond_1
 | |
| 
 | |
|     const/4 p0, 0x1
 | |
| 
 | |
|     return p0
 | |
| 
 | |
|     :cond_1
 | |
|     add-int/lit8 v2, v2, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_2
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method private static isStateful(Landroid/content/res/ColorStateList;)Z
 | |
|     .locals 0
 | |
|     .param p0    # Landroid/content/res/ColorStateList;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     if-eqz p0, :cond_0
 | |
| 
 | |
|     .line 10
 | |
|     invoke-virtual {p0}, Landroid/content/res/ColorStateList;->isStateful()Z
 | |
| 
 | |
|     move-result p0
 | |
| 
 | |
|     if-eqz p0, :cond_0
 | |
| 
 | |
|     const/4 p0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method private static isStateful(Landroid/graphics/drawable/Drawable;)Z
 | |
|     .locals 0
 | |
|     .param p0    # Landroid/graphics/drawable/Drawable;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     if-eqz p0, :cond_0
 | |
| 
 | |
|     .line 11
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->isStateful()Z
 | |
| 
 | |
|     move-result p0
 | |
| 
 | |
|     if-eqz p0, :cond_0
 | |
| 
 | |
|     const/4 p0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method private static isStateful(Lcom/google/android/material/resources/TextAppearance;)Z
 | |
|     .locals 0
 | |
|     .param p0    # Lcom/google/android/material/resources/TextAppearance;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     if-eqz p0, :cond_0
 | |
| 
 | |
|     .line 12
 | |
|     iget-object p0, p0, Lcom/google/android/material/resources/TextAppearance;->textColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     if-eqz p0, :cond_0
 | |
| 
 | |
|     .line 13
 | |
|     invoke-virtual {p0}, Landroid/content/res/ColorStateList;->isStateful()Z
 | |
| 
 | |
|     move-result p0
 | |
| 
 | |
|     if-eqz p0, :cond_0
 | |
| 
 | |
|     const/4 p0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method private loadFromAttributes(Landroid/util/AttributeSet;II)V
 | |
|     .locals 7
 | |
|     .param p1    # Landroid/util/AttributeSet;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # I
 | |
|         .annotation build Landroidx/annotation/AttrRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p3    # I
 | |
|         .annotation build Landroidx/annotation/StyleRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     sget-object v2, Lcom/google/android/material/R$styleable;->Chip:[I
 | |
| 
 | |
|     const/4 v6, 0x0
 | |
| 
 | |
|     new-array v5, v6, [I
 | |
| 
 | |
|     move-object v1, p1
 | |
| 
 | |
|     move v3, p2
 | |
| 
 | |
|     move v4, p3
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static/range {v0 .. v5}, Lcom/google/android/material/internal/ThemeEnforcement;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[III[I)Landroid/content/res/TypedArray;
 | |
| 
 | |
|     move-result-object p2
 | |
| 
 | |
|     .line 3
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->Chip_shapeAppearance:I
 | |
| 
 | |
|     invoke-virtual {p2, p3}, Landroid/content/res/TypedArray;->hasValue(I)Z
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     iput-boolean p3, p0, Lcom/google/android/material/chip/ChipDrawable;->isShapeThemingEnabled:Z
 | |
| 
 | |
|     .line 4
 | |
|     iget-object p3, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     sget v0, Lcom/google/android/material/R$styleable;->Chip_chipSurfaceColor:I
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static {p3, p2, v0}, Lcom/google/android/material/resources/MaterialResources;->getColorStateList(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p3
 | |
| 
 | |
|     .line 6
 | |
|     invoke-direct {p0, p3}, Lcom/google/android/material/chip/ChipDrawable;->setChipSurfaceColor(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     .line 7
 | |
|     iget-object p3, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     sget v0, Lcom/google/android/material/R$styleable;->Chip_chipBackgroundColor:I
 | |
| 
 | |
|     .line 8
 | |
|     invoke-static {p3, p2, v0}, Lcom/google/android/material/resources/MaterialResources;->getColorStateList(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p3
 | |
| 
 | |
|     .line 9
 | |
|     invoke-virtual {p0, p3}, Lcom/google/android/material/chip/ChipDrawable;->setChipBackgroundColor(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     .line 10
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->Chip_chipMinHeight:I
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     invoke-virtual {p2, p3, v0}, Landroid/content/res/TypedArray;->getDimension(IF)F
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     invoke-virtual {p0, p3}, Lcom/google/android/material/chip/ChipDrawable;->setChipMinHeight(F)V
 | |
| 
 | |
|     .line 11
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->Chip_chipCornerRadius:I
 | |
| 
 | |
|     invoke-virtual {p2, p3}, Landroid/content/res/TypedArray;->hasValue(I)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_0
 | |
| 
 | |
|     .line 12
 | |
|     invoke-virtual {p2, p3, v0}, Landroid/content/res/TypedArray;->getDimension(IF)F
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     invoke-virtual {p0, p3}, Lcom/google/android/material/chip/ChipDrawable;->setChipCornerRadius(F)V
 | |
| 
 | |
|     .line 13
 | |
|     :cond_0
 | |
|     iget-object p3, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     sget v1, Lcom/google/android/material/R$styleable;->Chip_chipStrokeColor:I
 | |
| 
 | |
|     .line 14
 | |
|     invoke-static {p3, p2, v1}, Lcom/google/android/material/resources/MaterialResources;->getColorStateList(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p3
 | |
| 
 | |
|     .line 15
 | |
|     invoke-virtual {p0, p3}, Lcom/google/android/material/chip/ChipDrawable;->setChipStrokeColor(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     .line 16
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->Chip_chipStrokeWidth:I
 | |
| 
 | |
|     invoke-virtual {p2, p3, v0}, Landroid/content/res/TypedArray;->getDimension(IF)F
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     invoke-virtual {p0, p3}, Lcom/google/android/material/chip/ChipDrawable;->setChipStrokeWidth(F)V
 | |
| 
 | |
|     .line 17
 | |
|     iget-object p3, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     sget v1, Lcom/google/android/material/R$styleable;->Chip_rippleColor:I
 | |
| 
 | |
|     invoke-static {p3, p2, v1}, Lcom/google/android/material/resources/MaterialResources;->getColorStateList(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p3
 | |
| 
 | |
|     invoke-virtual {p0, p3}, Lcom/google/android/material/chip/ChipDrawable;->setRippleColor(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     .line 18
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->Chip_android_text:I
 | |
| 
 | |
|     invoke-virtual {p2, p3}, Landroid/content/res/TypedArray;->getText(I)Ljava/lang/CharSequence;
 | |
| 
 | |
|     move-result-object p3
 | |
| 
 | |
|     invoke-virtual {p0, p3}, Lcom/google/android/material/chip/ChipDrawable;->setText(Ljava/lang/CharSequence;)V
 | |
| 
 | |
|     .line 19
 | |
|     iget-object p3, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     sget v1, Lcom/google/android/material/R$styleable;->Chip_android_textAppearance:I
 | |
| 
 | |
|     .line 20
 | |
|     invoke-static {p3, p2, v1}, Lcom/google/android/material/resources/MaterialResources;->getTextAppearance(Landroid/content/Context;Landroid/content/res/TypedArray;I)Lcom/google/android/material/resources/TextAppearance;
 | |
| 
 | |
|     move-result-object p3
 | |
| 
 | |
|     .line 21
 | |
|     sget v1, Lcom/google/android/material/R$styleable;->Chip_android_textSize:I
 | |
| 
 | |
|     iget v2, p3, Lcom/google/android/material/resources/TextAppearance;->textSize:F
 | |
| 
 | |
|     invoke-virtual {p2, v1, v2}, Landroid/content/res/TypedArray;->getDimension(IF)F
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     .line 22
 | |
|     iput v1, p3, Lcom/google/android/material/resources/TextAppearance;->textSize:F
 | |
| 
 | |
|     .line 23
 | |
|     invoke-virtual {p0, p3}, Lcom/google/android/material/chip/ChipDrawable;->setTextAppearance(Lcom/google/android/material/resources/TextAppearance;)V
 | |
| 
 | |
|     .line 24
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->Chip_android_ellipsize:I
 | |
| 
 | |
|     invoke-virtual {p2, p3, v6}, Landroid/content/res/TypedArray;->getInt(II)I
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     if-eq p3, v1, :cond_3
 | |
| 
 | |
|     const/4 v1, 0x2
 | |
| 
 | |
|     if-eq p3, v1, :cond_2
 | |
| 
 | |
|     const/4 v1, 0x3
 | |
| 
 | |
|     if-eq p3, v1, :cond_1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 25
 | |
|     :cond_1
 | |
|     sget-object p3, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;
 | |
| 
 | |
|     invoke-virtual {p0, p3}, Lcom/google/android/material/chip/ChipDrawable;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 26
 | |
|     :cond_2
 | |
|     sget-object p3, Landroid/text/TextUtils$TruncateAt;->MIDDLE:Landroid/text/TextUtils$TruncateAt;
 | |
| 
 | |
|     invoke-virtual {p0, p3}, Lcom/google/android/material/chip/ChipDrawable;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 27
 | |
|     :cond_3
 | |
|     sget-object p3, Landroid/text/TextUtils$TruncateAt;->START:Landroid/text/TextUtils$TruncateAt;
 | |
| 
 | |
|     invoke-virtual {p0, p3}, Lcom/google/android/material/chip/ChipDrawable;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V
 | |
| 
 | |
|     .line 28
 | |
|     :goto_0
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->Chip_chipIconVisible:I
 | |
| 
 | |
|     invoke-virtual {p2, p3, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     invoke-virtual {p0, p3}, Lcom/google/android/material/chip/ChipDrawable;->setChipIconVisible(Z)V
 | |
| 
 | |
|     const-string p3, "http://schemas.android.com/apk/res-auto"
 | |
| 
 | |
|     if-eqz p1, :cond_4
 | |
| 
 | |
|     const-string v1, "chipIconEnabled"
 | |
| 
 | |
|     .line 29
 | |
|     invoke-interface {p1, p3, v1}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     if-eqz v1, :cond_4
 | |
| 
 | |
|     const-string v1, "chipIconVisible"
 | |
| 
 | |
|     .line 30
 | |
|     invoke-interface {p1, p3, v1}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     if-nez v1, :cond_4
 | |
| 
 | |
|     .line 31
 | |
|     sget v1, Lcom/google/android/material/R$styleable;->Chip_chipIconEnabled:I
 | |
| 
 | |
|     invoke-virtual {p2, v1, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     invoke-virtual {p0, v1}, Lcom/google/android/material/chip/ChipDrawable;->setChipIconVisible(Z)V
 | |
| 
 | |
|     .line 32
 | |
|     :cond_4
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     sget v2, Lcom/google/android/material/R$styleable;->Chip_chipIcon:I
 | |
| 
 | |
|     invoke-static {v1, p2, v2}, Lcom/google/android/material/resources/MaterialResources;->getDrawable(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-virtual {p0, v1}, Lcom/google/android/material/chip/ChipDrawable;->setChipIcon(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     .line 33
 | |
|     sget v1, Lcom/google/android/material/R$styleable;->Chip_chipIconTint:I
 | |
| 
 | |
|     invoke-virtual {p2, v1}, Landroid/content/res/TypedArray;->hasValue(I)Z
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     if-eqz v2, :cond_5
 | |
| 
 | |
|     .line 34
 | |
|     iget-object v2, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     .line 35
 | |
|     invoke-static {v2, p2, v1}, Lcom/google/android/material/resources/MaterialResources;->getColorStateList(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     .line 36
 | |
|     invoke-virtual {p0, v1}, Lcom/google/android/material/chip/ChipDrawable;->setChipIconTint(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     .line 37
 | |
|     :cond_5
 | |
|     sget v1, Lcom/google/android/material/R$styleable;->Chip_chipIconSize:I
 | |
| 
 | |
|     const/high16 v2, -0x40800000    # -1.0f
 | |
| 
 | |
|     invoke-virtual {p2, v1, v2}, Landroid/content/res/TypedArray;->getDimension(IF)F
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     invoke-virtual {p0, v1}, Lcom/google/android/material/chip/ChipDrawable;->setChipIconSize(F)V
 | |
| 
 | |
|     .line 38
 | |
|     sget v1, Lcom/google/android/material/R$styleable;->Chip_closeIconVisible:I
 | |
| 
 | |
|     invoke-virtual {p2, v1, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     invoke-virtual {p0, v1}, Lcom/google/android/material/chip/ChipDrawable;->setCloseIconVisible(Z)V
 | |
| 
 | |
|     if-eqz p1, :cond_6
 | |
| 
 | |
|     const-string v1, "closeIconEnabled"
 | |
| 
 | |
|     .line 39
 | |
|     invoke-interface {p1, p3, v1}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     if-eqz v1, :cond_6
 | |
| 
 | |
|     const-string v1, "closeIconVisible"
 | |
| 
 | |
|     .line 40
 | |
|     invoke-interface {p1, p3, v1}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     if-nez v1, :cond_6
 | |
| 
 | |
|     .line 41
 | |
|     sget v1, Lcom/google/android/material/R$styleable;->Chip_closeIconEnabled:I
 | |
| 
 | |
|     invoke-virtual {p2, v1, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     invoke-virtual {p0, v1}, Lcom/google/android/material/chip/ChipDrawable;->setCloseIconVisible(Z)V
 | |
| 
 | |
|     .line 42
 | |
|     :cond_6
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     sget v2, Lcom/google/android/material/R$styleable;->Chip_closeIcon:I
 | |
| 
 | |
|     invoke-static {v1, p2, v2}, Lcom/google/android/material/resources/MaterialResources;->getDrawable(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-virtual {p0, v1}, Lcom/google/android/material/chip/ChipDrawable;->setCloseIcon(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     .line 43
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     sget v2, Lcom/google/android/material/R$styleable;->Chip_closeIconTint:I
 | |
| 
 | |
|     .line 44
 | |
|     invoke-static {v1, p2, v2}, Lcom/google/android/material/resources/MaterialResources;->getColorStateList(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     .line 45
 | |
|     invoke-virtual {p0, v1}, Lcom/google/android/material/chip/ChipDrawable;->setCloseIconTint(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     .line 46
 | |
|     sget v1, Lcom/google/android/material/R$styleable;->Chip_closeIconSize:I
 | |
| 
 | |
|     invoke-virtual {p2, v1, v0}, Landroid/content/res/TypedArray;->getDimension(IF)F
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     invoke-virtual {p0, v1}, Lcom/google/android/material/chip/ChipDrawable;->setCloseIconSize(F)V
 | |
| 
 | |
|     .line 47
 | |
|     sget v1, Lcom/google/android/material/R$styleable;->Chip_android_checkable:I
 | |
| 
 | |
|     invoke-virtual {p2, v1, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     invoke-virtual {p0, v1}, Lcom/google/android/material/chip/ChipDrawable;->setCheckable(Z)V
 | |
| 
 | |
|     .line 48
 | |
|     sget v1, Lcom/google/android/material/R$styleable;->Chip_checkedIconVisible:I
 | |
| 
 | |
|     invoke-virtual {p2, v1, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     invoke-virtual {p0, v1}, Lcom/google/android/material/chip/ChipDrawable;->setCheckedIconVisible(Z)V
 | |
| 
 | |
|     if-eqz p1, :cond_7
 | |
| 
 | |
|     const-string v1, "checkedIconEnabled"
 | |
| 
 | |
|     .line 49
 | |
|     invoke-interface {p1, p3, v1}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     if-eqz v1, :cond_7
 | |
| 
 | |
|     const-string v1, "checkedIconVisible"
 | |
| 
 | |
|     .line 50
 | |
|     invoke-interface {p1, p3, v1}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     if-nez p1, :cond_7
 | |
| 
 | |
|     .line 51
 | |
|     sget p1, Lcom/google/android/material/R$styleable;->Chip_checkedIconEnabled:I
 | |
| 
 | |
|     invoke-virtual {p2, p1, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setCheckedIconVisible(Z)V
 | |
| 
 | |
|     .line 52
 | |
|     :cond_7
 | |
|     iget-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->Chip_checkedIcon:I
 | |
| 
 | |
|     invoke-static {p1, p2, p3}, Lcom/google/android/material/resources/MaterialResources;->getDrawable(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setCheckedIcon(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     .line 53
 | |
|     sget p1, Lcom/google/android/material/R$styleable;->Chip_checkedIconTint:I
 | |
| 
 | |
|     invoke-virtual {p2, p1}, Landroid/content/res/TypedArray;->hasValue(I)Z
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     if-eqz p3, :cond_8
 | |
| 
 | |
|     .line 54
 | |
|     iget-object p3, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     .line 55
 | |
|     invoke-static {p3, p2, p1}, Lcom/google/android/material/resources/MaterialResources;->getColorStateList(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     .line 56
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setCheckedIconTint(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     .line 57
 | |
|     :cond_8
 | |
|     iget-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->Chip_showMotionSpec:I
 | |
| 
 | |
|     invoke-static {p1, p2, p3}, Lcom/google/android/material/animation/MotionSpec;->createFromAttribute(Landroid/content/Context;Landroid/content/res/TypedArray;I)Lcom/google/android/material/animation/MotionSpec;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setShowMotionSpec(Lcom/google/android/material/animation/MotionSpec;)V
 | |
| 
 | |
|     .line 58
 | |
|     iget-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->Chip_hideMotionSpec:I
 | |
| 
 | |
|     invoke-static {p1, p2, p3}, Lcom/google/android/material/animation/MotionSpec;->createFromAttribute(Landroid/content/Context;Landroid/content/res/TypedArray;I)Lcom/google/android/material/animation/MotionSpec;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setHideMotionSpec(Lcom/google/android/material/animation/MotionSpec;)V
 | |
| 
 | |
|     .line 59
 | |
|     sget p1, Lcom/google/android/material/R$styleable;->Chip_chipStartPadding:I
 | |
| 
 | |
|     invoke-virtual {p2, p1, v0}, Landroid/content/res/TypedArray;->getDimension(IF)F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setChipStartPadding(F)V
 | |
| 
 | |
|     .line 60
 | |
|     sget p1, Lcom/google/android/material/R$styleable;->Chip_iconStartPadding:I
 | |
| 
 | |
|     invoke-virtual {p2, p1, v0}, Landroid/content/res/TypedArray;->getDimension(IF)F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setIconStartPadding(F)V
 | |
| 
 | |
|     .line 61
 | |
|     sget p1, Lcom/google/android/material/R$styleable;->Chip_iconEndPadding:I
 | |
| 
 | |
|     invoke-virtual {p2, p1, v0}, Landroid/content/res/TypedArray;->getDimension(IF)F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setIconEndPadding(F)V
 | |
| 
 | |
|     .line 62
 | |
|     sget p1, Lcom/google/android/material/R$styleable;->Chip_textStartPadding:I
 | |
| 
 | |
|     invoke-virtual {p2, p1, v0}, Landroid/content/res/TypedArray;->getDimension(IF)F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setTextStartPadding(F)V
 | |
| 
 | |
|     .line 63
 | |
|     sget p1, Lcom/google/android/material/R$styleable;->Chip_textEndPadding:I
 | |
| 
 | |
|     invoke-virtual {p2, p1, v0}, Landroid/content/res/TypedArray;->getDimension(IF)F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setTextEndPadding(F)V
 | |
| 
 | |
|     .line 64
 | |
|     sget p1, Lcom/google/android/material/R$styleable;->Chip_closeIconStartPadding:I
 | |
| 
 | |
|     invoke-virtual {p2, p1, v0}, Landroid/content/res/TypedArray;->getDimension(IF)F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setCloseIconStartPadding(F)V
 | |
| 
 | |
|     .line 65
 | |
|     sget p1, Lcom/google/android/material/R$styleable;->Chip_closeIconEndPadding:I
 | |
| 
 | |
|     invoke-virtual {p2, p1, v0}, Landroid/content/res/TypedArray;->getDimension(IF)F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setCloseIconEndPadding(F)V
 | |
| 
 | |
|     .line 66
 | |
|     sget p1, Lcom/google/android/material/R$styleable;->Chip_chipEndPadding:I
 | |
| 
 | |
|     invoke-virtual {p2, p1, v0}, Landroid/content/res/TypedArray;->getDimension(IF)F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setChipEndPadding(F)V
 | |
| 
 | |
|     .line 67
 | |
|     sget p1, Lcom/google/android/material/R$styleable;->Chip_android_maxWidth:I
 | |
| 
 | |
|     const p3, 0x7fffffff
 | |
| 
 | |
|     invoke-virtual {p2, p1, p3}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setMaxWidth(I)V
 | |
| 
 | |
|     .line 68
 | |
|     invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private onStateChange([I[I)Z
 | |
|     .locals 6
 | |
|     .param p1    # [I
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # [I
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 4
 | |
|     invoke-super {p0, p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->onStateChange([I)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 5
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipSurfaceColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     if-eqz v1, :cond_0
 | |
| 
 | |
|     iget v3, p0, Lcom/google/android/material/chip/ChipDrawable;->currentChipSurfaceColor:I
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {v1, p1, v3}, Landroid/content/res/ColorStateList;->getColorForState([II)I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     move v1, v2
 | |
| 
 | |
|     .line 7
 | |
|     :goto_0
 | |
|     invoke-virtual {p0, v1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->compositeElevationOverlayIfNeeded(I)I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     .line 8
 | |
|     iget v3, p0, Lcom/google/android/material/chip/ChipDrawable;->currentChipSurfaceColor:I
 | |
| 
 | |
|     const/4 v4, 0x1
 | |
| 
 | |
|     if-eq v3, v1, :cond_1
 | |
| 
 | |
|     .line 9
 | |
|     iput v1, p0, Lcom/google/android/material/chip/ChipDrawable;->currentChipSurfaceColor:I
 | |
| 
 | |
|     move v0, v4
 | |
| 
 | |
|     .line 10
 | |
|     :cond_1
 | |
|     iget-object v3, p0, Lcom/google/android/material/chip/ChipDrawable;->chipBackgroundColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     if-eqz v3, :cond_2
 | |
| 
 | |
|     iget v5, p0, Lcom/google/android/material/chip/ChipDrawable;->currentChipBackgroundColor:I
 | |
| 
 | |
|     .line 11
 | |
|     invoke-virtual {v3, p1, v5}, Landroid/content/res/ColorStateList;->getColorForState([II)I
 | |
| 
 | |
|     move-result v3
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_2
 | |
|     move v3, v2
 | |
| 
 | |
|     .line 12
 | |
|     :goto_1
 | |
|     invoke-virtual {p0, v3}, Lcom/google/android/material/shape/MaterialShapeDrawable;->compositeElevationOverlayIfNeeded(I)I
 | |
| 
 | |
|     move-result v3
 | |
| 
 | |
|     .line 13
 | |
|     iget v5, p0, Lcom/google/android/material/chip/ChipDrawable;->currentChipBackgroundColor:I
 | |
| 
 | |
|     if-eq v5, v3, :cond_3
 | |
| 
 | |
|     .line 14
 | |
|     iput v3, p0, Lcom/google/android/material/chip/ChipDrawable;->currentChipBackgroundColor:I
 | |
| 
 | |
|     move v0, v4
 | |
| 
 | |
|     .line 15
 | |
|     :cond_3
 | |
|     invoke-static {v1, v3}, Lcom/google/android/material/color/MaterialColors;->layer(II)I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     .line 16
 | |
|     iget v3, p0, Lcom/google/android/material/chip/ChipDrawable;->currentCompositeSurfaceBackgroundColor:I
 | |
| 
 | |
|     if-eq v3, v1, :cond_4
 | |
| 
 | |
|     move v3, v4
 | |
| 
 | |
|     goto :goto_2
 | |
| 
 | |
|     :cond_4
 | |
|     move v3, v2
 | |
| 
 | |
|     .line 17
 | |
|     :goto_2
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->getFillColor()Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object v5
 | |
| 
 | |
|     if-nez v5, :cond_5
 | |
| 
 | |
|     move v5, v4
 | |
| 
 | |
|     goto :goto_3
 | |
| 
 | |
|     :cond_5
 | |
|     move v5, v2
 | |
| 
 | |
|     :goto_3
 | |
|     or-int/2addr v3, v5
 | |
| 
 | |
|     if-eqz v3, :cond_6
 | |
| 
 | |
|     .line 18
 | |
|     iput v1, p0, Lcom/google/android/material/chip/ChipDrawable;->currentCompositeSurfaceBackgroundColor:I
 | |
| 
 | |
|     .line 19
 | |
|     invoke-static {v1}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {p0, v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setFillColor(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     move v0, v4
 | |
| 
 | |
|     .line 20
 | |
|     :cond_6
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipStrokeColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     if-eqz v1, :cond_7
 | |
| 
 | |
|     iget v3, p0, Lcom/google/android/material/chip/ChipDrawable;->currentChipStrokeColor:I
 | |
| 
 | |
|     .line 21
 | |
|     invoke-virtual {v1, p1, v3}, Landroid/content/res/ColorStateList;->getColorForState([II)I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     goto :goto_4
 | |
| 
 | |
|     :cond_7
 | |
|     move v1, v2
 | |
| 
 | |
|     .line 22
 | |
|     :goto_4
 | |
|     iget v3, p0, Lcom/google/android/material/chip/ChipDrawable;->currentChipStrokeColor:I
 | |
| 
 | |
|     if-eq v3, v1, :cond_8
 | |
| 
 | |
|     .line 23
 | |
|     iput v1, p0, Lcom/google/android/material/chip/ChipDrawable;->currentChipStrokeColor:I
 | |
| 
 | |
|     move v0, v4
 | |
| 
 | |
|     .line 24
 | |
|     :cond_8
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->compatRippleColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     if-eqz v1, :cond_9
 | |
| 
 | |
|     .line 25
 | |
|     invoke-static {p1}, Lcom/google/android/material/ripple/RippleUtils;->shouldDrawRippleCompat([I)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_9
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->compatRippleColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     iget v3, p0, Lcom/google/android/material/chip/ChipDrawable;->currentCompatRippleColor:I
 | |
| 
 | |
|     .line 26
 | |
|     invoke-virtual {v1, p1, v3}, Landroid/content/res/ColorStateList;->getColorForState([II)I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     goto :goto_5
 | |
| 
 | |
|     :cond_9
 | |
|     move v1, v2
 | |
| 
 | |
|     .line 27
 | |
|     :goto_5
 | |
|     iget v3, p0, Lcom/google/android/material/chip/ChipDrawable;->currentCompatRippleColor:I
 | |
| 
 | |
|     if-eq v3, v1, :cond_a
 | |
| 
 | |
|     .line 28
 | |
|     iput v1, p0, Lcom/google/android/material/chip/ChipDrawable;->currentCompatRippleColor:I
 | |
| 
 | |
|     .line 29
 | |
|     iget-boolean v1, p0, Lcom/google/android/material/chip/ChipDrawable;->useCompatRipple:Z
 | |
| 
 | |
|     if-eqz v1, :cond_a
 | |
| 
 | |
|     move v0, v4
 | |
| 
 | |
|     .line 30
 | |
|     :cond_a
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->textDrawableHelper:Lcom/google/android/material/internal/TextDrawableHelper;
 | |
| 
 | |
|     .line 31
 | |
|     invoke-virtual {v1}, Lcom/google/android/material/internal/TextDrawableHelper;->getTextAppearance()Lcom/google/android/material/resources/TextAppearance;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     if-eqz v1, :cond_b
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->textDrawableHelper:Lcom/google/android/material/internal/TextDrawableHelper;
 | |
| 
 | |
|     .line 32
 | |
|     invoke-virtual {v1}, Lcom/google/android/material/internal/TextDrawableHelper;->getTextAppearance()Lcom/google/android/material/resources/TextAppearance;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     iget-object v1, v1, Lcom/google/android/material/resources/TextAppearance;->textColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     if-eqz v1, :cond_b
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->textDrawableHelper:Lcom/google/android/material/internal/TextDrawableHelper;
 | |
| 
 | |
|     .line 33
 | |
|     invoke-virtual {v1}, Lcom/google/android/material/internal/TextDrawableHelper;->getTextAppearance()Lcom/google/android/material/resources/TextAppearance;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     iget-object v1, v1, Lcom/google/android/material/resources/TextAppearance;->textColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     iget v3, p0, Lcom/google/android/material/chip/ChipDrawable;->currentTextColor:I
 | |
| 
 | |
|     .line 34
 | |
|     invoke-virtual {v1, p1, v3}, Landroid/content/res/ColorStateList;->getColorForState([II)I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     goto :goto_6
 | |
| 
 | |
|     :cond_b
 | |
|     move v1, v2
 | |
| 
 | |
|     .line 35
 | |
|     :goto_6
 | |
|     iget v3, p0, Lcom/google/android/material/chip/ChipDrawable;->currentTextColor:I
 | |
| 
 | |
|     if-eq v3, v1, :cond_c
 | |
| 
 | |
|     .line 36
 | |
|     iput v1, p0, Lcom/google/android/material/chip/ChipDrawable;->currentTextColor:I
 | |
| 
 | |
|     move v0, v4
 | |
| 
 | |
|     .line 37
 | |
|     :cond_c
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getState()[I
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     const v3, 0x10100a0
 | |
| 
 | |
|     invoke-static {v1, v3}, Lcom/google/android/material/chip/ChipDrawable;->hasState([II)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_d
 | |
| 
 | |
|     iget-boolean v1, p0, Lcom/google/android/material/chip/ChipDrawable;->checkable:Z
 | |
| 
 | |
|     if-eqz v1, :cond_d
 | |
| 
 | |
|     move v1, v4
 | |
| 
 | |
|     goto :goto_7
 | |
| 
 | |
|     :cond_d
 | |
|     move v1, v2
 | |
| 
 | |
|     .line 38
 | |
|     :goto_7
 | |
|     iget-boolean v3, p0, Lcom/google/android/material/chip/ChipDrawable;->currentChecked:Z
 | |
| 
 | |
|     if-eq v3, v1, :cond_f
 | |
| 
 | |
|     iget-object v3, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     if-eqz v3, :cond_f
 | |
| 
 | |
|     .line 39
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->calculateChipIconWidth()F
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 40
 | |
|     iput-boolean v1, p0, Lcom/google/android/material/chip/ChipDrawable;->currentChecked:Z
 | |
| 
 | |
|     .line 41
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->calculateChipIconWidth()F
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     cmpl-float v0, v0, v1
 | |
| 
 | |
|     if-eqz v0, :cond_e
 | |
| 
 | |
|     move v0, v4
 | |
| 
 | |
|     move v1, v0
 | |
| 
 | |
|     goto :goto_8
 | |
| 
 | |
|     :cond_e
 | |
|     move v1, v2
 | |
| 
 | |
|     move v0, v4
 | |
| 
 | |
|     goto :goto_8
 | |
| 
 | |
|     :cond_f
 | |
|     move v1, v2
 | |
| 
 | |
|     .line 42
 | |
|     :goto_8
 | |
|     iget-object v3, p0, Lcom/google/android/material/chip/ChipDrawable;->tint:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     if-eqz v3, :cond_10
 | |
| 
 | |
|     iget v5, p0, Lcom/google/android/material/chip/ChipDrawable;->currentTint:I
 | |
| 
 | |
|     invoke-virtual {v3, p1, v5}, Landroid/content/res/ColorStateList;->getColorForState([II)I
 | |
| 
 | |
|     move-result v3
 | |
| 
 | |
|     goto :goto_9
 | |
| 
 | |
|     :cond_10
 | |
|     move v3, v2
 | |
| 
 | |
|     .line 43
 | |
|     :goto_9
 | |
|     iget v5, p0, Lcom/google/android/material/chip/ChipDrawable;->currentTint:I
 | |
| 
 | |
|     if-eq v5, v3, :cond_11
 | |
| 
 | |
|     .line 44
 | |
|     iput v3, p0, Lcom/google/android/material/chip/ChipDrawable;->currentTint:I
 | |
| 
 | |
|     .line 45
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->tint:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     iget-object v3, p0, Lcom/google/android/material/chip/ChipDrawable;->tintMode:Landroid/graphics/PorterDuff$Mode;
 | |
| 
 | |
|     invoke-static {p0, v0, v3}, Lcom/google/android/material/drawable/DrawableUtils;->updateTintFilter(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;Landroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuffColorFilter;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     iput-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->tintFilter:Landroid/graphics/PorterDuffColorFilter;
 | |
| 
 | |
|     goto :goto_a
 | |
| 
 | |
|     :cond_11
 | |
|     move v4, v0
 | |
| 
 | |
|     .line 46
 | |
|     :goto_a
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-static {v0}, Lcom/google/android/material/chip/ChipDrawable;->isStateful(Landroid/graphics/drawable/Drawable;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_12
 | |
| 
 | |
|     .line 47
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->setState([I)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     or-int/2addr v4, v0
 | |
| 
 | |
|     .line 48
 | |
|     :cond_12
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-static {v0}, Lcom/google/android/material/chip/ChipDrawable;->isStateful(Landroid/graphics/drawable/Drawable;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_13
 | |
| 
 | |
|     .line 49
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->setState([I)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     or-int/2addr v4, v0
 | |
| 
 | |
|     .line 50
 | |
|     :cond_13
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-static {v0}, Lcom/google/android/material/chip/ChipDrawable;->isStateful(Landroid/graphics/drawable/Drawable;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_14
 | |
| 
 | |
|     .line 51
 | |
|     array-length v0, p1
 | |
| 
 | |
|     array-length v3, p2
 | |
| 
 | |
|     add-int/2addr v0, v3
 | |
| 
 | |
|     new-array v0, v0, [I
 | |
| 
 | |
|     .line 52
 | |
|     array-length v3, p1
 | |
| 
 | |
|     invoke-static {p1, v2, v0, v2, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
 | |
| 
 | |
|     .line 53
 | |
|     array-length p1, p1
 | |
| 
 | |
|     array-length v3, p2
 | |
| 
 | |
|     invoke-static {p2, v2, v0, p1, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
 | |
| 
 | |
|     .line 54
 | |
|     iget-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Landroid/graphics/drawable/Drawable;->setState([I)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     or-int/2addr v4, p1
 | |
| 
 | |
|     .line 55
 | |
|     :cond_14
 | |
|     sget-boolean p1, Lcom/google/android/material/ripple/RippleUtils;->USE_FRAMEWORK_RIPPLE:Z
 | |
| 
 | |
|     if-eqz p1, :cond_15
 | |
| 
 | |
|     iget-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconRipple:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-static {p1}, Lcom/google/android/material/chip/ChipDrawable;->isStateful(Landroid/graphics/drawable/Drawable;)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-eqz p1, :cond_15
 | |
| 
 | |
|     .line 56
 | |
|     iget-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconRipple:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-virtual {p1, p2}, Landroid/graphics/drawable/Drawable;->setState([I)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     or-int/2addr v4, p1
 | |
| 
 | |
|     :cond_15
 | |
|     if-eqz v4, :cond_16
 | |
| 
 | |
|     .line 57
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     :cond_16
 | |
|     if-eqz v1, :cond_17
 | |
| 
 | |
|     .line 58
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->onSizeChange()V
 | |
| 
 | |
|     :cond_17
 | |
|     return v4
 | |
| .end method
 | |
| 
 | |
| .method private setChipSurfaceColor(Landroid/content/res/ColorStateList;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/content/res/ColorStateList;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipSurfaceColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     if-eq v0, p1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipSurfaceColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getState()[I
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->onStateChange([I)Z
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private showsCheckedIcon()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIconVisible:Z
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->currentChecked:Z
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method private showsChipIcon()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIconVisible:Z
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method private showsCloseIcon()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconVisible:Z
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method private unapplyChildDrawable(Landroid/graphics/drawable/Drawable;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/graphics/drawable/Drawable;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p1, v0}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private updateCompatRippleColor()V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->useCompatRipple:Z
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->rippleColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {v0}, Lcom/google/android/material/ripple/RippleUtils;->sanitizeRippleDrawableColor(Landroid/content/res/ColorStateList;)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     iput-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->compatRippleColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private updateFrameworkCloseIconRipple()V
 | |
|     .locals 4
 | |
|     .annotation build Landroid/annotation/TargetApi;
 | |
|         value = 0x15
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Landroid/graphics/drawable/RippleDrawable;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->getRippleColor()Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-static {v1}, Lcom/google/android/material/ripple/RippleUtils;->sanitizeRippleDrawableColor(Landroid/content/res/ColorStateList;)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     iget-object v2, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     sget-object v3, Lcom/google/android/material/chip/ChipDrawable;->closeIconRippleMask:Landroid/graphics/drawable/ShapeDrawable;
 | |
| 
 | |
|     invoke-direct {v0, v1, v2, v3}, Landroid/graphics/drawable/RippleDrawable;-><init>(Landroid/content/res/ColorStateList;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     iput-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconRipple:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public calculateChipIconWidth()F
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsChipIcon()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_1
 | |
| 
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCheckedIcon()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     return v0
 | |
| 
 | |
|     .line 2
 | |
|     :cond_1
 | |
|     :goto_0
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->iconStartPadding:F
 | |
| 
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->getCurrentChipIconWidth()F
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     add-float/2addr v0, v1
 | |
| 
 | |
|     iget v1, p0, Lcom/google/android/material/chip/ChipDrawable;->iconEndPadding:F
 | |
| 
 | |
|     add-float/2addr v0, v1
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public calculateCloseIconWidth()F
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCloseIcon()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconStartPadding:F
 | |
| 
 | |
|     iget v1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconSize:F
 | |
| 
 | |
|     add-float/2addr v0, v1
 | |
| 
 | |
|     iget v1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconEndPadding:F
 | |
| 
 | |
|     add-float/2addr v0, v1
 | |
| 
 | |
|     return v0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public calculateTextOriginAndAlignment(Landroid/graphics/Rect;Landroid/graphics/PointF;)Landroid/graphics/Paint$Align;
 | |
|     .locals 2
 | |
|     .param p1    # Landroid/graphics/Rect;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Landroid/graphics/PointF;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p2, v0, v0}, Landroid/graphics/PointF;->set(FF)V
 | |
| 
 | |
|     .line 2
 | |
|     sget-object v0, Landroid/graphics/Paint$Align;->LEFT:Landroid/graphics/Paint$Align;
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->text:Ljava/lang/CharSequence;
 | |
| 
 | |
|     if-eqz v1, :cond_1
 | |
| 
 | |
|     .line 4
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipStartPadding:F
 | |
| 
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->calculateChipIconWidth()F
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     add-float/2addr v1, v0
 | |
| 
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->textStartPadding:F
 | |
| 
 | |
|     add-float/2addr v1, v0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static {p0}, Ld1/c;->f(Landroid/graphics/drawable/Drawable;)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 6
 | |
|     iget v0, p1, Landroid/graphics/Rect;->left:I
 | |
| 
 | |
|     int-to-float v0, v0
 | |
| 
 | |
|     add-float/2addr v0, v1
 | |
| 
 | |
|     iput v0, p2, Landroid/graphics/PointF;->x:F
 | |
| 
 | |
|     .line 7
 | |
|     sget-object v0, Landroid/graphics/Paint$Align;->LEFT:Landroid/graphics/Paint$Align;
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 8
 | |
|     :cond_0
 | |
|     iget v0, p1, Landroid/graphics/Rect;->right:I
 | |
| 
 | |
|     int-to-float v0, v0
 | |
| 
 | |
|     sub-float/2addr v0, v1
 | |
| 
 | |
|     iput v0, p2, Landroid/graphics/PointF;->x:F
 | |
| 
 | |
|     .line 9
 | |
|     sget-object v0, Landroid/graphics/Paint$Align;->RIGHT:Landroid/graphics/Paint$Align;
 | |
| 
 | |
|     .line 10
 | |
|     :goto_0
 | |
|     invoke-virtual {p1}, Landroid/graphics/Rect;->centerY()I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     int-to-float p1, p1
 | |
| 
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->calculateTextCenterFromBaseline()F
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     sub-float/2addr p1, v1
 | |
| 
 | |
|     iput p1, p2, Landroid/graphics/PointF;->y:F
 | |
| 
 | |
|     :cond_1
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public draw(Landroid/graphics/Canvas;)V
 | |
|     .locals 9
 | |
|     .param p1    # Landroid/graphics/Canvas;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getBounds()Landroid/graphics/Rect;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0}, Landroid/graphics/Rect;->isEmpty()Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-nez v1, :cond_4
 | |
| 
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->getAlpha()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-nez v1, :cond_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     .line 3
 | |
|     iget v7, p0, Lcom/google/android/material/chip/ChipDrawable;->alpha:I
 | |
| 
 | |
|     const/16 v8, 0xff
 | |
| 
 | |
|     if-ge v7, v8, :cond_1
 | |
| 
 | |
|     .line 4
 | |
|     iget v1, v0, Landroid/graphics/Rect;->left:I
 | |
| 
 | |
|     int-to-float v3, v1
 | |
| 
 | |
|     iget v1, v0, Landroid/graphics/Rect;->top:I
 | |
| 
 | |
|     int-to-float v4, v1
 | |
| 
 | |
|     iget v1, v0, Landroid/graphics/Rect;->right:I
 | |
| 
 | |
|     int-to-float v5, v1
 | |
| 
 | |
|     iget v1, v0, Landroid/graphics/Rect;->bottom:I
 | |
| 
 | |
|     int-to-float v6, v1
 | |
| 
 | |
|     move-object v2, p1
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static/range {v2 .. v7}, Lcom/google/android/material/canvas/CanvasCompat;->saveLayerAlpha(Landroid/graphics/Canvas;FFFFI)I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     .line 6
 | |
|     :cond_1
 | |
|     invoke-direct {p0, p1, v0}, Lcom/google/android/material/chip/ChipDrawable;->drawChipSurface(Landroid/graphics/Canvas;Landroid/graphics/Rect;)V
 | |
| 
 | |
|     .line 7
 | |
|     invoke-direct {p0, p1, v0}, Lcom/google/android/material/chip/ChipDrawable;->drawChipBackground(Landroid/graphics/Canvas;Landroid/graphics/Rect;)V
 | |
| 
 | |
|     .line 8
 | |
|     iget-boolean v2, p0, Lcom/google/android/material/chip/ChipDrawable;->isShapeThemingEnabled:Z
 | |
| 
 | |
|     if-eqz v2, :cond_2
 | |
| 
 | |
|     .line 9
 | |
|     invoke-super {p0, p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->draw(Landroid/graphics/Canvas;)V
 | |
| 
 | |
|     .line 10
 | |
|     :cond_2
 | |
|     invoke-direct {p0, p1, v0}, Lcom/google/android/material/chip/ChipDrawable;->drawChipStroke(Landroid/graphics/Canvas;Landroid/graphics/Rect;)V
 | |
| 
 | |
|     .line 11
 | |
|     invoke-direct {p0, p1, v0}, Lcom/google/android/material/chip/ChipDrawable;->drawCompatRipple(Landroid/graphics/Canvas;Landroid/graphics/Rect;)V
 | |
| 
 | |
|     .line 12
 | |
|     invoke-direct {p0, p1, v0}, Lcom/google/android/material/chip/ChipDrawable;->drawChipIcon(Landroid/graphics/Canvas;Landroid/graphics/Rect;)V
 | |
| 
 | |
|     .line 13
 | |
|     invoke-direct {p0, p1, v0}, Lcom/google/android/material/chip/ChipDrawable;->drawCheckedIcon(Landroid/graphics/Canvas;Landroid/graphics/Rect;)V
 | |
| 
 | |
|     .line 14
 | |
|     iget-boolean v2, p0, Lcom/google/android/material/chip/ChipDrawable;->shouldDrawText:Z
 | |
| 
 | |
|     if-eqz v2, :cond_3
 | |
| 
 | |
|     .line 15
 | |
|     invoke-direct {p0, p1, v0}, Lcom/google/android/material/chip/ChipDrawable;->drawText(Landroid/graphics/Canvas;Landroid/graphics/Rect;)V
 | |
| 
 | |
|     .line 16
 | |
|     :cond_3
 | |
|     invoke-direct {p0, p1, v0}, Lcom/google/android/material/chip/ChipDrawable;->drawCloseIcon(Landroid/graphics/Canvas;Landroid/graphics/Rect;)V
 | |
| 
 | |
|     .line 17
 | |
|     invoke-direct {p0, p1, v0}, Lcom/google/android/material/chip/ChipDrawable;->drawDebug(Landroid/graphics/Canvas;Landroid/graphics/Rect;)V
 | |
| 
 | |
|     .line 18
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->alpha:I
 | |
| 
 | |
|     if-ge v0, v8, :cond_4
 | |
| 
 | |
|     .line 19
 | |
|     invoke-virtual {p1, v1}, Landroid/graphics/Canvas;->restoreToCount(I)V
 | |
| 
 | |
|     :cond_4
 | |
|     :goto_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public getAlpha()I
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->alpha:I
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getCheckedIcon()Landroid/graphics/drawable/Drawable;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getCheckedIconTint()Landroid/content/res/ColorStateList;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIconTint:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getChipBackgroundColor()Landroid/content/res/ColorStateList;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipBackgroundColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getChipCornerRadius()F
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->isShapeThemingEnabled:Z
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->getTopLeftCornerResolvedSize()F
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipCornerRadius:F
 | |
| 
 | |
|     :goto_0
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getChipEndPadding()F
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipEndPadding:F
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getChipIcon()Landroid/graphics/drawable/Drawable;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     invoke-static {v0}, Ld1/c;->q(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getChipIconSize()F
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIconSize:F
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getChipIconTint()Landroid/content/res/ColorStateList;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIconTint:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getChipMinHeight()F
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipMinHeight:F
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getChipStartPadding()F
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipStartPadding:F
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getChipStrokeColor()Landroid/content/res/ColorStateList;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipStrokeColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getChipStrokeWidth()F
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipStrokeWidth:F
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getChipTouchBounds(Landroid/graphics/RectF;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/graphics/RectF;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getBounds()Landroid/graphics/Rect;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-direct {p0, v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->calculateChipTouchBounds(Landroid/graphics/Rect;Landroid/graphics/RectF;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public getCloseIcon()Landroid/graphics/drawable/Drawable;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     invoke-static {v0}, Ld1/c;->q(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getCloseIconContentDescription()Ljava/lang/CharSequence;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconContentDescription:Ljava/lang/CharSequence;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getCloseIconEndPadding()F
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconEndPadding:F
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getCloseIconSize()F
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconSize:F
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getCloseIconStartPadding()F
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconStartPadding:F
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getCloseIconState()[I
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconStateSet:[I
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getCloseIconTint()Landroid/content/res/ColorStateList;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconTint:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getCloseIconTouchBounds(Landroid/graphics/RectF;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/graphics/RectF;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getBounds()Landroid/graphics/Rect;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-direct {p0, v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->calculateCloseIconTouchBounds(Landroid/graphics/Rect;Landroid/graphics/RectF;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public getColorFilter()Landroid/graphics/ColorFilter;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->colorFilter:Landroid/graphics/ColorFilter;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getEllipsize()Landroid/text/TextUtils$TruncateAt;
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->truncateAt:Landroid/text/TextUtils$TruncateAt;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getHideMotionSpec()Lcom/google/android/material/animation/MotionSpec;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->hideMotionSpec:Lcom/google/android/material/animation/MotionSpec;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getIconEndPadding()F
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->iconEndPadding:F
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getIconStartPadding()F
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->iconStartPadding:F
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getIntrinsicHeight()I
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipMinHeight:F
 | |
| 
 | |
|     float-to-int v0, v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getIntrinsicWidth()I
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipStartPadding:F
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->calculateChipIconWidth()F
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     add-float/2addr v1, v0
 | |
| 
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->textStartPadding:F
 | |
| 
 | |
|     add-float/2addr v1, v0
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->textDrawableHelper:Lcom/google/android/material/internal/TextDrawableHelper;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->getText()Ljava/lang/CharSequence;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     invoke-interface {v2}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     invoke-virtual {v0, v2}, Lcom/google/android/material/internal/TextDrawableHelper;->getTextWidth(Ljava/lang/String;)F
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     add-float/2addr v0, v1
 | |
| 
 | |
|     iget v1, p0, Lcom/google/android/material/chip/ChipDrawable;->textEndPadding:F
 | |
| 
 | |
|     add-float/2addr v0, v1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->calculateCloseIconWidth()F
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     add-float/2addr v1, v0
 | |
| 
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipEndPadding:F
 | |
| 
 | |
|     add-float/2addr v1, v0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static {v1}, Ljava/lang/Math;->round(F)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 6
 | |
|     iget v1, p0, Lcom/google/android/material/chip/ChipDrawable;->maxWidth:I
 | |
| 
 | |
|     invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getMaxWidth()I
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Px;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->maxWidth:I
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getOpacity()I
 | |
|     .locals 1
 | |
| 
 | |
|     const/4 v0, -0x3
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getOutline(Landroid/graphics/Outline;)V
 | |
|     .locals 8
 | |
|     .param p1    # Landroid/graphics/Outline;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroid/annotation/TargetApi;
 | |
|         value = 0x15
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->isShapeThemingEnabled:Z
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-super {p0, p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->getOutline(Landroid/graphics/Outline;)V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getBounds()Landroid/graphics/Rect;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v0}, Landroid/graphics/Rect;->isEmpty()Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-nez v1, :cond_1
 | |
| 
 | |
|     .line 5
 | |
|     iget v1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipCornerRadius:F
 | |
| 
 | |
|     invoke-virtual {p1, v0, v1}, Landroid/graphics/Outline;->setRoundRect(Landroid/graphics/Rect;F)V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     const/4 v3, 0x0
 | |
| 
 | |
|     const/4 v4, 0x0
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->getIntrinsicWidth()I
 | |
| 
 | |
|     move-result v5
 | |
| 
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->getIntrinsicHeight()I
 | |
| 
 | |
|     move-result v6
 | |
| 
 | |
|     iget v7, p0, Lcom/google/android/material/chip/ChipDrawable;->chipCornerRadius:F
 | |
| 
 | |
|     move-object v2, p1
 | |
| 
 | |
|     invoke-virtual/range {v2 .. v7}, Landroid/graphics/Outline;->setRoundRect(IIIIF)V
 | |
| 
 | |
|     .line 7
 | |
|     :goto_0
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->getAlpha()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     int-to-float v0, v0
 | |
| 
 | |
|     const/high16 v1, 0x437f0000    # 255.0f
 | |
| 
 | |
|     div-float/2addr v0, v1
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Landroid/graphics/Outline;->setAlpha(F)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public getRippleColor()Landroid/content/res/ColorStateList;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->rippleColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getShowMotionSpec()Lcom/google/android/material/animation/MotionSpec;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->showMotionSpec:Lcom/google/android/material/animation/MotionSpec;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getText()Ljava/lang/CharSequence;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->text:Ljava/lang/CharSequence;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getTextAppearance()Lcom/google/android/material/resources/TextAppearance;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->textDrawableHelper:Lcom/google/android/material/internal/TextDrawableHelper;
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/internal/TextDrawableHelper;->getTextAppearance()Lcom/google/android/material/resources/TextAppearance;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getTextEndPadding()F
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->textEndPadding:F
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getTextStartPadding()F
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->textStartPadding:F
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getUseCompatRipple()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->useCompatRipple:Z
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public invalidateDrawable(Landroid/graphics/drawable/Drawable;)V
 | |
|     .locals 0
 | |
|     .param p1    # Landroid/graphics/drawable/Drawable;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getCallback()Landroid/graphics/drawable/Drawable$Callback;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-interface {p1, p0}, Landroid/graphics/drawable/Drawable$Callback;->invalidateDrawable(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public isCheckable()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->checkable:Z
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public isCheckedIconEnabled()Z
 | |
|     .locals 1
 | |
|     .annotation runtime Ljava/lang/Deprecated;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->isCheckedIconVisible()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public isCheckedIconVisible()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIconVisible:Z
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public isChipIconEnabled()Z
 | |
|     .locals 1
 | |
|     .annotation runtime Ljava/lang/Deprecated;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->isChipIconVisible()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public isChipIconVisible()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIconVisible:Z
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public isCloseIconEnabled()Z
 | |
|     .locals 1
 | |
|     .annotation runtime Ljava/lang/Deprecated;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->isCloseIconVisible()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public isCloseIconStateful()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-static {v0}, Lcom/google/android/material/chip/ChipDrawable;->isStateful(Landroid/graphics/drawable/Drawable;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public isCloseIconVisible()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconVisible:Z
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public isShapeThemingEnabled()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->isShapeThemingEnabled:Z
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public isStateful()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipSurfaceColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     invoke-static {v0}, Lcom/google/android/material/chip/ChipDrawable;->isStateful(Landroid/content/res/ColorStateList;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_2
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipBackgroundColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {v0}, Lcom/google/android/material/chip/ChipDrawable;->isStateful(Landroid/content/res/ColorStateList;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_2
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipStrokeColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-static {v0}, Lcom/google/android/material/chip/ChipDrawable;->isStateful(Landroid/content/res/ColorStateList;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_2
 | |
| 
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->useCompatRipple:Z
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->compatRippleColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     .line 4
 | |
|     invoke-static {v0}, Lcom/google/android/material/chip/ChipDrawable;->isStateful(Landroid/content/res/ColorStateList;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_2
 | |
| 
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->textDrawableHelper:Lcom/google/android/material/internal/TextDrawableHelper;
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/internal/TextDrawableHelper;->getTextAppearance()Lcom/google/android/material/resources/TextAppearance;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-static {v0}, Lcom/google/android/material/chip/ChipDrawable;->isStateful(Lcom/google/android/material/resources/TextAppearance;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_2
 | |
| 
 | |
|     .line 6
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->canShowCheckedIcon()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_2
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     .line 7
 | |
|     invoke-static {v0}, Lcom/google/android/material/chip/ChipDrawable;->isStateful(Landroid/graphics/drawable/Drawable;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_2
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     .line 8
 | |
|     invoke-static {v0}, Lcom/google/android/material/chip/ChipDrawable;->isStateful(Landroid/graphics/drawable/Drawable;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_2
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->tint:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     .line 9
 | |
|     invoke-static {v0}, Lcom/google/android/material/chip/ChipDrawable;->isStateful(Landroid/content/res/ColorStateList;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_2
 | |
|     :goto_0
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     :goto_1
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public onLayoutDirectionChanged(I)Z
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     invoke-super {p0, p1}, Landroid/graphics/drawable/Drawable;->onLayoutDirectionChanged(I)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsChipIcon()Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-static {v1, p1}, Ld1/c;->m(Landroid/graphics/drawable/Drawable;I)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     or-int/2addr v0, v1
 | |
| 
 | |
|     .line 4
 | |
|     :cond_0
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCheckedIcon()Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_1
 | |
| 
 | |
|     .line 5
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-static {v1, p1}, Ld1/c;->m(Landroid/graphics/drawable/Drawable;I)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     or-int/2addr v0, v1
 | |
| 
 | |
|     .line 6
 | |
|     :cond_1
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCloseIcon()Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_2
 | |
| 
 | |
|     .line 7
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-static {v1, p1}, Ld1/c;->m(Landroid/graphics/drawable/Drawable;I)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     or-int/2addr v0, p1
 | |
| 
 | |
|     :cond_2
 | |
|     if-eqz v0, :cond_3
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     :cond_3
 | |
|     const/4 p1, 0x1
 | |
| 
 | |
|     return p1
 | |
| .end method
 | |
| 
 | |
| .method public onLevelChange(I)Z
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     invoke-super {p0, p1}, Landroid/graphics/drawable/Drawable;->onLevelChange(I)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsChipIcon()Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-virtual {v1, p1}, Landroid/graphics/drawable/Drawable;->setLevel(I)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     or-int/2addr v0, v1
 | |
| 
 | |
|     .line 4
 | |
|     :cond_0
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCheckedIcon()Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_1
 | |
| 
 | |
|     .line 5
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-virtual {v1, p1}, Landroid/graphics/drawable/Drawable;->setLevel(I)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     or-int/2addr v0, v1
 | |
| 
 | |
|     .line 6
 | |
|     :cond_1
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCloseIcon()Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_2
 | |
| 
 | |
|     .line 7
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-virtual {v1, p1}, Landroid/graphics/drawable/Drawable;->setLevel(I)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     or-int/2addr v0, p1
 | |
| 
 | |
|     :cond_2
 | |
|     if-eqz v0, :cond_3
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     :cond_3
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public onSizeChange()V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->delegate:Ljava/lang/ref/WeakReference;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Lcom/google/android/material/chip/ChipDrawable$Delegate;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-interface {v0}, Lcom/google/android/material/chip/ChipDrawable$Delegate;->onChipDrawableSizeChange()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onStateChange([I)Z
 | |
|     .locals 1
 | |
|     .param p1    # [I
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->isShapeThemingEnabled:Z
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-super {p0, p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->onStateChange([I)Z
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->getCloseIconState()[I
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-direct {p0, p1, v0}, Lcom/google/android/material/chip/ChipDrawable;->onStateChange([I[I)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     return p1
 | |
| .end method
 | |
| 
 | |
| .method public onTextSizeChange()V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->onSizeChange()V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public scheduleDrawable(Landroid/graphics/drawable/Drawable;Ljava/lang/Runnable;J)V
 | |
|     .locals 0
 | |
|     .param p1    # Landroid/graphics/drawable/Drawable;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Ljava/lang/Runnable;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getCallback()Landroid/graphics/drawable/Drawable$Callback;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-interface {p1, p0, p2, p3, p4}, Landroid/graphics/drawable/Drawable$Callback;->scheduleDrawable(Landroid/graphics/drawable/Drawable;Ljava/lang/Runnable;J)V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setAlpha(I)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->alpha:I
 | |
| 
 | |
|     if-eq v0, p1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput p1, p0, Lcom/google/android/material/chip/ChipDrawable;->alpha:I
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCheckable(Z)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->checkable:Z
 | |
| 
 | |
|     if-eq v0, p1, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     iput-boolean p1, p0, Lcom/google/android/material/chip/ChipDrawable;->checkable:Z
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->calculateChipIconWidth()F
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez p1, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     iget-boolean p1, p0, Lcom/google/android/material/chip/ChipDrawable;->currentChecked:Z
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     .line 5
 | |
|     iput-boolean p1, p0, Lcom/google/android/material/chip/ChipDrawable;->currentChecked:Z
 | |
| 
 | |
|     .line 6
 | |
|     :cond_0
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->calculateChipIconWidth()F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     cmpl-float p1, v0, p1
 | |
| 
 | |
|     if-eqz p1, :cond_1
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->onSizeChange()V
 | |
| 
 | |
|     :cond_1
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCheckableResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/BoolRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getBoolean(I)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setCheckable(Z)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCheckedIcon(Landroid/graphics/drawable/Drawable;)V
 | |
|     .locals 2
 | |
|     .param p1    # Landroid/graphics/drawable/Drawable;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     if-eq v0, p1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->calculateChipIconWidth()F
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 3
 | |
|     iput-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->calculateChipIconWidth()F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     .line 5
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-direct {p0, v1}, Lcom/google/android/material/chip/ChipDrawable;->unapplyChildDrawable(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     .line 6
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-direct {p0, v1}, Lcom/google/android/material/chip/ChipDrawable;->applyChildDrawable(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     cmpl-float p1, v0, p1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->onSizeChange()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCheckedIconEnabled(Z)V
 | |
|     .locals 0
 | |
|     .annotation runtime Ljava/lang/Deprecated;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setCheckedIconVisible(Z)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCheckedIconEnabledResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/BoolRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation runtime Ljava/lang/Deprecated;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getBoolean(I)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setCheckedIconVisible(Z)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCheckedIconResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/DrawableRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-static {v0, p1}, Lg/a;->d(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setCheckedIcon(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCheckedIconTint(Landroid/content/res/ColorStateList;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/content/res/ColorStateList;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIconTint:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     if-eq v0, p1, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIconTint:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->canShowCheckedIcon()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-static {v0, p1}, Ld1/c;->o(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     .line 5
 | |
|     :cond_0
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getState()[I
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->onStateChange([I)Z
 | |
| 
 | |
|     :cond_1
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCheckedIconTintResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/ColorRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-static {v0, p1}, Lg/a;->c(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setCheckedIconTint(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCheckedIconVisible(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/BoolRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getBoolean(I)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setCheckedIconVisible(Z)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCheckedIconVisible(Z)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 2
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIconVisible:Z
 | |
| 
 | |
|     if-eq v0, p1, :cond_2
 | |
| 
 | |
|     .line 3
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCheckedIcon()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 4
 | |
|     iput-boolean p1, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIconVisible:Z
 | |
| 
 | |
|     .line 5
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCheckedIcon()Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-eq v0, p1, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     if-eqz p1, :cond_1
 | |
| 
 | |
|     .line 6
 | |
|     iget-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-direct {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->applyChildDrawable(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     .line 7
 | |
|     :cond_1
 | |
|     iget-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-direct {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->unapplyChildDrawable(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     .line 8
 | |
|     :goto_1
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     .line 9
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->onSizeChange()V
 | |
| 
 | |
|     :cond_2
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setChipBackgroundColor(Landroid/content/res/ColorStateList;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/content/res/ColorStateList;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipBackgroundColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     if-eq v0, p1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipBackgroundColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getState()[I
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->onStateChange([I)Z
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setChipBackgroundColorResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/ColorRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-static {v0, p1}, Lg/a;->c(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setChipBackgroundColor(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setChipCornerRadius(F)V
 | |
|     .locals 1
 | |
|     .annotation runtime Ljava/lang/Deprecated;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipCornerRadius:F
 | |
| 
 | |
|     cmpl-float v0, v0, p1
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput p1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipCornerRadius:F
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->getShapeAppearanceModel()Lcom/google/android/material/shape/ShapeAppearanceModel;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/shape/ShapeAppearanceModel;->withCornerSize(F)Lcom/google/android/material/shape/ShapeAppearanceModel;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setShapeAppearanceModel(Lcom/google/android/material/shape/ShapeAppearanceModel;)V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setChipCornerRadiusResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/DimenRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation runtime Ljava/lang/Deprecated;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimension(I)F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setChipCornerRadius(F)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setChipEndPadding(F)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipEndPadding:F
 | |
| 
 | |
|     cmpl-float v0, v0, p1
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput p1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipEndPadding:F
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->onSizeChange()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setChipEndPaddingResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/DimenRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimension(I)F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setChipEndPadding(F)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setChipIcon(Landroid/graphics/drawable/Drawable;)V
 | |
|     .locals 2
 | |
|     .param p1    # Landroid/graphics/drawable/Drawable;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->getChipIcon()Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     if-eq v0, p1, :cond_2
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->calculateChipIconWidth()F
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-static {p1}, Ld1/c;->r(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     iput-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->calculateChipIconWidth()F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     .line 5
 | |
|     invoke-direct {p0, v0}, Lcom/google/android/material/chip/ChipDrawable;->unapplyChildDrawable(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     .line 6
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsChipIcon()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 7
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-direct {p0, v0}, Lcom/google/android/material/chip/ChipDrawable;->applyChildDrawable(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     .line 8
 | |
|     :cond_1
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     cmpl-float p1, v1, p1
 | |
| 
 | |
|     if-eqz p1, :cond_2
 | |
| 
 | |
|     .line 9
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->onSizeChange()V
 | |
| 
 | |
|     :cond_2
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setChipIconEnabled(Z)V
 | |
|     .locals 0
 | |
|     .annotation runtime Ljava/lang/Deprecated;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setChipIconVisible(Z)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setChipIconEnabledResource(I)V
 | |
|     .locals 0
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/BoolRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation runtime Ljava/lang/Deprecated;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setChipIconVisible(I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setChipIconResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/DrawableRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-static {v0, p1}, Lg/a;->d(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setChipIcon(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setChipIconSize(F)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIconSize:F
 | |
| 
 | |
|     cmpl-float v0, v0, p1
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->calculateChipIconWidth()F
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 3
 | |
|     iput p1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIconSize:F
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->calculateChipIconWidth()F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     cmpl-float p1, v0, p1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->onSizeChange()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setChipIconSizeResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/DimenRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimension(I)F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setChipIconSize(F)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setChipIconTint(Landroid/content/res/ColorStateList;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/content/res/ColorStateList;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     .line 1
 | |
|     iput-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->hasChipIconTint:Z
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIconTint:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     if-eq v0, p1, :cond_1
 | |
| 
 | |
|     .line 3
 | |
|     iput-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIconTint:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     .line 4
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsChipIcon()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 5
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-static {v0, p1}, Ld1/c;->o(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     .line 6
 | |
|     :cond_0
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getState()[I
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->onStateChange([I)Z
 | |
| 
 | |
|     :cond_1
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setChipIconTintResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/ColorRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-static {v0, p1}, Lg/a;->c(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setChipIconTint(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setChipIconVisible(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/BoolRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getBoolean(I)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setChipIconVisible(Z)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setChipIconVisible(Z)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 2
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIconVisible:Z
 | |
| 
 | |
|     if-eq v0, p1, :cond_2
 | |
| 
 | |
|     .line 3
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsChipIcon()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 4
 | |
|     iput-boolean p1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIconVisible:Z
 | |
| 
 | |
|     .line 5
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsChipIcon()Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-eq v0, p1, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     if-eqz p1, :cond_1
 | |
| 
 | |
|     .line 6
 | |
|     iget-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-direct {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->applyChildDrawable(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     .line 7
 | |
|     :cond_1
 | |
|     iget-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-direct {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->unapplyChildDrawable(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     .line 8
 | |
|     :goto_1
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     .line 9
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->onSizeChange()V
 | |
| 
 | |
|     :cond_2
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setChipMinHeight(F)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipMinHeight:F
 | |
| 
 | |
|     cmpl-float v0, v0, p1
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput p1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipMinHeight:F
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->onSizeChange()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setChipMinHeightResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/DimenRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimension(I)F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setChipMinHeight(F)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setChipStartPadding(F)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipStartPadding:F
 | |
| 
 | |
|     cmpl-float v0, v0, p1
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput p1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipStartPadding:F
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->onSizeChange()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setChipStartPaddingResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/DimenRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimension(I)F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setChipStartPadding(F)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setChipStrokeColor(Landroid/content/res/ColorStateList;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/content/res/ColorStateList;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipStrokeColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     if-eq v0, p1, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipStrokeColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     .line 3
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->isShapeThemingEnabled:Z
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setStrokeColor(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     .line 5
 | |
|     :cond_0
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getState()[I
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->onStateChange([I)Z
 | |
| 
 | |
|     :cond_1
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setChipStrokeColorResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/ColorRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-static {v0, p1}, Lg/a;->c(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setChipStrokeColor(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setChipStrokeWidth(F)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipStrokeWidth:F
 | |
| 
 | |
|     cmpl-float v0, v0, p1
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     iput p1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipStrokeWidth:F
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->chipPaint:Landroid/graphics/Paint;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setStrokeWidth(F)V
 | |
| 
 | |
|     .line 4
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->isShapeThemingEnabled:Z
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-super {p0, p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setStrokeWidth(F)V
 | |
| 
 | |
|     .line 6
 | |
|     :cond_0
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     :cond_1
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setChipStrokeWidthResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/DimenRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimension(I)F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setChipStrokeWidth(F)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCloseIcon(Landroid/graphics/drawable/Drawable;)V
 | |
|     .locals 2
 | |
|     .param p1    # Landroid/graphics/drawable/Drawable;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->getCloseIcon()Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     if-eq v0, p1, :cond_3
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->calculateCloseIconWidth()F
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-static {p1}, Ld1/c;->r(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     iput-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     .line 4
 | |
|     sget-boolean p1, Lcom/google/android/material/ripple/RippleUtils;->USE_FRAMEWORK_RIPPLE:Z
 | |
| 
 | |
|     if-eqz p1, :cond_1
 | |
| 
 | |
|     .line 5
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->updateFrameworkCloseIconRipple()V
 | |
| 
 | |
|     .line 6
 | |
|     :cond_1
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->calculateCloseIconWidth()F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     .line 7
 | |
|     invoke-direct {p0, v0}, Lcom/google/android/material/chip/ChipDrawable;->unapplyChildDrawable(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     .line 8
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCloseIcon()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     .line 9
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-direct {p0, v0}, Lcom/google/android/material/chip/ChipDrawable;->applyChildDrawable(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     .line 10
 | |
|     :cond_2
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     cmpl-float p1, v1, p1
 | |
| 
 | |
|     if-eqz p1, :cond_3
 | |
| 
 | |
|     .line 11
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->onSizeChange()V
 | |
| 
 | |
|     :cond_3
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCloseIconContentDescription(Ljava/lang/CharSequence;)V
 | |
|     .locals 1
 | |
|     .param p1    # Ljava/lang/CharSequence;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconContentDescription:Ljava/lang/CharSequence;
 | |
| 
 | |
|     if-eq v0, p1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {}, Lp1/a;->c()Lp1/a;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lp1/a;->m(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     iput-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconContentDescription:Ljava/lang/CharSequence;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCloseIconEnabled(Z)V
 | |
|     .locals 0
 | |
|     .annotation runtime Ljava/lang/Deprecated;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setCloseIconVisible(Z)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCloseIconEnabledResource(I)V
 | |
|     .locals 0
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/BoolRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation runtime Ljava/lang/Deprecated;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setCloseIconVisible(I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCloseIconEndPadding(F)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconEndPadding:F
 | |
| 
 | |
|     cmpl-float v0, v0, p1
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput p1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconEndPadding:F
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCloseIcon()Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->onSizeChange()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCloseIconEndPaddingResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/DimenRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimension(I)F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setCloseIconEndPadding(F)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCloseIconResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/DrawableRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-static {v0, p1}, Lg/a;->d(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setCloseIcon(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCloseIconSize(F)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconSize:F
 | |
| 
 | |
|     cmpl-float v0, v0, p1
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput p1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconSize:F
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCloseIcon()Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->onSizeChange()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCloseIconSizeResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/DimenRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimension(I)F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setCloseIconSize(F)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCloseIconStartPadding(F)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconStartPadding:F
 | |
| 
 | |
|     cmpl-float v0, v0, p1
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput p1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconStartPadding:F
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCloseIcon()Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->onSizeChange()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCloseIconStartPaddingResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/DimenRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimension(I)F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setCloseIconStartPadding(F)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCloseIconState([I)Z
 | |
|     .locals 1
 | |
|     .param p1    # [I
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconStateSet:[I
 | |
| 
 | |
|     invoke-static {v0, p1}, Ljava/util/Arrays;->equals([I[I)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconStateSet:[I
 | |
| 
 | |
|     .line 3
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCloseIcon()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getState()[I
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-direct {p0, v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->onStateChange([I[I)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     return p1
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     return p1
 | |
| .end method
 | |
| 
 | |
| .method public setCloseIconTint(Landroid/content/res/ColorStateList;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/content/res/ColorStateList;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconTint:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     if-eq v0, p1, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconTint:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCloseIcon()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-static {v0, p1}, Ld1/c;->o(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     .line 5
 | |
|     :cond_0
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getState()[I
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->onStateChange([I)Z
 | |
| 
 | |
|     :cond_1
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCloseIconTintResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/ColorRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-static {v0, p1}, Lg/a;->c(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setCloseIconTint(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCloseIconVisible(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/BoolRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getBoolean(I)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setCloseIconVisible(Z)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCloseIconVisible(Z)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 2
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconVisible:Z
 | |
| 
 | |
|     if-eq v0, p1, :cond_2
 | |
| 
 | |
|     .line 3
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCloseIcon()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 4
 | |
|     iput-boolean p1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIconVisible:Z
 | |
| 
 | |
|     .line 5
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCloseIcon()Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-eq v0, p1, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     if-eqz p1, :cond_1
 | |
| 
 | |
|     .line 6
 | |
|     iget-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-direct {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->applyChildDrawable(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     .line 7
 | |
|     :cond_1
 | |
|     iget-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-direct {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->unapplyChildDrawable(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     .line 8
 | |
|     :goto_1
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     .line 9
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->onSizeChange()V
 | |
| 
 | |
|     :cond_2
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setColorFilter(Landroid/graphics/ColorFilter;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/graphics/ColorFilter;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->colorFilter:Landroid/graphics/ColorFilter;
 | |
| 
 | |
|     if-eq v0, p1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->colorFilter:Landroid/graphics/ColorFilter;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setDelegate(Lcom/google/android/material/chip/ChipDrawable$Delegate;)V
 | |
|     .locals 1
 | |
|     .param p1    # Lcom/google/android/material/chip/ChipDrawable$Delegate;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/lang/ref/WeakReference;
 | |
| 
 | |
|     invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
 | |
| 
 | |
|     iput-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->delegate:Ljava/lang/ref/WeakReference;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setEllipsize(Landroid/text/TextUtils$TruncateAt;)V
 | |
|     .locals 0
 | |
|     .param p1    # Landroid/text/TextUtils$TruncateAt;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iput-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->truncateAt:Landroid/text/TextUtils$TruncateAt;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setHideMotionSpec(Lcom/google/android/material/animation/MotionSpec;)V
 | |
|     .locals 0
 | |
|     .param p1    # Lcom/google/android/material/animation/MotionSpec;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iput-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->hideMotionSpec:Lcom/google/android/material/animation/MotionSpec;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setHideMotionSpecResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/AnimatorRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-static {v0, p1}, Lcom/google/android/material/animation/MotionSpec;->createFromResource(Landroid/content/Context;I)Lcom/google/android/material/animation/MotionSpec;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setHideMotionSpec(Lcom/google/android/material/animation/MotionSpec;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setIconEndPadding(F)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->iconEndPadding:F
 | |
| 
 | |
|     cmpl-float v0, v0, p1
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->calculateChipIconWidth()F
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 3
 | |
|     iput p1, p0, Lcom/google/android/material/chip/ChipDrawable;->iconEndPadding:F
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->calculateChipIconWidth()F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     cmpl-float p1, v0, p1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->onSizeChange()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setIconEndPaddingResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/DimenRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimension(I)F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setIconEndPadding(F)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setIconStartPadding(F)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->iconStartPadding:F
 | |
| 
 | |
|     cmpl-float v0, v0, p1
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->calculateChipIconWidth()F
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 3
 | |
|     iput p1, p0, Lcom/google/android/material/chip/ChipDrawable;->iconStartPadding:F
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->calculateChipIconWidth()F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     cmpl-float p1, v0, p1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->onSizeChange()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setIconStartPaddingResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/DimenRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimension(I)F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setIconStartPadding(F)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setMaxWidth(I)V
 | |
|     .locals 0
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/Px;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iput p1, p0, Lcom/google/android/material/chip/ChipDrawable;->maxWidth:I
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setRippleColor(Landroid/content/res/ColorStateList;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/content/res/ColorStateList;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->rippleColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     if-eq v0, p1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->rippleColor:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->updateCompatRippleColor()V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getState()[I
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->onStateChange([I)Z
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setRippleColorResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/ColorRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-static {v0, p1}, Lg/a;->c(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setRippleColor(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setShouldDrawText(Z)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     iput-boolean p1, p0, Lcom/google/android/material/chip/ChipDrawable;->shouldDrawText:Z
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setShowMotionSpec(Lcom/google/android/material/animation/MotionSpec;)V
 | |
|     .locals 0
 | |
|     .param p1    # Lcom/google/android/material/animation/MotionSpec;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iput-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->showMotionSpec:Lcom/google/android/material/animation/MotionSpec;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setShowMotionSpecResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/AnimatorRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-static {v0, p1}, Lcom/google/android/material/animation/MotionSpec;->createFromResource(Landroid/content/Context;I)Lcom/google/android/material/animation/MotionSpec;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setShowMotionSpec(Lcom/google/android/material/animation/MotionSpec;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setText(Ljava/lang/CharSequence;)V
 | |
|     .locals 1
 | |
|     .param p1    # Ljava/lang/CharSequence;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     if-nez p1, :cond_0
 | |
| 
 | |
|     const-string p1, ""
 | |
| 
 | |
|     .line 1
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->text:Ljava/lang/CharSequence;
 | |
| 
 | |
|     invoke-static {v0, p1}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->text:Ljava/lang/CharSequence;
 | |
| 
 | |
|     .line 3
 | |
|     iget-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->textDrawableHelper:Lcom/google/android/material/internal/TextDrawableHelper;
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Lcom/google/android/material/internal/TextDrawableHelper;->setTextWidthDirty(Z)V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->onSizeChange()V
 | |
| 
 | |
|     :cond_1
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setTextAppearance(Lcom/google/android/material/resources/TextAppearance;)V
 | |
|     .locals 2
 | |
|     .param p1    # Lcom/google/android/material/resources/TextAppearance;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->textDrawableHelper:Lcom/google/android/material/internal/TextDrawableHelper;
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-virtual {v0, p1, v1}, Lcom/google/android/material/internal/TextDrawableHelper;->setTextAppearance(Lcom/google/android/material/resources/TextAppearance;Landroid/content/Context;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setTextAppearanceResource(I)V
 | |
|     .locals 2
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/StyleRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Lcom/google/android/material/resources/TextAppearance;
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-direct {v0, v1, p1}, Lcom/google/android/material/resources/TextAppearance;-><init>(Landroid/content/Context;I)V
 | |
| 
 | |
|     invoke-virtual {p0, v0}, Lcom/google/android/material/chip/ChipDrawable;->setTextAppearance(Lcom/google/android/material/resources/TextAppearance;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setTextEndPadding(F)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->textEndPadding:F
 | |
| 
 | |
|     cmpl-float v0, v0, p1
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput p1, p0, Lcom/google/android/material/chip/ChipDrawable;->textEndPadding:F
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->onSizeChange()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setTextEndPaddingResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/DimenRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimension(I)F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setTextEndPadding(F)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setTextResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/StringRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setText(Ljava/lang/CharSequence;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setTextSize(F)V
 | |
|     .locals 1
 | |
|     .param p1    # F
 | |
|         .annotation build Landroidx/annotation/Dimension;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->getTextAppearance()Lcom/google/android/material/resources/TextAppearance;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput p1, v0, Lcom/google/android/material/resources/TextAppearance;->textSize:F
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->textDrawableHelper:Lcom/google/android/material/internal/TextDrawableHelper;
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/internal/TextDrawableHelper;->getTextPaint()Landroid/text/TextPaint;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/text/TextPaint;->setTextSize(F)V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->onTextSizeChange()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setTextStartPadding(F)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/chip/ChipDrawable;->textStartPadding:F
 | |
| 
 | |
|     cmpl-float v0, v0, p1
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput p1, p0, Lcom/google/android/material/chip/ChipDrawable;->textStartPadding:F
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/chip/ChipDrawable;->onSizeChange()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setTextStartPaddingResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/DimenRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->context:Landroid/content/Context;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimension(I)F
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->setTextStartPadding(F)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setTintList(Landroid/content/res/ColorStateList;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/content/res/ColorStateList;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->tint:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     if-eq v0, p1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->tint:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getState()[I
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->onStateChange([I)Z
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setTintMode(Landroid/graphics/PorterDuff$Mode;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/graphics/PorterDuff$Mode;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->tintMode:Landroid/graphics/PorterDuff$Mode;
 | |
| 
 | |
|     if-eq v0, p1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->tintMode:Landroid/graphics/PorterDuff$Mode;
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v0, p0, Lcom/google/android/material/chip/ChipDrawable;->tint:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     invoke-static {p0, v0, p1}, Lcom/google/android/material/drawable/DrawableUtils;->updateTintFilter(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;Landroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuffColorFilter;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     iput-object p1, p0, Lcom/google/android/material/chip/ChipDrawable;->tintFilter:Landroid/graphics/PorterDuffColorFilter;
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setUseCompatRipple(Z)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->useCompatRipple:Z
 | |
| 
 | |
|     if-eq v0, p1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput-boolean p1, p0, Lcom/google/android/material/chip/ChipDrawable;->useCompatRipple:Z
 | |
| 
 | |
|     .line 3
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->updateCompatRippleColor()V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getState()[I
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/chip/ChipDrawable;->onStateChange([I)Z
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setVisible(ZZ)Z
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     invoke-super {p0, p1, p2}, Landroid/graphics/drawable/Drawable;->setVisible(ZZ)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsChipIcon()Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->chipIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-virtual {v1, p1, p2}, Landroid/graphics/drawable/Drawable;->setVisible(ZZ)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     or-int/2addr v0, v1
 | |
| 
 | |
|     .line 4
 | |
|     :cond_0
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCheckedIcon()Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_1
 | |
| 
 | |
|     .line 5
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->checkedIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-virtual {v1, p1, p2}, Landroid/graphics/drawable/Drawable;->setVisible(ZZ)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     or-int/2addr v0, v1
 | |
| 
 | |
|     .line 6
 | |
|     :cond_1
 | |
|     invoke-direct {p0}, Lcom/google/android/material/chip/ChipDrawable;->showsCloseIcon()Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_2
 | |
| 
 | |
|     .line 7
 | |
|     iget-object v1, p0, Lcom/google/android/material/chip/ChipDrawable;->closeIcon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     invoke-virtual {v1, p1, p2}, Landroid/graphics/drawable/Drawable;->setVisible(ZZ)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     or-int/2addr v0, p1
 | |
| 
 | |
|     :cond_2
 | |
|     if-eqz v0, :cond_3
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
 | |
| 
 | |
|     :cond_3
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public shouldDrawText()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/chip/ChipDrawable;->shouldDrawText:Z
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public unscheduleDrawable(Landroid/graphics/drawable/Drawable;Ljava/lang/Runnable;)V
 | |
|     .locals 0
 | |
|     .param p1    # Landroid/graphics/drawable/Drawable;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Ljava/lang/Runnable;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getCallback()Landroid/graphics/drawable/Drawable$Callback;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-interface {p1, p0, p2}, Landroid/graphics/drawable/Drawable$Callback;->unscheduleDrawable(Landroid/graphics/drawable/Drawable;Ljava/lang/Runnable;)V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 |