- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
85 lines
3.3 KiB
Java
85 lines
3.3 KiB
Java
package com.mbridge.msdk.playercommon.exoplayer2.text;
|
|
|
|
import android.graphics.Bitmap;
|
|
import android.text.Layout;
|
|
import androidx.core.view.ViewCompat;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class Cue {
|
|
public static final int ANCHOR_TYPE_END = 2;
|
|
public static final int ANCHOR_TYPE_MIDDLE = 1;
|
|
public static final int ANCHOR_TYPE_START = 0;
|
|
public static final float DIMEN_UNSET = Float.MIN_VALUE;
|
|
public static final int LINE_TYPE_FRACTION = 0;
|
|
public static final int LINE_TYPE_NUMBER = 1;
|
|
public static final int TEXT_SIZE_TYPE_ABSOLUTE = 2;
|
|
public static final int TEXT_SIZE_TYPE_FRACTIONAL = 0;
|
|
public static final int TEXT_SIZE_TYPE_FRACTIONAL_IGNORE_PADDING = 1;
|
|
public static final int TYPE_UNSET = Integer.MIN_VALUE;
|
|
public final Bitmap bitmap;
|
|
public final float bitmapHeight;
|
|
public final float line;
|
|
public final int lineAnchor;
|
|
public final int lineType;
|
|
public final float position;
|
|
public final int positionAnchor;
|
|
public final float size;
|
|
public final CharSequence text;
|
|
public final Layout.Alignment textAlignment;
|
|
public final float textSize;
|
|
public final int textSizeType;
|
|
public final int windowColor;
|
|
public final boolean windowColorSet;
|
|
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface AnchorType {
|
|
}
|
|
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface LineType {
|
|
}
|
|
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface TextSizeType {
|
|
}
|
|
|
|
public Cue(Bitmap bitmap, float f, int i, float f2, int i2, float f3, float f4) {
|
|
this(null, null, bitmap, f2, 0, i2, f, i, Integer.MIN_VALUE, Float.MIN_VALUE, f3, f4, false, ViewCompat.MEASURED_STATE_MASK);
|
|
}
|
|
|
|
public Cue(CharSequence charSequence) {
|
|
this(charSequence, null, Float.MIN_VALUE, Integer.MIN_VALUE, Integer.MIN_VALUE, Float.MIN_VALUE, Integer.MIN_VALUE, Float.MIN_VALUE);
|
|
}
|
|
|
|
public Cue(CharSequence charSequence, Layout.Alignment alignment, float f, int i, int i2, float f2, int i3, float f3) {
|
|
this(charSequence, alignment, f, i, i2, f2, i3, f3, false, ViewCompat.MEASURED_STATE_MASK);
|
|
}
|
|
|
|
public Cue(CharSequence charSequence, Layout.Alignment alignment, float f, int i, int i2, float f2, int i3, float f3, int i4, float f4) {
|
|
this(charSequence, alignment, null, f, i, i2, f2, i3, i4, f4, f3, Float.MIN_VALUE, false, ViewCompat.MEASURED_STATE_MASK);
|
|
}
|
|
|
|
public Cue(CharSequence charSequence, Layout.Alignment alignment, float f, int i, int i2, float f2, int i3, float f3, boolean z, int i4) {
|
|
this(charSequence, alignment, null, f, i, i2, f2, i3, Integer.MIN_VALUE, Float.MIN_VALUE, f3, Float.MIN_VALUE, z, i4);
|
|
}
|
|
|
|
private Cue(CharSequence charSequence, Layout.Alignment alignment, Bitmap bitmap, float f, int i, int i2, float f2, int i3, int i4, float f3, float f4, float f5, boolean z, int i5) {
|
|
this.text = charSequence;
|
|
this.textAlignment = alignment;
|
|
this.bitmap = bitmap;
|
|
this.line = f;
|
|
this.lineType = i;
|
|
this.lineAnchor = i2;
|
|
this.position = f2;
|
|
this.positionAnchor = i3;
|
|
this.size = f4;
|
|
this.bitmapHeight = f5;
|
|
this.windowColorSet = z;
|
|
this.windowColor = i5;
|
|
this.textSizeType = i4;
|
|
this.textSize = f3;
|
|
}
|
|
}
|