Commit cdff4566 by bachinger

Make copybara remove the LINT.IfChange tag

PiperOrigin-RevId: 371135534
parent a695cbd2
Showing with 1 additions and 66 deletions
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
visibility in order to allow Kotlin subclasses of visibility in order to allow Kotlin subclasses of
`AdaptiveTrackSelection.Factory` `AdaptiveTrackSelection.Factory`
([#8830](https://github.com/google/ExoPlayer/issues/8830)). ([#8830](https://github.com/google/ExoPlayer/issues/8830)).
* Hide LINT.IfChange tags in public sources.
* UI: * UI:
* Add builder for `PlayerNotificationManager`. * Add builder for `PlayerNotificationManager`.
* Add group setting to `PlayerNotificationManager`. * Add group setting to `PlayerNotificationManager`.
......
...@@ -34,11 +34,9 @@ import java.nio.ByteBuffer; ...@@ -34,11 +34,9 @@ import java.nio.ByteBuffer;
public final class Gav1Decoder public final class Gav1Decoder
extends SimpleDecoder<VideoDecoderInputBuffer, VideoDecoderOutputBuffer, Gav1DecoderException> { extends SimpleDecoder<VideoDecoderInputBuffer, VideoDecoderOutputBuffer, Gav1DecoderException> {
// LINT.IfChange
private static final int GAV1_ERROR = 0; private static final int GAV1_ERROR = 0;
private static final int GAV1_OK = 1; private static final int GAV1_OK = 1;
private static final int GAV1_DECODE_ONLY = 2; private static final int GAV1_DECODE_ONLY = 2;
// LINT.ThenChange(../../../../../../../jni/gav1_jni.cc)
private final long gav1DecoderContext; private final long gav1DecoderContext;
......
...@@ -69,22 +69,16 @@ const int kMaxPlanes = 3; ...@@ -69,22 +69,16 @@ const int kMaxPlanes = 3;
// https://developer.android.com/reference/android/graphics/ImageFormat.html#YV12. // https://developer.android.com/reference/android/graphics/ImageFormat.html#YV12.
const int kImageFormatYV12 = 0x32315659; const int kImageFormatYV12 = 0x32315659;
// LINT.IfChange
// Output modes. // Output modes.
const int kOutputModeYuv = 0; const int kOutputModeYuv = 0;
const int kOutputModeSurfaceYuv = 1; const int kOutputModeSurfaceYuv = 1;
// LINT.ThenChange(../../../../../library/common/src/main/java/com/google/android/exoplayer2/C.java)
// LINT.IfChange
const int kColorSpaceUnknown = 0; const int kColorSpaceUnknown = 0;
// LINT.ThenChange(../../../../../library/core/src/main/java/com/google/android/exoplayer2/video/VideoDecoderOutputBuffer.java)
// LINT.IfChange
// Return codes for jni methods. // Return codes for jni methods.
const int kStatusError = 0; const int kStatusError = 0;
const int kStatusOk = 1; const int kStatusOk = 1;
const int kStatusDecodeOnly = 2; const int kStatusDecodeOnly = 2;
// LINT.ThenChange(../java/com/google/android/exoplayer2/ext/av1/Gav1Decoder.java)
// Status codes specific to the JNI wrapper code. // Status codes specific to the JNI wrapper code.
enum JniStatusCode { enum JniStatusCode {
......
...@@ -36,10 +36,8 @@ import java.util.List; ...@@ -36,10 +36,8 @@ import java.util.List;
private static final int OUTPUT_BUFFER_SIZE_16BIT = 65536; private static final int OUTPUT_BUFFER_SIZE_16BIT = 65536;
private static final int OUTPUT_BUFFER_SIZE_32BIT = OUTPUT_BUFFER_SIZE_16BIT * 2; private static final int OUTPUT_BUFFER_SIZE_32BIT = OUTPUT_BUFFER_SIZE_16BIT * 2;
// LINT.IfChange
private static final int AUDIO_DECODER_ERROR_INVALID_DATA = -1; private static final int AUDIO_DECODER_ERROR_INVALID_DATA = -1;
private static final int AUDIO_DECODER_ERROR_OTHER = -2; private static final int AUDIO_DECODER_ERROR_OTHER = -2;
// LINT.ThenChange(../../../../../../../jni/ffmpeg_jni.cc)
private final String codecName; private final String codecName;
@Nullable private final byte[] extraData; @Nullable private final byte[] extraData;
......
...@@ -63,10 +63,8 @@ static const AVSampleFormat OUTPUT_FORMAT_PCM_16BIT = AV_SAMPLE_FMT_S16; ...@@ -63,10 +63,8 @@ static const AVSampleFormat OUTPUT_FORMAT_PCM_16BIT = AV_SAMPLE_FMT_S16;
// Output format corresponding to AudioFormat.ENCODING_PCM_FLOAT. // Output format corresponding to AudioFormat.ENCODING_PCM_FLOAT.
static const AVSampleFormat OUTPUT_FORMAT_PCM_FLOAT = AV_SAMPLE_FMT_FLT; static const AVSampleFormat OUTPUT_FORMAT_PCM_FLOAT = AV_SAMPLE_FMT_FLT;
// LINT.IfChange
static const int AUDIO_DECODER_ERROR_INVALID_DATA = -1; static const int AUDIO_DECODER_ERROR_INVALID_DATA = -1;
static const int AUDIO_DECODER_ERROR_OTHER = -2; static const int AUDIO_DECODER_ERROR_OTHER = -2;
// LINT.ThenChange(../java/com/google/android/exoplayer2/ext/ffmpeg/FfmpegAudioDecoder.java)
/** /**
* Returns the AVCodec with the specified name, or NULL if it is not available. * Returns the AVCodec with the specified name, or NULL if it is not available.
......
...@@ -51,7 +51,6 @@ public final class FlacExtractor implements Extractor { ...@@ -51,7 +51,6 @@ public final class FlacExtractor implements Extractor {
/** Factory that returns one extractor which is a {@link FlacExtractor}. */ /** Factory that returns one extractor which is a {@link FlacExtractor}. */
public static final ExtractorsFactory FACTORY = () -> new Extractor[] {new FlacExtractor()}; public static final ExtractorsFactory FACTORY = () -> new Extractor[] {new FlacExtractor()};
// LINT.IfChange
/* /*
* Flags in the two FLAC extractors should be kept in sync. If we ever change this then * Flags in the two FLAC extractors should be kept in sync. If we ever change this then
* DefaultExtractorsFactory will need modifying, because it currently assumes this is the case. * DefaultExtractorsFactory will need modifying, because it currently assumes this is the case.
...@@ -73,7 +72,6 @@ public final class FlacExtractor implements Extractor { ...@@ -73,7 +72,6 @@ public final class FlacExtractor implements Extractor {
*/ */
public static final int FLAG_DISABLE_ID3_METADATA = public static final int FLAG_DISABLE_ID3_METADATA =
com.google.android.exoplayer2.extractor.flac.FlacExtractor.FLAG_DISABLE_ID3_METADATA; com.google.android.exoplayer2.extractor.flac.FlacExtractor.FLAG_DISABLE_ID3_METADATA;
// LINT.ThenChange(../../../../../../../../../../extractor/src/main/java/com/google/android/exoplayer2/extractor/flac/FlacExtractor.java)
private final ParsableByteArray outputBuffer; private final ParsableByteArray outputBuffer;
private final boolean id3MetadataDisabled; private final boolean id3MetadataDisabled;
......
...@@ -534,19 +534,15 @@ DECODER_FUNC(jint, vpxGetFrame, jlong jContext, jobject jOutputBuffer) { ...@@ -534,19 +534,15 @@ DECODER_FUNC(jint, vpxGetFrame, jlong jContext, jobject jOutputBuffer) {
return 1; return 1;
} }
// LINT.IfChange
const int kOutputModeYuv = 0; const int kOutputModeYuv = 0;
const int kOutputModeSurfaceYuv = 1; const int kOutputModeSurfaceYuv = 1;
// LINT.ThenChange(../../../../../library/common/src/main/java/com/google/android/exoplayer2/C.java)
int outputMode = env->GetIntField(jOutputBuffer, outputModeField); int outputMode = env->GetIntField(jOutputBuffer, outputModeField);
if (outputMode == kOutputModeYuv) { if (outputMode == kOutputModeYuv) {
// LINT.IfChange
const int kColorspaceUnknown = 0; const int kColorspaceUnknown = 0;
const int kColorspaceBT601 = 1; const int kColorspaceBT601 = 1;
const int kColorspaceBT709 = 2; const int kColorspaceBT709 = 2;
const int kColorspaceBT2020 = 3; const int kColorspaceBT2020 = 3;
// LINT.ThenChange(../../../../../library/core/src/main/java/com/google/android/exoplayer2/video/VideoDecoderOutputBuffer.java)
int colorspace = kColorspaceUnknown; int colorspace = kColorspaceUnknown;
switch (img->cs) { switch (img->cs) {
......
...@@ -535,7 +535,6 @@ public final class C { ...@@ -535,7 +535,6 @@ public final class C {
/** Indicates that a buffer should be decoded but not rendered. */ /** Indicates that a buffer should be decoded but not rendered. */
public static final int BUFFER_FLAG_DECODE_ONLY = 1 << 31; // 0x80000000 public static final int BUFFER_FLAG_DECODE_ONLY = 1 << 31; // 0x80000000
// LINT.IfChange
/** /**
* Video decoder output modes. Possible modes are {@link #VIDEO_OUTPUT_MODE_NONE}, {@link * Video decoder output modes. Possible modes are {@link #VIDEO_OUTPUT_MODE_NONE}, {@link
* #VIDEO_OUTPUT_MODE_YUV} and {@link #VIDEO_OUTPUT_MODE_SURFACE_YUV}. * #VIDEO_OUTPUT_MODE_YUV} and {@link #VIDEO_OUTPUT_MODE_SURFACE_YUV}.
...@@ -550,10 +549,6 @@ public final class C { ...@@ -550,10 +549,6 @@ public final class C {
public static final int VIDEO_OUTPUT_MODE_YUV = 0; public static final int VIDEO_OUTPUT_MODE_YUV = 0;
/** Video decoder output mode that renders 4:2:0 YUV planes directly to a surface. */ /** Video decoder output mode that renders 4:2:0 YUV planes directly to a surface. */
public static final int VIDEO_OUTPUT_MODE_SURFACE_YUV = 1; public static final int VIDEO_OUTPUT_MODE_SURFACE_YUV = 1;
// LINT.ThenChange(
// ../../../../../../../../decoder_av1/src/main/jni/gav1_jni.cc,
// ../../../../../../../../decoder_vp9/src/main/jni/vpx_jni.cc
// )
/** /**
* Video scaling modes for {@link MediaCodec}-based renderers. One of {@link * Video scaling modes for {@link MediaCodec}-based renderers. One of {@link
......
...@@ -24,7 +24,6 @@ import java.lang.annotation.RetentionPolicy; ...@@ -24,7 +24,6 @@ import java.lang.annotation.RetentionPolicy;
/** Util class for repeat mode handling. */ /** Util class for repeat mode handling. */
public final class RepeatModeUtil { public final class RepeatModeUtil {
// LINT.IfChange
/** /**
* Set of repeat toggle modes. Can be combined using bit-wise operations. Possible flag values are * Set of repeat toggle modes. Can be combined using bit-wise operations. Possible flag values are
* {@link #REPEAT_TOGGLE_MODE_NONE}, {@link #REPEAT_TOGGLE_MODE_ONE} and {@link * {@link #REPEAT_TOGGLE_MODE_NONE}, {@link #REPEAT_TOGGLE_MODE_ONE} and {@link
...@@ -46,7 +45,6 @@ public final class RepeatModeUtil { ...@@ -46,7 +45,6 @@ public final class RepeatModeUtil {
public static final int REPEAT_TOGGLE_MODE_ONE = 1; public static final int REPEAT_TOGGLE_MODE_ONE = 1;
/** "Repeat All" button enabled. */ /** "Repeat All" button enabled. */
public static final int REPEAT_TOGGLE_MODE_ALL = 1 << 1; // 2 public static final int REPEAT_TOGGLE_MODE_ALL = 1 << 1; // 2
// LINT.ThenChange(../../../../../../../../../ui/src/main/res/values/attrs.xml)
private RepeatModeUtil() { private RepeatModeUtil() {
// Prevent instantiation. // Prevent instantiation.
......
...@@ -390,7 +390,6 @@ public class DefaultRenderersFactory implements RenderersFactory { ...@@ -390,7 +390,6 @@ public class DefaultRenderersFactory implements RenderersFactory {
try { try {
// Full class names used for constructor args so the LINT rule triggers if any of them move. // Full class names used for constructor args so the LINT rule triggers if any of them move.
// LINT.IfChange
Class<?> clazz = Class.forName("com.google.android.exoplayer2.ext.vp9.LibvpxVideoRenderer"); Class<?> clazz = Class.forName("com.google.android.exoplayer2.ext.vp9.LibvpxVideoRenderer");
Constructor<?> constructor = Constructor<?> constructor =
clazz.getConstructor( clazz.getConstructor(
...@@ -398,7 +397,6 @@ public class DefaultRenderersFactory implements RenderersFactory { ...@@ -398,7 +397,6 @@ public class DefaultRenderersFactory implements RenderersFactory {
android.os.Handler.class, android.os.Handler.class,
com.google.android.exoplayer2.video.VideoRendererEventListener.class, com.google.android.exoplayer2.video.VideoRendererEventListener.class,
int.class); int.class);
// LINT.ThenChange(../../../../../../../proguard-rules.txt)
Renderer renderer = Renderer renderer =
(Renderer) (Renderer)
constructor.newInstance( constructor.newInstance(
...@@ -417,7 +415,6 @@ public class DefaultRenderersFactory implements RenderersFactory { ...@@ -417,7 +415,6 @@ public class DefaultRenderersFactory implements RenderersFactory {
try { try {
// Full class names used for constructor args so the LINT rule triggers if any of them move. // Full class names used for constructor args so the LINT rule triggers if any of them move.
// LINT.IfChange
Class<?> clazz = Class.forName("com.google.android.exoplayer2.ext.av1.Libgav1VideoRenderer"); Class<?> clazz = Class.forName("com.google.android.exoplayer2.ext.av1.Libgav1VideoRenderer");
Constructor<?> constructor = Constructor<?> constructor =
clazz.getConstructor( clazz.getConstructor(
...@@ -425,7 +422,6 @@ public class DefaultRenderersFactory implements RenderersFactory { ...@@ -425,7 +422,6 @@ public class DefaultRenderersFactory implements RenderersFactory {
android.os.Handler.class, android.os.Handler.class,
com.google.android.exoplayer2.video.VideoRendererEventListener.class, com.google.android.exoplayer2.video.VideoRendererEventListener.class,
int.class); int.class);
// LINT.ThenChange(../../../../../../../proguard-rules.txt)
Renderer renderer = Renderer renderer =
(Renderer) (Renderer)
constructor.newInstance( constructor.newInstance(
...@@ -444,7 +440,6 @@ public class DefaultRenderersFactory implements RenderersFactory { ...@@ -444,7 +440,6 @@ public class DefaultRenderersFactory implements RenderersFactory {
try { try {
// Full class names used for constructor args so the LINT rule triggers if any of them move. // Full class names used for constructor args so the LINT rule triggers if any of them move.
// LINT.IfChange
Class<?> clazz = Class<?> clazz =
Class.forName("com.google.android.exoplayer2.ext.ffmpeg.FfmpegVideoRenderer"); Class.forName("com.google.android.exoplayer2.ext.ffmpeg.FfmpegVideoRenderer");
Constructor<?> constructor = Constructor<?> constructor =
...@@ -453,7 +448,6 @@ public class DefaultRenderersFactory implements RenderersFactory { ...@@ -453,7 +448,6 @@ public class DefaultRenderersFactory implements RenderersFactory {
android.os.Handler.class, android.os.Handler.class,
com.google.android.exoplayer2.video.VideoRendererEventListener.class, com.google.android.exoplayer2.video.VideoRendererEventListener.class,
int.class); int.class);
// LINT.ThenChange(../../../../../../../proguard-rules.txt)
Renderer renderer = Renderer renderer =
(Renderer) (Renderer)
constructor.newInstance( constructor.newInstance(
...@@ -519,14 +513,12 @@ public class DefaultRenderersFactory implements RenderersFactory { ...@@ -519,14 +513,12 @@ public class DefaultRenderersFactory implements RenderersFactory {
try { try {
// Full class names used for constructor args so the LINT rule triggers if any of them move. // Full class names used for constructor args so the LINT rule triggers if any of them move.
// LINT.IfChange
Class<?> clazz = Class.forName("com.google.android.exoplayer2.ext.opus.LibopusAudioRenderer"); Class<?> clazz = Class.forName("com.google.android.exoplayer2.ext.opus.LibopusAudioRenderer");
Constructor<?> constructor = Constructor<?> constructor =
clazz.getConstructor( clazz.getConstructor(
android.os.Handler.class, android.os.Handler.class,
com.google.android.exoplayer2.audio.AudioRendererEventListener.class, com.google.android.exoplayer2.audio.AudioRendererEventListener.class,
com.google.android.exoplayer2.audio.AudioSink.class); com.google.android.exoplayer2.audio.AudioSink.class);
// LINT.ThenChange(../../../../../../../proguard-rules.txt)
Renderer renderer = Renderer renderer =
(Renderer) constructor.newInstance(eventHandler, eventListener, audioSink); (Renderer) constructor.newInstance(eventHandler, eventListener, audioSink);
out.add(extensionRendererIndex++, renderer); out.add(extensionRendererIndex++, renderer);
...@@ -540,14 +532,12 @@ public class DefaultRenderersFactory implements RenderersFactory { ...@@ -540,14 +532,12 @@ public class DefaultRenderersFactory implements RenderersFactory {
try { try {
// Full class names used for constructor args so the LINT rule triggers if any of them move. // Full class names used for constructor args so the LINT rule triggers if any of them move.
// LINT.IfChange
Class<?> clazz = Class.forName("com.google.android.exoplayer2.ext.flac.LibflacAudioRenderer"); Class<?> clazz = Class.forName("com.google.android.exoplayer2.ext.flac.LibflacAudioRenderer");
Constructor<?> constructor = Constructor<?> constructor =
clazz.getConstructor( clazz.getConstructor(
android.os.Handler.class, android.os.Handler.class,
com.google.android.exoplayer2.audio.AudioRendererEventListener.class, com.google.android.exoplayer2.audio.AudioRendererEventListener.class,
com.google.android.exoplayer2.audio.AudioSink.class); com.google.android.exoplayer2.audio.AudioSink.class);
// LINT.ThenChange(../../../../../../../proguard-rules.txt)
Renderer renderer = Renderer renderer =
(Renderer) constructor.newInstance(eventHandler, eventListener, audioSink); (Renderer) constructor.newInstance(eventHandler, eventListener, audioSink);
out.add(extensionRendererIndex++, renderer); out.add(extensionRendererIndex++, renderer);
...@@ -561,7 +551,6 @@ public class DefaultRenderersFactory implements RenderersFactory { ...@@ -561,7 +551,6 @@ public class DefaultRenderersFactory implements RenderersFactory {
try { try {
// Full class names used for constructor args so the LINT rule triggers if any of them move. // Full class names used for constructor args so the LINT rule triggers if any of them move.
// LINT.IfChange
Class<?> clazz = Class<?> clazz =
Class.forName("com.google.android.exoplayer2.ext.ffmpeg.FfmpegAudioRenderer"); Class.forName("com.google.android.exoplayer2.ext.ffmpeg.FfmpegAudioRenderer");
Constructor<?> constructor = Constructor<?> constructor =
...@@ -569,7 +558,6 @@ public class DefaultRenderersFactory implements RenderersFactory { ...@@ -569,7 +558,6 @@ public class DefaultRenderersFactory implements RenderersFactory {
android.os.Handler.class, android.os.Handler.class,
com.google.android.exoplayer2.audio.AudioRendererEventListener.class, com.google.android.exoplayer2.audio.AudioRendererEventListener.class,
com.google.android.exoplayer2.audio.AudioSink.class); com.google.android.exoplayer2.audio.AudioSink.class);
// LINT.ThenChange(../../../../../../../proguard-rules.txt)
Renderer renderer = Renderer renderer =
(Renderer) constructor.newInstance(eventHandler, eventListener, audioSink); (Renderer) constructor.newInstance(eventHandler, eventListener, audioSink);
out.add(extensionRendererIndex++, renderer); out.add(extensionRendererIndex++, renderer);
......
...@@ -108,7 +108,6 @@ public class DefaultDownloaderFactory implements DownloaderFactory { ...@@ -108,7 +108,6 @@ public class DefaultDownloaderFactory implements DownloaderFactory {
} }
} }
// LINT.IfChange
private static SparseArray<Constructor<? extends Downloader>> createDownloaderConstructors() { private static SparseArray<Constructor<? extends Downloader>> createDownloaderConstructors() {
SparseArray<Constructor<? extends Downloader>> array = new SparseArray<>(); SparseArray<Constructor<? extends Downloader>> array = new SparseArray<>();
try { try {
...@@ -150,5 +149,4 @@ public class DefaultDownloaderFactory implements DownloaderFactory { ...@@ -150,5 +149,4 @@ public class DefaultDownloaderFactory implements DownloaderFactory {
throw new IllegalStateException("Downloader constructor missing", e); throw new IllegalStateException("Downloader constructor missing", e);
} }
} }
// LINT.ThenChange(../../../../../../../../proguard-rules.txt)
} }
...@@ -436,7 +436,6 @@ public final class DefaultMediaSourceFactory implements MediaSourceFactory { ...@@ -436,7 +436,6 @@ public final class DefaultMediaSourceFactory implements MediaSourceFactory {
private static SparseArray<MediaSourceFactory> loadDelegates( private static SparseArray<MediaSourceFactory> loadDelegates(
DataSource.Factory dataSourceFactory, ExtractorsFactory extractorsFactory) { DataSource.Factory dataSourceFactory, ExtractorsFactory extractorsFactory) {
SparseArray<MediaSourceFactory> factories = new SparseArray<>(); SparseArray<MediaSourceFactory> factories = new SparseArray<>();
// LINT.IfChange
try { try {
Class<? extends MediaSourceFactory> factoryClazz = Class<? extends MediaSourceFactory> factoryClazz =
Class.forName("com.google.android.exoplayer2.source.dash.DashMediaSource$Factory") Class.forName("com.google.android.exoplayer2.source.dash.DashMediaSource$Factory")
...@@ -476,7 +475,6 @@ public final class DefaultMediaSourceFactory implements MediaSourceFactory { ...@@ -476,7 +475,6 @@ public final class DefaultMediaSourceFactory implements MediaSourceFactory {
} catch (Exception e) { } catch (Exception e) {
// Expected if the app was built without the RTSP module. // Expected if the app was built without the RTSP module.
} }
// LINT.ThenChange(../../../../../../../../proguard-rules.txt)
factories.put( factories.put(
C.TYPE_OTHER, new ProgressiveMediaSource.Factory(dataSourceFactory, extractorsFactory)); C.TYPE_OTHER, new ProgressiveMediaSource.Factory(dataSourceFactory, extractorsFactory));
return factories; return factories;
......
...@@ -263,10 +263,8 @@ public final class DefaultDataSource implements DataSource { ...@@ -263,10 +263,8 @@ public final class DefaultDataSource implements DataSource {
private DataSource getRtmpDataSource() { private DataSource getRtmpDataSource() {
if (rtmpDataSource == null) { if (rtmpDataSource == null) {
try { try {
// LINT.IfChange
Class<?> clazz = Class.forName("com.google.android.exoplayer2.ext.rtmp.RtmpDataSource"); Class<?> clazz = Class.forName("com.google.android.exoplayer2.ext.rtmp.RtmpDataSource");
rtmpDataSource = (DataSource) clazz.getConstructor().newInstance(); rtmpDataSource = (DataSource) clazz.getConstructor().newInstance();
// LINT.ThenChange(../../../../../../../../proguard-rules.txt)
addListenersToDataSource(rtmpDataSource); addListenersToDataSource(rtmpDataSource);
} catch (ClassNotFoundException e) { } catch (ClassNotFoundException e) {
// Expected if the app was built without the RTMP extension. // Expected if the app was built without the RTMP extension.
......
...@@ -24,15 +24,10 @@ import java.nio.ByteBuffer; ...@@ -24,15 +24,10 @@ import java.nio.ByteBuffer;
/** Video decoder output buffer containing video frame data. */ /** Video decoder output buffer containing video frame data. */
public class VideoDecoderOutputBuffer extends OutputBuffer { public class VideoDecoderOutputBuffer extends OutputBuffer {
// LINT.IfChange
public static final int COLORSPACE_UNKNOWN = 0; public static final int COLORSPACE_UNKNOWN = 0;
public static final int COLORSPACE_BT601 = 1; public static final int COLORSPACE_BT601 = 1;
public static final int COLORSPACE_BT709 = 2; public static final int COLORSPACE_BT709 = 2;
public static final int COLORSPACE_BT2020 = 3; public static final int COLORSPACE_BT2020 = 3;
// LINT.ThenChange(
// ../../../../../../../../../../../../media/libraries/decoder_av1/src/main/jni/gav1_jni.cc,
// ../../../../../../../../../../../../media/libraries/decoder_vp9/src/main/jni/vpx_jni.cc
// )
/** Decoder private data. Used from native code. */ /** Decoder private data. Used from native code. */
public int decoderPrivate; public int decoderPrivate;
......
...@@ -103,7 +103,6 @@ public final class DefaultExtractorsFactory implements ExtractorsFactory { ...@@ -103,7 +103,6 @@ public final class DefaultExtractorsFactory implements ExtractorsFactory {
static { static {
@Nullable Constructor<? extends Extractor> flacExtensionExtractorConstructor = null; @Nullable Constructor<? extends Extractor> flacExtensionExtractorConstructor = null;
try { try {
// LINT.IfChange
@SuppressWarnings("nullness:argument.type.incompatible") @SuppressWarnings("nullness:argument.type.incompatible")
boolean isFlacNativeLibraryAvailable = boolean isFlacNativeLibraryAvailable =
Boolean.TRUE.equals( Boolean.TRUE.equals(
...@@ -116,7 +115,6 @@ public final class DefaultExtractorsFactory implements ExtractorsFactory { ...@@ -116,7 +115,6 @@ public final class DefaultExtractorsFactory implements ExtractorsFactory {
.asSubclass(Extractor.class) .asSubclass(Extractor.class)
.getConstructor(int.class); .getConstructor(int.class);
} }
// LINT.ThenChange(../../../../../../../../proguard-rules.txt)
} catch (ClassNotFoundException e) { } catch (ClassNotFoundException e) {
// Expected if the app was built without the FLAC extension. // Expected if the app was built without the FLAC extension.
} catch (Exception e) { } catch (Exception e) {
......
...@@ -54,7 +54,6 @@ public final class FlacExtractor implements Extractor { ...@@ -54,7 +54,6 @@ public final class FlacExtractor implements Extractor {
/** Factory for {@link FlacExtractor} instances. */ /** Factory for {@link FlacExtractor} instances. */
public static final ExtractorsFactory FACTORY = () -> new Extractor[] {new FlacExtractor()}; public static final ExtractorsFactory FACTORY = () -> new Extractor[] {new FlacExtractor()};
// LINT.IfChange
/* /*
* Flags in the two FLAC extractors should be kept in sync. If we ever change this then * Flags in the two FLAC extractors should be kept in sync. If we ever change this then
* DefaultExtractorsFactory will need modifying, because it currently assumes this is the case. * DefaultExtractorsFactory will need modifying, because it currently assumes this is the case.
...@@ -75,7 +74,6 @@ public final class FlacExtractor implements Extractor { ...@@ -75,7 +74,6 @@ public final class FlacExtractor implements Extractor {
* required. * required.
*/ */
public static final int FLAG_DISABLE_ID3_METADATA = 1; public static final int FLAG_DISABLE_ID3_METADATA = 1;
// LINT.ThenChange(../../../../../../../../../../decoder_flac/src/main/java/com/google/android/exoplayer2/ext/flac/FlacExtractor.java)
/** Parser state. */ /** Parser state. */
@Documented @Documented
......
...@@ -44,7 +44,6 @@ public final class AspectRatioFrameLayout extends FrameLayout { ...@@ -44,7 +44,6 @@ public final class AspectRatioFrameLayout extends FrameLayout {
float targetAspectRatio, float naturalAspectRatio, boolean aspectRatioMismatch); float targetAspectRatio, float naturalAspectRatio, boolean aspectRatioMismatch);
} }
// LINT.IfChange
/** /**
* Resize modes for {@link AspectRatioFrameLayout}. One of {@link #RESIZE_MODE_FIT}, {@link * Resize modes for {@link AspectRatioFrameLayout}. One of {@link #RESIZE_MODE_FIT}, {@link
* #RESIZE_MODE_FIXED_WIDTH}, {@link #RESIZE_MODE_FIXED_HEIGHT}, {@link #RESIZE_MODE_FILL} or * #RESIZE_MODE_FIXED_WIDTH}, {@link #RESIZE_MODE_FIXED_HEIGHT}, {@link #RESIZE_MODE_FILL} or
...@@ -81,7 +80,6 @@ public final class AspectRatioFrameLayout extends FrameLayout { ...@@ -81,7 +80,6 @@ public final class AspectRatioFrameLayout extends FrameLayout {
* Either the width or height is increased to obtain the desired aspect ratio. * Either the width or height is increased to obtain the desired aspect ratio.
*/ */
public static final int RESIZE_MODE_ZOOM = 4; public static final int RESIZE_MODE_ZOOM = 4;
// LINT.ThenChange(../../../../../../res/values/attrs.xml)
/** /**
* The {@link FrameLayout} will not resize itself if the fractional difference between its natural * The {@link FrameLayout} will not resize itself if the fractional difference between its natural
......
...@@ -152,12 +152,10 @@ public class DefaultTimeBar extends View implements TimeBar { ...@@ -152,12 +152,10 @@ public class DefaultTimeBar extends View implements TimeBar {
/** Default color for played ad markers. */ /** Default color for played ad markers. */
public static final int DEFAULT_PLAYED_AD_MARKER_COLOR = 0x33FFFF00; public static final int DEFAULT_PLAYED_AD_MARKER_COLOR = 0x33FFFF00;
// LINT.IfChange
/** Vertical gravity for progress bar to be located at the center in the view. */ /** Vertical gravity for progress bar to be located at the center in the view. */
public static final int BAR_GRAVITY_CENTER = 0; public static final int BAR_GRAVITY_CENTER = 0;
/** Vertical gravity for progress bar to be located at the bottom in the view. */ /** Vertical gravity for progress bar to be located at the bottom in the view. */
public static final int BAR_GRAVITY_BOTTOM = 1; public static final int BAR_GRAVITY_BOTTOM = 1;
// LINT.ThenChange(../../../../../../../../../ui/src/main/res/values/attrs.xml)
/** The threshold in dps above the bar at which touch events trigger fine scrub mode. */ /** The threshold in dps above the bar at which touch events trigger fine scrub mode. */
private static final int FINE_SCRUB_Y_THRESHOLD_DP = -50; private static final int FINE_SCRUB_Y_THRESHOLD_DP = -50;
......
...@@ -260,7 +260,6 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull; ...@@ -260,7 +260,6 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
*/ */
public class PlayerView extends FrameLayout implements AdViewProvider { public class PlayerView extends FrameLayout implements AdViewProvider {
// LINT.IfChange
/** /**
* Determines when the buffering view is shown. One of {@link #SHOW_BUFFERING_NEVER}, {@link * Determines when the buffering view is shown. One of {@link #SHOW_BUFFERING_NEVER}, {@link
* #SHOW_BUFFERING_WHEN_PLAYING} or {@link #SHOW_BUFFERING_ALWAYS}. * #SHOW_BUFFERING_WHEN_PLAYING} or {@link #SHOW_BUFFERING_ALWAYS}.
...@@ -281,15 +280,12 @@ public class PlayerView extends FrameLayout implements AdViewProvider { ...@@ -281,15 +280,12 @@ public class PlayerView extends FrameLayout implements AdViewProvider {
* buffering} state. * buffering} state.
*/ */
public static final int SHOW_BUFFERING_ALWAYS = 2; public static final int SHOW_BUFFERING_ALWAYS = 2;
// LINT.ThenChange(../../../../../../res/values/attrs.xml)
// LINT.IfChange
private static final int SURFACE_TYPE_NONE = 0; private static final int SURFACE_TYPE_NONE = 0;
private static final int SURFACE_TYPE_SURFACE_VIEW = 1; private static final int SURFACE_TYPE_SURFACE_VIEW = 1;
private static final int SURFACE_TYPE_TEXTURE_VIEW = 2; private static final int SURFACE_TYPE_TEXTURE_VIEW = 2;
private static final int SURFACE_TYPE_SPHERICAL_GL_SURFACE_VIEW = 3; private static final int SURFACE_TYPE_SPHERICAL_GL_SURFACE_VIEW = 3;
private static final int SURFACE_TYPE_VIDEO_DECODER_GL_SURFACE_VIEW = 4; private static final int SURFACE_TYPE_VIDEO_DECODER_GL_SURFACE_VIEW = 4;
// LINT.ThenChange(../../../../../../res/values/attrs.xml)
private final ComponentListener componentListener; private final ComponentListener componentListener;
@Nullable private final AspectRatioFrameLayout contentFrame; @Nullable private final AspectRatioFrameLayout contentFrame;
......
...@@ -261,7 +261,6 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull; ...@@ -261,7 +261,6 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
*/ */
public class StyledPlayerView extends FrameLayout implements AdViewProvider { public class StyledPlayerView extends FrameLayout implements AdViewProvider {
// LINT.IfChange
/** /**
* Determines when the buffering view is shown. One of {@link #SHOW_BUFFERING_NEVER}, {@link * Determines when the buffering view is shown. One of {@link #SHOW_BUFFERING_NEVER}, {@link
* #SHOW_BUFFERING_WHEN_PLAYING} or {@link #SHOW_BUFFERING_ALWAYS}. * #SHOW_BUFFERING_WHEN_PLAYING} or {@link #SHOW_BUFFERING_ALWAYS}.
...@@ -282,15 +281,12 @@ public class StyledPlayerView extends FrameLayout implements AdViewProvider { ...@@ -282,15 +281,12 @@ public class StyledPlayerView extends FrameLayout implements AdViewProvider {
* buffering} state. * buffering} state.
*/ */
public static final int SHOW_BUFFERING_ALWAYS = 2; public static final int SHOW_BUFFERING_ALWAYS = 2;
// LINT.ThenChange(../../../../../../res/values/attrs.xml)
// LINT.IfChange
private static final int SURFACE_TYPE_NONE = 0; private static final int SURFACE_TYPE_NONE = 0;
private static final int SURFACE_TYPE_SURFACE_VIEW = 1; private static final int SURFACE_TYPE_SURFACE_VIEW = 1;
private static final int SURFACE_TYPE_TEXTURE_VIEW = 2; private static final int SURFACE_TYPE_TEXTURE_VIEW = 2;
private static final int SURFACE_TYPE_SPHERICAL_GL_SURFACE_VIEW = 3; private static final int SURFACE_TYPE_SPHERICAL_GL_SURFACE_VIEW = 3;
private static final int SURFACE_TYPE_VIDEO_DECODER_GL_SURFACE_VIEW = 4; private static final int SURFACE_TYPE_VIDEO_DECODER_GL_SURFACE_VIEW = 4;
// LINT.ThenChange(../../../../../../res/values/attrs.xml)
private final ComponentListener componentListener; private final ComponentListener componentListener;
@Nullable private final AspectRatioFrameLayout contentFrame; @Nullable private final AspectRatioFrameLayout contentFrame;
......
...@@ -262,7 +262,6 @@ public final class TrackSelectionDialogBuilder { ...@@ -262,7 +262,6 @@ public final class TrackSelectionDialogBuilder {
try { try {
// This method uses reflection to avoid a dependency on AndroidX appcompat that adds 800KB to // This method uses reflection to avoid a dependency on AndroidX appcompat that adds 800KB to
// the APK size even with shrinking. See https://issuetracker.google.com/161514204. // the APK size even with shrinking. See https://issuetracker.google.com/161514204.
// LINT.IfChange
Class<?> builderClazz = Class.forName("androidx.appcompat.app.AlertDialog$Builder"); Class<?> builderClazz = Class.forName("androidx.appcompat.app.AlertDialog$Builder");
Constructor<?> builderConstructor = builderClazz.getConstructor(Context.class, int.class); Constructor<?> builderConstructor = builderClazz.getConstructor(Context.class, int.class);
Object builder = builderConstructor.newInstance(context, themeResId); Object builder = builderConstructor.newInstance(context, themeResId);
...@@ -283,7 +282,6 @@ public final class TrackSelectionDialogBuilder { ...@@ -283,7 +282,6 @@ public final class TrackSelectionDialogBuilder {
.getMethod("setNegativeButton", int.class, DialogInterface.OnClickListener.class) .getMethod("setNegativeButton", int.class, DialogInterface.OnClickListener.class)
.invoke(builder, android.R.string.cancel, null); .invoke(builder, android.R.string.cancel, null);
return (Dialog) builderClazz.getMethod("create").invoke(builder); return (Dialog) builderClazz.getMethod("create").invoke(builder);
// LINT.ThenChange(../../../../../../../../proguard-rules.txt)
} catch (ClassNotFoundException e) { } catch (ClassNotFoundException e) {
// Expected if the AndroidX compat library is not available. // Expected if the AndroidX compat library is not available.
return null; return null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment