Commit 26d2b6cd by ibaker Committed by Rohit Singh

Use `@link` instead of `@value`

Dackka doesn't support `@value`

PiperOrigin-RevId: 524309695
(cherry picked from commit 93412907)
parent e8f00bf2
...@@ -28,7 +28,7 @@ import com.google.android.exoplayer2.util.Util; ...@@ -28,7 +28,7 @@ import com.google.android.exoplayer2.util.Util;
*/ */
/* package */ final class MatrixTransformationFactory { /* package */ final class MatrixTransformationFactory {
/** /**
* Returns a {@link MatrixTransformation} that rescales the frames over the first {@value * Returns a {@link MatrixTransformation} that rescales the frames over the first {@link
* #ZOOM_DURATION_SECONDS} seconds, such that the rectangle filled with the input frame increases * #ZOOM_DURATION_SECONDS} seconds, such that the rectangle filled with the input frame increases
* linearly in size from a single point to filling the full output frame. * linearly in size from a single point to filling the full output frame.
*/ */
......
...@@ -264,7 +264,7 @@ public final class ImaAdsLoader implements AdsLoader { ...@@ -264,7 +264,7 @@ public final class ImaAdsLoader implements AdsLoader {
/** /**
* Sets the duration in milliseconds for which the player must buffer while preloading an ad * Sets the duration in milliseconds for which the player must buffer while preloading an ad
* group before that ad group is skipped and marked as having failed to load. Pass {@link * group before that ad group is skipped and marked as having failed to load. Pass {@link
* C#TIME_UNSET} if there should be no such timeout. The default value is {@value * C#TIME_UNSET} if there should be no such timeout. The default value is {@link
* #DEFAULT_AD_PRELOAD_TIMEOUT_MS} ms. * #DEFAULT_AD_PRELOAD_TIMEOUT_MS} ms.
* *
* <p>The purpose of this timeout is to avoid playback getting stuck in the unexpected case that * <p>The purpose of this timeout is to avoid playback getting stuck in the unexpected case that
......
...@@ -50,12 +50,12 @@ public final class AuxEffectInfo { ...@@ -50,12 +50,12 @@ public final class AuxEffectInfo {
* Creates an instance with the given effect identifier and send level. * Creates an instance with the given effect identifier and send level.
* *
* @param effectId The effect identifier. This is the value returned by {@link * @param effectId The effect identifier. This is the value returned by {@link
* AudioEffect#getId()} on the effect, or {@value #NO_AUX_EFFECT_ID} which represents no * AudioEffect#getId()} on the effect, or {@link #NO_AUX_EFFECT_ID} which represents no
* effect. This value is passed to {@link AudioTrack#attachAuxEffect(int)} on the underlying * effect. This value is passed to {@link AudioTrack#attachAuxEffect(int)} on the underlying
* audio track. * audio track.
* @param sendLevel The send level for the effect, where 0 represents no effect and a value of 1 * @param sendLevel The send level for the effect, where 0 represents no effect and a value of 1
* is full send. If {@code effectId} is not {@value #NO_AUX_EFFECT_ID}, this value is passed * is full send. If {@code effectId} is not {@link #NO_AUX_EFFECT_ID}, this value is passed to
* to {@link AudioTrack#setAuxEffectSendLevel(float)} on the underlying audio track. * {@link AudioTrack#setAuxEffectSendLevel(float)} on the underlying audio track.
*/ */
public AuxEffectInfo(int effectId, float sendLevel) { public AuxEffectInfo(int effectId, float sendLevel) {
this.effectId = effectId; this.effectId = effectId;
......
...@@ -141,7 +141,7 @@ public final class GlUtil { ...@@ -141,7 +141,7 @@ public final class GlUtil {
} }
/** /**
* Returns whether creating a GL context with {@value #EXTENSION_PROTECTED_CONTENT} is possible. * Returns whether creating a GL context with {@link #EXTENSION_PROTECTED_CONTENT} is possible.
* *
* <p>If {@code true}, the device supports a protected output path for DRM content when using GL. * <p>If {@code true}, the device supports a protected output path for DRM content when using GL.
*/ */
...@@ -170,7 +170,7 @@ public final class GlUtil { ...@@ -170,7 +170,7 @@ public final class GlUtil {
} }
/** /**
* Returns whether the {@value #EXTENSION_SURFACELESS_CONTEXT} extension is supported. * Returns whether the {@link #EXTENSION_SURFACELESS_CONTEXT} extension is supported.
* *
* <p>This extension allows passing {@link EGL14#EGL_NO_SURFACE} for both the write and read * <p>This extension allows passing {@link EGL14#EGL_NO_SURFACE} for both the write and read
* surfaces in a call to {@link EGL14#eglMakeCurrent(EGLDisplay, EGLSurface, EGLSurface, * surfaces in a call to {@link EGL14#eglMakeCurrent(EGLDisplay, EGLSurface, EGLSurface,
...@@ -186,7 +186,7 @@ public final class GlUtil { ...@@ -186,7 +186,7 @@ public final class GlUtil {
} }
/** /**
* Returns whether the {@value #EXTENSION_YUV_TARGET} extension is supported. * Returns whether the {@link #EXTENSION_YUV_TARGET} extension is supported.
* *
* <p>This extension allows sampling raw YUV values from an external texture, which is required * <p>This extension allows sampling raw YUV values from an external texture, which is required
* for HDR. * for HDR.
......
...@@ -72,7 +72,7 @@ public class DefaultAudioTrackBufferSizeProvider ...@@ -72,7 +72,7 @@ public class DefaultAudioTrackBufferSizeProvider
/** /**
* Sets the minimum length for PCM {@link AudioTrack} buffers, in microseconds. Default is * Sets the minimum length for PCM {@link AudioTrack} buffers, in microseconds. Default is
* {@value #MIN_PCM_BUFFER_DURATION_US}. * {@link #MIN_PCM_BUFFER_DURATION_US}.
*/ */
@CanIgnoreReturnValue @CanIgnoreReturnValue
public Builder setMinPcmBufferDurationUs(int minPcmBufferDurationUs) { public Builder setMinPcmBufferDurationUs(int minPcmBufferDurationUs) {
...@@ -82,7 +82,7 @@ public class DefaultAudioTrackBufferSizeProvider ...@@ -82,7 +82,7 @@ public class DefaultAudioTrackBufferSizeProvider
/** /**
* Sets the maximum length for PCM {@link AudioTrack} buffers, in microseconds. Default is * Sets the maximum length for PCM {@link AudioTrack} buffers, in microseconds. Default is
* {@value #MAX_PCM_BUFFER_DURATION_US}. * {@link #MAX_PCM_BUFFER_DURATION_US}.
*/ */
@CanIgnoreReturnValue @CanIgnoreReturnValue
public Builder setMaxPcmBufferDurationUs(int maxPcmBufferDurationUs) { public Builder setMaxPcmBufferDurationUs(int maxPcmBufferDurationUs) {
...@@ -92,7 +92,7 @@ public class DefaultAudioTrackBufferSizeProvider ...@@ -92,7 +92,7 @@ public class DefaultAudioTrackBufferSizeProvider
/** /**
* Sets the multiplication factor to apply to the minimum buffer size requested. Default is * Sets the multiplication factor to apply to the minimum buffer size requested. Default is
* {@value #PCM_BUFFER_MULTIPLICATION_FACTOR}. * {@link #PCM_BUFFER_MULTIPLICATION_FACTOR}.
*/ */
@CanIgnoreReturnValue @CanIgnoreReturnValue
public Builder setPcmBufferMultiplicationFactor(int pcmBufferMultiplicationFactor) { public Builder setPcmBufferMultiplicationFactor(int pcmBufferMultiplicationFactor) {
...@@ -102,7 +102,7 @@ public class DefaultAudioTrackBufferSizeProvider ...@@ -102,7 +102,7 @@ public class DefaultAudioTrackBufferSizeProvider
/** /**
* Sets the length for passthrough {@link AudioTrack} buffers, in microseconds. Default is * Sets the length for passthrough {@link AudioTrack} buffers, in microseconds. Default is
* {@value #PASSTHROUGH_BUFFER_DURATION_US}. * {@link #PASSTHROUGH_BUFFER_DURATION_US}.
*/ */
@CanIgnoreReturnValue @CanIgnoreReturnValue
public Builder setPassthroughBufferDurationUs(int passthroughBufferDurationUs) { public Builder setPassthroughBufferDurationUs(int passthroughBufferDurationUs) {
...@@ -111,7 +111,7 @@ public class DefaultAudioTrackBufferSizeProvider ...@@ -111,7 +111,7 @@ public class DefaultAudioTrackBufferSizeProvider
} }
/** /**
* The length for offload {@link AudioTrack} buffers, in microseconds. Default is {@value * The length for offload {@link AudioTrack} buffers, in microseconds. Default is {@link
* #OFFLOAD_BUFFER_DURATION_US}. * #OFFLOAD_BUFFER_DURATION_US}.
*/ */
@CanIgnoreReturnValue @CanIgnoreReturnValue
...@@ -122,7 +122,7 @@ public class DefaultAudioTrackBufferSizeProvider ...@@ -122,7 +122,7 @@ public class DefaultAudioTrackBufferSizeProvider
/** /**
* Sets the multiplication factor to apply to the passthrough buffer for AC3 to avoid underruns * Sets the multiplication factor to apply to the passthrough buffer for AC3 to avoid underruns
* on some devices (e.g., Broadcom 7271). Default is {@value #AC3_BUFFER_MULTIPLICATION_FACTOR}. * on some devices (e.g., Broadcom 7271). Default is {@link #AC3_BUFFER_MULTIPLICATION_FACTOR}.
*/ */
@CanIgnoreReturnValue @CanIgnoreReturnValue
public Builder setAc3BufferMultiplicationFactor(int ac3BufferMultiplicationFactor) { public Builder setAc3BufferMultiplicationFactor(int ac3BufferMultiplicationFactor) {
......
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