Commit 6f1b24f1 by olly Committed by Oliver Woodman

Add some missing Javadoc from the drm package

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=128085240
parent 09094461
...@@ -38,10 +38,16 @@ public final class DrmInitData implements Comparator<SchemeData>, Parcelable { ...@@ -38,10 +38,16 @@ public final class DrmInitData implements Comparator<SchemeData>, Parcelable {
// Lazily initialized hashcode. // Lazily initialized hashcode.
private int hashCode; private int hashCode;
/**
* @param schemeDatas Scheme initialization data for possibly multiple DRM schemes.
*/
public DrmInitData(List<SchemeData> schemeDatas) { public DrmInitData(List<SchemeData> schemeDatas) {
this(false, schemeDatas.toArray(new SchemeData[schemeDatas.size()])); this(false, schemeDatas.toArray(new SchemeData[schemeDatas.size()]));
} }
/**
* @param schemeDatas Scheme initialization data for possibly multiple DRM schemes.
*/
public DrmInitData(SchemeData... schemeDatas) { public DrmInitData(SchemeData... schemeDatas) {
this(true, schemeDatas); this(true, schemeDatas);
} }
......
...@@ -30,12 +30,22 @@ public final class UnsupportedDrmException extends Exception { ...@@ -30,12 +30,22 @@ public final class UnsupportedDrmException extends Exception {
*/ */
public static final int REASON_INSTANTIATION_ERROR = 2; public static final int REASON_INSTANTIATION_ERROR = 2;
/**
* {@link #REASON_UNSUPPORTED_SCHEME} or {@link #REASON_INSTANTIATION_ERROR}.
*/
public final int reason; public final int reason;
/**
* @param reason {@link #REASON_UNSUPPORTED_SCHEME} or {@link #REASON_INSTANTIATION_ERROR}.
*/
public UnsupportedDrmException(int reason) { public UnsupportedDrmException(int reason) {
this.reason = reason; this.reason = reason;
} }
/**
* @param reason {@link #REASON_UNSUPPORTED_SCHEME} or {@link #REASON_INSTANTIATION_ERROR}.
* @param cause The cause of this exception.
*/
public UnsupportedDrmException(int reason, Exception cause) { public UnsupportedDrmException(int reason, Exception cause) {
super(cause); super(cause);
this.reason = reason; this.reason = reason;
......
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