Home
last modified time | relevance | path

Searched refs:numSubSamples (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/base/media/java/android/media/
DMediaDescrambler.java189 if (cryptoInfo.numSubSamples <= 0) { in descramble()
191 "Invalid CryptoInfo: invalid numSubSamples=" + cryptoInfo.numSubSamples); in descramble()
197 && cryptoInfo.numBytesOfClearData.length < cryptoInfo.numSubSamples) { in descramble()
201 && cryptoInfo.numBytesOfEncryptedData.length < cryptoInfo.numSubSamples) { in descramble()
213 cryptoInfo.numSubSamples, in descramble()
248 byte key, byte flags, int numSubSamples, in native_descramble() argument
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDrm.cpp238 int numSubSamples, in makeCryptoInfo() argument
248 if (__builtin_mul_overflow(sizeof(CryptoPlugin::SubSample), numSubSamples, &cryptosize) || in makeCryptoInfo()
259 ret->numSubSamples = numSubSamples; in makeCryptoInfo()
268 for (int i = 0; i < numSubSamples; i++) { in makeCryptoInfo()
287 size_t numSubSamples = cryptedsize / sizeof(size_t); in getSampleCryptoInfo() local
289 if (numSubSamples <= 0) { in getSampleCryptoInfo()
290 ALOGE("getSampleCryptoInfo INVALID numSubSamples: %zu", numSubSamples); in getSampleCryptoInfo()
332 return makeCryptoInfo(numSubSamples, in getSampleCryptoInfo()
DNuPlayerDrm.h96 int numSubSamples; member
105 int numSubSamples,
/frameworks/av/drm/libmediadrm/
DICrypto.cpp102 const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, in decrypt()
124 for (size_t i = 0; i < numSubSamples; ++i) { in decrypt()
134 data.writeInt32(numSubSamples); in decrypt()
135 data.write(subSamples, sizeof(CryptoPlugin::SubSample) * numSubSamples); in decrypt()
351 int32_t numSubSamples = data.readInt32(); in onTransact() local
352 if (numSubSamples < 0 || numSubSamples > 0xffff) { in onTransact()
358 std::make_unique<CryptoPlugin::SubSample[]>(numSubSamples); in onTransact()
361 sizeof(CryptoPlugin::SubSample) * numSubSamples); in onTransact()
396 for (int32_t i = 0; i < numSubSamples; ++i) { in onTransact()
418 subSamples.get(), numSubSamples, destination, &errorDetailMsg); in onTransact()
/frameworks/av/drm/mediadrm/plugins/clearkey/default/
DCryptoPlugin.cpp37 const SubSample* subSamples, size_t numSubSamples, in decrypt() argument
47 for (size_t i = 0; i < numSubSamples; ++i) { in decrypt()
68 numSubSamples, &bytesDecrypted); in decrypt()
DAesCtrDecryptor.cpp33 size_t numSubSamples, in decrypt() argument
50 for (size_t i = 0; i < numSubSamples; ++i) { in decrypt()
DSession.cpp67 size_t numSubSamples, size_t* bytesDecryptedOut) { in decrypt() argument
82 numSubSamples, bytesDecryptedOut); in decrypt()
/frameworks/av/media/ndk/
DNdkMediaExtractor.cpp48 sp<ABuffer> U32ArrayToSizeBuf(size_t numSubSamples, uint32_t *data) { in U32ArrayToSizeBuf() argument
49 if (numSubSamples > SIZE_MAX / sizeof(size_t)) { in U32ArrayToSizeBuf()
52 sp<ABuffer> sizebuf = new ABuffer(numSubSamples * sizeof(size_t)); in U32ArrayToSizeBuf()
54 for (size_t i = 0; sizes != NULL && i < numSubSamples; i++) { in U32ArrayToSizeBuf()
353 size_t numSubSamples = cryptedsize / sizeof(uint32_t); in AMediaExtractor_getSampleCryptoInfo() local
388 sp<ABuffer> clearbuf = U32ArrayToSizeBuf(numSubSamples, (uint32_t *)cleardata); in AMediaExtractor_getSampleCryptoInfo()
389 sp<ABuffer> cryptedbuf = U32ArrayToSizeBuf(numSubSamples, (uint32_t *)crypteddata); in AMediaExtractor_getSampleCryptoInfo()
398 numSubSamples, in AMediaExtractor_getSampleCryptoInfo()
/frameworks/base/media/jni/
Dandroid_media_MediaDescrambler.cpp289 static ssize_t getSubSampleInfo(JNIEnv *env, jint numSubSamples, in getSubSampleInfo() argument
293 if (numSubSamples <= 0 || in getSubSampleInfo()
294 numSubSamples >= (signed)(INT32_MAX / sizeof(SubSample))) { in getSubSampleInfo()
315 outSubSamples->resize(numSubSamples); in getSubSampleInfo()
322 for (jint i = 0; i < numSubSamples; ++i) { in getSubSampleInfo()
377 JNIEnv *env, jobject thiz, jbyte key, jbyte flags, jint numSubSamples, in android_media_MediaDescrambler_native_descramble() argument
390 env, numSubSamples, numBytesOfClearDataObj, in android_media_MediaDescrambler_native_descramble()
Dandroid_media_MediaExtractor.cpp586 size_t numSubSamples = size / sizeof(int32_t); in android_media_MediaExtractor_getSampleCryptoInfo() local
588 if (numSubSamples == 0) { in android_media_MediaExtractor_getSampleCryptoInfo()
592 jintArray numBytesOfEncryptedDataObj = env->NewIntArray(numSubSamples); in android_media_MediaExtractor_getSampleCryptoInfo()
595 for (size_t i = 0; i < numSubSamples; ++i) { in android_media_MediaExtractor_getSampleCryptoInfo()
609 numBytesOfPlainDataObj = env->NewIntArray(numSubSamples); in android_media_MediaExtractor_getSampleCryptoInfo()
612 for (size_t i = 0; i < numSubSamples; ++i) { in android_media_MediaExtractor_getSampleCryptoInfo()
657 (jint)numSubSamples, in android_media_MediaExtractor_getSampleCryptoInfo()
/frameworks/av/drm/mediadrm/plugins/clearkey/default/tests/
DAesCtrDecryptorUnittest.cpp35 size_t numSubSamples, size_t* bytesDecryptedOut) { in attemptDecrypt() argument
41 numSubSamples, bytesDecryptedOut); in attemptDecrypt()
49 size_t numSubSamples) { in attemptDecryptExpectingSuccess() argument
53 subSamples, numSubSamples, in attemptDecryptExpectingSuccess()
/frameworks/av/drm/mediacas/plugins/clearkey/
DClearKeyCasPlugin.cpp403 size_t numSubSamples, const DescramblerPlugin::SubSample *subSamples, in decrypt() argument
429 for (size_t i = 0; i < numSubSamples; i++) { in decrypt()
495 size_t numSubSamples, in descramble() argument
506 subSamplesToString(subSamples, numSubSamples).string(), in descramble()
518 numSubSamples, subSamples, in descramble()
537 SubSample const *subSamples, size_t numSubSamples) const in subSamplesToString()
540 for (size_t i = 0; i < numSubSamples; i++) { in subSamplesToString()
DClearKeyCasPlugin.h132 size_t numSubSamples,
145 size_t numSubSamples) const;
DClearKeySessionLibrary.h42 size_t numSubSamples,
/frameworks/av/drm/mediacas/plugins/mock/
DMockCasPlugin.cpp249 size_t numSubSamples, in descramble() argument
259 subSamplesToString(subSamples, numSubSamples).string(), in descramble()
278 SubSample const *subSamples, size_t numSubSamples) const in subSamplesToString()
281 for (size_t i = 0; i < numSubSamples; i++) { in subSamplesToString()
DMockCasPlugin.h122 size_t numSubSamples,
133 size_t numSubSamples) const;
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
DAesCtrDecryptor.cpp42 size_t numSubSamples, in decrypt() argument
59 for (size_t i = 0; i < numSubSamples; ++i) { in decrypt()
/frameworks/av/drm/mediadrm/plugins/clearkey/default/include/
DAesCtrDecryptor.h36 const SubSample* subSamples, size_t numSubSamples,
DCryptoPlugin.h48 const SubSample* subSamples, size_t numSubSamples,
DSession.h51 size_t numSubSamples, size_t* bytesDecryptedOut);
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/include/
DAesCtrDecryptor.h37 const std::vector<SubSample> subSamples, size_t numSubSamples,
/frameworks/native/headers/media_plugin/media/cas/
DDescramblerAPI.h90 size_t numSubSamples,
/frameworks/av/drm/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.h167 const SubSample *subSamples, size_t numSubSamples,
170 … String8 subSamplesToString(CryptoPlugin::SubSample const *subSamples, size_t numSubSamples) const;
/frameworks/native/headers/media_plugin/media/hardware/
DCryptoAPI.h109 const SubSample *subSamples, size_t numSubSamples,
/frameworks/av/drm/libmediadrm/interface/mediadrm/
DICrypto.h70 const CryptoPlugin::SubSample *subSamples, size_t numSubSamples,

12