Rabbit-R1/switch port/java/sources/androidx/media3/exoplayer/ExoTimeoutException.java
2024-05-21 17:08:36 -04:00

32 lines
1.2 KiB
Java

package androidx.media3.exoplayer;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/* loaded from: classes2.dex */
public final class ExoTimeoutException extends RuntimeException {
public static final int TIMEOUT_OPERATION_DETACH_SURFACE = 3;
public static final int TIMEOUT_OPERATION_RELEASE = 1;
public static final int TIMEOUT_OPERATION_SET_FOREGROUND_MODE = 2;
public static final int TIMEOUT_OPERATION_UNDEFINED = 0;
public final int timeoutOperation;
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.LOCAL_VARIABLE, ElementType.TYPE_USE})
@Documented
@Retention(RetentionPolicy.SOURCE)
/* loaded from: classes2.dex */
public @interface TimeoutOperation {
}
private static String getErrorMessage(int i) {
return i != 1 ? i != 2 ? i != 3 ? "Undefined timeout." : "Detaching surface timed out." : "Setting foreground mode timed out." : "Player release timed out.";
}
public ExoTimeoutException(int i) {
super(getErrorMessage(i));
this.timeoutOperation = i;
}
}