Changes of com.discord v1323
This commit is contained in:
parent
1234c09f33
commit
d9d9f382c9
28241 changed files with 0 additions and 4903974 deletions
|
@ -1,169 +0,0 @@
|
|||
.class public final Landroidx/core/text/BidiFormatter$Builder;
|
||||
.super Ljava/lang/Object;
|
||||
.source "BidiFormatter.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/core/text/BidiFormatter;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "Builder"
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public mFlags:I
|
||||
|
||||
.field public mIsRtlContext:Z
|
||||
|
||||
.field public mTextDirectionHeuristicCompat:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-static {v0}, Landroidx/core/text/BidiFormatter;->isRtlLocale(Ljava/util/Locale;)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-direct {p0, v0}, Landroidx/core/text/BidiFormatter$Builder;->initialize(Z)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(Ljava/util/Locale;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
invoke-static {p1}, Landroidx/core/text/BidiFormatter;->isRtlLocale(Ljava/util/Locale;)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
invoke-direct {p0, p1}, Landroidx/core/text/BidiFormatter$Builder;->initialize(Z)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(Z)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
invoke-direct {p0, p1}, Landroidx/core/text/BidiFormatter$Builder;->initialize(Z)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static getDefaultInstanceFromContext(Z)Landroidx/core/text/BidiFormatter;
|
||||
.locals 0
|
||||
|
||||
if-eqz p0, :cond_0
|
||||
|
||||
sget-object p0, Landroidx/core/text/BidiFormatter;->DEFAULT_RTL_INSTANCE:Landroidx/core/text/BidiFormatter;
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
sget-object p0, Landroidx/core/text/BidiFormatter;->DEFAULT_LTR_INSTANCE:Landroidx/core/text/BidiFormatter;
|
||||
|
||||
:goto_0
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method private initialize(Z)V
|
||||
.locals 0
|
||||
|
||||
iput-boolean p1, p0, Landroidx/core/text/BidiFormatter$Builder;->mIsRtlContext:Z
|
||||
|
||||
sget-object p1, Landroidx/core/text/BidiFormatter;->DEFAULT_TEXT_DIRECTION_HEURISTIC:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
iput-object p1, p0, Landroidx/core/text/BidiFormatter$Builder;->mTextDirectionHeuristicCompat:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
const/4 p1, 0x2
|
||||
|
||||
iput p1, p0, Landroidx/core/text/BidiFormatter$Builder;->mFlags:I
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public build()Landroidx/core/text/BidiFormatter;
|
||||
.locals 4
|
||||
|
||||
iget v0, p0, Landroidx/core/text/BidiFormatter$Builder;->mFlags:I
|
||||
|
||||
const/4 v1, 0x2
|
||||
|
||||
if-ne v0, v1, :cond_0
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/BidiFormatter$Builder;->mTextDirectionHeuristicCompat:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
sget-object v1, Landroidx/core/text/BidiFormatter;->DEFAULT_TEXT_DIRECTION_HEURISTIC:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
if-ne v0, v1, :cond_0
|
||||
|
||||
iget-boolean v0, p0, Landroidx/core/text/BidiFormatter$Builder;->mIsRtlContext:Z
|
||||
|
||||
invoke-static {v0}, Landroidx/core/text/BidiFormatter$Builder;->getDefaultInstanceFromContext(Z)Landroidx/core/text/BidiFormatter;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
|
||||
:cond_0
|
||||
new-instance v0, Landroidx/core/text/BidiFormatter;
|
||||
|
||||
iget-boolean v1, p0, Landroidx/core/text/BidiFormatter$Builder;->mIsRtlContext:Z
|
||||
|
||||
iget v2, p0, Landroidx/core/text/BidiFormatter$Builder;->mFlags:I
|
||||
|
||||
iget-object v3, p0, Landroidx/core/text/BidiFormatter$Builder;->mTextDirectionHeuristicCompat:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
invoke-direct {v0, v1, v2, v3}, Landroidx/core/text/BidiFormatter;-><init>(ZILandroidx/core/text/TextDirectionHeuristicCompat;)V
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public setTextDirectionHeuristic(Landroidx/core/text/TextDirectionHeuristicCompat;)Landroidx/core/text/BidiFormatter$Builder;
|
||||
.locals 0
|
||||
|
||||
iput-object p1, p0, Landroidx/core/text/BidiFormatter$Builder;->mTextDirectionHeuristicCompat:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public stereoReset(Z)Landroidx/core/text/BidiFormatter$Builder;
|
||||
.locals 0
|
||||
|
||||
if-eqz p1, :cond_0
|
||||
|
||||
iget p1, p0, Landroidx/core/text/BidiFormatter$Builder;->mFlags:I
|
||||
|
||||
or-int/lit8 p1, p1, 0x2
|
||||
|
||||
iput p1, p0, Landroidx/core/text/BidiFormatter$Builder;->mFlags:I
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
iget p1, p0, Landroidx/core/text/BidiFormatter$Builder;->mFlags:I
|
||||
|
||||
and-int/lit8 p1, p1, -0x3
|
||||
|
||||
iput p1, p0, Landroidx/core/text/BidiFormatter$Builder;->mFlags:I
|
||||
|
||||
:goto_0
|
||||
return-object p0
|
||||
.end method
|
|
@ -1,770 +0,0 @@
|
|||
.class public Landroidx/core/text/BidiFormatter$DirectionalityEstimator;
|
||||
.super Ljava/lang/Object;
|
||||
.source "BidiFormatter.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/core/text/BidiFormatter;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x9
|
||||
name = "DirectionalityEstimator"
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final DIR_TYPE_CACHE:[B
|
||||
|
||||
.field public static final DIR_TYPE_CACHE_SIZE:I = 0x700
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public charIndex:I
|
||||
|
||||
.field public final isHtml:Z
|
||||
|
||||
.field public lastChar:C
|
||||
|
||||
.field public final length:I
|
||||
|
||||
.field public final text:Ljava/lang/CharSequence;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 4
|
||||
|
||||
const/16 v0, 0x700
|
||||
|
||||
new-array v1, v0, [B
|
||||
|
||||
sput-object v1, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->DIR_TYPE_CACHE:[B
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
:goto_0
|
||||
if-ge v1, v0, :cond_0
|
||||
|
||||
sget-object v2, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->DIR_TYPE_CACHE:[B
|
||||
|
||||
invoke-static {v1}, Ljava/lang/Character;->getDirectionality(I)B
|
||||
|
||||
move-result v3
|
||||
|
||||
aput-byte v3, v2, v1
|
||||
|
||||
add-int/lit8 v1, v1, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(Ljava/lang/CharSequence;Z)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-object p1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->text:Ljava/lang/CharSequence;
|
||||
|
||||
iput-boolean p2, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->isHtml:Z
|
||||
|
||||
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
|
||||
|
||||
move-result p1
|
||||
|
||||
iput p1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->length:I
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static getCachedDirectionality(C)B
|
||||
.locals 1
|
||||
|
||||
const/16 v0, 0x700
|
||||
|
||||
if-ge p0, v0, :cond_0
|
||||
|
||||
sget-object v0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->DIR_TYPE_CACHE:[B
|
||||
|
||||
aget-byte p0, v0, p0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
invoke-static {p0}, Ljava/lang/Character;->getDirectionality(C)B
|
||||
|
||||
move-result p0
|
||||
|
||||
:goto_0
|
||||
return p0
|
||||
.end method
|
||||
|
||||
.method private skipEntityBackward()B
|
||||
.locals 4
|
||||
|
||||
iget v0, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
:cond_0
|
||||
iget v1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
const/16 v2, 0x3b
|
||||
|
||||
if-lez v1, :cond_2
|
||||
|
||||
iget-object v3, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->text:Ljava/lang/CharSequence;
|
||||
|
||||
add-int/lit8 v1, v1, -0x1
|
||||
|
||||
iput v1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
invoke-interface {v3, v1}, Ljava/lang/CharSequence;->charAt(I)C
|
||||
|
||||
move-result v1
|
||||
|
||||
iput-char v1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->lastChar:C
|
||||
|
||||
const/16 v3, 0x26
|
||||
|
||||
if-ne v1, v3, :cond_1
|
||||
|
||||
const/16 v0, 0xc
|
||||
|
||||
return v0
|
||||
|
||||
:cond_1
|
||||
if-ne v1, v2, :cond_0
|
||||
|
||||
:cond_2
|
||||
iput v0, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
iput-char v2, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->lastChar:C
|
||||
|
||||
const/16 v0, 0xd
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method private skipEntityForward()B
|
||||
.locals 3
|
||||
|
||||
:goto_0
|
||||
iget v0, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
iget v1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->length:I
|
||||
|
||||
if-ge v0, v1, :cond_0
|
||||
|
||||
iget-object v1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->text:Ljava/lang/CharSequence;
|
||||
|
||||
add-int/lit8 v2, v0, 0x1
|
||||
|
||||
iput v2, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
invoke-interface {v1, v0}, Ljava/lang/CharSequence;->charAt(I)C
|
||||
|
||||
move-result v0
|
||||
|
||||
iput-char v0, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->lastChar:C
|
||||
|
||||
const/16 v1, 0x3b
|
||||
|
||||
if-eq v0, v1, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/16 v0, 0xc
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method private skipTagBackward()B
|
||||
.locals 4
|
||||
|
||||
iget v0, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
:cond_0
|
||||
iget v1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
const/16 v2, 0x3e
|
||||
|
||||
if-lez v1, :cond_4
|
||||
|
||||
iget-object v3, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->text:Ljava/lang/CharSequence;
|
||||
|
||||
add-int/lit8 v1, v1, -0x1
|
||||
|
||||
iput v1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
invoke-interface {v3, v1}, Ljava/lang/CharSequence;->charAt(I)C
|
||||
|
||||
move-result v1
|
||||
|
||||
iput-char v1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->lastChar:C
|
||||
|
||||
const/16 v3, 0x3c
|
||||
|
||||
if-ne v1, v3, :cond_1
|
||||
|
||||
const/16 v0, 0xc
|
||||
|
||||
return v0
|
||||
|
||||
:cond_1
|
||||
if-ne v1, v2, :cond_2
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_2
|
||||
const/16 v2, 0x22
|
||||
|
||||
if-eq v1, v2, :cond_3
|
||||
|
||||
const/16 v2, 0x27
|
||||
|
||||
if-ne v1, v2, :cond_0
|
||||
|
||||
:cond_3
|
||||
iget-char v1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->lastChar:C
|
||||
|
||||
:goto_0
|
||||
iget v2, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
if-lez v2, :cond_0
|
||||
|
||||
iget-object v3, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->text:Ljava/lang/CharSequence;
|
||||
|
||||
add-int/lit8 v2, v2, -0x1
|
||||
|
||||
iput v2, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
invoke-interface {v3, v2}, Ljava/lang/CharSequence;->charAt(I)C
|
||||
|
||||
move-result v2
|
||||
|
||||
iput-char v2, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->lastChar:C
|
||||
|
||||
if-eq v2, v1, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_4
|
||||
:goto_1
|
||||
iput v0, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
iput-char v2, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->lastChar:C
|
||||
|
||||
const/16 v0, 0xd
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method private skipTagForward()B
|
||||
.locals 5
|
||||
|
||||
iget v0, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
:cond_0
|
||||
iget v1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
iget v2, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->length:I
|
||||
|
||||
if-ge v1, v2, :cond_3
|
||||
|
||||
iget-object v2, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->text:Ljava/lang/CharSequence;
|
||||
|
||||
add-int/lit8 v3, v1, 0x1
|
||||
|
||||
iput v3, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
invoke-interface {v2, v1}, Ljava/lang/CharSequence;->charAt(I)C
|
||||
|
||||
move-result v1
|
||||
|
||||
iput-char v1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->lastChar:C
|
||||
|
||||
const/16 v2, 0x3e
|
||||
|
||||
if-ne v1, v2, :cond_1
|
||||
|
||||
const/16 v0, 0xc
|
||||
|
||||
return v0
|
||||
|
||||
:cond_1
|
||||
const/16 v2, 0x22
|
||||
|
||||
if-eq v1, v2, :cond_2
|
||||
|
||||
const/16 v2, 0x27
|
||||
|
||||
if-ne v1, v2, :cond_0
|
||||
|
||||
:cond_2
|
||||
iget-char v1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->lastChar:C
|
||||
|
||||
:goto_0
|
||||
iget v2, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
iget v3, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->length:I
|
||||
|
||||
if-ge v2, v3, :cond_0
|
||||
|
||||
iget-object v3, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->text:Ljava/lang/CharSequence;
|
||||
|
||||
add-int/lit8 v4, v2, 0x1
|
||||
|
||||
iput v4, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
invoke-interface {v3, v2}, Ljava/lang/CharSequence;->charAt(I)C
|
||||
|
||||
move-result v2
|
||||
|
||||
iput-char v2, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->lastChar:C
|
||||
|
||||
if-eq v2, v1, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_3
|
||||
iput v0, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
const/16 v0, 0x3c
|
||||
|
||||
iput-char v0, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->lastChar:C
|
||||
|
||||
const/16 v0, 0xd
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public dirTypeBackward()B
|
||||
.locals 3
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->text:Ljava/lang/CharSequence;
|
||||
|
||||
iget v1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
add-int/lit8 v1, v1, -0x1
|
||||
|
||||
invoke-interface {v0, v1}, Ljava/lang/CharSequence;->charAt(I)C
|
||||
|
||||
move-result v0
|
||||
|
||||
iput-char v0, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->lastChar:C
|
||||
|
||||
invoke-static {v0}, Ljava/lang/Character;->isLowSurrogate(C)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->text:Ljava/lang/CharSequence;
|
||||
|
||||
iget v1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
invoke-static {v0, v1}, Ljava/lang/Character;->codePointBefore(Ljava/lang/CharSequence;I)I
|
||||
|
||||
move-result v0
|
||||
|
||||
iget v1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
invoke-static {v0}, Ljava/lang/Character;->charCount(I)I
|
||||
|
||||
move-result v2
|
||||
|
||||
sub-int/2addr v1, v2
|
||||
|
||||
iput v1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
invoke-static {v0}, Ljava/lang/Character;->getDirectionality(I)B
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
|
||||
:cond_0
|
||||
iget v0, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
add-int/lit8 v0, v0, -0x1
|
||||
|
||||
iput v0, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
iget-char v0, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->lastChar:C
|
||||
|
||||
invoke-static {v0}, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->getCachedDirectionality(C)B
|
||||
|
||||
move-result v0
|
||||
|
||||
iget-boolean v1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->isHtml:Z
|
||||
|
||||
if-eqz v1, :cond_2
|
||||
|
||||
iget-char v1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->lastChar:C
|
||||
|
||||
const/16 v2, 0x3e
|
||||
|
||||
if-ne v1, v2, :cond_1
|
||||
|
||||
invoke-direct {p0}, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->skipTagBackward()B
|
||||
|
||||
move-result v0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
const/16 v2, 0x3b
|
||||
|
||||
if-ne v1, v2, :cond_2
|
||||
|
||||
invoke-direct {p0}, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->skipEntityBackward()B
|
||||
|
||||
move-result v0
|
||||
|
||||
:cond_2
|
||||
:goto_0
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public dirTypeForward()B
|
||||
.locals 3
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->text:Ljava/lang/CharSequence;
|
||||
|
||||
iget v1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
invoke-interface {v0, v1}, Ljava/lang/CharSequence;->charAt(I)C
|
||||
|
||||
move-result v0
|
||||
|
||||
iput-char v0, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->lastChar:C
|
||||
|
||||
invoke-static {v0}, Ljava/lang/Character;->isHighSurrogate(C)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->text:Ljava/lang/CharSequence;
|
||||
|
||||
iget v1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
invoke-static {v0, v1}, Ljava/lang/Character;->codePointAt(Ljava/lang/CharSequence;I)I
|
||||
|
||||
move-result v0
|
||||
|
||||
iget v1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
invoke-static {v0}, Ljava/lang/Character;->charCount(I)I
|
||||
|
||||
move-result v2
|
||||
|
||||
add-int/2addr v2, v1
|
||||
|
||||
iput v2, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
invoke-static {v0}, Ljava/lang/Character;->getDirectionality(I)B
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
|
||||
:cond_0
|
||||
iget v0, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
add-int/lit8 v0, v0, 0x1
|
||||
|
||||
iput v0, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
iget-char v0, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->lastChar:C
|
||||
|
||||
invoke-static {v0}, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->getCachedDirectionality(C)B
|
||||
|
||||
move-result v0
|
||||
|
||||
iget-boolean v1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->isHtml:Z
|
||||
|
||||
if-eqz v1, :cond_2
|
||||
|
||||
iget-char v1, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->lastChar:C
|
||||
|
||||
const/16 v2, 0x3c
|
||||
|
||||
if-ne v1, v2, :cond_1
|
||||
|
||||
invoke-direct {p0}, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->skipTagForward()B
|
||||
|
||||
move-result v0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
const/16 v2, 0x26
|
||||
|
||||
if-ne v1, v2, :cond_2
|
||||
|
||||
invoke-direct {p0}, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->skipEntityForward()B
|
||||
|
||||
move-result v0
|
||||
|
||||
:cond_2
|
||||
:goto_0
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public getEntryDir()I
|
||||
.locals 8
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
iput v0, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
const/4 v1, -0x1
|
||||
|
||||
const/4 v2, 0x1
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
const/4 v4, 0x0
|
||||
|
||||
const/4 v5, 0x0
|
||||
|
||||
:cond_0
|
||||
:goto_0
|
||||
iget v6, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
iget v7, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->length:I
|
||||
|
||||
if-ge v6, v7, :cond_4
|
||||
|
||||
if-nez v3, :cond_4
|
||||
|
||||
invoke-virtual {p0}, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->dirTypeForward()B
|
||||
|
||||
move-result v6
|
||||
|
||||
if-eqz v6, :cond_2
|
||||
|
||||
if-eq v6, v2, :cond_1
|
||||
|
||||
const/4 v7, 0x2
|
||||
|
||||
if-eq v6, v7, :cond_1
|
||||
|
||||
const/16 v7, 0x9
|
||||
|
||||
if-eq v6, v7, :cond_0
|
||||
|
||||
packed-switch v6, :pswitch_data_0
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:pswitch_0
|
||||
add-int/lit8 v5, v5, -0x1
|
||||
|
||||
const/4 v4, 0x0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:pswitch_1
|
||||
add-int/lit8 v5, v5, 0x1
|
||||
|
||||
const/4 v4, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:pswitch_2
|
||||
add-int/lit8 v5, v5, 0x1
|
||||
|
||||
const/4 v4, -0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
if-nez v5, :cond_3
|
||||
|
||||
return v2
|
||||
|
||||
:cond_2
|
||||
if-nez v5, :cond_3
|
||||
|
||||
return v1
|
||||
|
||||
:cond_3
|
||||
:goto_1
|
||||
move v3, v5
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_4
|
||||
if-nez v3, :cond_5
|
||||
|
||||
return v0
|
||||
|
||||
:cond_5
|
||||
if-eqz v4, :cond_6
|
||||
|
||||
return v4
|
||||
|
||||
:cond_6
|
||||
:goto_2
|
||||
iget v4, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
if-lez v4, :cond_8
|
||||
|
||||
invoke-virtual {p0}, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->dirTypeBackward()B
|
||||
|
||||
move-result v4
|
||||
|
||||
packed-switch v4, :pswitch_data_1
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:pswitch_3
|
||||
add-int/lit8 v5, v5, 0x1
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:pswitch_4
|
||||
if-ne v3, v5, :cond_7
|
||||
|
||||
return v2
|
||||
|
||||
:pswitch_5
|
||||
if-ne v3, v5, :cond_7
|
||||
|
||||
return v1
|
||||
|
||||
:cond_7
|
||||
add-int/lit8 v5, v5, -0x1
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_8
|
||||
return v0
|
||||
|
||||
:pswitch_data_0
|
||||
.packed-switch 0xe
|
||||
:pswitch_2
|
||||
:pswitch_2
|
||||
:pswitch_1
|
||||
:pswitch_1
|
||||
:pswitch_0
|
||||
.end packed-switch
|
||||
|
||||
:pswitch_data_1
|
||||
.packed-switch 0xe
|
||||
:pswitch_5
|
||||
:pswitch_5
|
||||
:pswitch_4
|
||||
:pswitch_4
|
||||
:pswitch_3
|
||||
.end packed-switch
|
||||
.end method
|
||||
|
||||
.method public getExitDir()I
|
||||
.locals 7
|
||||
|
||||
iget v0, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->length:I
|
||||
|
||||
iput v0, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
:cond_0
|
||||
:goto_0
|
||||
iget v3, p0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->charIndex:I
|
||||
|
||||
if-lez v3, :cond_6
|
||||
|
||||
invoke-virtual {p0}, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->dirTypeBackward()B
|
||||
|
||||
move-result v3
|
||||
|
||||
const/4 v4, -0x1
|
||||
|
||||
if-eqz v3, :cond_4
|
||||
|
||||
const/4 v5, 0x1
|
||||
|
||||
if-eq v3, v5, :cond_2
|
||||
|
||||
const/4 v6, 0x2
|
||||
|
||||
if-eq v3, v6, :cond_2
|
||||
|
||||
const/16 v6, 0x9
|
||||
|
||||
if-eq v3, v6, :cond_0
|
||||
|
||||
packed-switch v3, :pswitch_data_0
|
||||
|
||||
if-nez v2, :cond_0
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:pswitch_0
|
||||
add-int/lit8 v1, v1, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:pswitch_1
|
||||
if-ne v2, v1, :cond_1
|
||||
|
||||
return v5
|
||||
|
||||
:pswitch_2
|
||||
if-ne v2, v1, :cond_1
|
||||
|
||||
return v4
|
||||
|
||||
:cond_1
|
||||
add-int/lit8 v1, v1, -0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_2
|
||||
if-nez v1, :cond_3
|
||||
|
||||
return v5
|
||||
|
||||
:cond_3
|
||||
if-nez v2, :cond_0
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_4
|
||||
if-nez v1, :cond_5
|
||||
|
||||
return v4
|
||||
|
||||
:cond_5
|
||||
if-nez v2, :cond_0
|
||||
|
||||
:goto_1
|
||||
move v2, v1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_6
|
||||
return v0
|
||||
|
||||
:pswitch_data_0
|
||||
.packed-switch 0xe
|
||||
:pswitch_2
|
||||
:pswitch_2
|
||||
:pswitch_1
|
||||
:pswitch_1
|
||||
:pswitch_0
|
||||
.end packed-switch
|
||||
.end method
|
|
@ -1,582 +0,0 @@
|
|||
.class public final Landroidx/core/text/BidiFormatter;
|
||||
.super Ljava/lang/Object;
|
||||
.source "BidiFormatter.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Landroidx/core/text/BidiFormatter$DirectionalityEstimator;,
|
||||
Landroidx/core/text/BidiFormatter$Builder;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final DEFAULT_FLAGS:I = 0x2
|
||||
|
||||
.field public static final DEFAULT_LTR_INSTANCE:Landroidx/core/text/BidiFormatter;
|
||||
|
||||
.field public static final DEFAULT_RTL_INSTANCE:Landroidx/core/text/BidiFormatter;
|
||||
|
||||
.field public static final DEFAULT_TEXT_DIRECTION_HEURISTIC:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
.field public static final DIR_LTR:I = -0x1
|
||||
|
||||
.field public static final DIR_RTL:I = 0x1
|
||||
|
||||
.field public static final DIR_UNKNOWN:I = 0x0
|
||||
|
||||
.field public static final EMPTY_STRING:Ljava/lang/String; = ""
|
||||
|
||||
.field public static final FLAG_STEREO_RESET:I = 0x2
|
||||
|
||||
.field public static final LRE:C = '\u202a'
|
||||
|
||||
.field public static final LRM:C = '\u200e'
|
||||
|
||||
.field public static final LRM_STRING:Ljava/lang/String;
|
||||
|
||||
.field public static final PDF:C = '\u202c'
|
||||
|
||||
.field public static final RLE:C = '\u202b'
|
||||
|
||||
.field public static final RLM:C = '\u200f'
|
||||
|
||||
.field public static final RLM_STRING:Ljava/lang/String;
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final mDefaultTextDirectionHeuristicCompat:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
.field public final mFlags:I
|
||||
|
||||
.field public final mIsRtlContext:Z
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 4
|
||||
|
||||
sget-object v0, Landroidx/core/text/TextDirectionHeuristicsCompat;->FIRSTSTRONG_LTR:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
sput-object v0, Landroidx/core/text/BidiFormatter;->DEFAULT_TEXT_DIRECTION_HEURISTIC:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
const/16 v0, 0x200e
|
||||
|
||||
invoke-static {v0}, Ljava/lang/Character;->toString(C)Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
sput-object v0, Landroidx/core/text/BidiFormatter;->LRM_STRING:Ljava/lang/String;
|
||||
|
||||
const/16 v0, 0x200f
|
||||
|
||||
invoke-static {v0}, Ljava/lang/Character;->toString(C)Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
sput-object v0, Landroidx/core/text/BidiFormatter;->RLM_STRING:Ljava/lang/String;
|
||||
|
||||
new-instance v0, Landroidx/core/text/BidiFormatter;
|
||||
|
||||
sget-object v1, Landroidx/core/text/BidiFormatter;->DEFAULT_TEXT_DIRECTION_HEURISTIC:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
const/4 v3, 0x2
|
||||
|
||||
invoke-direct {v0, v2, v3, v1}, Landroidx/core/text/BidiFormatter;-><init>(ZILandroidx/core/text/TextDirectionHeuristicCompat;)V
|
||||
|
||||
sput-object v0, Landroidx/core/text/BidiFormatter;->DEFAULT_LTR_INSTANCE:Landroidx/core/text/BidiFormatter;
|
||||
|
||||
new-instance v0, Landroidx/core/text/BidiFormatter;
|
||||
|
||||
sget-object v1, Landroidx/core/text/BidiFormatter;->DEFAULT_TEXT_DIRECTION_HEURISTIC:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
const/4 v2, 0x1
|
||||
|
||||
invoke-direct {v0, v2, v3, v1}, Landroidx/core/text/BidiFormatter;-><init>(ZILandroidx/core/text/TextDirectionHeuristicCompat;)V
|
||||
|
||||
sput-object v0, Landroidx/core/text/BidiFormatter;->DEFAULT_RTL_INSTANCE:Landroidx/core/text/BidiFormatter;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(ZILandroidx/core/text/TextDirectionHeuristicCompat;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-boolean p1, p0, Landroidx/core/text/BidiFormatter;->mIsRtlContext:Z
|
||||
|
||||
iput p2, p0, Landroidx/core/text/BidiFormatter;->mFlags:I
|
||||
|
||||
iput-object p3, p0, Landroidx/core/text/BidiFormatter;->mDefaultTextDirectionHeuristicCompat:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static getEntryDir(Ljava/lang/CharSequence;)I
|
||||
.locals 2
|
||||
|
||||
new-instance v0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-direct {v0, p0, v1}, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;-><init>(Ljava/lang/CharSequence;Z)V
|
||||
|
||||
invoke-virtual {v0}, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->getEntryDir()I
|
||||
|
||||
move-result p0
|
||||
|
||||
return p0
|
||||
.end method
|
||||
|
||||
.method public static getExitDir(Ljava/lang/CharSequence;)I
|
||||
.locals 2
|
||||
|
||||
new-instance v0, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-direct {v0, p0, v1}, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;-><init>(Ljava/lang/CharSequence;Z)V
|
||||
|
||||
invoke-virtual {v0}, Landroidx/core/text/BidiFormatter$DirectionalityEstimator;->getExitDir()I
|
||||
|
||||
move-result p0
|
||||
|
||||
return p0
|
||||
.end method
|
||||
|
||||
.method public static getInstance()Landroidx/core/text/BidiFormatter;
|
||||
.locals 1
|
||||
|
||||
new-instance v0, Landroidx/core/text/BidiFormatter$Builder;
|
||||
|
||||
invoke-direct {v0}, Landroidx/core/text/BidiFormatter$Builder;-><init>()V
|
||||
|
||||
invoke-virtual {v0}, Landroidx/core/text/BidiFormatter$Builder;->build()Landroidx/core/text/BidiFormatter;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public static getInstance(Ljava/util/Locale;)Landroidx/core/text/BidiFormatter;
|
||||
.locals 1
|
||||
|
||||
new-instance v0, Landroidx/core/text/BidiFormatter$Builder;
|
||||
|
||||
invoke-direct {v0, p0}, Landroidx/core/text/BidiFormatter$Builder;-><init>(Ljava/util/Locale;)V
|
||||
|
||||
invoke-virtual {v0}, Landroidx/core/text/BidiFormatter$Builder;->build()Landroidx/core/text/BidiFormatter;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static getInstance(Z)Landroidx/core/text/BidiFormatter;
|
||||
.locals 1
|
||||
|
||||
new-instance v0, Landroidx/core/text/BidiFormatter$Builder;
|
||||
|
||||
invoke-direct {v0, p0}, Landroidx/core/text/BidiFormatter$Builder;-><init>(Z)V
|
||||
|
||||
invoke-virtual {v0}, Landroidx/core/text/BidiFormatter$Builder;->build()Landroidx/core/text/BidiFormatter;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static isRtlLocale(Ljava/util/Locale;)Z
|
||||
.locals 1
|
||||
|
||||
invoke-static {p0}, Landroidx/core/text/TextUtilsCompat;->getLayoutDirectionFromLocale(Ljava/util/Locale;)I
|
||||
|
||||
move-result p0
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
if-ne p0, v0, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method private markAfter(Ljava/lang/CharSequence;Landroidx/core/text/TextDirectionHeuristicCompat;)Ljava/lang/String;
|
||||
.locals 2
|
||||
|
||||
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-interface {p2, p1, v1, v0}, Landroidx/core/text/TextDirectionHeuristicCompat;->isRtl(Ljava/lang/CharSequence;II)Z
|
||||
|
||||
move-result p2
|
||||
|
||||
iget-boolean v0, p0, Landroidx/core/text/BidiFormatter;->mIsRtlContext:Z
|
||||
|
||||
if-nez v0, :cond_1
|
||||
|
||||
if-nez p2, :cond_0
|
||||
|
||||
invoke-static {p1}, Landroidx/core/text/BidiFormatter;->getExitDir(Ljava/lang/CharSequence;)I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
if-ne v0, v1, :cond_1
|
||||
|
||||
:cond_0
|
||||
sget-object p1, Landroidx/core/text/BidiFormatter;->LRM_STRING:Ljava/lang/String;
|
||||
|
||||
return-object p1
|
||||
|
||||
:cond_1
|
||||
iget-boolean v0, p0, Landroidx/core/text/BidiFormatter;->mIsRtlContext:Z
|
||||
|
||||
if-eqz v0, :cond_3
|
||||
|
||||
if-eqz p2, :cond_2
|
||||
|
||||
invoke-static {p1}, Landroidx/core/text/BidiFormatter;->getExitDir(Ljava/lang/CharSequence;)I
|
||||
|
||||
move-result p1
|
||||
|
||||
const/4 p2, -0x1
|
||||
|
||||
if-ne p1, p2, :cond_3
|
||||
|
||||
:cond_2
|
||||
sget-object p1, Landroidx/core/text/BidiFormatter;->RLM_STRING:Ljava/lang/String;
|
||||
|
||||
return-object p1
|
||||
|
||||
:cond_3
|
||||
const-string p1, ""
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method private markBefore(Ljava/lang/CharSequence;Landroidx/core/text/TextDirectionHeuristicCompat;)Ljava/lang/String;
|
||||
.locals 2
|
||||
|
||||
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-interface {p2, p1, v1, v0}, Landroidx/core/text/TextDirectionHeuristicCompat;->isRtl(Ljava/lang/CharSequence;II)Z
|
||||
|
||||
move-result p2
|
||||
|
||||
iget-boolean v0, p0, Landroidx/core/text/BidiFormatter;->mIsRtlContext:Z
|
||||
|
||||
if-nez v0, :cond_1
|
||||
|
||||
if-nez p2, :cond_0
|
||||
|
||||
invoke-static {p1}, Landroidx/core/text/BidiFormatter;->getEntryDir(Ljava/lang/CharSequence;)I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
if-ne v0, v1, :cond_1
|
||||
|
||||
:cond_0
|
||||
sget-object p1, Landroidx/core/text/BidiFormatter;->LRM_STRING:Ljava/lang/String;
|
||||
|
||||
return-object p1
|
||||
|
||||
:cond_1
|
||||
iget-boolean v0, p0, Landroidx/core/text/BidiFormatter;->mIsRtlContext:Z
|
||||
|
||||
if-eqz v0, :cond_3
|
||||
|
||||
if-eqz p2, :cond_2
|
||||
|
||||
invoke-static {p1}, Landroidx/core/text/BidiFormatter;->getEntryDir(Ljava/lang/CharSequence;)I
|
||||
|
||||
move-result p1
|
||||
|
||||
const/4 p2, -0x1
|
||||
|
||||
if-ne p1, p2, :cond_3
|
||||
|
||||
:cond_2
|
||||
sget-object p1, Landroidx/core/text/BidiFormatter;->RLM_STRING:Ljava/lang/String;
|
||||
|
||||
return-object p1
|
||||
|
||||
:cond_3
|
||||
const-string p1, ""
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public getStereoReset()Z
|
||||
.locals 1
|
||||
|
||||
iget v0, p0, Landroidx/core/text/BidiFormatter;->mFlags:I
|
||||
|
||||
and-int/lit8 v0, v0, 0x2
|
||||
|
||||
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 isRtl(Ljava/lang/CharSequence;)Z
|
||||
.locals 3
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/BidiFormatter;->mDefaultTextDirectionHeuristicCompat:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
|
||||
|
||||
move-result v1
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
invoke-interface {v0, p1, v2, v1}, Landroidx/core/text/TextDirectionHeuristicCompat;->isRtl(Ljava/lang/CharSequence;II)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public isRtl(Ljava/lang/String;)Z
|
||||
.locals 0
|
||||
|
||||
invoke-virtual {p0, p1}, Landroidx/core/text/BidiFormatter;->isRtl(Ljava/lang/CharSequence;)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public isRtlContext()Z
|
||||
.locals 1
|
||||
|
||||
iget-boolean v0, p0, Landroidx/core/text/BidiFormatter;->mIsRtlContext:Z
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public unicodeWrap(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;
|
||||
.locals 2
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/BidiFormatter;->mDefaultTextDirectionHeuristicCompat:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
invoke-virtual {p0, p1, v0, v1}, Landroidx/core/text/BidiFormatter;->unicodeWrap(Ljava/lang/CharSequence;Landroidx/core/text/TextDirectionHeuristicCompat;Z)Ljava/lang/CharSequence;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public unicodeWrap(Ljava/lang/CharSequence;Landroidx/core/text/TextDirectionHeuristicCompat;)Ljava/lang/CharSequence;
|
||||
.locals 1
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
invoke-virtual {p0, p1, p2, v0}, Landroidx/core/text/BidiFormatter;->unicodeWrap(Ljava/lang/CharSequence;Landroidx/core/text/TextDirectionHeuristicCompat;Z)Ljava/lang/CharSequence;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public unicodeWrap(Ljava/lang/CharSequence;Landroidx/core/text/TextDirectionHeuristicCompat;Z)Ljava/lang/CharSequence;
|
||||
.locals 2
|
||||
|
||||
if-nez p1, :cond_0
|
||||
|
||||
const/4 p1, 0x0
|
||||
|
||||
return-object p1
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
|
||||
|
||||
move-result v1
|
||||
|
||||
invoke-interface {p2, p1, v0, v1}, Landroidx/core/text/TextDirectionHeuristicCompat;->isRtl(Ljava/lang/CharSequence;II)Z
|
||||
|
||||
move-result p2
|
||||
|
||||
new-instance v0, Landroid/text/SpannableStringBuilder;
|
||||
|
||||
invoke-direct {v0}, Landroid/text/SpannableStringBuilder;-><init>()V
|
||||
|
||||
invoke-virtual {p0}, Landroidx/core/text/BidiFormatter;->getStereoReset()Z
|
||||
|
||||
move-result v1
|
||||
|
||||
if-eqz v1, :cond_2
|
||||
|
||||
if-eqz p3, :cond_2
|
||||
|
||||
if-eqz p2, :cond_1
|
||||
|
||||
sget-object v1, Landroidx/core/text/TextDirectionHeuristicsCompat;->RTL:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
sget-object v1, Landroidx/core/text/TextDirectionHeuristicsCompat;->LTR:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
:goto_0
|
||||
invoke-direct {p0, p1, v1}, Landroidx/core/text/BidiFormatter;->markBefore(Ljava/lang/CharSequence;Landroidx/core/text/TextDirectionHeuristicCompat;)Ljava/lang/String;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-virtual {v0, v1}, Landroid/text/SpannableStringBuilder;->append(Ljava/lang/CharSequence;)Landroid/text/SpannableStringBuilder;
|
||||
|
||||
:cond_2
|
||||
iget-boolean v1, p0, Landroidx/core/text/BidiFormatter;->mIsRtlContext:Z
|
||||
|
||||
if-eq p2, v1, :cond_4
|
||||
|
||||
if-eqz p2, :cond_3
|
||||
|
||||
const/16 v1, 0x202b
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_3
|
||||
const/16 v1, 0x202a
|
||||
|
||||
:goto_1
|
||||
invoke-virtual {v0, v1}, Landroid/text/SpannableStringBuilder;->append(C)Landroid/text/SpannableStringBuilder;
|
||||
|
||||
invoke-virtual {v0, p1}, Landroid/text/SpannableStringBuilder;->append(Ljava/lang/CharSequence;)Landroid/text/SpannableStringBuilder;
|
||||
|
||||
const/16 v1, 0x202c
|
||||
|
||||
invoke-virtual {v0, v1}, Landroid/text/SpannableStringBuilder;->append(C)Landroid/text/SpannableStringBuilder;
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_4
|
||||
invoke-virtual {v0, p1}, Landroid/text/SpannableStringBuilder;->append(Ljava/lang/CharSequence;)Landroid/text/SpannableStringBuilder;
|
||||
|
||||
:goto_2
|
||||
if-eqz p3, :cond_6
|
||||
|
||||
if-eqz p2, :cond_5
|
||||
|
||||
sget-object p2, Landroidx/core/text/TextDirectionHeuristicsCompat;->RTL:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:cond_5
|
||||
sget-object p2, Landroidx/core/text/TextDirectionHeuristicsCompat;->LTR:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
:goto_3
|
||||
invoke-direct {p0, p1, p2}, Landroidx/core/text/BidiFormatter;->markAfter(Ljava/lang/CharSequence;Landroidx/core/text/TextDirectionHeuristicCompat;)Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {v0, p1}, Landroid/text/SpannableStringBuilder;->append(Ljava/lang/CharSequence;)Landroid/text/SpannableStringBuilder;
|
||||
|
||||
:cond_6
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public unicodeWrap(Ljava/lang/CharSequence;Z)Ljava/lang/CharSequence;
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/BidiFormatter;->mDefaultTextDirectionHeuristicCompat:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
invoke-virtual {p0, p1, v0, p2}, Landroidx/core/text/BidiFormatter;->unicodeWrap(Ljava/lang/CharSequence;Landroidx/core/text/TextDirectionHeuristicCompat;Z)Ljava/lang/CharSequence;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public unicodeWrap(Ljava/lang/String;)Ljava/lang/String;
|
||||
.locals 2
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/BidiFormatter;->mDefaultTextDirectionHeuristicCompat:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
invoke-virtual {p0, p1, v0, v1}, Landroidx/core/text/BidiFormatter;->unicodeWrap(Ljava/lang/String;Landroidx/core/text/TextDirectionHeuristicCompat;Z)Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public unicodeWrap(Ljava/lang/String;Landroidx/core/text/TextDirectionHeuristicCompat;)Ljava/lang/String;
|
||||
.locals 1
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
invoke-virtual {p0, p1, p2, v0}, Landroidx/core/text/BidiFormatter;->unicodeWrap(Ljava/lang/String;Landroidx/core/text/TextDirectionHeuristicCompat;Z)Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public unicodeWrap(Ljava/lang/String;Landroidx/core/text/TextDirectionHeuristicCompat;Z)Ljava/lang/String;
|
||||
.locals 0
|
||||
|
||||
if-nez p1, :cond_0
|
||||
|
||||
const/4 p1, 0x0
|
||||
|
||||
return-object p1
|
||||
|
||||
:cond_0
|
||||
invoke-virtual {p0, p1, p2, p3}, Landroidx/core/text/BidiFormatter;->unicodeWrap(Ljava/lang/CharSequence;Landroidx/core/text/TextDirectionHeuristicCompat;Z)Ljava/lang/CharSequence;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public unicodeWrap(Ljava/lang/String;Z)Ljava/lang/String;
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/BidiFormatter;->mDefaultTextDirectionHeuristicCompat:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
invoke-virtual {p0, p1, v0, p2}, Landroidx/core/text/BidiFormatter;->unicodeWrap(Ljava/lang/String;Landroidx/core/text/TextDirectionHeuristicCompat;Z)Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
|
@ -1,33 +0,0 @@
|
|||
.class public final Landroidx/core/text/CharSequenceKt;
|
||||
.super Ljava/lang/Object;
|
||||
.source "CharSequence.kt"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static final isDigitsOnly(Ljava/lang/CharSequence;)Z
|
||||
.locals 1
|
||||
|
||||
const-string v0, "$this$isDigitsOnly"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-static {p0}, Landroid/text/TextUtils;->isDigitsOnly(Ljava/lang/CharSequence;)Z
|
||||
|
||||
move-result p0
|
||||
|
||||
return p0
|
||||
.end method
|
||||
|
||||
.method public static final trimmedLength(Ljava/lang/CharSequence;)I
|
||||
.locals 1
|
||||
|
||||
const-string v0, "$this$trimmedLength"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-static {p0}, Landroid/text/TextUtils;->getTrimmedLength(Ljava/lang/CharSequence;)I
|
||||
|
||||
move-result p0
|
||||
|
||||
return p0
|
||||
.end method
|
|
@ -1,140 +0,0 @@
|
|||
.class public final Landroidx/core/text/HtmlCompat;
|
||||
.super Ljava/lang/Object;
|
||||
.source "HtmlCompat.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation build Landroid/annotation/SuppressLint;
|
||||
value = {
|
||||
"InlinedApi"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final FROM_HTML_MODE_COMPACT:I = 0x3f
|
||||
|
||||
.field public static final FROM_HTML_MODE_LEGACY:I = 0x0
|
||||
|
||||
.field public static final FROM_HTML_OPTION_USE_CSS_COLORS:I = 0x100
|
||||
|
||||
.field public static final FROM_HTML_SEPARATOR_LINE_BREAK_BLOCKQUOTE:I = 0x20
|
||||
|
||||
.field public static final FROM_HTML_SEPARATOR_LINE_BREAK_DIV:I = 0x10
|
||||
|
||||
.field public static final FROM_HTML_SEPARATOR_LINE_BREAK_HEADING:I = 0x2
|
||||
|
||||
.field public static final FROM_HTML_SEPARATOR_LINE_BREAK_LIST:I = 0x8
|
||||
|
||||
.field public static final FROM_HTML_SEPARATOR_LINE_BREAK_LIST_ITEM:I = 0x4
|
||||
|
||||
.field public static final FROM_HTML_SEPARATOR_LINE_BREAK_PARAGRAPH:I = 0x1
|
||||
|
||||
.field public static final TO_HTML_PARAGRAPH_LINES_CONSECUTIVE:I = 0x0
|
||||
|
||||
.field public static final TO_HTML_PARAGRAPH_LINES_INDIVIDUAL:I = 0x1
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static fromHtml(Ljava/lang/String;I)Landroid/text/Spanned;
|
||||
.locals 2
|
||||
.param p0 # Ljava/lang/String;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x18
|
||||
|
||||
if-lt v0, v1, :cond_0
|
||||
|
||||
invoke-static {p0, p1}, Landroid/text/Html;->fromHtml(Ljava/lang/String;I)Landroid/text/Spanned;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
|
||||
:cond_0
|
||||
invoke-static {p0}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static fromHtml(Ljava/lang/String;ILandroid/text/Html$ImageGetter;Landroid/text/Html$TagHandler;)Landroid/text/Spanned;
|
||||
.locals 2
|
||||
.param p0 # Ljava/lang/String;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p2 # Landroid/text/Html$ImageGetter;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p3 # Landroid/text/Html$TagHandler;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x18
|
||||
|
||||
if-lt v0, v1, :cond_0
|
||||
|
||||
invoke-static {p0, p1, p2, p3}, Landroid/text/Html;->fromHtml(Ljava/lang/String;ILandroid/text/Html$ImageGetter;Landroid/text/Html$TagHandler;)Landroid/text/Spanned;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
|
||||
:cond_0
|
||||
invoke-static {p0, p2, p3}, Landroid/text/Html;->fromHtml(Ljava/lang/String;Landroid/text/Html$ImageGetter;Landroid/text/Html$TagHandler;)Landroid/text/Spanned;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static toHtml(Landroid/text/Spanned;I)Ljava/lang/String;
|
||||
.locals 2
|
||||
.param p0 # Landroid/text/Spanned;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x18
|
||||
|
||||
if-lt v0, v1, :cond_0
|
||||
|
||||
invoke-static {p0, p1}, Landroid/text/Html;->toHtml(Landroid/text/Spanned;I)Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
|
||||
:cond_0
|
||||
invoke-static {p0}, Landroid/text/Html;->toHtml(Landroid/text/Spanned;)Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
.end method
|
|
@ -1,107 +0,0 @@
|
|||
.class public final Landroidx/core/text/HtmlKt;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Html.kt"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static final parseAsHtml(Ljava/lang/String;ILandroid/text/Html$ImageGetter;Landroid/text/Html$TagHandler;)Landroid/text/Spanned;
|
||||
.locals 1
|
||||
|
||||
const-string v0, "$this$parseAsHtml"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-static {p0, p1, p2, p3}, Landroidx/core/text/HtmlCompat;->fromHtml(Ljava/lang/String;ILandroid/text/Html$ImageGetter;Landroid/text/Html$TagHandler;)Landroid/text/Spanned;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
const-string p1, "HtmlCompat.fromHtml(this\u2026 imageGetter, tagHandler)"
|
||||
|
||||
invoke-static {p0, p1}, Ly/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static synthetic parseAsHtml$default(Ljava/lang/String;ILandroid/text/Html$ImageGetter;Landroid/text/Html$TagHandler;ILjava/lang/Object;)Landroid/text/Spanned;
|
||||
.locals 1
|
||||
|
||||
and-int/lit8 p5, p4, 0x1
|
||||
|
||||
if-eqz p5, :cond_0
|
||||
|
||||
const/4 p1, 0x0
|
||||
|
||||
:cond_0
|
||||
and-int/lit8 p5, p4, 0x2
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
if-eqz p5, :cond_1
|
||||
|
||||
move-object p2, v0
|
||||
|
||||
:cond_1
|
||||
and-int/lit8 p4, p4, 0x4
|
||||
|
||||
if-eqz p4, :cond_2
|
||||
|
||||
move-object p3, v0
|
||||
|
||||
:cond_2
|
||||
const-string p4, "$this$parseAsHtml"
|
||||
|
||||
invoke-static {p0, p4}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-static {p0, p1, p2, p3}, Landroidx/core/text/HtmlCompat;->fromHtml(Ljava/lang/String;ILandroid/text/Html$ImageGetter;Landroid/text/Html$TagHandler;)Landroid/text/Spanned;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
const-string p1, "HtmlCompat.fromHtml(this\u2026 imageGetter, tagHandler)"
|
||||
|
||||
invoke-static {p0, p1}, Ly/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static final toHtml(Landroid/text/Spanned;I)Ljava/lang/String;
|
||||
.locals 1
|
||||
|
||||
const-string v0, "$this$toHtml"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-static {p0, p1}, Landroidx/core/text/HtmlCompat;->toHtml(Landroid/text/Spanned;I)Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
const-string p1, "HtmlCompat.toHtml(this, option)"
|
||||
|
||||
invoke-static {p0, p1}, Ly/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static synthetic toHtml$default(Landroid/text/Spanned;IILjava/lang/Object;)Ljava/lang/String;
|
||||
.locals 0
|
||||
|
||||
and-int/lit8 p2, p2, 0x1
|
||||
|
||||
if-eqz p2, :cond_0
|
||||
|
||||
const/4 p1, 0x0
|
||||
|
||||
:cond_0
|
||||
const-string p2, "$this$toHtml"
|
||||
|
||||
invoke-static {p0, p2}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-static {p0, p1}, Landroidx/core/text/HtmlCompat;->toHtml(Landroid/text/Spanned;I)Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
const-string p1, "HtmlCompat.toHtml(this, option)"
|
||||
|
||||
invoke-static {p0, p1}, Ly/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
return-object p0
|
||||
.end method
|
|
@ -1,253 +0,0 @@
|
|||
.class public final Landroidx/core/text/ICUCompat;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ICUCompat.java"
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final TAG:Ljava/lang/String; = "ICUCompat"
|
||||
|
||||
.field public static sAddLikelySubtagsMethod:Ljava/lang/reflect/Method;
|
||||
|
||||
.field public static sGetScriptMethod:Ljava/lang/reflect/Method;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 5
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x18
|
||||
|
||||
if-ge v0, v1, :cond_0
|
||||
|
||||
:try_start_0
|
||||
const-string v0, "libcore.icu.ICU"
|
||||
|
||||
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
const-string v1, "addLikelySubtags"
|
||||
|
||||
const/4 v2, 0x1
|
||||
|
||||
new-array v2, v2, [Ljava/lang/Class;
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
const-class v4, Ljava/util/Locale;
|
||||
|
||||
aput-object v4, v2, v3
|
||||
|
||||
invoke-virtual {v0, v1, v2}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
sput-object v0, Landroidx/core/text/ICUCompat;->sAddLikelySubtagsMethod:Ljava/lang/reflect/Method;
|
||||
:try_end_0
|
||||
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catch_0
|
||||
move-exception v0
|
||||
|
||||
new-instance v1, Ljava/lang/IllegalStateException;
|
||||
|
||||
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/Throwable;)V
|
||||
|
||||
throw v1
|
||||
|
||||
:cond_0
|
||||
:goto_0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static addLikelySubtags(Ljava/util/Locale;)Ljava/lang/String;
|
||||
.locals 4
|
||||
|
||||
const-string v0, "ICUCompat"
|
||||
|
||||
invoke-virtual {p0}, Ljava/util/Locale;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
:try_start_0
|
||||
sget-object v1, Landroidx/core/text/ICUCompat;->sAddLikelySubtagsMethod:Ljava/lang/reflect/Method;
|
||||
|
||||
if-eqz v1, :cond_0
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
new-array v1, v1, [Ljava/lang/Object;
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
aput-object p0, v1, v2
|
||||
|
||||
sget-object v2, Landroidx/core/text/ICUCompat;->sAddLikelySubtagsMethod:Ljava/lang/reflect/Method;
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
invoke-virtual {v2, v3, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
check-cast v1, Ljava/lang/String;
|
||||
:try_end_0
|
||||
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1
|
||||
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
|
||||
return-object v1
|
||||
|
||||
:catch_0
|
||||
move-exception v1
|
||||
|
||||
invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/Throwable;)I
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catch_1
|
||||
move-exception v1
|
||||
|
||||
invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/Throwable;)I
|
||||
|
||||
:cond_0
|
||||
:goto_0
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static getScript(Ljava/lang/String;)Ljava/lang/String;
|
||||
.locals 4
|
||||
|
||||
const-string v0, "ICUCompat"
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
:try_start_0
|
||||
sget-object v2, Landroidx/core/text/ICUCompat;->sGetScriptMethod:Ljava/lang/reflect/Method;
|
||||
|
||||
if-eqz v2, :cond_0
|
||||
|
||||
const/4 v2, 0x1
|
||||
|
||||
new-array v2, v2, [Ljava/lang/Object;
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
aput-object p0, v2, v3
|
||||
|
||||
sget-object p0, Landroidx/core/text/ICUCompat;->sGetScriptMethod:Ljava/lang/reflect/Method;
|
||||
|
||||
invoke-virtual {p0, v1, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
check-cast p0, Ljava/lang/String;
|
||||
:try_end_0
|
||||
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1
|
||||
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
|
||||
return-object p0
|
||||
|
||||
:catch_0
|
||||
move-exception p0
|
||||
|
||||
invoke-static {v0, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/Throwable;)I
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catch_1
|
||||
move-exception p0
|
||||
|
||||
invoke-static {v0, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/Throwable;)I
|
||||
|
||||
:cond_0
|
||||
:goto_0
|
||||
return-object v1
|
||||
.end method
|
||||
|
||||
.method public static maximizeAndGetScript(Ljava/util/Locale;)Ljava/lang/String;
|
||||
.locals 4
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
|
||||
const-string v0, "ICUCompat"
|
||||
|
||||
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v2, 0x18
|
||||
|
||||
if-lt v1, v2, :cond_0
|
||||
|
||||
invoke-static {p0}, Landroid/icu/util/ULocale;->forLocale(Ljava/util/Locale;)Landroid/icu/util/ULocale;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
invoke-static {p0}, Landroid/icu/util/ULocale;->addLikelySubtags(Landroid/icu/util/ULocale;)Landroid/icu/util/ULocale;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
invoke-virtual {p0}, Landroid/icu/util/ULocale;->getScript()Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
|
||||
:cond_0
|
||||
const/4 v1, 0x1
|
||||
|
||||
:try_start_0
|
||||
new-array v1, v1, [Ljava/lang/Object;
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
aput-object p0, v1, v2
|
||||
|
||||
sget-object v2, Landroidx/core/text/ICUCompat;->sAddLikelySubtagsMethod:Ljava/lang/reflect/Method;
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
invoke-virtual {v2, v3, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
check-cast v1, Ljava/util/Locale;
|
||||
|
||||
invoke-virtual {v1}, Ljava/util/Locale;->getScript()Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
:try_end_0
|
||||
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_1
|
||||
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
|
||||
return-object p0
|
||||
|
||||
:catch_0
|
||||
move-exception v1
|
||||
|
||||
invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/Throwable;)I
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catch_1
|
||||
move-exception v1
|
||||
|
||||
invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/Throwable;)I
|
||||
|
||||
:goto_0
|
||||
invoke-virtual {p0}, Ljava/util/Locale;->getScript()Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
.end method
|
|
@ -1,22 +0,0 @@
|
|||
.class public final Landroidx/core/text/LocaleKt;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Locale.kt"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static final getLayoutDirection(Ljava/util/Locale;)I
|
||||
.locals 1
|
||||
.annotation build Landroidx/annotation/RequiresApi;
|
||||
value = 0x11
|
||||
.end annotation
|
||||
|
||||
const-string v0, "$this$layoutDirection"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-static {p0}, Landroid/text/TextUtils;->getLayoutDirectionFromLocale(Ljava/util/Locale;)I
|
||||
|
||||
move-result p0
|
||||
|
||||
return p0
|
||||
.end method
|
|
@ -1,128 +0,0 @@
|
|||
.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 public mBreakStrategy:I
|
||||
|
||||
.field public mHyphenationFrequency:I
|
||||
|
||||
.field public final mPaint:Landroid/text/TextPaint;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field public mTextDir:Landroid/text/TextDirectionHeuristic;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Landroid/text/TextPaint;)V
|
||||
.locals 1
|
||||
.param p1 # Landroid/text/TextPaint;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
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-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
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public build()Landroidx/core/text/PrecomputedTextCompat$Params;
|
||||
.locals 5
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
|
||||
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
|
||||
.annotation build Landroidx/annotation/RequiresApi;
|
||||
value = 0x17
|
||||
.end annotation
|
||||
|
||||
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
|
||||
.annotation build Landroidx/annotation/RequiresApi;
|
||||
value = 0x17
|
||||
.end annotation
|
||||
|
||||
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
|
||||
.param p1 # Landroid/text/TextDirectionHeuristic;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation build Landroidx/annotation/RequiresApi;
|
||||
value = 0x12
|
||||
.end annotation
|
||||
|
||||
iput-object p1, p0, Landroidx/core/text/PrecomputedTextCompat$Params$Builder;->mTextDir:Landroid/text/TextDirectionHeuristic;
|
||||
|
||||
return-object p0
|
||||
.end method
|
File diff suppressed because it is too large
Load diff
|
@ -1,90 +0,0 @@
|
|||
.class public Landroidx/core/text/PrecomputedTextCompat$PrecomputedTextFutureTask$PrecomputedTextCallback;
|
||||
.super Ljava/lang/Object;
|
||||
.source "PrecomputedTextCompat.java"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/util/concurrent/Callable;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/core/text/PrecomputedTextCompat$PrecomputedTextFutureTask;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x9
|
||||
name = "PrecomputedTextCallback"
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/lang/Object;",
|
||||
"Ljava/util/concurrent/Callable<",
|
||||
"Landroidx/core/text/PrecomputedTextCompat;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public mParams:Landroidx/core/text/PrecomputedTextCompat$Params;
|
||||
|
||||
.field public mText:Ljava/lang/CharSequence;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Landroidx/core/text/PrecomputedTextCompat$Params;Ljava/lang/CharSequence;)V
|
||||
.locals 0
|
||||
.param p1 # Landroidx/core/text/PrecomputedTextCompat$Params;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p2 # Ljava/lang/CharSequence;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-object p1, p0, Landroidx/core/text/PrecomputedTextCompat$PrecomputedTextFutureTask$PrecomputedTextCallback;->mParams:Landroidx/core/text/PrecomputedTextCompat$Params;
|
||||
|
||||
iput-object p2, p0, Landroidx/core/text/PrecomputedTextCompat$PrecomputedTextFutureTask$PrecomputedTextCallback;->mText:Ljava/lang/CharSequence;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public call()Landroidx/core/text/PrecomputedTextCompat;
|
||||
.locals 2
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/lang/Exception;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/PrecomputedTextCompat$PrecomputedTextFutureTask$PrecomputedTextCallback;->mText:Ljava/lang/CharSequence;
|
||||
|
||||
iget-object v1, p0, Landroidx/core/text/PrecomputedTextCompat$PrecomputedTextFutureTask$PrecomputedTextCallback;->mParams:Landroidx/core/text/PrecomputedTextCompat$Params;
|
||||
|
||||
invoke-static {v0, v1}, Landroidx/core/text/PrecomputedTextCompat;->create(Ljava/lang/CharSequence;Landroidx/core/text/PrecomputedTextCompat$Params;)Landroidx/core/text/PrecomputedTextCompat;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public bridge synthetic call()Ljava/lang/Object;
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/lang/Exception;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
invoke-virtual {p0}, Landroidx/core/text/PrecomputedTextCompat$PrecomputedTextFutureTask$PrecomputedTextCallback;->call()Landroidx/core/text/PrecomputedTextCompat;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
|
@ -1,50 +0,0 @@
|
|||
.class public Landroidx/core/text/PrecomputedTextCompat$PrecomputedTextFutureTask;
|
||||
.super Ljava/util/concurrent/FutureTask;
|
||||
.source "PrecomputedTextCompat.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/core/text/PrecomputedTextCompat;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x9
|
||||
name = "PrecomputedTextFutureTask"
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Landroidx/core/text/PrecomputedTextCompat$PrecomputedTextFutureTask$PrecomputedTextCallback;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/util/concurrent/FutureTask<",
|
||||
"Landroidx/core/text/PrecomputedTextCompat;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Landroidx/core/text/PrecomputedTextCompat$Params;Ljava/lang/CharSequence;)V
|
||||
.locals 1
|
||||
.param p1 # Landroidx/core/text/PrecomputedTextCompat$Params;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p2 # Ljava/lang/CharSequence;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
new-instance v0, Landroidx/core/text/PrecomputedTextCompat$PrecomputedTextFutureTask$PrecomputedTextCallback;
|
||||
|
||||
invoke-direct {v0, p1, p2}, Landroidx/core/text/PrecomputedTextCompat$PrecomputedTextFutureTask$PrecomputedTextCallback;-><init>(Landroidx/core/text/PrecomputedTextCompat$Params;Ljava/lang/CharSequence;)V
|
||||
|
||||
invoke-direct {p0, v0}, Ljava/util/concurrent/FutureTask;-><init>(Ljava/util/concurrent/Callable;)V
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -1,837 +0,0 @@
|
|||
.class public Landroidx/core/text/PrecomputedTextCompat;
|
||||
.super Ljava/lang/Object;
|
||||
.source "PrecomputedTextCompat.java"
|
||||
|
||||
# interfaces
|
||||
.implements Landroid/text/Spannable;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Landroidx/core/text/PrecomputedTextCompat$PrecomputedTextFutureTask;,
|
||||
Landroidx/core/text/PrecomputedTextCompat$Params;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final LINE_FEED:C = '\n'
|
||||
|
||||
.field public static sExecutor:Ljava/util/concurrent/Executor;
|
||||
.annotation build Landroidx/annotation/GuardedBy;
|
||||
value = "sLock"
|
||||
.end annotation
|
||||
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field public static final sLock:Ljava/lang/Object;
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final mParagraphEnds:[I
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field public final mParams:Landroidx/core/text/PrecomputedTextCompat$Params;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field public final mText:Landroid/text/Spannable;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field public final mWrapped:Landroid/text/PrecomputedText;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 1
|
||||
|
||||
new-instance v0, Ljava/lang/Object;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
sput-object v0, Landroidx/core/text/PrecomputedTextCompat;->sLock:Ljava/lang/Object;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(Landroid/text/PrecomputedText;Landroidx/core/text/PrecomputedTextCompat$Params;)V
|
||||
.locals 2
|
||||
.param p1 # Landroid/text/PrecomputedText;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p2 # Landroidx/core/text/PrecomputedTextCompat$Params;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation build Landroidx/annotation/RequiresApi;
|
||||
value = 0x1c
|
||||
.end annotation
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-object p1, p0, Landroidx/core/text/PrecomputedTextCompat;->mText:Landroid/text/Spannable;
|
||||
|
||||
iput-object p2, p0, Landroidx/core/text/PrecomputedTextCompat;->mParams:Landroidx/core/text/PrecomputedTextCompat$Params;
|
||||
|
||||
const/4 p2, 0x0
|
||||
|
||||
iput-object p2, p0, Landroidx/core/text/PrecomputedTextCompat;->mParagraphEnds:[I
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x1d
|
||||
|
||||
if-lt v0, v1, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
move-object p1, p2
|
||||
|
||||
:goto_0
|
||||
iput-object p1, p0, Landroidx/core/text/PrecomputedTextCompat;->mWrapped:Landroid/text/PrecomputedText;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(Ljava/lang/CharSequence;Landroidx/core/text/PrecomputedTextCompat$Params;[I)V
|
||||
.locals 1
|
||||
.param p1 # Ljava/lang/CharSequence;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p2 # Landroidx/core/text/PrecomputedTextCompat$Params;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p3 # [I
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
new-instance v0, Landroid/text/SpannableString;
|
||||
|
||||
invoke-direct {v0, p1}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V
|
||||
|
||||
iput-object v0, p0, Landroidx/core/text/PrecomputedTextCompat;->mText:Landroid/text/Spannable;
|
||||
|
||||
iput-object p2, p0, Landroidx/core/text/PrecomputedTextCompat;->mParams:Landroidx/core/text/PrecomputedTextCompat$Params;
|
||||
|
||||
iput-object p3, p0, Landroidx/core/text/PrecomputedTextCompat;->mParagraphEnds:[I
|
||||
|
||||
const/4 p1, 0x0
|
||||
|
||||
iput-object p1, p0, Landroidx/core/text/PrecomputedTextCompat;->mWrapped:Landroid/text/PrecomputedText;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static create(Ljava/lang/CharSequence;Landroidx/core/text/PrecomputedTextCompat$Params;)Landroidx/core/text/PrecomputedTextCompat;
|
||||
.locals 10
|
||||
.param p0 # Ljava/lang/CharSequence;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p1 # Landroidx/core/text/PrecomputedTextCompat$Params;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation build Landroid/annotation/SuppressLint;
|
||||
value = {
|
||||
"NewApi"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
invoke-static {p0}, Landroidx/core/util/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
invoke-static {p1}, Landroidx/core/util/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
:try_start_0
|
||||
const-string v0, "PrecomputedText"
|
||||
|
||||
invoke-static {v0}, Landroidx/core/os/TraceCompat;->beginSection(Ljava/lang/String;)V
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x1d
|
||||
|
||||
if-lt v0, v1, :cond_0
|
||||
|
||||
iget-object v0, p1, Landroidx/core/text/PrecomputedTextCompat$Params;->mWrapped:Landroid/text/PrecomputedText$Params;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
new-instance v0, Landroidx/core/text/PrecomputedTextCompat;
|
||||
|
||||
iget-object v1, p1, Landroidx/core/text/PrecomputedTextCompat$Params;->mWrapped:Landroid/text/PrecomputedText$Params;
|
||||
|
||||
invoke-static {p0, v1}, Landroid/text/PrecomputedText;->create(Ljava/lang/CharSequence;Landroid/text/PrecomputedText$Params;)Landroid/text/PrecomputedText;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
invoke-direct {v0, p0, p1}, Landroidx/core/text/PrecomputedTextCompat;-><init>(Landroid/text/PrecomputedText;Landroidx/core/text/PrecomputedTextCompat$Params;)V
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
invoke-static {}, Landroidx/core/os/TraceCompat;->endSection()V
|
||||
|
||||
return-object v0
|
||||
|
||||
:cond_0
|
||||
:try_start_1
|
||||
new-instance v0, Ljava/util/ArrayList;
|
||||
|
||||
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
||||
|
||||
invoke-interface {p0}, Ljava/lang/CharSequence;->length()I
|
||||
|
||||
move-result v1
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
:goto_0
|
||||
if-ge v3, v1, :cond_2
|
||||
|
||||
const/16 v4, 0xa
|
||||
|
||||
invoke-static {p0, v4, v3, v1}, Landroid/text/TextUtils;->indexOf(Ljava/lang/CharSequence;CII)I
|
||||
|
||||
move-result v3
|
||||
|
||||
if-gez v3, :cond_1
|
||||
|
||||
move v3, v1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
add-int/lit8 v3, v3, 0x1
|
||||
|
||||
:goto_1
|
||||
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v4
|
||||
|
||||
invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_2
|
||||
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
|
||||
|
||||
move-result v1
|
||||
|
||||
new-array v1, v1, [I
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
:goto_2
|
||||
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
|
||||
|
||||
move-result v4
|
||||
|
||||
if-ge v3, v4, :cond_3
|
||||
|
||||
invoke-virtual {v0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
||||
|
||||
move-result-object v4
|
||||
|
||||
check-cast v4, Ljava/lang/Integer;
|
||||
|
||||
invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I
|
||||
|
||||
move-result v4
|
||||
|
||||
aput v4, v1, v3
|
||||
|
||||
add-int/lit8 v3, v3, 0x1
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_3
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v3, 0x17
|
||||
|
||||
if-lt v0, v3, :cond_4
|
||||
|
||||
invoke-interface {p0}, Ljava/lang/CharSequence;->length()I
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-virtual {p1}, Landroidx/core/text/PrecomputedTextCompat$Params;->getTextPaint()Landroid/text/TextPaint;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
const v4, 0x7fffffff
|
||||
|
||||
invoke-static {p0, v2, v0, v3, v4}, Landroid/text/StaticLayout$Builder;->obtain(Ljava/lang/CharSequence;IILandroid/text/TextPaint;I)Landroid/text/StaticLayout$Builder;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {p1}, Landroidx/core/text/PrecomputedTextCompat$Params;->getBreakStrategy()I
|
||||
|
||||
move-result v2
|
||||
|
||||
invoke-virtual {v0, v2}, Landroid/text/StaticLayout$Builder;->setBreakStrategy(I)Landroid/text/StaticLayout$Builder;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {p1}, Landroidx/core/text/PrecomputedTextCompat$Params;->getHyphenationFrequency()I
|
||||
|
||||
move-result v2
|
||||
|
||||
invoke-virtual {v0, v2}, Landroid/text/StaticLayout$Builder;->setHyphenationFrequency(I)Landroid/text/StaticLayout$Builder;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {p1}, Landroidx/core/text/PrecomputedTextCompat$Params;->getTextDirection()Landroid/text/TextDirectionHeuristic;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
invoke-virtual {v0, v2}, Landroid/text/StaticLayout$Builder;->setTextDirection(Landroid/text/TextDirectionHeuristic;)Landroid/text/StaticLayout$Builder;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Landroid/text/StaticLayout$Builder;->build()Landroid/text/StaticLayout;
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:cond_4
|
||||
new-instance v2, Landroid/text/StaticLayout;
|
||||
|
||||
invoke-virtual {p1}, Landroidx/core/text/PrecomputedTextCompat$Params;->getTextPaint()Landroid/text/TextPaint;
|
||||
|
||||
move-result-object v4
|
||||
|
||||
const v5, 0x7fffffff
|
||||
|
||||
sget-object v6, Landroid/text/Layout$Alignment;->ALIGN_NORMAL:Landroid/text/Layout$Alignment;
|
||||
|
||||
const/high16 v7, 0x3f800000 # 1.0f
|
||||
|
||||
const/4 v8, 0x0
|
||||
|
||||
const/4 v9, 0x0
|
||||
|
||||
move-object v3, p0
|
||||
|
||||
invoke-direct/range {v2 .. v9}, Landroid/text/StaticLayout;-><init>(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZ)V
|
||||
|
||||
:goto_3
|
||||
new-instance v0, Landroidx/core/text/PrecomputedTextCompat;
|
||||
|
||||
invoke-direct {v0, p0, p1, v1}, Landroidx/core/text/PrecomputedTextCompat;-><init>(Ljava/lang/CharSequence;Landroidx/core/text/PrecomputedTextCompat$Params;[I)V
|
||||
:try_end_1
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||||
|
||||
invoke-static {}, Landroidx/core/os/TraceCompat;->endSection()V
|
||||
|
||||
return-object v0
|
||||
|
||||
:catchall_0
|
||||
move-exception p0
|
||||
|
||||
invoke-static {}, Landroidx/core/os/TraceCompat;->endSection()V
|
||||
|
||||
throw p0
|
||||
.end method
|
||||
|
||||
.method public static getTextFuture(Ljava/lang/CharSequence;Landroidx/core/text/PrecomputedTextCompat$Params;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/Future;
|
||||
.locals 1
|
||||
.param p0 # Ljava/lang/CharSequence;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p1 # Landroidx/core/text/PrecomputedTextCompat$Params;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p2 # Ljava/util/concurrent/Executor;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation build Landroidx/annotation/UiThread;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/lang/CharSequence;",
|
||||
"Landroidx/core/text/PrecomputedTextCompat$Params;",
|
||||
"Ljava/util/concurrent/Executor;",
|
||||
")",
|
||||
"Ljava/util/concurrent/Future<",
|
||||
"Landroidx/core/text/PrecomputedTextCompat;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
new-instance v0, Landroidx/core/text/PrecomputedTextCompat$PrecomputedTextFutureTask;
|
||||
|
||||
invoke-direct {v0, p1, p0}, Landroidx/core/text/PrecomputedTextCompat$PrecomputedTextFutureTask;-><init>(Landroidx/core/text/PrecomputedTextCompat$Params;Ljava/lang/CharSequence;)V
|
||||
|
||||
if-nez p2, :cond_1
|
||||
|
||||
sget-object p0, Landroidx/core/text/PrecomputedTextCompat;->sLock:Ljava/lang/Object;
|
||||
|
||||
monitor-enter p0
|
||||
|
||||
:try_start_0
|
||||
sget-object p1, Landroidx/core/text/PrecomputedTextCompat;->sExecutor:Ljava/util/concurrent/Executor;
|
||||
|
||||
if-nez p1, :cond_0
|
||||
|
||||
const/4 p1, 0x1
|
||||
|
||||
invoke-static {p1}, Ljava/util/concurrent/Executors;->newFixedThreadPool(I)Ljava/util/concurrent/ExecutorService;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
sput-object p1, Landroidx/core/text/PrecomputedTextCompat;->sExecutor:Ljava/util/concurrent/Executor;
|
||||
|
||||
:cond_0
|
||||
sget-object p2, Landroidx/core/text/PrecomputedTextCompat;->sExecutor:Ljava/util/concurrent/Executor;
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catchall_0
|
||||
move-exception p1
|
||||
|
||||
monitor-exit p0
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
throw p1
|
||||
|
||||
:cond_1
|
||||
:goto_0
|
||||
invoke-interface {p2, v0}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public charAt(I)C
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/PrecomputedTextCompat;->mText:Landroid/text/Spannable;
|
||||
|
||||
invoke-interface {v0, p1}, Landroid/text/Spannable;->charAt(I)C
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public getParagraphCount()I
|
||||
.locals 2
|
||||
.annotation build Landroid/annotation/SuppressLint;
|
||||
value = {
|
||||
"NewApi"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.annotation build Landroidx/annotation/IntRange;
|
||||
from = 0x0L
|
||||
.end annotation
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x1d
|
||||
|
||||
if-lt v0, v1, :cond_0
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/PrecomputedTextCompat;->mWrapped:Landroid/text/PrecomputedText;
|
||||
|
||||
invoke-virtual {v0}, Landroid/text/PrecomputedText;->getParagraphCount()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Landroidx/core/text/PrecomputedTextCompat;->mParagraphEnds:[I
|
||||
|
||||
array-length v0, v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public getParagraphEnd(I)I
|
||||
.locals 3
|
||||
.param p1 # I
|
||||
.annotation build Landroidx/annotation/IntRange;
|
||||
from = 0x0L
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation build Landroid/annotation/SuppressLint;
|
||||
value = {
|
||||
"NewApi"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.annotation build Landroidx/annotation/IntRange;
|
||||
from = 0x0L
|
||||
.end annotation
|
||||
|
||||
invoke-virtual {p0}, Landroidx/core/text/PrecomputedTextCompat;->getParagraphCount()I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
const-string v2, "paraIndex"
|
||||
|
||||
invoke-static {p1, v1, v0, v2}, Landroidx/core/util/Preconditions;->checkArgumentInRange(IIILjava/lang/String;)I
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x1d
|
||||
|
||||
if-lt v0, v1, :cond_0
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/PrecomputedTextCompat;->mWrapped:Landroid/text/PrecomputedText;
|
||||
|
||||
invoke-virtual {v0, p1}, Landroid/text/PrecomputedText;->getParagraphEnd(I)I
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Landroidx/core/text/PrecomputedTextCompat;->mParagraphEnds:[I
|
||||
|
||||
aget p1, v0, p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public getParagraphStart(I)I
|
||||
.locals 3
|
||||
.param p1 # I
|
||||
.annotation build Landroidx/annotation/IntRange;
|
||||
from = 0x0L
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation build Landroid/annotation/SuppressLint;
|
||||
value = {
|
||||
"NewApi"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.annotation build Landroidx/annotation/IntRange;
|
||||
from = 0x0L
|
||||
.end annotation
|
||||
|
||||
invoke-virtual {p0}, Landroidx/core/text/PrecomputedTextCompat;->getParagraphCount()I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
const-string v2, "paraIndex"
|
||||
|
||||
invoke-static {p1, v1, v0, v2}, Landroidx/core/util/Preconditions;->checkArgumentInRange(IIILjava/lang/String;)I
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v2, 0x1d
|
||||
|
||||
if-lt v0, v2, :cond_0
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/PrecomputedTextCompat;->mWrapped:Landroid/text/PrecomputedText;
|
||||
|
||||
invoke-virtual {v0, p1}, Landroid/text/PrecomputedText;->getParagraphStart(I)I
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
|
||||
:cond_0
|
||||
if-nez p1, :cond_1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
iget-object v0, p0, Landroidx/core/text/PrecomputedTextCompat;->mParagraphEnds:[I
|
||||
|
||||
add-int/lit8 p1, p1, -0x1
|
||||
|
||||
aget v1, v0, p1
|
||||
|
||||
:goto_0
|
||||
return v1
|
||||
.end method
|
||||
|
||||
.method public getParams()Landroidx/core/text/PrecomputedTextCompat$Params;
|
||||
.locals 1
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/PrecomputedTextCompat;->mParams:Landroidx/core/text/PrecomputedTextCompat$Params;
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public getPrecomputedText()Landroid/text/PrecomputedText;
|
||||
.locals 2
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
|
||||
.annotation build Landroidx/annotation/RequiresApi;
|
||||
value = 0x1c
|
||||
.end annotation
|
||||
|
||||
.annotation build Landroidx/annotation/RestrictTo;
|
||||
value = {
|
||||
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/PrecomputedTextCompat;->mText:Landroid/text/Spannable;
|
||||
|
||||
instance-of v1, v0, Landroid/text/PrecomputedText;
|
||||
|
||||
if-eqz v1, :cond_0
|
||||
|
||||
check-cast v0, Landroid/text/PrecomputedText;
|
||||
|
||||
return-object v0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public getSpanEnd(Ljava/lang/Object;)I
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/PrecomputedTextCompat;->mText:Landroid/text/Spannable;
|
||||
|
||||
invoke-interface {v0, p1}, Landroid/text/Spannable;->getSpanEnd(Ljava/lang/Object;)I
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public getSpanFlags(Ljava/lang/Object;)I
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/PrecomputedTextCompat;->mText:Landroid/text/Spannable;
|
||||
|
||||
invoke-interface {v0, p1}, Landroid/text/Spannable;->getSpanFlags(Ljava/lang/Object;)I
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public getSpanStart(Ljava/lang/Object;)I
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/PrecomputedTextCompat;->mText:Landroid/text/Spannable;
|
||||
|
||||
invoke-interface {v0, p1}, Landroid/text/Spannable;->getSpanStart(Ljava/lang/Object;)I
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public getSpans(IILjava/lang/Class;)[Ljava/lang/Object;
|
||||
.locals 2
|
||||
.annotation build Landroid/annotation/SuppressLint;
|
||||
value = {
|
||||
"NewApi"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"<T:",
|
||||
"Ljava/lang/Object;",
|
||||
">(II",
|
||||
"Ljava/lang/Class<",
|
||||
"TT;>;)[TT;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x1d
|
||||
|
||||
if-lt v0, v1, :cond_0
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/PrecomputedTextCompat;->mWrapped:Landroid/text/PrecomputedText;
|
||||
|
||||
invoke-virtual {v0, p1, p2, p3}, Landroid/text/PrecomputedText;->getSpans(IILjava/lang/Class;)[Ljava/lang/Object;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Landroidx/core/text/PrecomputedTextCompat;->mText:Landroid/text/Spannable;
|
||||
|
||||
invoke-interface {v0, p1, p2, p3}, Landroid/text/Spannable;->getSpans(IILjava/lang/Class;)[Ljava/lang/Object;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public length()I
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/PrecomputedTextCompat;->mText:Landroid/text/Spannable;
|
||||
|
||||
invoke-interface {v0}, Landroid/text/Spannable;->length()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public nextSpanTransition(IILjava/lang/Class;)I
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/PrecomputedTextCompat;->mText:Landroid/text/Spannable;
|
||||
|
||||
invoke-interface {v0, p1, p2, p3}, Landroid/text/Spannable;->nextSpanTransition(IILjava/lang/Class;)I
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public removeSpan(Ljava/lang/Object;)V
|
||||
.locals 2
|
||||
.annotation build Landroid/annotation/SuppressLint;
|
||||
value = {
|
||||
"NewApi"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
instance-of v0, p1, Landroid/text/style/MetricAffectingSpan;
|
||||
|
||||
if-nez v0, :cond_1
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x1d
|
||||
|
||||
if-lt v0, v1, :cond_0
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/PrecomputedTextCompat;->mWrapped:Landroid/text/PrecomputedText;
|
||||
|
||||
invoke-virtual {v0, p1}, Landroid/text/PrecomputedText;->removeSpan(Ljava/lang/Object;)V
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Landroidx/core/text/PrecomputedTextCompat;->mText:Landroid/text/Spannable;
|
||||
|
||||
invoke-interface {v0, p1}, Landroid/text/Spannable;->removeSpan(Ljava/lang/Object;)V
|
||||
|
||||
:goto_0
|
||||
return-void
|
||||
|
||||
:cond_1
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
const-string v0, "MetricAffectingSpan can not be removed from PrecomputedText."
|
||||
|
||||
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public setSpan(Ljava/lang/Object;III)V
|
||||
.locals 2
|
||||
.annotation build Landroid/annotation/SuppressLint;
|
||||
value = {
|
||||
"NewApi"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
instance-of v0, p1, Landroid/text/style/MetricAffectingSpan;
|
||||
|
||||
if-nez v0, :cond_1
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x1d
|
||||
|
||||
if-lt v0, v1, :cond_0
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/PrecomputedTextCompat;->mWrapped:Landroid/text/PrecomputedText;
|
||||
|
||||
invoke-virtual {v0, p1, p2, p3, p4}, Landroid/text/PrecomputedText;->setSpan(Ljava/lang/Object;III)V
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Landroidx/core/text/PrecomputedTextCompat;->mText:Landroid/text/Spannable;
|
||||
|
||||
invoke-interface {v0, p1, p2, p3, p4}, Landroid/text/Spannable;->setSpan(Ljava/lang/Object;III)V
|
||||
|
||||
:goto_0
|
||||
return-void
|
||||
|
||||
:cond_1
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
const-string p2, "MetricAffectingSpan can not be set to PrecomputedText."
|
||||
|
||||
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public subSequence(II)Ljava/lang/CharSequence;
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/PrecomputedTextCompat;->mText:Landroid/text/Spannable;
|
||||
|
||||
invoke-interface {v0, p1, p2}, Landroid/text/Spannable;->subSequence(II)Ljava/lang/CharSequence;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public toString()Ljava/lang/String;
|
||||
.locals 1
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/PrecomputedTextCompat;->mText:Landroid/text/Spannable;
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
|
@ -1,552 +0,0 @@
|
|||
.class public final Landroidx/core/text/SpannableStringBuilderKt;
|
||||
.super Ljava/lang/Object;
|
||||
.source "SpannableStringBuilder.kt"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static final backgroundColor(Landroid/text/SpannableStringBuilder;ILkotlin/jvm/functions/Function1;)Landroid/text/SpannableStringBuilder;
|
||||
.locals 2
|
||||
.param p1 # I
|
||||
.annotation build Landroidx/annotation/ColorInt;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Landroid/text/SpannableStringBuilder;",
|
||||
"I",
|
||||
"Lkotlin/jvm/functions/Function1<",
|
||||
"-",
|
||||
"Landroid/text/SpannableStringBuilder;",
|
||||
"Lkotlin/Unit;",
|
||||
">;)",
|
||||
"Landroid/text/SpannableStringBuilder;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const-string v0, "$this$backgroundColor"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "builderAction"
|
||||
|
||||
invoke-static {p2, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
new-instance v0, Landroid/text/style/BackgroundColorSpan;
|
||||
|
||||
invoke-direct {v0, p1}, Landroid/text/style/BackgroundColorSpan;-><init>(I)V
|
||||
|
||||
invoke-virtual {p0}, Landroid/text/SpannableStringBuilder;->length()I
|
||||
|
||||
move-result p1
|
||||
|
||||
invoke-interface {p2, p0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
invoke-virtual {p0}, Landroid/text/SpannableStringBuilder;->length()I
|
||||
|
||||
move-result p2
|
||||
|
||||
const/16 v1, 0x11
|
||||
|
||||
invoke-virtual {p0, v0, p1, p2, v1}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static final bold(Landroid/text/SpannableStringBuilder;Lkotlin/jvm/functions/Function1;)Landroid/text/SpannableStringBuilder;
|
||||
.locals 3
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Landroid/text/SpannableStringBuilder;",
|
||||
"Lkotlin/jvm/functions/Function1<",
|
||||
"-",
|
||||
"Landroid/text/SpannableStringBuilder;",
|
||||
"Lkotlin/Unit;",
|
||||
">;)",
|
||||
"Landroid/text/SpannableStringBuilder;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const-string v0, "$this$bold"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "builderAction"
|
||||
|
||||
invoke-static {p1, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
new-instance v0, Landroid/text/style/StyleSpan;
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
invoke-direct {v0, v1}, Landroid/text/style/StyleSpan;-><init>(I)V
|
||||
|
||||
invoke-virtual {p0}, Landroid/text/SpannableStringBuilder;->length()I
|
||||
|
||||
move-result v1
|
||||
|
||||
invoke-interface {p1, p0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
invoke-virtual {p0}, Landroid/text/SpannableStringBuilder;->length()I
|
||||
|
||||
move-result p1
|
||||
|
||||
const/16 v2, 0x11
|
||||
|
||||
invoke-virtual {p0, v0, v1, p1, v2}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static final buildSpannedString(Lkotlin/jvm/functions/Function1;)Landroid/text/SpannedString;
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Lkotlin/jvm/functions/Function1<",
|
||||
"-",
|
||||
"Landroid/text/SpannableStringBuilder;",
|
||||
"Lkotlin/Unit;",
|
||||
">;)",
|
||||
"Landroid/text/SpannedString;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const-string v0, "builderAction"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
new-instance v0, Landroid/text/SpannableStringBuilder;
|
||||
|
||||
invoke-direct {v0}, Landroid/text/SpannableStringBuilder;-><init>()V
|
||||
|
||||
invoke-interface {p0, v0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
new-instance p0, Landroid/text/SpannedString;
|
||||
|
||||
invoke-direct {p0, v0}, Landroid/text/SpannedString;-><init>(Ljava/lang/CharSequence;)V
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static final color(Landroid/text/SpannableStringBuilder;ILkotlin/jvm/functions/Function1;)Landroid/text/SpannableStringBuilder;
|
||||
.locals 2
|
||||
.param p1 # I
|
||||
.annotation build Landroidx/annotation/ColorInt;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Landroid/text/SpannableStringBuilder;",
|
||||
"I",
|
||||
"Lkotlin/jvm/functions/Function1<",
|
||||
"-",
|
||||
"Landroid/text/SpannableStringBuilder;",
|
||||
"Lkotlin/Unit;",
|
||||
">;)",
|
||||
"Landroid/text/SpannableStringBuilder;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const-string v0, "$this$color"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "builderAction"
|
||||
|
||||
invoke-static {p2, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
new-instance v0, Landroid/text/style/ForegroundColorSpan;
|
||||
|
||||
invoke-direct {v0, p1}, Landroid/text/style/ForegroundColorSpan;-><init>(I)V
|
||||
|
||||
invoke-virtual {p0}, Landroid/text/SpannableStringBuilder;->length()I
|
||||
|
||||
move-result p1
|
||||
|
||||
invoke-interface {p2, p0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
invoke-virtual {p0}, Landroid/text/SpannableStringBuilder;->length()I
|
||||
|
||||
move-result p2
|
||||
|
||||
const/16 v1, 0x11
|
||||
|
||||
invoke-virtual {p0, v0, p1, p2, v1}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static final inSpans(Landroid/text/SpannableStringBuilder;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)Landroid/text/SpannableStringBuilder;
|
||||
.locals 2
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Landroid/text/SpannableStringBuilder;",
|
||||
"Ljava/lang/Object;",
|
||||
"Lkotlin/jvm/functions/Function1<",
|
||||
"-",
|
||||
"Landroid/text/SpannableStringBuilder;",
|
||||
"Lkotlin/Unit;",
|
||||
">;)",
|
||||
"Landroid/text/SpannableStringBuilder;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const-string v0, "$this$inSpans"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "span"
|
||||
|
||||
invoke-static {p1, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "builderAction"
|
||||
|
||||
invoke-static {p2, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-virtual {p0}, Landroid/text/SpannableStringBuilder;->length()I
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-interface {p2, p0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
invoke-virtual {p0}, Landroid/text/SpannableStringBuilder;->length()I
|
||||
|
||||
move-result p2
|
||||
|
||||
const/16 v1, 0x11
|
||||
|
||||
invoke-virtual {p0, p1, v0, p2, v1}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static final inSpans(Landroid/text/SpannableStringBuilder;[Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)Landroid/text/SpannableStringBuilder;
|
||||
.locals 5
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Landroid/text/SpannableStringBuilder;",
|
||||
"[",
|
||||
"Ljava/lang/Object;",
|
||||
"Lkotlin/jvm/functions/Function1<",
|
||||
"-",
|
||||
"Landroid/text/SpannableStringBuilder;",
|
||||
"Lkotlin/Unit;",
|
||||
">;)",
|
||||
"Landroid/text/SpannableStringBuilder;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const-string v0, "$this$inSpans"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "spans"
|
||||
|
||||
invoke-static {p1, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "builderAction"
|
||||
|
||||
invoke-static {p2, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-virtual {p0}, Landroid/text/SpannableStringBuilder;->length()I
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-interface {p2, p0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
array-length p2, p1
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
:goto_0
|
||||
if-ge v1, p2, :cond_0
|
||||
|
||||
aget-object v2, p1, v1
|
||||
|
||||
invoke-virtual {p0}, Landroid/text/SpannableStringBuilder;->length()I
|
||||
|
||||
move-result v3
|
||||
|
||||
const/16 v4, 0x11
|
||||
|
||||
invoke-virtual {p0, v2, v0, v3, v4}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V
|
||||
|
||||
add-int/lit8 v1, v1, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static final italic(Landroid/text/SpannableStringBuilder;Lkotlin/jvm/functions/Function1;)Landroid/text/SpannableStringBuilder;
|
||||
.locals 3
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Landroid/text/SpannableStringBuilder;",
|
||||
"Lkotlin/jvm/functions/Function1<",
|
||||
"-",
|
||||
"Landroid/text/SpannableStringBuilder;",
|
||||
"Lkotlin/Unit;",
|
||||
">;)",
|
||||
"Landroid/text/SpannableStringBuilder;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const-string v0, "$this$italic"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "builderAction"
|
||||
|
||||
invoke-static {p1, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
new-instance v0, Landroid/text/style/StyleSpan;
|
||||
|
||||
const/4 v1, 0x2
|
||||
|
||||
invoke-direct {v0, v1}, Landroid/text/style/StyleSpan;-><init>(I)V
|
||||
|
||||
invoke-virtual {p0}, Landroid/text/SpannableStringBuilder;->length()I
|
||||
|
||||
move-result v1
|
||||
|
||||
invoke-interface {p1, p0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
invoke-virtual {p0}, Landroid/text/SpannableStringBuilder;->length()I
|
||||
|
||||
move-result p1
|
||||
|
||||
const/16 v2, 0x11
|
||||
|
||||
invoke-virtual {p0, v0, v1, p1, v2}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static final scale(Landroid/text/SpannableStringBuilder;FLkotlin/jvm/functions/Function1;)Landroid/text/SpannableStringBuilder;
|
||||
.locals 2
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Landroid/text/SpannableStringBuilder;",
|
||||
"F",
|
||||
"Lkotlin/jvm/functions/Function1<",
|
||||
"-",
|
||||
"Landroid/text/SpannableStringBuilder;",
|
||||
"Lkotlin/Unit;",
|
||||
">;)",
|
||||
"Landroid/text/SpannableStringBuilder;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const-string v0, "$this$scale"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "builderAction"
|
||||
|
||||
invoke-static {p2, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
new-instance v0, Landroid/text/style/RelativeSizeSpan;
|
||||
|
||||
invoke-direct {v0, p1}, Landroid/text/style/RelativeSizeSpan;-><init>(F)V
|
||||
|
||||
invoke-virtual {p0}, Landroid/text/SpannableStringBuilder;->length()I
|
||||
|
||||
move-result p1
|
||||
|
||||
invoke-interface {p2, p0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
invoke-virtual {p0}, Landroid/text/SpannableStringBuilder;->length()I
|
||||
|
||||
move-result p2
|
||||
|
||||
const/16 v1, 0x11
|
||||
|
||||
invoke-virtual {p0, v0, p1, p2, v1}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static final strikeThrough(Landroid/text/SpannableStringBuilder;Lkotlin/jvm/functions/Function1;)Landroid/text/SpannableStringBuilder;
|
||||
.locals 3
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Landroid/text/SpannableStringBuilder;",
|
||||
"Lkotlin/jvm/functions/Function1<",
|
||||
"-",
|
||||
"Landroid/text/SpannableStringBuilder;",
|
||||
"Lkotlin/Unit;",
|
||||
">;)",
|
||||
"Landroid/text/SpannableStringBuilder;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const-string v0, "$this$strikeThrough"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "builderAction"
|
||||
|
||||
invoke-static {p1, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
new-instance v0, Landroid/text/style/StrikethroughSpan;
|
||||
|
||||
invoke-direct {v0}, Landroid/text/style/StrikethroughSpan;-><init>()V
|
||||
|
||||
invoke-virtual {p0}, Landroid/text/SpannableStringBuilder;->length()I
|
||||
|
||||
move-result v1
|
||||
|
||||
invoke-interface {p1, p0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
invoke-virtual {p0}, Landroid/text/SpannableStringBuilder;->length()I
|
||||
|
||||
move-result p1
|
||||
|
||||
const/16 v2, 0x11
|
||||
|
||||
invoke-virtual {p0, v0, v1, p1, v2}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static final subscript(Landroid/text/SpannableStringBuilder;Lkotlin/jvm/functions/Function1;)Landroid/text/SpannableStringBuilder;
|
||||
.locals 3
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Landroid/text/SpannableStringBuilder;",
|
||||
"Lkotlin/jvm/functions/Function1<",
|
||||
"-",
|
||||
"Landroid/text/SpannableStringBuilder;",
|
||||
"Lkotlin/Unit;",
|
||||
">;)",
|
||||
"Landroid/text/SpannableStringBuilder;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const-string v0, "$this$subscript"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "builderAction"
|
||||
|
||||
invoke-static {p1, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
new-instance v0, Landroid/text/style/SubscriptSpan;
|
||||
|
||||
invoke-direct {v0}, Landroid/text/style/SubscriptSpan;-><init>()V
|
||||
|
||||
invoke-virtual {p0}, Landroid/text/SpannableStringBuilder;->length()I
|
||||
|
||||
move-result v1
|
||||
|
||||
invoke-interface {p1, p0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
invoke-virtual {p0}, Landroid/text/SpannableStringBuilder;->length()I
|
||||
|
||||
move-result p1
|
||||
|
||||
const/16 v2, 0x11
|
||||
|
||||
invoke-virtual {p0, v0, v1, p1, v2}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static final superscript(Landroid/text/SpannableStringBuilder;Lkotlin/jvm/functions/Function1;)Landroid/text/SpannableStringBuilder;
|
||||
.locals 3
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Landroid/text/SpannableStringBuilder;",
|
||||
"Lkotlin/jvm/functions/Function1<",
|
||||
"-",
|
||||
"Landroid/text/SpannableStringBuilder;",
|
||||
"Lkotlin/Unit;",
|
||||
">;)",
|
||||
"Landroid/text/SpannableStringBuilder;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const-string v0, "$this$superscript"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "builderAction"
|
||||
|
||||
invoke-static {p1, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
new-instance v0, Landroid/text/style/SuperscriptSpan;
|
||||
|
||||
invoke-direct {v0}, Landroid/text/style/SuperscriptSpan;-><init>()V
|
||||
|
||||
invoke-virtual {p0}, Landroid/text/SpannableStringBuilder;->length()I
|
||||
|
||||
move-result v1
|
||||
|
||||
invoke-interface {p1, p0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
invoke-virtual {p0}, Landroid/text/SpannableStringBuilder;->length()I
|
||||
|
||||
move-result p1
|
||||
|
||||
const/16 v2, 0x11
|
||||
|
||||
invoke-virtual {p0, v0, v1, p1, v2}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static final underline(Landroid/text/SpannableStringBuilder;Lkotlin/jvm/functions/Function1;)Landroid/text/SpannableStringBuilder;
|
||||
.locals 3
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Landroid/text/SpannableStringBuilder;",
|
||||
"Lkotlin/jvm/functions/Function1<",
|
||||
"-",
|
||||
"Landroid/text/SpannableStringBuilder;",
|
||||
"Lkotlin/Unit;",
|
||||
">;)",
|
||||
"Landroid/text/SpannableStringBuilder;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const-string v0, "$this$underline"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "builderAction"
|
||||
|
||||
invoke-static {p1, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
new-instance v0, Landroid/text/style/UnderlineSpan;
|
||||
|
||||
invoke-direct {v0}, Landroid/text/style/UnderlineSpan;-><init>()V
|
||||
|
||||
invoke-virtual {p0}, Landroid/text/SpannableStringBuilder;->length()I
|
||||
|
||||
move-result v1
|
||||
|
||||
invoke-interface {p1, p0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
invoke-virtual {p0}, Landroid/text/SpannableStringBuilder;->length()I
|
||||
|
||||
move-result p1
|
||||
|
||||
const/16 v2, 0x11
|
||||
|
||||
invoke-virtual {p0, v0, v1, p1, v2}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V
|
||||
|
||||
return-object p0
|
||||
.end method
|
|
@ -1,124 +0,0 @@
|
|||
.class public final Landroidx/core/text/SpannableStringKt;
|
||||
.super Ljava/lang/Object;
|
||||
.source "SpannableString.kt"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static final clearSpans(Landroid/text/Spannable;)V
|
||||
.locals 4
|
||||
.annotation build Landroid/annotation/SuppressLint;
|
||||
value = {
|
||||
"SyntheticAccessor"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const-string v0, "$this$clearSpans"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-interface {p0}, Landroid/text/Spanned;->length()I
|
||||
|
||||
move-result v0
|
||||
|
||||
const-class v1, Ljava/lang/Object;
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
invoke-interface {p0, v2, v0, v1}, Landroid/text/Spanned;->getSpans(IILjava/lang/Class;)[Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
const-string v1, "getSpans(start, end, T::class.java)"
|
||||
|
||||
invoke-static {v0, v1}, Ly/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
array-length v1, v0
|
||||
|
||||
:goto_0
|
||||
if-ge v2, v1, :cond_0
|
||||
|
||||
aget-object v3, v0, v2
|
||||
|
||||
invoke-interface {p0, v3}, Landroid/text/Spannable;->removeSpan(Ljava/lang/Object;)V
|
||||
|
||||
add-int/lit8 v2, v2, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static final set(Landroid/text/Spannable;IILjava/lang/Object;)V
|
||||
.locals 1
|
||||
|
||||
const-string v0, "$this$set"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "span"
|
||||
|
||||
invoke-static {p3, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const/16 v0, 0x11
|
||||
|
||||
invoke-interface {p0, p3, p1, p2, v0}, Landroid/text/Spannable;->setSpan(Ljava/lang/Object;III)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static final set(Landroid/text/Spannable;Lkotlin/ranges/IntRange;Ljava/lang/Object;)V
|
||||
.locals 2
|
||||
|
||||
const-string v0, "$this$set"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "range"
|
||||
|
||||
invoke-static {p1, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "span"
|
||||
|
||||
invoke-static {p2, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-virtual {p1}, Lkotlin/ranges/IntRange;->getStart()Ljava/lang/Integer;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-virtual {p1}, Lkotlin/ranges/IntRange;->getEndInclusive()Ljava/lang/Integer;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I
|
||||
|
||||
move-result p1
|
||||
|
||||
const/16 v1, 0x11
|
||||
|
||||
invoke-interface {p0, p2, v0, p1, v1}, Landroid/text/Spannable;->setSpan(Ljava/lang/Object;III)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static final toSpannable(Ljava/lang/CharSequence;)Landroid/text/Spannable;
|
||||
.locals 1
|
||||
|
||||
const-string v0, "$this$toSpannable"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-static {p0}, Landroid/text/SpannableString;->valueOf(Ljava/lang/CharSequence;)Landroid/text/SpannableString;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
const-string v0, "SpannableString.valueOf(this)"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
return-object p0
|
||||
.end method
|
|
@ -1,69 +0,0 @@
|
|||
.class public final Landroidx/core/text/SpannedStringKt;
|
||||
.super Ljava/lang/Object;
|
||||
.source "SpannedString.kt"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static final synthetic getSpans(Landroid/text/Spanned;II)[Ljava/lang/Object;
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"<T:",
|
||||
"Ljava/lang/Object;",
|
||||
">(",
|
||||
"Landroid/text/Spanned;",
|
||||
"II)[TT;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const-string p1, "$this$getSpans"
|
||||
|
||||
invoke-static {p0, p1}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-static {}, Ly/n/c/j;->reifiedOperationMarker()V
|
||||
|
||||
const/4 p0, 0x0
|
||||
|
||||
throw p0
|
||||
.end method
|
||||
|
||||
.method public static synthetic getSpans$default(Landroid/text/Spanned;IIILjava/lang/Object;)[Ljava/lang/Object;
|
||||
.locals 0
|
||||
|
||||
and-int/lit8 p1, p3, 0x1
|
||||
|
||||
and-int/lit8 p1, p3, 0x2
|
||||
|
||||
if-eqz p1, :cond_0
|
||||
|
||||
invoke-interface {p0}, Landroid/text/Spanned;->length()I
|
||||
|
||||
:cond_0
|
||||
const-string p1, "$this$getSpans"
|
||||
|
||||
invoke-static {p0, p1}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-static {}, Ly/n/c/j;->reifiedOperationMarker()V
|
||||
|
||||
const/4 p0, 0x0
|
||||
|
||||
throw p0
|
||||
.end method
|
||||
|
||||
.method public static final toSpanned(Ljava/lang/CharSequence;)Landroid/text/Spanned;
|
||||
.locals 1
|
||||
|
||||
const-string v0, "$this$toSpanned"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-static {p0}, Landroid/text/SpannedString;->valueOf(Ljava/lang/CharSequence;)Landroid/text/SpannedString;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
const-string v0, "SpannedString.valueOf(this)"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
return-object p0
|
||||
.end method
|
|
@ -1,23 +0,0 @@
|
|||
.class public final Landroidx/core/text/StringKt;
|
||||
.super Ljava/lang/Object;
|
||||
.source "String.kt"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static final htmlEncode(Ljava/lang/String;)Ljava/lang/String;
|
||||
.locals 1
|
||||
|
||||
const-string v0, "$this$htmlEncode"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-static {p0}, Landroid/text/TextUtils;->htmlEncode(Ljava/lang/String;)Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
const-string v0, "TextUtils.htmlEncode(this)"
|
||||
|
||||
invoke-static {p0, v0}, Ly/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
return-object p0
|
||||
.end method
|
|
@ -1,11 +0,0 @@
|
|||
.class public interface abstract Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
.super Ljava/lang/Object;
|
||||
.source "TextDirectionHeuristicCompat.java"
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public abstract isRtl(Ljava/lang/CharSequence;II)Z
|
||||
.end method
|
||||
|
||||
.method public abstract isRtl([CII)Z
|
||||
.end method
|
|
@ -1,120 +0,0 @@
|
|||
.class public Landroidx/core/text/TextDirectionHeuristicsCompat$AnyStrong;
|
||||
.super Ljava/lang/Object;
|
||||
.source "TextDirectionHeuristicsCompat.java"
|
||||
|
||||
# interfaces
|
||||
.implements Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionAlgorithm;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/core/text/TextDirectionHeuristicsCompat;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x9
|
||||
name = "AnyStrong"
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final INSTANCE_RTL:Landroidx/core/text/TextDirectionHeuristicsCompat$AnyStrong;
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final mLookForRtl:Z
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 2
|
||||
|
||||
new-instance v0, Landroidx/core/text/TextDirectionHeuristicsCompat$AnyStrong;
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
invoke-direct {v0, v1}, Landroidx/core/text/TextDirectionHeuristicsCompat$AnyStrong;-><init>(Z)V
|
||||
|
||||
sput-object v0, Landroidx/core/text/TextDirectionHeuristicsCompat$AnyStrong;->INSTANCE_RTL:Landroidx/core/text/TextDirectionHeuristicsCompat$AnyStrong;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(Z)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-boolean p1, p0, Landroidx/core/text/TextDirectionHeuristicsCompat$AnyStrong;->mLookForRtl:Z
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public checkRtl(Ljava/lang/CharSequence;II)I
|
||||
.locals 4
|
||||
|
||||
add-int/2addr p3, p2
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
:goto_0
|
||||
if-ge p2, p3, :cond_3
|
||||
|
||||
invoke-interface {p1, p2}, Ljava/lang/CharSequence;->charAt(I)C
|
||||
|
||||
move-result v2
|
||||
|
||||
invoke-static {v2}, Ljava/lang/Character;->getDirectionality(C)B
|
||||
|
||||
move-result v2
|
||||
|
||||
invoke-static {v2}, Landroidx/core/text/TextDirectionHeuristicsCompat;->isRtlText(I)I
|
||||
|
||||
move-result v2
|
||||
|
||||
const/4 v3, 0x1
|
||||
|
||||
if-eqz v2, :cond_1
|
||||
|
||||
if-eq v2, v3, :cond_0
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_0
|
||||
iget-boolean v1, p0, Landroidx/core/text/TextDirectionHeuristicsCompat$AnyStrong;->mLookForRtl:Z
|
||||
|
||||
if-nez v1, :cond_2
|
||||
|
||||
return v3
|
||||
|
||||
:cond_1
|
||||
iget-boolean v1, p0, Landroidx/core/text/TextDirectionHeuristicsCompat$AnyStrong;->mLookForRtl:Z
|
||||
|
||||
if-eqz v1, :cond_2
|
||||
|
||||
return v0
|
||||
|
||||
:cond_2
|
||||
const/4 v1, 0x1
|
||||
|
||||
:goto_1
|
||||
add-int/lit8 p2, p2, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_3
|
||||
if-eqz v1, :cond_4
|
||||
|
||||
iget-boolean p1, p0, Landroidx/core/text/TextDirectionHeuristicsCompat$AnyStrong;->mLookForRtl:Z
|
||||
|
||||
return p1
|
||||
|
||||
:cond_4
|
||||
const/4 p1, 0x2
|
||||
|
||||
return p1
|
||||
.end method
|
|
@ -1,79 +0,0 @@
|
|||
.class public Landroidx/core/text/TextDirectionHeuristicsCompat$FirstStrong;
|
||||
.super Ljava/lang/Object;
|
||||
.source "TextDirectionHeuristicsCompat.java"
|
||||
|
||||
# interfaces
|
||||
.implements Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionAlgorithm;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/core/text/TextDirectionHeuristicsCompat;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x9
|
||||
name = "FirstStrong"
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final INSTANCE:Landroidx/core/text/TextDirectionHeuristicsCompat$FirstStrong;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 1
|
||||
|
||||
new-instance v0, Landroidx/core/text/TextDirectionHeuristicsCompat$FirstStrong;
|
||||
|
||||
invoke-direct {v0}, Landroidx/core/text/TextDirectionHeuristicsCompat$FirstStrong;-><init>()V
|
||||
|
||||
sput-object v0, Landroidx/core/text/TextDirectionHeuristicsCompat$FirstStrong;->INSTANCE:Landroidx/core/text/TextDirectionHeuristicsCompat$FirstStrong;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public checkRtl(Ljava/lang/CharSequence;II)I
|
||||
.locals 2
|
||||
|
||||
add-int/2addr p3, p2
|
||||
|
||||
const/4 v0, 0x2
|
||||
|
||||
const/4 v1, 0x2
|
||||
|
||||
:goto_0
|
||||
if-ge p2, p3, :cond_0
|
||||
|
||||
if-ne v1, v0, :cond_0
|
||||
|
||||
invoke-interface {p1, p2}, Ljava/lang/CharSequence;->charAt(I)C
|
||||
|
||||
move-result v1
|
||||
|
||||
invoke-static {v1}, Ljava/lang/Character;->getDirectionality(C)B
|
||||
|
||||
move-result v1
|
||||
|
||||
invoke-static {v1}, Landroidx/core/text/TextDirectionHeuristicsCompat;->isRtlTextOrFormat(I)I
|
||||
|
||||
move-result v1
|
||||
|
||||
add-int/lit8 p2, p2, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
return v1
|
||||
.end method
|
|
@ -1,19 +0,0 @@
|
|||
.class public interface abstract Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionAlgorithm;
|
||||
.super Ljava/lang/Object;
|
||||
.source "TextDirectionHeuristicsCompat.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/core/text/TextDirectionHeuristicsCompat;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x609
|
||||
name = "TextDirectionAlgorithm"
|
||||
.end annotation
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public abstract checkRtl(Ljava/lang/CharSequence;II)I
|
||||
.end method
|
|
@ -1,124 +0,0 @@
|
|||
.class public abstract Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicImpl;
|
||||
.super Ljava/lang/Object;
|
||||
.source "TextDirectionHeuristicsCompat.java"
|
||||
|
||||
# interfaces
|
||||
.implements Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/core/text/TextDirectionHeuristicsCompat;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x409
|
||||
name = "TextDirectionHeuristicImpl"
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final mAlgorithm:Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionAlgorithm;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionAlgorithm;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-object p1, p0, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicImpl;->mAlgorithm:Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionAlgorithm;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method private doCheck(Ljava/lang/CharSequence;II)Z
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicImpl;->mAlgorithm:Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionAlgorithm;
|
||||
|
||||
invoke-interface {v0, p1, p2, p3}, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionAlgorithm;->checkRtl(Ljava/lang/CharSequence;II)I
|
||||
|
||||
move-result p1
|
||||
|
||||
const/4 p2, 0x1
|
||||
|
||||
if-eqz p1, :cond_1
|
||||
|
||||
if-eq p1, p2, :cond_0
|
||||
|
||||
invoke-virtual {p0}, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicImpl;->defaultIsRtl()Z
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
|
||||
:cond_0
|
||||
const/4 p1, 0x0
|
||||
|
||||
return p1
|
||||
|
||||
:cond_1
|
||||
return p2
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public abstract defaultIsRtl()Z
|
||||
.end method
|
||||
|
||||
.method public isRtl(Ljava/lang/CharSequence;II)Z
|
||||
.locals 1
|
||||
|
||||
if-eqz p1, :cond_1
|
||||
|
||||
if-ltz p2, :cond_1
|
||||
|
||||
if-ltz p3, :cond_1
|
||||
|
||||
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
|
||||
|
||||
move-result v0
|
||||
|
||||
sub-int/2addr v0, p3
|
||||
|
||||
if-lt v0, p2, :cond_1
|
||||
|
||||
iget-object v0, p0, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicImpl;->mAlgorithm:Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionAlgorithm;
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
invoke-virtual {p0}, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicImpl;->defaultIsRtl()Z
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
|
||||
:cond_0
|
||||
invoke-direct {p0, p1, p2, p3}, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicImpl;->doCheck(Ljava/lang/CharSequence;II)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
|
||||
:cond_1
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/IllegalArgumentException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public isRtl([CII)Z
|
||||
.locals 0
|
||||
|
||||
invoke-static {p1}, Ljava/nio/CharBuffer;->wrap([C)Ljava/nio/CharBuffer;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {p0, p1, p2, p3}, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicImpl;->isRtl(Ljava/lang/CharSequence;II)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
|
@ -1,40 +0,0 @@
|
|||
.class public Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicInternal;
|
||||
.super Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicImpl;
|
||||
.source "TextDirectionHeuristicsCompat.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/core/text/TextDirectionHeuristicsCompat;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x9
|
||||
name = "TextDirectionHeuristicInternal"
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final mDefaultIsRtl:Z
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionAlgorithm;Z)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0, p1}, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicImpl;-><init>(Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionAlgorithm;)V
|
||||
|
||||
iput-boolean p2, p0, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicInternal;->mDefaultIsRtl:Z
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public defaultIsRtl()Z
|
||||
.locals 1
|
||||
|
||||
iget-boolean v0, p0, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicInternal;->mDefaultIsRtl:Z
|
||||
|
||||
return v0
|
||||
.end method
|
|
@ -1,68 +0,0 @@
|
|||
.class public Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicLocale;
|
||||
.super Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicImpl;
|
||||
.source "TextDirectionHeuristicsCompat.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/core/text/TextDirectionHeuristicsCompat;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x9
|
||||
name = "TextDirectionHeuristicLocale"
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final INSTANCE:Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicLocale;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 1
|
||||
|
||||
new-instance v0, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicLocale;
|
||||
|
||||
invoke-direct {v0}, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicLocale;-><init>()V
|
||||
|
||||
sput-object v0, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicLocale;->INSTANCE:Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicLocale;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>()V
|
||||
.locals 1
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
invoke-direct {p0, v0}, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicImpl;-><init>(Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionAlgorithm;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public defaultIsRtl()Z
|
||||
.locals 2
|
||||
|
||||
invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-static {v0}, Landroidx/core/text/TextUtilsCompat;->getLayoutDirectionFromLocale(Ljava/util/Locale;)I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
if-ne v0, v1, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v1, 0x0
|
||||
|
||||
:goto_0
|
||||
return v1
|
||||
.end method
|
|
@ -1,160 +0,0 @@
|
|||
.class public final Landroidx/core/text/TextDirectionHeuristicsCompat;
|
||||
.super Ljava/lang/Object;
|
||||
.source "TextDirectionHeuristicsCompat.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicLocale;,
|
||||
Landroidx/core/text/TextDirectionHeuristicsCompat$AnyStrong;,
|
||||
Landroidx/core/text/TextDirectionHeuristicsCompat$FirstStrong;,
|
||||
Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionAlgorithm;,
|
||||
Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicInternal;,
|
||||
Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicImpl;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final ANYRTL_LTR:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
.field public static final FIRSTSTRONG_LTR:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
.field public static final FIRSTSTRONG_RTL:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
.field public static final LOCALE:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
.field public static final LTR:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
.field public static final RTL:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
.field public static final STATE_FALSE:I = 0x1
|
||||
|
||||
.field public static final STATE_TRUE:I = 0x0
|
||||
|
||||
.field public static final STATE_UNKNOWN:I = 0x2
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 4
|
||||
|
||||
new-instance v0, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicInternal;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
invoke-direct {v0, v1, v2}, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicInternal;-><init>(Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionAlgorithm;Z)V
|
||||
|
||||
sput-object v0, Landroidx/core/text/TextDirectionHeuristicsCompat;->LTR:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
new-instance v0, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicInternal;
|
||||
|
||||
const/4 v3, 0x1
|
||||
|
||||
invoke-direct {v0, v1, v3}, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicInternal;-><init>(Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionAlgorithm;Z)V
|
||||
|
||||
sput-object v0, Landroidx/core/text/TextDirectionHeuristicsCompat;->RTL:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
new-instance v0, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicInternal;
|
||||
|
||||
sget-object v1, Landroidx/core/text/TextDirectionHeuristicsCompat$FirstStrong;->INSTANCE:Landroidx/core/text/TextDirectionHeuristicsCompat$FirstStrong;
|
||||
|
||||
invoke-direct {v0, v1, v2}, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicInternal;-><init>(Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionAlgorithm;Z)V
|
||||
|
||||
sput-object v0, Landroidx/core/text/TextDirectionHeuristicsCompat;->FIRSTSTRONG_LTR:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
new-instance v0, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicInternal;
|
||||
|
||||
sget-object v1, Landroidx/core/text/TextDirectionHeuristicsCompat$FirstStrong;->INSTANCE:Landroidx/core/text/TextDirectionHeuristicsCompat$FirstStrong;
|
||||
|
||||
invoke-direct {v0, v1, v3}, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicInternal;-><init>(Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionAlgorithm;Z)V
|
||||
|
||||
sput-object v0, Landroidx/core/text/TextDirectionHeuristicsCompat;->FIRSTSTRONG_RTL:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
new-instance v0, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicInternal;
|
||||
|
||||
sget-object v1, Landroidx/core/text/TextDirectionHeuristicsCompat$AnyStrong;->INSTANCE_RTL:Landroidx/core/text/TextDirectionHeuristicsCompat$AnyStrong;
|
||||
|
||||
invoke-direct {v0, v1, v2}, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicInternal;-><init>(Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionAlgorithm;Z)V
|
||||
|
||||
sput-object v0, Landroidx/core/text/TextDirectionHeuristicsCompat;->ANYRTL_LTR:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
sget-object v0, Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicLocale;->INSTANCE:Landroidx/core/text/TextDirectionHeuristicsCompat$TextDirectionHeuristicLocale;
|
||||
|
||||
sput-object v0, Landroidx/core/text/TextDirectionHeuristicsCompat;->LOCALE:Landroidx/core/text/TextDirectionHeuristicCompat;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static isRtlText(I)I
|
||||
.locals 1
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
if-eqz p0, :cond_1
|
||||
|
||||
if-eq p0, v0, :cond_0
|
||||
|
||||
const/4 v0, 0x2
|
||||
|
||||
if-eq p0, v0, :cond_0
|
||||
|
||||
return v0
|
||||
|
||||
:cond_0
|
||||
const/4 p0, 0x0
|
||||
|
||||
return p0
|
||||
|
||||
:cond_1
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public static isRtlTextOrFormat(I)I
|
||||
.locals 2
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
if-eqz p0, :cond_1
|
||||
|
||||
if-eq p0, v0, :cond_0
|
||||
|
||||
const/4 v1, 0x2
|
||||
|
||||
if-eq p0, v1, :cond_0
|
||||
|
||||
packed-switch p0, :pswitch_data_0
|
||||
|
||||
return v1
|
||||
|
||||
:cond_0
|
||||
:pswitch_0
|
||||
const/4 p0, 0x0
|
||||
|
||||
return p0
|
||||
|
||||
:cond_1
|
||||
:pswitch_1
|
||||
return v0
|
||||
|
||||
nop
|
||||
|
||||
:pswitch_data_0
|
||||
.packed-switch 0xe
|
||||
:pswitch_1
|
||||
:pswitch_1
|
||||
:pswitch_0
|
||||
:pswitch_0
|
||||
.end packed-switch
|
||||
.end method
|
|
@ -1,100 +0,0 @@
|
|||
.class public final Landroidx/core/text/TextUtilsCompat;
|
||||
.super Ljava/lang/Object;
|
||||
.source "TextUtilsCompat.java"
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final ARAB_SCRIPT_SUBTAG:Ljava/lang/String; = "Arab"
|
||||
|
||||
.field public static final HEBR_SCRIPT_SUBTAG:Ljava/lang/String; = "Hebr"
|
||||
|
||||
.field public static final ROOT:Ljava/util/Locale;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 2
|
||||
|
||||
new-instance v0, Ljava/util/Locale;
|
||||
|
||||
const-string v1, ""
|
||||
|
||||
invoke-direct {v0, v1, v1}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
|
||||
|
||||
sput-object v0, Landroidx/core/text/TextUtilsCompat;->ROOT:Ljava/util/Locale;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static getLayoutDirectionFromFirstChar(Ljava/util/Locale;)I
|
||||
.locals 3
|
||||
.param p0 # Ljava/util/Locale;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
invoke-virtual {p0, p0}, Ljava/util/Locale;->getDisplayName(Ljava/util/Locale;)Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
invoke-virtual {p0, v0}, Ljava/lang/String;->charAt(I)C
|
||||
|
||||
move-result p0
|
||||
|
||||
invoke-static {p0}, Ljava/lang/Character;->getDirectionality(C)B
|
||||
|
||||
move-result p0
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
if-eq p0, v1, :cond_0
|
||||
|
||||
const/4 v2, 0x2
|
||||
|
||||
if-eq p0, v2, :cond_0
|
||||
|
||||
return v0
|
||||
|
||||
:cond_0
|
||||
return v1
|
||||
.end method
|
||||
|
||||
.method public static getLayoutDirectionFromLocale(Ljava/util/Locale;)I
|
||||
.locals 0
|
||||
.param p0 # Ljava/util/Locale;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
invoke-static {p0}, Landroid/text/TextUtils;->getLayoutDirectionFromLocale(Ljava/util/Locale;)I
|
||||
|
||||
move-result p0
|
||||
|
||||
return p0
|
||||
.end method
|
||||
|
||||
.method public static htmlEncode(Ljava/lang/String;)Ljava/lang/String;
|
||||
.locals 0
|
||||
.param p0 # Ljava/lang/String;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
|
||||
invoke-static {p0}, Landroid/text/TextUtils;->htmlEncode(Ljava/lang/String;)Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
.end method
|
|
@ -1,83 +0,0 @@
|
|||
.class public Landroidx/core/text/util/FindAddress$ZipRange;
|
||||
.super Ljava/lang/Object;
|
||||
.source "FindAddress.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/core/text/util/FindAddress;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x9
|
||||
name = "ZipRange"
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public mException1:I
|
||||
|
||||
.field public mException2:I
|
||||
|
||||
.field public mHigh:I
|
||||
|
||||
.field public mLow:I
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(IIII)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput p1, p0, Landroidx/core/text/util/FindAddress$ZipRange;->mLow:I
|
||||
|
||||
iput p2, p0, Landroidx/core/text/util/FindAddress$ZipRange;->mHigh:I
|
||||
|
||||
iput p3, p0, Landroidx/core/text/util/FindAddress$ZipRange;->mException1:I
|
||||
|
||||
iput p4, p0, Landroidx/core/text/util/FindAddress$ZipRange;->mException2:I
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public matches(Ljava/lang/String;)Z
|
||||
.locals 2
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
const/4 v1, 0x2
|
||||
|
||||
invoke-virtual {p1, v0, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-static {p1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
|
||||
|
||||
move-result p1
|
||||
|
||||
iget v1, p0, Landroidx/core/text/util/FindAddress$ZipRange;->mLow:I
|
||||
|
||||
if-gt v1, p1, :cond_0
|
||||
|
||||
iget v1, p0, Landroidx/core/text/util/FindAddress$ZipRange;->mHigh:I
|
||||
|
||||
if-le p1, v1, :cond_1
|
||||
|
||||
:cond_0
|
||||
iget v1, p0, Landroidx/core/text/util/FindAddress$ZipRange;->mException1:I
|
||||
|
||||
if-eq p1, v1, :cond_1
|
||||
|
||||
iget v1, p0, Landroidx/core/text/util/FindAddress$ZipRange;->mException2:I
|
||||
|
||||
if-ne p1, v1, :cond_2
|
||||
|
||||
:cond_1
|
||||
const/4 v0, 0x1
|
||||
|
||||
:cond_2
|
||||
return v0
|
||||
.end method
|
File diff suppressed because it is too large
Load diff
|
@ -1,92 +0,0 @@
|
|||
.class public Landroidx/core/text/util/LinkifyCompat$1;
|
||||
.super Ljava/lang/Object;
|
||||
.source "LinkifyCompat.java"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/util/Comparator;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/core/text/util/LinkifyCompat;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x1
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/lang/Object;",
|
||||
"Ljava/util/Comparator<",
|
||||
"Landroidx/core/text/util/LinkifyCompat$LinkSpec;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public compare(Landroidx/core/text/util/LinkifyCompat$LinkSpec;Landroidx/core/text/util/LinkifyCompat$LinkSpec;)I
|
||||
.locals 4
|
||||
|
||||
iget v0, p1, Landroidx/core/text/util/LinkifyCompat$LinkSpec;->start:I
|
||||
|
||||
iget v1, p2, Landroidx/core/text/util/LinkifyCompat$LinkSpec;->start:I
|
||||
|
||||
const/4 v2, -0x1
|
||||
|
||||
if-ge v0, v1, :cond_0
|
||||
|
||||
return v2
|
||||
|
||||
:cond_0
|
||||
const/4 v3, 0x1
|
||||
|
||||
if-le v0, v1, :cond_1
|
||||
|
||||
return v3
|
||||
|
||||
:cond_1
|
||||
iget p1, p1, Landroidx/core/text/util/LinkifyCompat$LinkSpec;->end:I
|
||||
|
||||
iget p2, p2, Landroidx/core/text/util/LinkifyCompat$LinkSpec;->end:I
|
||||
|
||||
if-ge p1, p2, :cond_2
|
||||
|
||||
return v3
|
||||
|
||||
:cond_2
|
||||
if-le p1, p2, :cond_3
|
||||
|
||||
return v2
|
||||
|
||||
:cond_3
|
||||
const/4 p1, 0x0
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public bridge synthetic compare(Ljava/lang/Object;Ljava/lang/Object;)I
|
||||
.locals 0
|
||||
|
||||
check-cast p1, Landroidx/core/text/util/LinkifyCompat$LinkSpec;
|
||||
|
||||
check-cast p2, Landroidx/core/text/util/LinkifyCompat$LinkSpec;
|
||||
|
||||
invoke-virtual {p0, p1, p2}, Landroidx/core/text/util/LinkifyCompat$1;->compare(Landroidx/core/text/util/LinkifyCompat$LinkSpec;Landroidx/core/text/util/LinkifyCompat$LinkSpec;)I
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
|
@ -1,34 +0,0 @@
|
|||
.class public Landroidx/core/text/util/LinkifyCompat$LinkSpec;
|
||||
.super Ljava/lang/Object;
|
||||
.source "LinkifyCompat.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/core/text/util/LinkifyCompat;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x9
|
||||
name = "LinkSpec"
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public end:I
|
||||
|
||||
.field public frameworkAddedSpan:Landroid/text/style/URLSpan;
|
||||
|
||||
.field public start:I
|
||||
|
||||
.field public url:Ljava/lang/String;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -1,27 +0,0 @@
|
|||
.class public interface abstract annotation Landroidx/core/text/util/LinkifyCompat$LinkifyMask;
|
||||
.super Ljava/lang/Object;
|
||||
.source "LinkifyCompat.java"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/lang/annotation/Annotation;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation build Landroidx/annotation/RestrictTo;
|
||||
value = {
|
||||
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/core/text/util/LinkifyCompat;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x2609
|
||||
name = "LinkifyMask"
|
||||
.end annotation
|
||||
|
||||
.annotation runtime Ljava/lang/annotation/Retention;
|
||||
value = .enum Ljava/lang/annotation/RetentionPolicy;->SOURCE:Ljava/lang/annotation/RetentionPolicy;
|
||||
.end annotation
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue