mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Fix build warnings under exoplayer/v2/library
- Removes empty <p> tag in javadoc - Removes incorrect parameter name warnings for var args. PiperOrigin-RevId: 294555651
This commit is contained in:
parent
440468603a
commit
1440cad5ed
@ -459,7 +459,7 @@ public final class ExoPlayerTest {
|
||||
public void testAdGroupWithLoadErrorIsSkipped() throws Exception {
|
||||
AdPlaybackState initialAdPlaybackState =
|
||||
FakeTimeline.createAdPlaybackState(
|
||||
/* adsPerAdGroup= */ 1, /* adGroupTimesUs= */ 5 * C.MICROS_PER_SECOND);
|
||||
/* adsPerAdGroup= */ 1, /* adGroupTimesUs=... */ 5 * C.MICROS_PER_SECOND);
|
||||
Timeline fakeTimeline =
|
||||
new FakeTimeline(
|
||||
new TimelineWindowDefinition(
|
||||
|
@ -609,7 +609,7 @@ public final class DefaultPlaybackSessionManagerTest {
|
||||
/* isSeekable= */ true,
|
||||
/* isDynamic= */ false,
|
||||
/* durationUs =*/ 10 * C.MICROS_PER_SECOND,
|
||||
new AdPlaybackState(/* adGroupTimesUs= */ C.TIME_END_OF_SOURCE)
|
||||
new AdPlaybackState(/* adGroupTimesUs=... */ C.TIME_END_OF_SOURCE)
|
||||
.withAdCount(/* adGroupIndex= */ 0, /* adCount= */ 1)));
|
||||
EventTime adEventTime =
|
||||
createEventTime(
|
||||
@ -820,7 +820,7 @@ public final class DefaultPlaybackSessionManagerTest {
|
||||
/* isSeekable= */ true,
|
||||
/* isDynamic= */ false,
|
||||
/* durationUs =*/ 10 * C.MICROS_PER_SECOND,
|
||||
new AdPlaybackState(/* adGroupTimesUs= */ 0, 5 * C.MICROS_PER_SECOND)
|
||||
new AdPlaybackState(/* adGroupTimesUs=... */ 0, 5 * C.MICROS_PER_SECOND)
|
||||
.withAdCount(/* adGroupIndex= */ 0, /* adCount= */ 1)
|
||||
.withAdCount(/* adGroupIndex= */ 1, /* adCount= */ 1)));
|
||||
EventTime adEventTime1 =
|
||||
@ -881,7 +881,7 @@ public final class DefaultPlaybackSessionManagerTest {
|
||||
/* isDynamic= */ false,
|
||||
/* durationUs =*/ 10 * C.MICROS_PER_SECOND,
|
||||
new AdPlaybackState(
|
||||
/* adGroupTimesUs= */ 2 * C.MICROS_PER_SECOND, 5 * C.MICROS_PER_SECOND)
|
||||
/* adGroupTimesUs=... */ 2 * C.MICROS_PER_SECOND, 5 * C.MICROS_PER_SECOND)
|
||||
.withAdCount(/* adGroupIndex= */ 0, /* adCount= */ 1)
|
||||
.withAdCount(/* adGroupIndex= */ 1, /* adCount= */ 1)));
|
||||
EventTime adEventTime1 =
|
||||
@ -932,7 +932,7 @@ public final class DefaultPlaybackSessionManagerTest {
|
||||
/* isSeekable= */ true,
|
||||
/* isDynamic= */ false,
|
||||
/* durationUs =*/ 10 * C.MICROS_PER_SECOND,
|
||||
new AdPlaybackState(/* adGroupTimesUs= */ 0, 5 * C.MICROS_PER_SECOND)
|
||||
new AdPlaybackState(/* adGroupTimesUs=... */ 0, 5 * C.MICROS_PER_SECOND)
|
||||
.withAdCount(/* adGroupIndex= */ 0, /* adCount= */ 1)
|
||||
.withAdCount(/* adGroupIndex= */ 1, /* adCount= */ 1)));
|
||||
EventTime adEventTime1 =
|
||||
@ -1004,7 +1004,7 @@ public final class DefaultPlaybackSessionManagerTest {
|
||||
/* isDynamic= */ false,
|
||||
/* durationUs =*/ 10 * C.MICROS_PER_SECOND,
|
||||
new AdPlaybackState(
|
||||
/* adGroupTimesUs= */ 2 * C.MICROS_PER_SECOND, 5 * C.MICROS_PER_SECOND)
|
||||
/* adGroupTimesUs=... */ 2 * C.MICROS_PER_SECOND, 5 * C.MICROS_PER_SECOND)
|
||||
.withAdCount(/* adGroupIndex= */ 0, /* adCount= */ 1)
|
||||
.withAdCount(/* adGroupIndex= */ 1, /* adCount= */ 1)));
|
||||
EventTime adEventTime1 =
|
||||
|
@ -666,7 +666,7 @@ public final class ConcatenatingMediaSourceTest {
|
||||
false,
|
||||
10 * C.MICROS_PER_SECOND,
|
||||
FakeTimeline.createAdPlaybackState(
|
||||
/* adsPerAdGroup= */ 1, /* adGroupTimesUs= */ 0)));
|
||||
/* adsPerAdGroup= */ 1, /* adGroupTimesUs=... */ 0)));
|
||||
FakeMediaSource mediaSourceContentOnly = new FakeMediaSource(timelineContentOnly);
|
||||
FakeMediaSource mediaSourceWithAds = new FakeMediaSource(timelineWithAds);
|
||||
mediaSource.addMediaSource(mediaSourceContentOnly);
|
||||
@ -837,7 +837,7 @@ public final class ConcatenatingMediaSourceTest {
|
||||
new MediaPeriodId(childPeriodUid1, /* windowSequenceNumber= */ 5),
|
||||
new MediaPeriodId(childPeriodUid1, /* windowSequenceNumber= */ 7));
|
||||
// Assert that only one manifest load is reported because the source is reused.
|
||||
testRunner.assertCompletedManifestLoads(/* windowIndices= */ 0);
|
||||
testRunner.assertCompletedManifestLoads(/* windowIndices=... */ 0);
|
||||
assertCompletedAllMediaPeriodLoads(timeline);
|
||||
|
||||
testRunner.releaseSource();
|
||||
@ -870,7 +870,7 @@ public final class ConcatenatingMediaSourceTest {
|
||||
new MediaPeriodId(childPeriodUid, /* windowSequenceNumber= */ 3),
|
||||
new MediaPeriodId(childPeriodUid, /* windowSequenceNumber= */ 4));
|
||||
// Assert that only one manifest load is needed because the source is reused.
|
||||
testRunner.assertCompletedManifestLoads(/* windowIndices= */ 0);
|
||||
testRunner.assertCompletedManifestLoads(/* windowIndices=... */ 0);
|
||||
assertCompletedAllMediaPeriodLoads(timeline);
|
||||
|
||||
testRunner.releaseSource();
|
||||
|
@ -72,7 +72,7 @@ public final class AdaptiveTrackSelectionTest {
|
||||
new AdaptiveTrackSelection.Factory(initialBandwidthMeter)
|
||||
.createTrackSelections(
|
||||
new Definition[] {
|
||||
new Definition(new TrackGroup(format1, format2), /* tracks= */ 0, 1)
|
||||
new Definition(new TrackGroup(format1, format2), /* tracks=... */ 0, 1)
|
||||
},
|
||||
injectedBandwidthMeter);
|
||||
trackSelections[0].updateSelectedTrack(
|
||||
|
@ -1455,7 +1455,7 @@ public final class DefaultTrackSelectorTest {
|
||||
.setSelectionOverride(
|
||||
/* rendererIndex= */ 0,
|
||||
trackGroups,
|
||||
new SelectionOverride(/* groupIndex= */ 0, /* tracks= */ 1, 2)));
|
||||
new SelectionOverride(/* groupIndex= */ 0, /* tracks=... */ 1, 2)));
|
||||
TrackSelectorResult result =
|
||||
trackSelector.selectTracks(
|
||||
new RendererCapabilities[] {AUDIO_CAPABILITIES}, trackGroups, periodId, TIMELINE);
|
||||
@ -1593,7 +1593,7 @@ public final class DefaultTrackSelectorTest {
|
||||
.setSelectionOverride(
|
||||
/* rendererIndex= */ 0,
|
||||
trackGroups,
|
||||
new SelectionOverride(/* groupIndex= */ 0, /* tracks= */ 1, 2)));
|
||||
new SelectionOverride(/* groupIndex= */ 0, /* tracks=... */ 1, 2)));
|
||||
TrackSelectorResult result =
|
||||
trackSelector.selectTracks(
|
||||
new RendererCapabilities[] {VIDEO_CAPABILITIES}, trackGroups, periodId, TIMELINE);
|
||||
|
@ -55,8 +55,6 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||
*
|
||||
* The following attributes can be set on a DefaultTimeBar when used in a layout XML file:
|
||||
*
|
||||
* <p>
|
||||
*
|
||||
* <ul>
|
||||
* <li><b>{@code bar_height}</b> - Dimension for the height of the time bar.
|
||||
* <ul>
|
||||
|
@ -138,8 +138,6 @@ import java.util.concurrent.CopyOnWriteArrayList;
|
||||
* ExoPlayer library, and will be inflated for use by PlayerControlView. The view identifies and
|
||||
* binds its children by looking for the following ids:
|
||||
*
|
||||
* <p>
|
||||
*
|
||||
* <ul>
|
||||
* <li><b>{@code exo_play}</b> - The play button.
|
||||
* <ul>
|
||||
|
@ -187,8 +187,6 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
|
||||
* inflated for use by PlayerView. The view identifies and binds its children by looking for the
|
||||
* following ids:
|
||||
*
|
||||
* <p>
|
||||
*
|
||||
* <ul>
|
||||
* <li><b>{@code exo_content_frame}</b> - A frame whose aspect ratio is resized based on the video
|
||||
* or album art of the media being played, and the configured {@code resize_mode}. The video
|
||||
|
Loading…
x
Reference in New Issue
Block a user