mirror of
https://github.com/androidx/media.git
synced 2025-05-03 21:57:46 +08:00
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:
parent
0909446133
commit
6f1b24f10f
@ -38,10 +38,16 @@ public final class DrmInitData implements Comparator<SchemeData>, Parcelable {
|
||||
// Lazily initialized hashcode.
|
||||
private int hashCode;
|
||||
|
||||
/**
|
||||
* @param schemeDatas Scheme initialization data for possibly multiple DRM schemes.
|
||||
*/
|
||||
public DrmInitData(List<SchemeData> schemeDatas) {
|
||||
this(false, schemeDatas.toArray(new SchemeData[schemeDatas.size()]));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param schemeDatas Scheme initialization data for possibly multiple DRM schemes.
|
||||
*/
|
||||
public DrmInitData(SchemeData... schemeDatas) {
|
||||
this(true, schemeDatas);
|
||||
}
|
||||
|
@ -30,12 +30,22 @@ public final class UnsupportedDrmException extends Exception {
|
||||
*/
|
||||
public static final int REASON_INSTANTIATION_ERROR = 2;
|
||||
|
||||
/**
|
||||
* {@link #REASON_UNSUPPORTED_SCHEME} or {@link #REASON_INSTANTIATION_ERROR}.
|
||||
*/
|
||||
public final int reason;
|
||||
|
||||
/**
|
||||
* @param reason {@link #REASON_UNSUPPORTED_SCHEME} or {@link #REASON_INSTANTIATION_ERROR}.
|
||||
*/
|
||||
public UnsupportedDrmException(int 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) {
|
||||
super(cause);
|
||||
this.reason = reason;
|
||||
|
Loading…
x
Reference in New Issue
Block a user