.class public final Lcom/mbridge/msdk/playercommon/exoplayer2/util/RepeatModeUtil; .super Ljava/lang/Object; .source "SourceFile" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/mbridge/msdk/playercommon/exoplayer2/util/RepeatModeUtil$RepeatToggleModes; } .end annotation # static fields .field public static final REPEAT_TOGGLE_MODE_ALL:I = 0x2 .field public static final REPEAT_TOGGLE_MODE_NONE:I = 0x0 .field public static final REPEAT_TOGGLE_MODE_ONE:I = 0x1 # direct methods .method private constructor ()V .locals 0 .line 24 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static getNextRepeatMode(II)I .locals 3 const/4 v0, 0x1 :goto_0 const/4 v1, 0x2 if-gt v0, v1, :cond_1 add-int v1, p0, v0 .line 32 rem-int/lit8 v1, v1, 0x3 .line 33 invoke-static {v1, p1}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/RepeatModeUtil;->isRepeatModeEnabled(II)Z move-result v2 if-eqz v2, :cond_0 return v1 :cond_0 add-int/lit8 v0, v0, 0x1 goto :goto_0 :cond_1 return p0 .end method .method public static isRepeatModeEnabled(II)Z .locals 3 const/4 v0, 0x1 if-eqz p0, :cond_4 const/4 v1, 0x0 if-eq p0, v0, :cond_2 const/4 v2, 0x2 if-eq p0, v2, :cond_0 return v1 :cond_0 and-int/lit8 p0, p1, 0x2 if-eqz p0, :cond_1 goto :goto_0 :cond_1 move v0, v1 :goto_0 return v0 :cond_2 and-int/lit8 p0, p1, 0x1 if-eqz p0, :cond_3 goto :goto_1 :cond_3 move v0, v1 :cond_4 :goto_1 return v0 .end method