Merge "Complete CryptoInfo.toString" into rvc-dev am: a5dc451305 am: 0dff7ecaf3 am: 3acfa18bed
Change-Id: I2766306d147dba62b372b01e9749c91d0eab6bf8
This commit is contained in:
@@ -2742,6 +2742,9 @@ final public class MediaCodec {
|
||||
* See {@link MediaCodec.CryptoInfo.Pattern}.
|
||||
*/
|
||||
public void setPattern(Pattern newPattern) {
|
||||
if (newPattern == null) {
|
||||
newPattern = zeroPattern;
|
||||
}
|
||||
pattern = newPattern;
|
||||
}
|
||||
|
||||
@@ -2767,6 +2770,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