Remove fully qualified class names in link tags

PiperOrigin-RevId: 400224459
This commit is contained in:
bachinger 2021-10-01 17:43:49 +01:00
parent a26caae4ca
commit 014ee8f5d8
11 changed files with 37 additions and 33 deletions

View File

@ -27,6 +27,7 @@ import androidx.annotation.IntRange;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
import com.google.android.exoplayer2.Bundleable; import com.google.android.exoplayer2.Bundleable;
import com.google.android.exoplayer2.C; import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.Timeline;
import com.google.android.exoplayer2.util.Util; import com.google.android.exoplayer2.util.Util;
import java.lang.annotation.Documented; import java.lang.annotation.Documented;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
@ -52,8 +53,8 @@ public final class AdPlaybackState implements Bundleable {
public static final class AdGroup implements Bundleable { public static final class AdGroup implements Bundleable {
/** /**
* The time of the ad group in the {@link com.google.android.exoplayer2.Timeline.Period}, in * The time of the ad group in the {@link Timeline.Period}, in microseconds, or {@link
* microseconds, or {@link C#TIME_END_OF_SOURCE} to indicate a postroll ad. * C#TIME_END_OF_SOURCE} to indicate a postroll ad.
*/ */
public final long timeUs; public final long timeUs;
/** The number of ads in the ad group, or {@link C#LENGTH_UNSET} if unknown. */ /** The number of ads in the ad group, or {@link C#LENGTH_UNSET} if unknown. */
@ -75,9 +76,8 @@ public final class AdPlaybackState implements Bundleable {
/** /**
* Creates a new ad group with an unspecified number of ads. * Creates a new ad group with an unspecified number of ads.
* *
* @param timeUs The time of the ad group in the {@link * @param timeUs The time of the ad group in the {@link Timeline.Period}, in microseconds, or
* com.google.android.exoplayer2.Timeline.Period}, in microseconds, or {@link * {@link C#TIME_END_OF_SOURCE} to indicate a postroll ad.
* C#TIME_END_OF_SOURCE} to indicate a postroll ad.
*/ */
public AdGroup(long timeUs) { public AdGroup(long timeUs) {
this( this(
@ -452,8 +452,8 @@ public final class AdPlaybackState implements Bundleable {
* *
* @param adsId The opaque identifier for ads with which this instance is associated. * @param adsId The opaque identifier for ads with which this instance is associated.
* @param adGroupTimesUs The times of ad groups in microseconds, relative to the start of the * @param adGroupTimesUs The times of ad groups in microseconds, relative to the start of the
* {@link com.google.android.exoplayer2.Timeline.Period} they belong to. A final element with * {@link Timeline.Period} they belong to. A final element with the value {@link
* the value {@link C#TIME_END_OF_SOURCE} indicates that there is a postroll ad. * C#TIME_END_OF_SOURCE} indicates that there is a postroll ad.
*/ */
public AdPlaybackState(Object adsId, long... adGroupTimesUs) { public AdPlaybackState(Object adsId, long... adGroupTimesUs) {
this( this(

View File

@ -17,6 +17,7 @@ package com.google.android.exoplayer2.audio;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
import com.google.android.exoplayer2.C; import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.Format;
import com.google.android.exoplayer2.util.Assertions; import com.google.android.exoplayer2.util.Assertions;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
@ -33,9 +34,10 @@ import java.nio.ByteBuffer;
* Resets the channel mapping. After calling this method, call {@link #configure(AudioFormat)} to * Resets the channel mapping. After calling this method, call {@link #configure(AudioFormat)} to
* start using the new channel map. * start using the new channel map.
* *
* <p>See {@link AudioSink#configure(Format, int, int[])}.
*
* @param outputChannels The mapping from input to output channel indices, or {@code null} to * @param outputChannels The mapping from input to output channel indices, or {@code null} to
* leave the input unchanged. * leave the input unchanged.
* @see AudioSink#configure(com.google.android.exoplayer2.Format, int, int[])
*/ */
public void setChannelMap(@Nullable int[] outputChannels) { public void setChannelMap(@Nullable int[] outputChannels) {
pendingOutputChannels = outputChannels; pendingOutputChannels = outputChannels;

View File

@ -18,6 +18,7 @@ package com.google.android.exoplayer2.audio;
import static java.lang.Math.min; import static java.lang.Math.min;
import com.google.android.exoplayer2.C; import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.Format;
import com.google.android.exoplayer2.util.Util; import com.google.android.exoplayer2.util.Util;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
@ -45,9 +46,10 @@ import java.nio.ByteBuffer;
* processor. After calling this method, call {@link #configure(AudioFormat)} to apply the new * processor. After calling this method, call {@link #configure(AudioFormat)} to apply the new
* trimming frame counts. * trimming frame counts.
* *
* <p>See {@link AudioSink#configure(Format, int, int[])}.
*
* @param trimStartFrames The number of audio frames to trim from the start of audio. * @param trimStartFrames The number of audio frames to trim from the start of audio.
* @param trimEndFrames The number of audio frames to trim from the end of audio. * @param trimEndFrames The number of audio frames to trim from the end of audio.
* @see AudioSink#configure(com.google.android.exoplayer2.Format, int, int[])
*/ */
public void setTrimFrameCount(int trimStartFrames, int trimEndFrames) { public void setTrimFrameCount(int trimStartFrames, int trimEndFrames) {
this.trimStartFrames = trimStartFrames; this.trimStartFrames = trimStartFrames;

View File

@ -17,6 +17,7 @@ package com.google.android.exoplayer2.source;
import android.os.Handler; import android.os.Handler;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
import com.google.android.exoplayer2.ExoPlayer;
import com.google.android.exoplayer2.MediaItem; import com.google.android.exoplayer2.MediaItem;
import com.google.android.exoplayer2.Timeline; import com.google.android.exoplayer2.Timeline;
import com.google.android.exoplayer2.drm.DrmSessionEventListener; import com.google.android.exoplayer2.drm.DrmSessionEventListener;
@ -25,8 +26,8 @@ import com.google.android.exoplayer2.upstream.TransferListener;
import java.io.IOException; import java.io.IOException;
/** /**
* Defines and provides media to be played by an {@link com.google.android.exoplayer2.ExoPlayer}. A * Defines and provides media to be played by an {@link ExoPlayer}. A MediaSource has two main
* MediaSource has two main responsibilities: * responsibilities:
* *
* <ul> * <ul>
* <li>To provide the player with a {@link Timeline} defining the structure of its media, and to * <li>To provide the player with a {@link Timeline} defining the structure of its media, and to
@ -40,9 +41,8 @@ import java.io.IOException;
* </ul> * </ul>
* *
* All methods are called on the player's internal playback thread, as described in the {@link * All methods are called on the player's internal playback thread, as described in the {@link
* com.google.android.exoplayer2.ExoPlayer} Javadoc. They should not be called directly from * ExoPlayer} Javadoc. They should not be called directly from application code. Instances can be
* application code. Instances can be re-used, but only for one {@link * re-used, but only for one {@link ExoPlayer} instance simultaneously.
* com.google.android.exoplayer2.ExoPlayer} instance simultaneously.
*/ */
public interface MediaSource { public interface MediaSource {

View File

@ -25,6 +25,7 @@ import com.google.android.exoplayer2.Format;
import com.google.android.exoplayer2.FormatHolder; import com.google.android.exoplayer2.FormatHolder;
import com.google.android.exoplayer2.MediaItem; import com.google.android.exoplayer2.MediaItem;
import com.google.android.exoplayer2.SeekParameters; import com.google.android.exoplayer2.SeekParameters;
import com.google.android.exoplayer2.Timeline;
import com.google.android.exoplayer2.decoder.DecoderInputBuffer; import com.google.android.exoplayer2.decoder.DecoderInputBuffer;
import com.google.android.exoplayer2.trackselection.ExoTrackSelection; import com.google.android.exoplayer2.trackselection.ExoTrackSelection;
import com.google.android.exoplayer2.upstream.Allocator; import com.google.android.exoplayer2.upstream.Allocator;
@ -56,9 +57,8 @@ public final class SilenceMediaSource extends BaseMediaSource {
} }
/** /**
* Sets a tag for the media source which will be published in the {@link * Sets a tag for the media source which will be published in the {@link Timeline} of the source
* com.google.android.exoplayer2.Timeline} of the source as {@link * as {@link MediaItem.LocalConfiguration#tag Window#mediaItem.localConfiguration.tag}.
* MediaItem.LocalConfiguration#tag Window#mediaItem.localConfiguration.tag}.
* *
* @param tag A tag for the media source. * @param tag A tag for the media source.
* @return This factory, for convenience. * @return This factory, for convenience.

View File

@ -124,7 +124,7 @@ public final class DashUtil {
* Loads initialization data for the {@code representation} and returns the sample {@link Format}. * Loads initialization data for the {@code representation} and returns the sample {@link Format}.
* *
* @param dataSource The source from which the data should be loaded. * @param dataSource The source from which the data should be loaded.
* @param trackType The type of the representation. Typically one of the {@link * @param trackType The type of the representation. Typically one of the {@link C
* com.google.android.exoplayer2.C} {@code TRACK_TYPE_*} constants. * com.google.android.exoplayer2.C} {@code TRACK_TYPE_*} constants.
* @param representation The representation which initialization chunk belongs to. * @param representation The representation which initialization chunk belongs to.
* @param baseUrlIndex The index of the base URL to be picked from the {@link * @param baseUrlIndex The index of the base URL to be picked from the {@link
@ -155,7 +155,7 @@ public final class DashUtil {
* <p>Uses the first base URL for loading the format. * <p>Uses the first base URL for loading the format.
* *
* @param dataSource The source from which the data should be loaded. * @param dataSource The source from which the data should be loaded.
* @param trackType The type of the representation. Typically one of the {@link * @param trackType The type of the representation. Typically one of the {@link C
* com.google.android.exoplayer2.C} {@code TRACK_TYPE_*} constants. * com.google.android.exoplayer2.C} {@code TRACK_TYPE_*} constants.
* @param representation The representation which initialization chunk belongs to. * @param representation The representation which initialization chunk belongs to.
* @return the sample {@link Format} of the given representation. * @return the sample {@link Format} of the given representation.
@ -172,7 +172,7 @@ public final class DashUtil {
* ChunkIndex}. * ChunkIndex}.
* *
* @param dataSource The source from which the data should be loaded. * @param dataSource The source from which the data should be loaded.
* @param trackType The type of the representation. Typically one of the {@link * @param trackType The type of the representation. Typically one of the {@link C
* com.google.android.exoplayer2.C} {@code TRACK_TYPE_*} constants. * com.google.android.exoplayer2.C} {@code TRACK_TYPE_*} constants.
* @param representation The representation which initialization chunk belongs to. * @param representation The representation which initialization chunk belongs to.
* @param baseUrlIndex The index of the base URL with which to resolve the request URI. * @param baseUrlIndex The index of the base URL with which to resolve the request URI.
@ -204,7 +204,7 @@ public final class DashUtil {
* <p>Uses the first base URL for loading the index. * <p>Uses the first base URL for loading the index.
* *
* @param dataSource The source from which the data should be loaded. * @param dataSource The source from which the data should be loaded.
* @param trackType The type of the representation. Typically one of the {@link * @param trackType The type of the representation. Typically one of the {@link C
* com.google.android.exoplayer2.C} {@code TRACK_TYPE_*} constants. * com.google.android.exoplayer2.C} {@code TRACK_TYPE_*} constants.
* @param representation The representation which initialization chunk belongs to. * @param representation The representation which initialization chunk belongs to.
* @return The {@link ChunkIndex} of the given representation, or null if no initialization or * @return The {@link ChunkIndex} of the given representation, or null if no initialization or

View File

@ -350,8 +350,7 @@ public final class Cea608Decoder extends CeaDecoder {
* Constructs an instance. * Constructs an instance.
* *
* @param mimeType The MIME type of the CEA-608 data. * @param mimeType The MIME type of the CEA-608 data.
* @param accessibilityChannel The Accessibility channel, or {@link * @param accessibilityChannel The Accessibility channel, or {@link Format#NO_VALUE} if unknown.
* com.google.android.exoplayer2.Format#NO_VALUE} if unknown.
* @param validDataChannelTimeoutMs The timeout (in milliseconds) permitted by ANSI/CTA-608-E * @param validDataChannelTimeoutMs The timeout (in milliseconds) permitted by ANSI/CTA-608-E
* R-2014 Annex C.9 to clear "stuck" captions where no removal control code is received. The * R-2014 Annex C.9 to clear "stuck" captions where no removal control code is received. The
* timeout should be at least {@link #MIN_DATA_CHANNEL_TIMEOUT_MS} or {@link C#TIME_UNSET} for * timeout should be at least {@link #MIN_DATA_CHANNEL_TIMEOUT_MS} or {@link C#TIME_UNSET} for

View File

@ -85,7 +85,7 @@ public final class AvcConfig {
/** /**
* List of buffers containing the codec-specific data to be provided to the decoder. * List of buffers containing the codec-specific data to be provided to the decoder.
* *
* @see com.google.android.exoplayer2.Format#initializationData * <p>See {@link Format#initializationData}.
*/ */
public final List<byte[]> initializationData; public final List<byte[]> initializationData;
@ -104,7 +104,7 @@ public final class AvcConfig {
/** /**
* An RFC 6381 codecs string representing the video format, or {@code null} if not known. * An RFC 6381 codecs string representing the video format, or {@code null} if not known.
* *
* @see com.google.android.exoplayer2.Format#codecs * <p>See {@link Format#codecs}.
*/ */
@Nullable public final String codecs; @Nullable public final String codecs;

View File

@ -111,7 +111,7 @@ public final class HevcConfig {
/** /**
* List of buffers containing the codec-specific data to be provided to the decoder. * List of buffers containing the codec-specific data to be provided to the decoder.
* *
* @see com.google.android.exoplayer2.Format#initializationData * <p>See {@link Format#initializationData}.
*/ */
public final List<byte[]> initializationData; public final List<byte[]> initializationData;
@ -130,7 +130,7 @@ public final class HevcConfig {
/** /**
* An RFC 6381 codecs string representing the video format, or {@code null} if not known. * An RFC 6381 codecs string representing the video format, or {@code null} if not known.
* *
* @see com.google.android.exoplayer2.Format#codecs * <p>See {@link Format#codecs}.
*/ */
@Nullable public final String codecs; @Nullable public final String codecs;

View File

@ -51,6 +51,7 @@ import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi; import androidx.annotation.RequiresApi;
import com.google.android.exoplayer2.C; import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.ControlDispatcher; import com.google.android.exoplayer2.ControlDispatcher;
import com.google.android.exoplayer2.DefaultControlDispatcher;
import com.google.android.exoplayer2.ExoPlayer; import com.google.android.exoplayer2.ExoPlayer;
import com.google.android.exoplayer2.ExoPlayerLibraryInfo; import com.google.android.exoplayer2.ExoPlayerLibraryInfo;
import com.google.android.exoplayer2.ForwardingPlayer; import com.google.android.exoplayer2.ForwardingPlayer;
@ -322,7 +323,7 @@ public class PlayerControlView extends FrameLayout {
private final String shuffleOffContentDescription; private final String shuffleOffContentDescription;
@Nullable private Player player; @Nullable private Player player;
private com.google.android.exoplayer2.ControlDispatcher controlDispatcher; private ControlDispatcher controlDispatcher;
@Nullable private ProgressUpdateListener progressUpdateListener; @Nullable private ProgressUpdateListener progressUpdateListener;
private boolean isAttachedToWindow; private boolean isAttachedToWindow;
@ -419,7 +420,7 @@ public class PlayerControlView extends FrameLayout {
extraAdGroupTimesMs = new long[0]; extraAdGroupTimesMs = new long[0];
extraPlayedAdGroups = new boolean[0]; extraPlayedAdGroups = new boolean[0];
componentListener = new ComponentListener(); componentListener = new ComponentListener();
controlDispatcher = new com.google.android.exoplayer2.DefaultControlDispatcher(); controlDispatcher = new DefaultControlDispatcher();
updateProgressAction = this::updateProgress; updateProgressAction = this::updateProgress;
hideAction = this::hide; hideAction = this::hide;

View File

@ -26,6 +26,7 @@ import android.view.Surface;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
import com.google.android.exoplayer2.C; import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.ExoPlaybackException; import com.google.android.exoplayer2.ExoPlaybackException;
import com.google.android.exoplayer2.ExoPlayer;
import com.google.android.exoplayer2.Format; import com.google.android.exoplayer2.Format;
import com.google.android.exoplayer2.LoadControl; import com.google.android.exoplayer2.LoadControl;
import com.google.android.exoplayer2.MediaItem; import com.google.android.exoplayer2.MediaItem;
@ -178,10 +179,9 @@ public final class ExoPlayerTestRunner implements Player.Listener, ActionSchedul
} }
/** /**
* Skips calling {@link com.google.android.exoplayer2.ExoPlayer#setMediaSources(List)} before * Skips calling {@link ExoPlayer#setMediaSources(List)} before preparing. Calling this method
* preparing. Calling this method is not allowed after calls to {@link * is not allowed after calls to {@link #setMediaSources(MediaSource...)}, {@link
* #setMediaSources(MediaSource...)}, {@link #setTimeline(Timeline)} and/or {@link * #setTimeline(Timeline)} and/or {@link #setManifest(Object)}.
* #setManifest(Object)}.
* *
* @return This builder. * @return This builder.
*/ */