Skip to content

Commit 5d130cb

Browse files
committed
Reformat after rebasing
Also fix some doc lint failures
1 parent f36f661 commit 5d130cb

File tree

6 files changed

+15
-13
lines changed

6 files changed

+15
-13
lines changed

libraries/exoplayer/src/main/java/androidx/media3/exoplayer/drm/DrmUtil.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ public static boolean isFailureToConstructResourceBusyException(@Nullable Throwa
147147
*
148148
* <p>Note that this method is executing the request synchronously and blocks until finished.
149149
*
150-
* <p>The {@link LoadEventInfo} returned inside the {@link KeyResponse} will have the following
151-
* fields unset, and they must be updated by caller before the {@link LoadEventInfo} is used
152-
* elsewhere:
150+
* <p>The {@link LoadEventInfo} returned inside the {@link MediaDrmCallback.Response} will have
151+
* the following fields unset, and they must be updated by caller before the {@link LoadEventInfo}
152+
* is used elsewhere:
153153
*
154154
* <ul>
155155
* <li>{@link LoadEventInfo#loadTaskId}
@@ -160,7 +160,8 @@ public static boolean isFailureToConstructResourceBusyException(@Nullable Throwa
160160
* @param url The requested URL.
161161
* @param httpBody The HTTP request payload.
162162
* @param requestProperties A keyed map of HTTP header request properties.
163-
* @return A {@link MediaDrmCallback.Response} that holds the response payload, and {@link LoadEventInfo}.
163+
* @return A {@link MediaDrmCallback.Response} that holds the response payload, and {@link
164+
* LoadEventInfo}.
164165
* @throws MediaDrmCallbackException if an exception was encountered during the download.
165166
*/
166167
public static MediaDrmCallback.Response executePost(

libraries/exoplayer/src/main/java/androidx/media3/exoplayer/drm/KeyRequestInfo.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import androidx.annotation.Nullable;
2121
import androidx.media3.common.DrmInitData.SchemeData;
22+
import androidx.media3.common.util.UnstableApi;
2223
import androidx.media3.exoplayer.source.LoadEventInfo;
2324
import com.google.common.collect.ImmutableList;
2425
import com.google.errorprone.annotations.CanIgnoreReturnValue;
@@ -27,6 +28,7 @@
2728

2829
/** Information related to a completed DRM key request operation. */
2930
// TODO: #1001 - Add sessionId field.
31+
@UnstableApi
3032
public final class KeyRequestInfo {
3133

3234
/** Builder for {@link KeyRequestInfo} instances. */

libraries/exoplayer/src/main/java/androidx/media3/exoplayer/drm/LocalMediaDrmCallback.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ public final class LocalMediaDrmCallback implements MediaDrmCallback {
3939
* @param keyResponse The fixed response for all key requests.
4040
*/
4141
public LocalMediaDrmCallback(byte[] keyResponse) {
42-
this.keyResponse = new Response(checkNotNull(keyResponse), new LoadEventInfo(-1, new DataSpec.Builder().build(), 0));
42+
this.keyResponse =
43+
new Response(
44+
checkNotNull(keyResponse), new LoadEventInfo(-1, new DataSpec.Builder().build(), 0));
4345
}
4446

4547
@Override

libraries/exoplayer/src/main/java/androidx/media3/exoplayer/drm/MediaDrmCallback.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,12 @@
2525
@UnstableApi
2626
public interface MediaDrmCallback {
2727

28-
/**
29-
* Response data from the {@link MediaDrmCallback} requests.
30-
*/
28+
/** Response data from the {@link MediaDrmCallback} requests. */
3129
final class Response {
3230

3331
/** The response from the license or provisioning server. */
3432
public final byte[] data;
33+
3534
/** Information about the loading of {@link #data}. */
3635
public final LoadEventInfo loadEventInfo;
3736

@@ -45,7 +44,7 @@ public Response(byte[] data, LoadEventInfo loadEventInfo) {
4544
/**
4645
* Executes a provisioning request.
4746
*
48-
* <p>The {@link LoadEventInfo} returned inside the {@link KeyResponse} will have the following
47+
* <p>The {@link LoadEventInfo} returned inside the {@link Response} will have the following
4948
* fields unset, and they must be updated by caller before the {@link LoadEventInfo} is used
5049
* elsewhere:
5150
*
@@ -65,7 +64,7 @@ Response executeProvisionRequest(UUID uuid, ProvisionRequest request)
6564
/**
6665
* Executes a key request.
6766
*
68-
* <p>The {@link LoadEventInfo} returned inside the {@link KeyResponse} will have the following
67+
* <p>The {@link LoadEventInfo} returned inside the {@link Response} will have the following
6968
* fields unset, and they must be updated by caller before the {@link LoadEventInfo} is used
7069
* elsewhere:
7170
*

libraries/exoplayer/src/main/java/androidx/media3/exoplayer/util/EventLogger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ public void onDrmKeysRemoved(EventTime eventTime) {
517517

518518
@UnstableApi
519519
@Override
520-
public void onDrmKeysLoaded(EventTime eventTime, @Nullable KeyRequestInfo info) {
520+
public void onDrmKeysLoaded(EventTime eventTime, @Nullable KeyRequestInfo keyRequestInfo) {
521521
logd(eventTime, "drmKeysLoaded");
522522
}
523523

libraries/exoplayer/src/test/java/androidx/media3/exoplayer/analytics/DefaultAnalyticsCollectorTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@
108108
import androidx.media3.exoplayer.drm.DrmSession;
109109
import androidx.media3.exoplayer.drm.DrmSessionManager;
110110
import androidx.media3.exoplayer.drm.ExoMediaDrm;
111-
import androidx.media3.exoplayer.drm.ExoMediaDrm.KeyRequest;
112-
import androidx.media3.exoplayer.drm.ExoMediaDrm.ProvisionRequest;
113111
import androidx.media3.exoplayer.drm.MediaDrmCallback;
114112
import androidx.media3.exoplayer.drm.MediaDrmCallbackException;
115113
import androidx.media3.exoplayer.source.LoadEventInfo;

0 commit comments

Comments
 (0)