120 lines
3.5 KiB
Smali
120 lines
3.5 KiB
Smali
|
.class public Landroidx/core/text/PrecomputedTextCompat$Params$Builder;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "PrecomputedTextCompat.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Landroidx/core/text/PrecomputedTextCompat$Params;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x9
|
||
|
name = "Builder"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private mBreakStrategy:I
|
||
|
|
||
|
.field private mHyphenationFrequency:I
|
||
|
|
||
|
.field private final mPaint:Landroid/text/TextPaint;
|
||
|
|
||
|
.field private mTextDir:Landroid/text/TextDirectionHeuristic;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Landroid/text/TextPaint;)V
|
||
|
.locals 1
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
iput-object p1, p0, Landroidx/core/text/PrecomputedTextCompat$Params$Builder;->mPaint:Landroid/text/TextPaint;
|
||
|
|
||
|
sget p1, Landroid/os/Build$VERSION;->SDK_INT:I
|
||
|
|
||
|
const/16 v0, 0x17
|
||
|
|
||
|
if-lt p1, v0, :cond_0
|
||
|
|
||
|
const/4 p1, 0x1
|
||
|
|
||
|
iput p1, p0, Landroidx/core/text/PrecomputedTextCompat$Params$Builder;->mBreakStrategy:I
|
||
|
|
||
|
iput p1, p0, Landroidx/core/text/PrecomputedTextCompat$Params$Builder;->mHyphenationFrequency:I
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
iput p1, p0, Landroidx/core/text/PrecomputedTextCompat$Params$Builder;->mHyphenationFrequency:I
|
||
|
|
||
|
iput p1, p0, Landroidx/core/text/PrecomputedTextCompat$Params$Builder;->mBreakStrategy:I
|
||
|
|
||
|
:goto_0
|
||
|
sget p1, Landroid/os/Build$VERSION;->SDK_INT:I
|
||
|
|
||
|
const/16 v0, 0x12
|
||
|
|
||
|
if-lt p1, v0, :cond_1
|
||
|
|
||
|
sget-object p1, Landroid/text/TextDirectionHeuristics;->FIRSTSTRONG_LTR:Landroid/text/TextDirectionHeuristic;
|
||
|
|
||
|
iput-object p1, p0, Landroidx/core/text/PrecomputedTextCompat$Params$Builder;->mTextDir:Landroid/text/TextDirectionHeuristic;
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_1
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
iput-object p1, p0, Landroidx/core/text/PrecomputedTextCompat$Params$Builder;->mTextDir:Landroid/text/TextDirectionHeuristic;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public build()Landroidx/core/text/PrecomputedTextCompat$Params;
|
||
|
.locals 5
|
||
|
|
||
|
new-instance v0, Landroidx/core/text/PrecomputedTextCompat$Params;
|
||
|
|
||
|
iget-object v1, p0, Landroidx/core/text/PrecomputedTextCompat$Params$Builder;->mPaint:Landroid/text/TextPaint;
|
||
|
|
||
|
iget-object v2, p0, Landroidx/core/text/PrecomputedTextCompat$Params$Builder;->mTextDir:Landroid/text/TextDirectionHeuristic;
|
||
|
|
||
|
iget v3, p0, Landroidx/core/text/PrecomputedTextCompat$Params$Builder;->mBreakStrategy:I
|
||
|
|
||
|
iget v4, p0, Landroidx/core/text/PrecomputedTextCompat$Params$Builder;->mHyphenationFrequency:I
|
||
|
|
||
|
invoke-direct {v0, v1, v2, v3, v4}, Landroidx/core/text/PrecomputedTextCompat$Params;-><init>(Landroid/text/TextPaint;Landroid/text/TextDirectionHeuristic;II)V
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public setBreakStrategy(I)Landroidx/core/text/PrecomputedTextCompat$Params$Builder;
|
||
|
.locals 0
|
||
|
|
||
|
iput p1, p0, Landroidx/core/text/PrecomputedTextCompat$Params$Builder;->mBreakStrategy:I
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public setHyphenationFrequency(I)Landroidx/core/text/PrecomputedTextCompat$Params$Builder;
|
||
|
.locals 0
|
||
|
|
||
|
iput p1, p0, Landroidx/core/text/PrecomputedTextCompat$Params$Builder;->mHyphenationFrequency:I
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public setTextDirection(Landroid/text/TextDirectionHeuristic;)Landroidx/core/text/PrecomputedTextCompat$Params$Builder;
|
||
|
.locals 0
|
||
|
|
||
|
iput-object p1, p0, Landroidx/core/text/PrecomputedTextCompat$Params$Builder;->mTextDir:Landroid/text/TextDirectionHeuristic;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|