Commit 69f26923 by olly Committed by Oliver Woodman

Register modules with common

PiperOrigin-RevId: 402267733
parent 63844a58
......@@ -26,6 +26,7 @@ import androidx.work.OneTimeWorkRequest;
import androidx.work.WorkManager;
import androidx.work.Worker;
import androidx.work.WorkerParameters;
import com.google.android.exoplayer2.ExoPlayerLibraryInfo;
import com.google.android.exoplayer2.scheduler.Requirements;
import com.google.android.exoplayer2.scheduler.Scheduler;
import com.google.android.exoplayer2.util.Assertions;
......@@ -35,6 +36,10 @@ import com.google.android.exoplayer2.util.Util;
/** A {@link Scheduler} that uses {@link WorkManager}. */
public final class WorkManagerScheduler implements Scheduler {
static {
ExoPlayerLibraryInfo.registerModule("goog.exo.workmanager");
}
private static final String TAG = "WorkManagerScheduler";
private static final String KEY_SERVICE_ACTION = "service_action";
private static final String KEY_SERVICE_PACKAGE = "service_package";
......
......@@ -63,6 +63,10 @@ import java.util.concurrent.CopyOnWriteArraySet;
/** An {@link ExoPlayer} implementation. */
/* package */ final class ExoPlayerImpl extends BasePlayer {
static {
ExoPlayerLibraryInfo.registerModule("goog.exo.exoplayer");
}
private static final String TAG = "ExoPlayerImpl";
/**
......
......@@ -18,6 +18,7 @@ package com.google.android.exoplayer2.extractor;
import static java.lang.Math.min;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.ExoPlayerLibraryInfo;
import com.google.android.exoplayer2.upstream.DataReader;
import com.google.android.exoplayer2.util.Assertions;
import com.google.android.exoplayer2.util.Util;
......@@ -29,6 +30,10 @@ import java.util.Arrays;
/** An {@link ExtractorInput} that wraps a {@link DataReader}. */
public final class DefaultExtractorInput implements ExtractorInput {
static {
ExoPlayerLibraryInfo.registerModule("goog.exo.extractor");
}
private static final int PEEK_MIN_FREE_SPACE_AFTER_RESIZE = 64 * 1024;
private static final int PEEK_MAX_FREE_SPACE = 512 * 1024;
private static final int SCRATCH_SPACE_SIZE = 4096;
......
......@@ -38,6 +38,7 @@ import androidx.annotation.VisibleForTesting;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.DefaultLoadControl;
import com.google.android.exoplayer2.ExoPlayer;
import com.google.android.exoplayer2.ExoPlayerLibraryInfo;
import com.google.android.exoplayer2.MediaItem;
import com.google.android.exoplayer2.PlaybackException;
import com.google.android.exoplayer2.Player;
......@@ -83,6 +84,10 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
@RequiresApi(18)
public final class Transformer {
static {
ExoPlayerLibraryInfo.registerModule("goog.exo.transformer");
}
/** A builder for {@link Transformer} instances. */
public static final class Builder {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment