Fix unexpected multiline comments

#exofixit

PiperOrigin-RevId: 344517105
This commit is contained in:
andrewlewis 2020-11-27 12:42:27 +00:00 committed by Ian Baker
parent 6d01d40971
commit 4446e2637d
17 changed files with 31 additions and 32 deletions

View file

@ -45,7 +45,10 @@ public class Libgav1VideoRenderer extends DecoderVideoRenderer {
private static final String TAG = "Libgav1VideoRenderer"; private static final String TAG = "Libgav1VideoRenderer";
private static final int DEFAULT_NUM_OF_INPUT_BUFFERS = 4; private static final int DEFAULT_NUM_OF_INPUT_BUFFERS = 4;
private static final int DEFAULT_NUM_OF_OUTPUT_BUFFERS = 4; private static final int DEFAULT_NUM_OF_OUTPUT_BUFFERS = 4;
/* Default size based on 720p resolution video compressed by a factor of two. */ /**
* Default input buffer size in bytes, based on 720p resolution video compressed by a factor of
* two.
*/
private static final int DEFAULT_INPUT_BUFFER_SIZE = private static final int DEFAULT_INPUT_BUFFER_SIZE =
Util.ceilDivide(1280, 64) * Util.ceilDivide(720, 64) * (64 * 64 * 3 / 2) / 2; Util.ceilDivide(1280, 64) * Util.ceilDivide(720, 64) * (64 * 64 * 3 / 2) / 2;

View file

@ -46,8 +46,8 @@ import java.util.Arrays;
private ItemData() { private ItemData() {
this( this(
/* durationUs= */ C.TIME_UNSET, /* defaultPositionUs */ /* durationUs= */ C.TIME_UNSET,
C.TIME_UNSET, /* defaultPositionUs= */ C.TIME_UNSET,
/* isLive= */ false); /* isLive= */ false);
} }

View file

@ -137,8 +137,7 @@ public final class DrmInitData implements Comparator<SchemeData>, Parcelable {
Arrays.sort(this.schemeDatas, this); Arrays.sort(this.schemeDatas, this);
} }
/* package */ /* package */ DrmInitData(Parcel in) {
DrmInitData(Parcel in) {
schemeType = in.readString(); schemeType = in.readString();
schemeDatas = Util.castNonNull(in.createTypedArray(SchemeData.CREATOR)); schemeDatas = Util.castNonNull(in.createTypedArray(SchemeData.CREATOR));
schemeDataCount = schemeDatas.length; schemeDataCount = schemeDatas.length;

View file

@ -45,8 +45,7 @@ public final class ChapterTocFrame extends Id3Frame {
this.subFrames = subFrames; this.subFrames = subFrames;
} }
/* package */ /* package */ ChapterTocFrame(Parcel in) {
ChapterTocFrame(Parcel in) {
super(ID); super(ID);
this.elementId = castNonNull(in.readString()); this.elementId = castNonNull(in.readString());
this.isRoot = in.readByte() != 0; this.isRoot = in.readByte() != 0;

View file

@ -45,8 +45,7 @@ public final class MlltFrame extends Id3Frame {
this.millisecondsDeviations = millisecondsDeviations; this.millisecondsDeviations = millisecondsDeviations;
} }
/* package */ /* package */ MlltFrame(Parcel in) {
MlltFrame(Parcel in) {
super(ID); super(ID);
this.mpegFramesBetweenReference = in.readInt(); this.mpegFramesBetweenReference = in.readInt();
this.bytesBetweenReference = in.readInt(); this.bytesBetweenReference = in.readInt();

View file

@ -1756,7 +1756,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
processOutputMediaFormatChanged(); processOutputMediaFormatChanged();
return true; return true;
} }
/* MediaCodec.INFO_TRY_AGAIN_LATER (-1) or unknown negative return value */ // MediaCodec.INFO_TRY_AGAIN_LATER (-1) or unknown negative return value.
if (codecNeedsEosPropagation if (codecNeedsEosPropagation
&& (inputStreamEnded || codecDrainState == DRAIN_STATE_WAIT_END_OF_STREAM)) { && (inputStreamEnded || codecDrainState == DRAIN_STATE_WAIT_END_OF_STREAM)) {
processEndOfStream(); processEndOfStream();

View file

@ -1088,8 +1088,7 @@ public class DefaultTrackSelector extends MappingTrackSelector {
this.rendererDisabledFlags = rendererDisabledFlags; this.rendererDisabledFlags = rendererDisabledFlags;
} }
/* package */ /* package */ Parameters(Parcel in) {
Parameters(Parcel in) {
super(in); super(in);
// Video // Video
this.maxVideoWidth = in.readInt(); this.maxVideoWidth = in.readInt();

View file

@ -8760,7 +8760,7 @@ public final class ExoPlayerTest {
// Internal classes. // Internal classes.
/* {@link FakeRenderer} that can sleep and be woken-up. */ /** {@link FakeRenderer} that can sleep and be woken-up. */
private static class FakeSleepRenderer extends FakeRenderer { private static class FakeSleepRenderer extends FakeRenderer {
private static final long WAKEUP_DEADLINE_MS = 60 * C.MICROS_PER_SECOND; private static final long WAKEUP_DEADLINE_MS = 60 * C.MICROS_PER_SECOND;
private final AtomicBoolean sleepOnNextRender; private final AtomicBoolean sleepOnNextRender;

View file

@ -1002,8 +1002,8 @@ public final class AnalyticsCollectorTest {
AtomicReference<AdPlaybackState> adPlaybackState = AtomicReference<AdPlaybackState> adPlaybackState =
new AtomicReference<>( new AtomicReference<>(
FakeTimeline.createAdPlaybackState( FakeTimeline.createAdPlaybackState(
/* adsPerAdGroup= */ 1, /* adGroupTimesUs...= */ /* adsPerAdGroup= */ 1,
windowOffsetInFirstPeriodUs, /* adGroupTimesUs...= */ windowOffsetInFirstPeriodUs,
windowOffsetInFirstPeriodUs + 5 * C.MICROS_PER_SECOND, windowOffsetInFirstPeriodUs + 5 * C.MICROS_PER_SECOND,
C.TIME_END_OF_SOURCE)); C.TIME_END_OF_SOURCE));
AtomicInteger playedAdCount = new AtomicInteger(0); AtomicInteger playedAdCount = new AtomicInteger(0);

View file

@ -499,8 +499,8 @@ public final class ConcatenatingMediaSourceTest {
mediaSource.addMediaSources( mediaSource.addMediaSources(
Arrays.asList(new MediaSource[] {createFakeMediaSource(), createFakeMediaSource()})); Arrays.asList(new MediaSource[] {createFakeMediaSource(), createFakeMediaSource()}));
mediaSource.moveMediaSource( mediaSource.moveMediaSource(
/* fromIndex */ 1, /* toIndex */ /* currentIndex= */ 1,
0, /* newIndex= */ 0,
Util.createHandlerForCurrentLooper(), Util.createHandlerForCurrentLooper(),
runnableInvoked::countDown); runnableInvoked::countDown);
}); });
@ -624,8 +624,8 @@ public final class ConcatenatingMediaSourceTest {
testThread.runOnMainThread( testThread.runOnMainThread(
() -> () ->
mediaSource.moveMediaSource( mediaSource.moveMediaSource(
/* fromIndex */ 1, /* toIndex */ /* currentIndex= */ 1,
0, /* newIndex= */ 0,
Util.createHandlerForCurrentLooper(), Util.createHandlerForCurrentLooper(),
timelineGrabber)); timelineGrabber));
Timeline timeline = timelineGrabber.assertTimelineChangeBlocking(); Timeline timeline = timelineGrabber.assertTimelineChangeBlocking();

View file

@ -643,7 +643,7 @@ public class SimpleCacheTest {
.isEqualTo(10); .isEqualTo(10);
} }
/* Tests https://github.com/google/ExoPlayer/issues/3260 case. */ // Regression test for https://github.com/google/ExoPlayer/issues/3260.
@Test @Test
public void exceptionDuringIndexStore_doesNotPreventEviction() throws Exception { public void exceptionDuringIndexStore_doesNotPreventEviction() throws Exception {
CachedContentIndex contentIndex = CachedContentIndex contentIndex =

View file

@ -571,7 +571,7 @@ public class PlayerNotificationManager {
notificationId, notificationId,
mediaDescriptionAdapter, mediaDescriptionAdapter,
notificationListener, notificationListener,
/* customActionReceiver*/ null); /* customActionReceiver= */ null);
} }
/** /**
@ -599,7 +599,7 @@ public class PlayerNotificationManager {
channelId, channelId,
notificationId, notificationId,
mediaDescriptionAdapter, mediaDescriptionAdapter,
/* notificationListener */ null, /* notificationListener= */ null,
customActionReceiver); customActionReceiver);
} }