Merge "Complete CryptoInfo.toString" into rvc-dev am: a5dc451305 am: 0dff7ecaf3 am: 3acfa18bed am: 81cc755689
Change-Id: I7090af8dec65e9780e8a49786f1cf57b9e986c6c
This commit is contained in:
@@ -2743,6 +2743,9 @@ final public class MediaCodec {
|
||||
* See {@link MediaCodec.CryptoInfo.Pattern}.
|
||||
*/
|
||||
public void setPattern(Pattern newPattern) {
|
||||
if (newPattern == null) {
|
||||
newPattern = zeroPattern;
|
||||
}
|
||||
pattern = newPattern;
|
||||
}
|
||||
|
||||
@@ -2768,6 +2771,11 @@ final public class MediaCodec {
|
||||
builder.append(Arrays.toString(numBytesOfClearData));
|
||||
builder.append(", encrypted ");
|
||||
builder.append(Arrays.toString(numBytesOfEncryptedData));
|
||||
builder.append(", pattern (encrypt: ");
|
||||
builder.append(pattern.mEncryptBlocks);
|
||||
builder.append(", skip: ");
|
||||
builder.append(pattern.mSkipBlocks);
|
||||
builder.append(")");
|
||||
return builder.toString();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user