mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-12-06 12:29:32 +01:00
424 lines
18 KiB
Java
424 lines
18 KiB
Java
package com.google.android.exoplayer2;
|
|
|
|
import android.content.Context;
|
|
import android.media.AudioManager;
|
|
import androidx.annotation.RequiresApi;
|
|
import com.here.time.Duration$$ExternalSyntheticBUOutline0;
|
|
import java.lang.annotation.Documented;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.util.UUID;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes7.dex */
|
|
public final class C {
|
|
public static final int AES_BLOCK_LENGTH_BYTES = 16;
|
|
public static final int ALLOW_CAPTURE_BY_ALL = 1;
|
|
public static final int ALLOW_CAPTURE_BY_NONE = 3;
|
|
public static final int ALLOW_CAPTURE_BY_SYSTEM = 2;
|
|
|
|
@Deprecated
|
|
public static final String ASCII_NAME = "US-ASCII";
|
|
public static final int AUDIOFOCUS_GAIN = 1;
|
|
public static final int AUDIOFOCUS_GAIN_TRANSIENT = 2;
|
|
public static final int AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE = 4;
|
|
public static final int AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK = 3;
|
|
public static final int AUDIOFOCUS_NONE = 0;
|
|
public static final int AUDIO_SESSION_ID_UNSET = 0;
|
|
public static final int BITS_PER_BYTE = 8;
|
|
public static final int BUFFER_FLAG_DECODE_ONLY = Integer.MIN_VALUE;
|
|
public static final int BUFFER_FLAG_ENCRYPTED = 1073741824;
|
|
public static final int BUFFER_FLAG_END_OF_STREAM = 4;
|
|
public static final int BUFFER_FLAG_HAS_SUPPLEMENTAL_DATA = 268435456;
|
|
public static final int BUFFER_FLAG_KEY_FRAME = 1;
|
|
public static final int BUFFER_FLAG_LAST_SAMPLE = 536870912;
|
|
public static final int BYTES_PER_FLOAT = 4;
|
|
public static final String CENC_TYPE_cbc1 = "cbc1";
|
|
public static final String CENC_TYPE_cbcs = "cbcs";
|
|
public static final String CENC_TYPE_cenc = "cenc";
|
|
public static final String CENC_TYPE_cens = "cens";
|
|
public static final int COLOR_RANGE_FULL = 1;
|
|
public static final int COLOR_RANGE_LIMITED = 2;
|
|
public static final int COLOR_SPACE_BT2020 = 6;
|
|
public static final int COLOR_SPACE_BT601 = 2;
|
|
public static final int COLOR_SPACE_BT709 = 1;
|
|
public static final int COLOR_TRANSFER_HLG = 7;
|
|
public static final int COLOR_TRANSFER_SDR = 3;
|
|
public static final int COLOR_TRANSFER_ST2084 = 6;
|
|
public static final int CONTENT_TYPE_MOVIE = 3;
|
|
public static final int CONTENT_TYPE_MUSIC = 2;
|
|
public static final int CONTENT_TYPE_SONIFICATION = 4;
|
|
public static final int CONTENT_TYPE_SPEECH = 1;
|
|
public static final int CONTENT_TYPE_UNKNOWN = 0;
|
|
public static final int CRYPTO_MODE_AES_CBC = 2;
|
|
public static final int CRYPTO_MODE_AES_CTR = 1;
|
|
public static final int CRYPTO_MODE_UNENCRYPTED = 0;
|
|
public static final int DATA_TYPE_AD = 6;
|
|
public static final int DATA_TYPE_CUSTOM_BASE = 10000;
|
|
public static final int DATA_TYPE_DRM = 3;
|
|
public static final int DATA_TYPE_MANIFEST = 4;
|
|
public static final int DATA_TYPE_MEDIA = 1;
|
|
public static final int DATA_TYPE_MEDIA_INITIALIZATION = 2;
|
|
public static final int DATA_TYPE_MEDIA_PROGRESSIVE_LIVE = 7;
|
|
public static final int DATA_TYPE_TIME_SYNCHRONIZATION = 5;
|
|
public static final int DATA_TYPE_UNKNOWN = 0;
|
|
public static final int DEFAULT_BUFFER_SEGMENT_SIZE = 65536;
|
|
public static final int ENCODING_AAC_ELD = 15;
|
|
public static final int ENCODING_AAC_ER_BSAC = 1073741824;
|
|
public static final int ENCODING_AAC_HE_V1 = 11;
|
|
public static final int ENCODING_AAC_HE_V2 = 12;
|
|
public static final int ENCODING_AAC_LC = 10;
|
|
public static final int ENCODING_AAC_XHE = 16;
|
|
public static final int ENCODING_AC3 = 5;
|
|
public static final int ENCODING_AC4 = 17;
|
|
public static final int ENCODING_DOLBY_TRUEHD = 14;
|
|
public static final int ENCODING_DTS = 7;
|
|
public static final int ENCODING_DTS_HD = 8;
|
|
public static final int ENCODING_E_AC3 = 6;
|
|
public static final int ENCODING_E_AC3_JOC = 18;
|
|
public static final int ENCODING_INVALID = 0;
|
|
public static final int ENCODING_MP3 = 9;
|
|
public static final int ENCODING_PCM_16BIT = 2;
|
|
public static final int ENCODING_PCM_16BIT_BIG_ENDIAN = 268435456;
|
|
public static final int ENCODING_PCM_24BIT = 536870912;
|
|
public static final int ENCODING_PCM_32BIT = 805306368;
|
|
public static final int ENCODING_PCM_8BIT = 3;
|
|
public static final int ENCODING_PCM_FLOAT = 4;
|
|
public static final int FLAG_AUDIBILITY_ENFORCED = 1;
|
|
public static final int FORMAT_EXCEEDS_CAPABILITIES = 3;
|
|
public static final int FORMAT_HANDLED = 4;
|
|
public static final int FORMAT_UNSUPPORTED_DRM = 2;
|
|
public static final int FORMAT_UNSUPPORTED_SUBTYPE = 1;
|
|
public static final int FORMAT_UNSUPPORTED_TYPE = 0;
|
|
public static final int INDEX_UNSET = -1;
|
|
|
|
@Deprecated
|
|
public static final String ISO88591_NAME = "ISO-8859-1";
|
|
public static final String LANGUAGE_UNDETERMINED = "und";
|
|
public static final int LENGTH_UNSET = -1;
|
|
public static final long MICROS_PER_SECOND = 1000000;
|
|
public static final long MILLIS_PER_SECOND = 1000;
|
|
|
|
@Deprecated
|
|
public static final int MSG_CUSTOM_BASE = 10000;
|
|
|
|
@Deprecated
|
|
public static final int MSG_SET_AUDIO_ATTRIBUTES = 3;
|
|
|
|
@Deprecated
|
|
public static final int MSG_SET_AUX_EFFECT_INFO = 5;
|
|
|
|
@Deprecated
|
|
public static final int MSG_SET_CAMERA_MOTION_LISTENER = 7;
|
|
|
|
@Deprecated
|
|
public static final int MSG_SET_SCALING_MODE = 4;
|
|
|
|
@Deprecated
|
|
public static final int MSG_SET_SURFACE = 1;
|
|
|
|
@Deprecated
|
|
public static final int MSG_SET_VIDEO_DECODER_OUTPUT_BUFFER_RENDERER = 8;
|
|
|
|
@Deprecated
|
|
public static final int MSG_SET_VIDEO_FRAME_METADATA_LISTENER = 6;
|
|
|
|
@Deprecated
|
|
public static final int MSG_SET_VOLUME = 2;
|
|
public static final long NANOS_PER_SECOND = 1000000000;
|
|
public static final int NETWORK_TYPE_2G = 3;
|
|
public static final int NETWORK_TYPE_3G = 4;
|
|
public static final int NETWORK_TYPE_4G = 5;
|
|
public static final int NETWORK_TYPE_5G = 9;
|
|
public static final int NETWORK_TYPE_CELLULAR_UNKNOWN = 6;
|
|
public static final int NETWORK_TYPE_ETHERNET = 7;
|
|
public static final int NETWORK_TYPE_OFFLINE = 1;
|
|
public static final int NETWORK_TYPE_OTHER = 8;
|
|
public static final int NETWORK_TYPE_UNKNOWN = 0;
|
|
public static final int NETWORK_TYPE_WIFI = 2;
|
|
public static final int PERCENTAGE_UNSET = -1;
|
|
public static final int POSITION_UNSET = -1;
|
|
public static final int PRIORITY_DOWNLOAD = -1000;
|
|
public static final int PRIORITY_PLAYBACK = 0;
|
|
public static final int PROJECTION_CUBEMAP = 2;
|
|
public static final int PROJECTION_EQUIRECTANGULAR = 1;
|
|
public static final int PROJECTION_MESH = 3;
|
|
public static final int PROJECTION_RECTANGULAR = 0;
|
|
public static final float RATE_UNSET = -3.4028235E38f;
|
|
public static final int RESULT_BUFFER_READ = -4;
|
|
public static final int RESULT_END_OF_INPUT = -1;
|
|
public static final int RESULT_FORMAT_READ = -5;
|
|
public static final int RESULT_MAX_LENGTH_EXCEEDED = -2;
|
|
public static final int RESULT_NOTHING_READ = -3;
|
|
public static final int ROLE_FLAG_ALTERNATE = 2;
|
|
public static final int ROLE_FLAG_CAPTION = 64;
|
|
public static final int ROLE_FLAG_COMMENTARY = 8;
|
|
public static final int ROLE_FLAG_DESCRIBES_MUSIC_AND_SOUND = 1024;
|
|
public static final int ROLE_FLAG_DESCRIBES_VIDEO = 512;
|
|
public static final int ROLE_FLAG_DUB = 16;
|
|
public static final int ROLE_FLAG_EASY_TO_READ = 8192;
|
|
public static final int ROLE_FLAG_EMERGENCY = 32;
|
|
public static final int ROLE_FLAG_ENHANCED_DIALOG_INTELLIGIBILITY = 2048;
|
|
public static final int ROLE_FLAG_MAIN = 1;
|
|
public static final int ROLE_FLAG_SIGN = 256;
|
|
public static final int ROLE_FLAG_SUBTITLE = 128;
|
|
public static final int ROLE_FLAG_SUPPLEMENTARY = 4;
|
|
public static final int ROLE_FLAG_TRANSCRIBES_DIALOG = 4096;
|
|
public static final int ROLE_FLAG_TRICK_PLAY = 16384;
|
|
public static final String SANS_SERIF_NAME = "sans-serif";
|
|
public static final int SELECTION_FLAG_AUTOSELECT = 4;
|
|
public static final int SELECTION_FLAG_DEFAULT = 1;
|
|
public static final int SELECTION_FLAG_FORCED = 2;
|
|
public static final int SELECTION_REASON_ADAPTIVE = 3;
|
|
public static final int SELECTION_REASON_CUSTOM_BASE = 10000;
|
|
public static final int SELECTION_REASON_INITIAL = 1;
|
|
public static final int SELECTION_REASON_MANUAL = 2;
|
|
public static final int SELECTION_REASON_TRICK_PLAY = 4;
|
|
public static final int SELECTION_REASON_UNKNOWN = 0;
|
|
public static final String SERIF_NAME = "serif";
|
|
public static final int STEREO_MODE_LEFT_RIGHT = 2;
|
|
public static final int STEREO_MODE_MONO = 0;
|
|
public static final int STEREO_MODE_STEREO_MESH = 3;
|
|
public static final int STEREO_MODE_TOP_BOTTOM = 1;
|
|
public static final int STREAM_TYPE_ALARM = 4;
|
|
public static final int STREAM_TYPE_DEFAULT = 3;
|
|
public static final int STREAM_TYPE_DTMF = 8;
|
|
public static final int STREAM_TYPE_MUSIC = 3;
|
|
public static final int STREAM_TYPE_NOTIFICATION = 5;
|
|
public static final int STREAM_TYPE_RING = 2;
|
|
public static final int STREAM_TYPE_SYSTEM = 1;
|
|
public static final int STREAM_TYPE_VOICE_CALL = 0;
|
|
public static final long TIME_END_OF_SOURCE = Long.MIN_VALUE;
|
|
public static final long TIME_UNSET = -9223372036854775807L;
|
|
public static final int TRACK_TYPE_AUDIO = 1;
|
|
public static final int TRACK_TYPE_CAMERA_MOTION = 6;
|
|
public static final int TRACK_TYPE_CUSTOM_BASE = 10000;
|
|
public static final int TRACK_TYPE_DEFAULT = 0;
|
|
public static final int TRACK_TYPE_IMAGE = 4;
|
|
public static final int TRACK_TYPE_METADATA = 5;
|
|
public static final int TRACK_TYPE_NONE = 7;
|
|
public static final int TRACK_TYPE_TEXT = 3;
|
|
public static final int TRACK_TYPE_UNKNOWN = -1;
|
|
public static final int TRACK_TYPE_VIDEO = 2;
|
|
public static final int TYPE_DASH = 0;
|
|
public static final int TYPE_HLS = 2;
|
|
public static final int TYPE_OTHER = 3;
|
|
public static final int TYPE_SS = 1;
|
|
public static final int USAGE_ALARM = 4;
|
|
public static final int USAGE_ASSISTANCE_ACCESSIBILITY = 11;
|
|
public static final int USAGE_ASSISTANCE_NAVIGATION_GUIDANCE = 12;
|
|
public static final int USAGE_ASSISTANCE_SONIFICATION = 13;
|
|
public static final int USAGE_ASSISTANT = 16;
|
|
public static final int USAGE_GAME = 14;
|
|
public static final int USAGE_MEDIA = 1;
|
|
public static final int USAGE_NOTIFICATION = 5;
|
|
public static final int USAGE_NOTIFICATION_COMMUNICATION_DELAYED = 9;
|
|
public static final int USAGE_NOTIFICATION_COMMUNICATION_INSTANT = 8;
|
|
public static final int USAGE_NOTIFICATION_COMMUNICATION_REQUEST = 7;
|
|
public static final int USAGE_NOTIFICATION_EVENT = 10;
|
|
public static final int USAGE_NOTIFICATION_RINGTONE = 6;
|
|
public static final int USAGE_UNKNOWN = 0;
|
|
public static final int USAGE_VOICE_COMMUNICATION = 2;
|
|
public static final int USAGE_VOICE_COMMUNICATION_SIGNALLING = 3;
|
|
|
|
@Deprecated
|
|
public static final String UTF16LE_NAME = "UTF-16LE";
|
|
|
|
@Deprecated
|
|
public static final String UTF16_NAME = "UTF-16";
|
|
|
|
@Deprecated
|
|
public static final String UTF8_NAME = "UTF-8";
|
|
public static final int VIDEO_OUTPUT_MODE_NONE = -1;
|
|
public static final int VIDEO_OUTPUT_MODE_SURFACE_YUV = 1;
|
|
public static final int VIDEO_OUTPUT_MODE_YUV = 0;
|
|
public static final int VIDEO_SCALING_MODE_DEFAULT = 1;
|
|
public static final int VIDEO_SCALING_MODE_SCALE_TO_FIT = 1;
|
|
public static final int VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING = 2;
|
|
public static final int WAKE_MODE_LOCAL = 1;
|
|
public static final int WAKE_MODE_NETWORK = 2;
|
|
public static final int WAKE_MODE_NONE = 0;
|
|
public static final UUID UUID_NIL = new UUID(0, 0);
|
|
public static final UUID COMMON_PSSH_UUID = new UUID(1186680826959645954L, -5988876978535335093L);
|
|
public static final UUID CLEARKEY_UUID = new UUID(-2129748144642739255L, 8654423357094679310L);
|
|
public static final UUID WIDEVINE_UUID = new UUID(-1301668207276963122L, -6645017420763422227L);
|
|
public static final UUID PLAYREADY_UUID = new UUID(-7348484286925749626L, -6083546864340672619L);
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Documented
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface AudioAllowedCapturePolicy {
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Documented
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface AudioContentType {
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Documented
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface AudioFlags {
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Documented
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface AudioFocusGain {
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Documented
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface AudioUsage {
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Documented
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface BufferFlags {
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Documented
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface ColorRange {
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Documented
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface ColorSpace {
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Documented
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface ColorTransfer {
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Documented
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface ContentType {
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Documented
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface CryptoMode {
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Documented
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface Encoding {
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Documented
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface FormatSupport {
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Documented
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface NetworkType {
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Documented
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface PcmEncoding {
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Documented
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface Projection {
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Documented
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface RoleFlags {
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Documented
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface SelectionFlags {
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Documented
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface StereoMode {
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Documented
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface StreamType {
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Documented
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface VideoOutputMode {
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Documented
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface VideoScalingMode {
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Documented
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface WakeMode {
|
|
}
|
|
|
|
private C() {
|
|
}
|
|
|
|
@RequiresApi(21)
|
|
public static int generateAudioSessionIdV21(Context context) {
|
|
AudioManager audioManager = (AudioManager) context.getSystemService("audio");
|
|
if (audioManager == null) {
|
|
return -1;
|
|
}
|
|
return audioManager.generateAudioSessionId();
|
|
}
|
|
|
|
public static String getFormatSupportString(int i) {
|
|
if (i == 0) {
|
|
return "NO";
|
|
}
|
|
if (i == 1) {
|
|
return "NO_UNSUPPORTED_TYPE";
|
|
}
|
|
if (i == 2) {
|
|
return "NO_UNSUPPORTED_DRM";
|
|
}
|
|
if (i == 3) {
|
|
return "NO_EXCEEDS_CAPABILITIES";
|
|
}
|
|
if (i == 4) {
|
|
return "YES";
|
|
}
|
|
Duration$$ExternalSyntheticBUOutline0.m$1();
|
|
return null;
|
|
}
|
|
|
|
public static long msToUs(long j) {
|
|
return (j == -9223372036854775807L || j == Long.MIN_VALUE) ? j : j * 1000;
|
|
}
|
|
|
|
public static long usToMs(long j) {
|
|
return (j == -9223372036854775807L || j == Long.MIN_VALUE) ? j : j / 1000;
|
|
}
|
|
}
|