Home
last modified time | relevance | path

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

/frameworks/base/media/java/android/media/
DMediaDescrambler.java56 @NonNull MediaCodec.CryptoInfo cryptoInfo) in descramble() argument
87 @NonNull MediaCodec.CryptoInfo cryptoInfo) in descramble() argument
130 @NonNull MediaCodec.CryptoInfo cryptoInfo) in descramble() argument
135 cryptoInfo.key[0], in descramble()
136 cryptoInfo.key[1], in descramble()
137 cryptoInfo.numSubSamples, in descramble()
138 cryptoInfo.numBytesOfClearData, in descramble()
139 cryptoInfo.numBytesOfEncryptedData, in descramble()
347 @NonNull MediaCodec.CryptoInfo cryptoInfo) { in descramble() argument
350 if (cryptoInfo.numSubSamples <= 0) { in descramble()
[all …]
DMediaCodec.java2729 int errorContext, @Nullable CryptoInfo cryptoInfo) {
2735 mCryptoInfo = cryptoInfo;
3656 @NonNull MediaCodec.CryptoInfo cryptoInfo) { in setEncryptedLinearBlock() argument
3657 Objects.requireNonNull(cryptoInfo); in setEncryptedLinearBlock()
3668 mCryptoInfos.add(cryptoInfo); in setEncryptedLinearBlock()
/frameworks/av/media/ndk/fuzzer/
Dndk_async_codec_fuzzer.cpp400 AMediaCodecCryptoInfo* cryptoInfo = getAMediaCodecCryptoInfo(); in invokeCodecCryptoInfoAPI() local
406 AMediaCodecCryptoInfo_getEncryptedBytes(cryptoInfo, sizes); in invokeCodecCryptoInfoAPI()
411 AMediaCodecCryptoInfo_getClearBytes(cryptoInfo, sizes); in invokeCodecCryptoInfoAPI()
416 AMediaCodecCryptoInfo_getIV(cryptoInfo, bytes); in invokeCodecCryptoInfoAPI()
422 AMediaCodecCryptoInfo_getKey(cryptoInfo, bytes); in invokeCodecCryptoInfoAPI()
426 AMediaCodecCryptoInfo_delete(cryptoInfo); in invokeCodecCryptoInfoAPI()
DNdkMediaCodecFuzzerBase.cpp370 AMediaCodecCryptoInfo* cryptoInfo = getAMediaCodecCryptoInfo(); in invokeInputBufferOperationAPI() local
371 AMediaCodec_queueSecureInputBuffer(codec, bufferIndex, 0 /* offset */, cryptoInfo, in invokeInputBufferOperationAPI()
373 AMediaCodecCryptoInfo_delete(cryptoInfo); in invokeInputBufferOperationAPI()
/frameworks/base/media/jni/
Dandroid_media_MediaCodec.cpp1295 const sp<AMessage> & cryptoInfo = NULL) { in createCryptoException() argument
1319 if (cryptoInfo != nullptr) { in createCryptoException()
1336 AMessageToCryptoInfo(env, cryptoInfoObject.get(), cryptoInfo); in createCryptoException()
2306 explicit MediaCodecCryptoInfo(const NativeCryptoInfo &cryptoInfo) { in MediaCodecCryptoInfo()
2307 if (cryptoInfo.mErr == OK) { in MediaCodecCryptoInfo()
2308 mNumSubSamples = cryptoInfo.mNumSubSamples; in MediaCodecCryptoInfo()
2309 mMode = cryptoInfo.mMode; in MediaCodecCryptoInfo()
2310 mPattern = cryptoInfo.mPattern; in MediaCodecCryptoInfo()
2311 if (cryptoInfo.mKey != nullptr) { in MediaCodecCryptoInfo()
2312 mKeyBuffer = ABuffer::CreateAsCopy(cryptoInfo.mKey, 16); in MediaCodecCryptoInfo()
[all …]
/frameworks/av/media/libstagefright/
DMediaCodec.cpp6273 auto buildCryptoInfoAMessage = [&](const sp<AMessage> & cryptoInfo, int32_t action) { in onQueueInputBuffer() argument
6275 cryptoInfo->setInt32("action", action); in onQueueInputBuffer()
6276 cryptoInfo->setObject("buffer", buffer); in onQueueInputBuffer()
6277 cryptoInfo->setInt32("secure", mFlags & kFlagIsSecure); in onQueueInputBuffer()
6301 cryptoInfo->setBuffer("key", shared_key); in onQueueInputBuffer()
6302 cryptoInfo->setBuffer("iv", shared_iv); in onQueueInputBuffer()
6303 cryptoInfo->setInt32("mode", (int)mode); in onQueueInputBuffer()
6304 cryptoInfo->setInt32("encryptBlocks", pattern.mEncryptBlocks); in onQueueInputBuffer()
6305 cryptoInfo->setInt32("skipBlocks", pattern.mSkipBlocks); in onQueueInputBuffer()
6306 cryptoInfo->setBuffer("subSamples", subSamples_buffer); in onQueueInputBuffer()
[all …]