Skip to content

Commit

Permalink
Use @link instead of @value
Browse files Browse the repository at this point in the history
Dackka doesn't support `@value`

PiperOrigin-RevId: 524309695
(cherry picked from commit 9341290)
  • Loading branch information
icbaker authored and rohitjoins committed Apr 18, 2023
1 parent e8f00bf commit 26d2b6c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*/
/* 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
* linearly in size from a single point to filling the full output frame.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public Builder setEnableContinuousPlayback(boolean enableContinuousPlayback) {
/**
* 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
* 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.
*
* <p>The purpose of this timeout is to avoid playback getting stuck in the unexpected case that
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ public final class AuxEffectInfo {
* Creates an instance with the given effect identifier and send level.
*
* @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
* audio track.
* @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
* to {@link AudioTrack#setAuxEffectSendLevel(float)} on the underlying audio track.
* is full send. If {@code effectId} is not {@link #NO_AUX_EFFECT_ID}, this value is passed to
* {@link AudioTrack#setAuxEffectSendLevel(float)} on the underlying audio track.
*/
public AuxEffectInfo(int effectId, float sendLevel) {
this.effectId = effectId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public static float[] createVertexBuffer(List<float[]> vertexList) {
}

/**
* 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.
*/
Expand Down Expand Up @@ -170,7 +170,7 @@ public static boolean isProtectedContentExtensionSupported(Context context) {
}

/**
* 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
* surfaces in a call to {@link EGL14#eglMakeCurrent(EGLDisplay, EGLSurface, EGLSurface,
Expand All @@ -186,7 +186,7 @@ public static boolean isSurfacelessContextExtensionSupported() {
}

/**
* 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
* for HDR.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public Builder() {

/**
* 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
public Builder setMinPcmBufferDurationUs(int minPcmBufferDurationUs) {
Expand All @@ -82,7 +82,7 @@ public Builder setMinPcmBufferDurationUs(int minPcmBufferDurationUs) {

/**
* 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
public Builder setMaxPcmBufferDurationUs(int maxPcmBufferDurationUs) {
Expand All @@ -92,7 +92,7 @@ public Builder setMaxPcmBufferDurationUs(int maxPcmBufferDurationUs) {

/**
* 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
public Builder setPcmBufferMultiplicationFactor(int pcmBufferMultiplicationFactor) {
Expand All @@ -102,7 +102,7 @@ public Builder setPcmBufferMultiplicationFactor(int pcmBufferMultiplicationFacto

/**
* Sets the length for passthrough {@link AudioTrack} buffers, in microseconds. Default is
* {@value #PASSTHROUGH_BUFFER_DURATION_US}.
* {@link #PASSTHROUGH_BUFFER_DURATION_US}.
*/
@CanIgnoreReturnValue
public Builder setPassthroughBufferDurationUs(int passthroughBufferDurationUs) {
Expand All @@ -111,7 +111,7 @@ public Builder setPassthroughBufferDurationUs(int passthroughBufferDurationUs) {
}

/**
* 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}.
*/
@CanIgnoreReturnValue
Expand All @@ -122,7 +122,7 @@ public Builder setOffloadBufferDurationUs(int offloadBufferDurationUs) {

/**
* 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
public Builder setAc3BufferMultiplicationFactor(int ac3BufferMultiplicationFactor) {
Expand Down

0 comments on commit 26d2b6c

Please sign in to comment.