2019-12-06 03:29:40 +00:00
|
|
|
.class public Landroidx/appcompat/widget/RtlSpacingHelper;
|
2019-07-24 11:27:29 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "RtlSpacingHelper.java"
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final UNDEFINED:I = -0x80000000
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mEnd:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mExplicitLeft:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mExplicitRight:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mIsRelative:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mIsRtl:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mLeft:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mRight:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mStart:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public constructor <init>()V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
iput v0, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mLeft:I
|
|
|
|
|
|
|
|
iput v0, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mRight:I
|
|
|
|
|
|
|
|
const/high16 v1, -0x80000000
|
|
|
|
|
|
|
|
iput v1, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mStart:I
|
|
|
|
|
|
|
|
iput v1, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mEnd:I
|
|
|
|
|
|
|
|
iput v0, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mExplicitLeft:I
|
|
|
|
|
|
|
|
iput v0, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mExplicitRight:I
|
|
|
|
|
|
|
|
iput-boolean v0, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mIsRtl:Z
|
|
|
|
|
|
|
|
iput-boolean v0, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mIsRelative:Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public getEnd()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mIsRtl:Z
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mLeft:I
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget v0, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mRight:I
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getLeft()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mLeft:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getRight()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mRight:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getStart()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mIsRtl:Z
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mRight:I
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget v0, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mLeft:I
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setAbsolute(II)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
iput-boolean v0, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mIsRelative:Z
|
|
|
|
|
|
|
|
const/high16 v0, -0x80000000
|
|
|
|
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mExplicitLeft:I
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mLeft:I
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
if-eq p2, v0, :cond_1
|
|
|
|
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mExplicitRight:I
|
|
|
|
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mRight:I
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setDirection(Z)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mIsRtl:Z
|
|
|
|
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iput-boolean p1, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mIsRtl:Z
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mIsRelative:Z
|
|
|
|
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
|
|
|
|
const/high16 v0, -0x80000000
|
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
|
|
|
iget p1, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mEnd:I
|
|
|
|
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
iget p1, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mExplicitLeft:I
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iput p1, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mLeft:I
|
|
|
|
|
|
|
|
iget p1, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mStart:I
|
|
|
|
|
|
|
|
if-eq p1, v0, :cond_2
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
iget p1, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mExplicitRight:I
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
iput p1, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mRight:I
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_3
|
|
|
|
iget p1, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mStart:I
|
|
|
|
|
|
|
|
if-eq p1, v0, :cond_4
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
iget p1, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mExplicitLeft:I
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
iput p1, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mLeft:I
|
|
|
|
|
|
|
|
iget p1, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mEnd:I
|
|
|
|
|
|
|
|
if-eq p1, v0, :cond_5
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
iget p1, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mExplicitRight:I
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
iput p1, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mRight:I
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_6
|
|
|
|
iget p1, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mExplicitLeft:I
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mLeft:I
|
|
|
|
|
|
|
|
iget p1, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mExplicitRight:I
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mRight:I
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_4
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setRelative(II)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mStart:I
|
|
|
|
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mEnd:I
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
iput-boolean v0, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mIsRelative:Z
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mIsRtl:Z
|
|
|
|
|
|
|
|
const/high16 v1, -0x80000000
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
if-eq p2, v1, :cond_0
|
|
|
|
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mLeft:I
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
if-eq p1, v1, :cond_3
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mRight:I
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_1
|
|
|
|
if-eq p1, v1, :cond_2
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mLeft:I
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
if-eq p2, v1, :cond_3
|
|
|
|
|
|
|
|
iput p2, p0, Landroidx/appcompat/widget/RtlSpacingHelper;->mRight:I
|
|
|
|
|
|
|
|
:cond_3
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
|
|
|
.end method
|