Update @return to Returns where appropriate
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=129201483
This commit is contained in:
parent
490c5fea78
commit
e26f72d454
@ -140,7 +140,7 @@ import java.nio.ByteBuffer;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The position of the next data to be decoded or -1 in case of error.
|
||||
* Returns the position of the next data to be decoded, or -1 in case of error.
|
||||
*/
|
||||
public long getDecodePosition() {
|
||||
return flacGetDecodePosition(nativeDecoderContext);
|
||||
|
@ -411,7 +411,7 @@ public final class Format implements Parcelable {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return A {@link MediaFormat} representation of this format.
|
||||
* Returns a {@link MediaFormat} representation of this format.
|
||||
*/
|
||||
@SuppressLint("InlinedApi")
|
||||
@TargetApi(16)
|
||||
|
@ -232,40 +232,35 @@ public final class SimpleExoPlayer implements ExoPlayer {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The video format currently being played, or null if there is no video component to the
|
||||
* current media.
|
||||
* Returns the video format currently being played, or null if no video is being played.
|
||||
*/
|
||||
public Format getVideoFormat() {
|
||||
return videoFormat;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The audio format currently being played, or null if there is no audio component to the
|
||||
* current media.
|
||||
* Returns the audio format currently being played, or null if no audio is being played.
|
||||
*/
|
||||
public Format getAudioFormat() {
|
||||
return audioFormat;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The audio session identifier. If not set {@code AudioTrack.SESSION_ID_NOT_SET} is
|
||||
* returned.
|
||||
* Returns the audio session identifier, or {@code AudioTrack.SESSION_ID_NOT_SET} if not set.
|
||||
*/
|
||||
public int getAudioSessionId() {
|
||||
return audioSessionId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The {@link DecoderCounters} for video, or null if there is no video component to the
|
||||
* current media.
|
||||
* Returns {@link DecoderCounters} for video, or null if no video is being played.
|
||||
*/
|
||||
public DecoderCounters getVideoDecoderCounters() {
|
||||
return videoDecoderCounters;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The {@link DecoderCounters} for audio, or null if there is no audio component to the
|
||||
* current media.
|
||||
* Returns {@link DecoderCounters} for audio, or null if no audio is being played.
|
||||
*/
|
||||
public DecoderCounters getAudioDecoderCounters() {
|
||||
return audioDecoderCounters;
|
||||
|
@ -111,7 +111,7 @@ import java.io.IOException;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return A ParsableByteArray containing the payload of the packet.
|
||||
* Returns a {@link ParsableByteArray} containing the packet's payload.
|
||||
*/
|
||||
public ParsableByteArray getPayload() {
|
||||
return packetArray;
|
||||
|
@ -27,9 +27,8 @@ import java.io.IOException;
|
||||
/* package */ interface OggSeeker {
|
||||
|
||||
/**
|
||||
* @return a SeekMap instance which returns an initial estimated position for progressive seeking
|
||||
* or the final position for direct seeking. Returns null if {@link #read} hasn't returned -1
|
||||
* yet.
|
||||
* Returns a {@link SeekMap} that returns an initial estimated position for progressive seeking
|
||||
* or the final position for direct seeking. Returns null if {@link #read} has yet to return -1.
|
||||
*/
|
||||
SeekMap createSeekMap();
|
||||
|
||||
|
@ -380,7 +380,7 @@ public final class MediaCodecUtil {
|
||||
android.media.MediaCodecInfo getCodecInfoAt(int index);
|
||||
|
||||
/**
|
||||
* @return Returns whether secure decoders are explicitly listed, if present.
|
||||
* Returns whether secure decoders are explicitly listed, if present.
|
||||
*/
|
||||
boolean secureDecodersExplicit();
|
||||
|
||||
|
@ -150,8 +150,8 @@ public final class FakeDataSource implements DataSource {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The {@link DataSpec} instances passed to {@link #open(DataSpec)} since the last call
|
||||
* to this method.
|
||||
* Returns the {@link DataSpec} instances passed to {@link #open(DataSpec)} since the last call to
|
||||
* this method.
|
||||
*/
|
||||
public DataSpec[] getAndClearOpenedDataSpecs() {
|
||||
DataSpec[] dataSpecs = new DataSpec[openedDataSpecs.size()];
|
||||
|
Loading…
x
Reference in New Issue
Block a user