Add some missing Javadoc from the drm package

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=128085240
This commit is contained in:
olly 2016-07-21 11:35:38 -07:00 committed by Oliver Woodman
parent 0909446133
commit 6f1b24f10f
2 changed files with 16 additions and 0 deletions

View File

@ -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);
} }

View File

@ -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;