Home
last modified time | relevance | path

Searched refs:cryptoInfo (Results 1 – 7 of 7) sorted by relevance

/external/exoplayer/tree/library/common/src/test/java/com/google/android/exoplayer2/decoder/
DCryptoInfoTest.java30 private CryptoInfo cryptoInfo; field in CryptoInfoTest
34 cryptoInfo = new CryptoInfo(); in setUp()
39 cryptoInfo.increaseClearDataFirstSubSampleBy(0); in increaseClearDataFirstSubSampleBy_numBytesOfClearDataIsNullAndZeroInput_isNoOp()
41 assertThat(cryptoInfo.numBytesOfClearData).isNull(); in increaseClearDataFirstSubSampleBy_numBytesOfClearDataIsNullAndZeroInput_isNoOp()
42 assertThat(cryptoInfo.getFrameworkCryptoInfo().numBytesOfClearData).isNull(); in increaseClearDataFirstSubSampleBy_numBytesOfClearDataIsNullAndZeroInput_isNoOp()
48 cryptoInfo.numBytesOfClearData = data; in increaseClearDataFirstSubSampleBy_withNumBytesOfClearDataSetAndZeroInput_isNoOp()
49 cryptoInfo.getFrameworkCryptoInfo().numBytesOfClearData = data; in increaseClearDataFirstSubSampleBy_withNumBytesOfClearDataSetAndZeroInput_isNoOp()
51 cryptoInfo.increaseClearDataFirstSubSampleBy(5); in increaseClearDataFirstSubSampleBy_withNumBytesOfClearDataSetAndZeroInput_isNoOp()
53 assertThat(cryptoInfo.numBytesOfClearData[0]).isEqualTo(6); in increaseClearDataFirstSubSampleBy_withNumBytesOfClearDataSetAndZeroInput_isNoOp()
54 assertThat(cryptoInfo.getFrameworkCryptoInfo().numBytesOfClearData[0]).isEqualTo(6); in increaseClearDataFirstSubSampleBy_withNumBytesOfClearDataSetAndZeroInput_isNoOp()
[all …]
/external/exoplayer/tree/extensions/vp9/src/main/java/com/google/android/exoplayer2/ext/vp9/
DVpxDecoder.java134 CryptoInfo cryptoInfo = inputBuffer.cryptoInfo; in decode() local
137 cryptoInfo.mode, cryptoInfo.key, cryptoInfo.iv, cryptoInfo.numSubSamples, in decode()
138 cryptoInfo.numBytesOfClearData, cryptoInfo.numBytesOfEncryptedData) in decode()
/external/exoplayer/tree/extensions/opus/src/main/java/com/google/android/exoplayer2/ext/opus/
DOpusDecoder.java170 CryptoInfo cryptoInfo = inputBuffer.cryptoInfo; in decode() local
173 outputBuffer, SAMPLE_RATE, exoMediaCrypto, cryptoInfo.mode, in decode()
174 cryptoInfo.key, cryptoInfo.iv, cryptoInfo.numSubSamples, in decode()
175 cryptoInfo.numBytesOfClearData, cryptoInfo.numBytesOfEncryptedData) in decode()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DSampleDataQueue.java233 CryptoInfo cryptoInfo = buffer.cryptoInfo; in readEncryptionData() local
234 if (cryptoInfo.iv == null) { in readEncryptionData()
235 cryptoInfo.iv = new byte[16]; in readEncryptionData()
238 Arrays.fill(cryptoInfo.iv, (byte) 0); in readEncryptionData()
240 readData(offset, cryptoInfo.iv, ivSize); in readEncryptionData()
255 @Nullable int[] clearDataSizes = cryptoInfo.numBytesOfClearData; in readEncryptionData()
259 @Nullable int[] encryptedDataSizes = cryptoInfo.numBytesOfEncryptedData; in readEncryptionData()
280 cryptoInfo.set( in readEncryptionData()
285 cryptoInfo.iv, in readEncryptionData()
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/decoder/
DDecoderInputBuffer.java61 public final CryptoInfo cryptoInfo; field in DecoderInputBuffer
102 this.cryptoInfo = new CryptoInfo(); in DecoderInputBuffer()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/mediacodec/
DMediaCodecRenderer.java1321 CryptoInfo cryptoInfo = buffer.cryptoInfo; in feedInputBuffer() local
1322 cryptoInfo.increaseClearDataFirstSubSampleBy(adaptiveReconfigurationBytes); in feedInputBuffer()
1323 codecAdapter.queueSecureInputBuffer(inputIndex, 0, cryptoInfo, presentationTimeUs, 0); in feedInputBuffer()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/
DSampleQueueTest.java506 inputBuffer.cryptoInfo.iv = new byte[16]; in trailingCryptoInfoInitializationVectorBytesZeroed()
507 Arrays.fill(inputBuffer.cryptoInfo.iv, (byte) 1); in trailingCryptoInfoInitializationVectorBytesZeroed()
521 assertArrayEquals(expectedInitializationVector, inputBuffer.cryptoInfo.iv); in trailingCryptoInfoInitializationVectorBytesZeroed()