- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
36 lines
955 B
Java
36 lines
955 B
Java
package com.mbridge.msdk.playercommon.exoplayer2.util;
|
|
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class RepeatModeUtil {
|
|
public static final int REPEAT_TOGGLE_MODE_ALL = 2;
|
|
public static final int REPEAT_TOGGLE_MODE_NONE = 0;
|
|
public static final int REPEAT_TOGGLE_MODE_ONE = 1;
|
|
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface RepeatToggleModes {
|
|
}
|
|
|
|
public static boolean isRepeatModeEnabled(int i, int i2) {
|
|
if (i != 0) {
|
|
return i != 1 ? i == 2 && (i2 & 2) != 0 : (i2 & 1) != 0;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
private RepeatModeUtil() {
|
|
}
|
|
|
|
public static int getNextRepeatMode(int i, int i2) {
|
|
for (int i3 = 1; i3 <= 2; i3++) {
|
|
int i4 = (i + i3) % 3;
|
|
if (isRepeatModeEnabled(i4, i2)) {
|
|
return i4;
|
|
}
|
|
}
|
|
return i;
|
|
}
|
|
}
|