Replace Dummy with Placeholder

`Dummy` is a non inclusive language.

PiperOrigin-RevId: 547815680
This commit is contained in:
rohks 2023-07-13 16:55:49 +01:00 committed by Rohit Singh
parent 989607aa04
commit ca10204b2d
4 changed files with 6 additions and 6 deletions

View File

@ -44,7 +44,7 @@ public interface LoaderErrorThrower {
void maybeThrowError(int minRetryCount) throws IOException;
/** A {@link LoaderErrorThrower} that never throws. */
final class Dummy implements LoaderErrorThrower {
final class Placeholder implements LoaderErrorThrower {
@Override
public void maybeThrowError() {

View File

@ -475,7 +475,7 @@ public final class DashMediaSource extends BaseMediaSource {
manifestCallback = null;
refreshManifestRunnable = null;
simulateManifestRefreshRunnable = null;
manifestLoadErrorThrower = new LoaderErrorThrower.Dummy();
manifestLoadErrorThrower = new LoaderErrorThrower.Placeholder();
} else {
manifestCallback = new ManifestCallback();
manifestLoadErrorThrower = new ManifestLoadErrorThrower();

View File

@ -86,7 +86,7 @@ public class DefaultDashChunkSourceTest {
DefaultDashChunkSource chunkSource =
new DefaultDashChunkSource(
BundledChunkExtractor.FACTORY,
new LoaderErrorThrower.Dummy(),
new LoaderErrorThrower.Placeholder(),
manifest,
new BaseUrlExclusionList(),
/* periodIndex= */ 0,
@ -136,7 +136,7 @@ public class DefaultDashChunkSourceTest {
DefaultDashChunkSource chunkSource =
new DefaultDashChunkSource(
BundledChunkExtractor.FACTORY,
new LoaderErrorThrower.Dummy(),
new LoaderErrorThrower.Placeholder(),
manifest,
new BaseUrlExclusionList(),
/* periodIndex= */ 0,
@ -444,7 +444,7 @@ public class DefaultDashChunkSourceTest {
new DefaultBandwidthMeter.Builder(ApplicationProvider.getApplicationContext()).build());
return new DefaultDashChunkSource(
BundledChunkExtractor.FACTORY,
new LoaderErrorThrower.Dummy(),
new LoaderErrorThrower.Placeholder(),
manifest,
new BaseUrlExclusionList(new Random(/* seed= */ 1234)),
/* periodIndex= */ 0,

View File

@ -418,7 +418,7 @@ public final class SsMediaSource extends BaseMediaSource
drmSessionManager.setPlayer(/* playbackLooper= */ Looper.myLooper(), getPlayerId());
drmSessionManager.prepare();
if (sideloadedManifest) {
manifestLoaderErrorThrower = new LoaderErrorThrower.Dummy();
manifestLoaderErrorThrower = new LoaderErrorThrower.Placeholder();
processManifest();
} else {
manifestDataSource = manifestDataSourceFactory.createDataSource();