/frameworks/base/media/java/android/media/ |
D | MediaDescrambler.java | 189 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/ |
D | NuPlayerDrm.cpp | 238 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()
|
D | NuPlayerDrm.h | 96 int numSubSamples; member 105 int numSubSamples,
|
/frameworks/av/drm/libmediadrm/ |
D | ICrypto.cpp | 102 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/ |
D | CryptoPlugin.cpp | 37 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()
|
D | AesCtrDecryptor.cpp | 33 size_t numSubSamples, in decrypt() argument 50 for (size_t i = 0; i < numSubSamples; ++i) { in decrypt()
|
D | Session.cpp | 67 size_t numSubSamples, size_t* bytesDecryptedOut) { in decrypt() argument 82 numSubSamples, bytesDecryptedOut); in decrypt()
|
/frameworks/av/media/ndk/ |
D | NdkMediaExtractor.cpp | 48 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/ |
D | android_media_MediaDescrambler.cpp | 289 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()
|
D | android_media_MediaExtractor.cpp | 586 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/ |
D | AesCtrDecryptorUnittest.cpp | 35 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/ |
D | ClearKeyCasPlugin.cpp | 403 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()
|
D | ClearKeyCasPlugin.h | 132 size_t numSubSamples, 145 size_t numSubSamples) const;
|
D | ClearKeySessionLibrary.h | 42 size_t numSubSamples,
|
/frameworks/av/drm/mediacas/plugins/mock/ |
D | MockCasPlugin.cpp | 249 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()
|
D | MockCasPlugin.h | 122 size_t numSubSamples, 133 size_t numSubSamples) const;
|
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/ |
D | AesCtrDecryptor.cpp | 42 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/ |
D | AesCtrDecryptor.h | 36 const SubSample* subSamples, size_t numSubSamples,
|
D | CryptoPlugin.h | 48 const SubSample* subSamples, size_t numSubSamples,
|
D | Session.h | 51 size_t numSubSamples, size_t* bytesDecryptedOut);
|
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/include/ |
D | AesCtrDecryptor.h | 37 const std::vector<SubSample> subSamples, size_t numSubSamples,
|
/frameworks/native/headers/media_plugin/media/cas/ |
D | DescramblerAPI.h | 90 size_t numSubSamples,
|
/frameworks/av/drm/mediadrm/plugins/mock/ |
D | MockDrmCryptoPlugin.h | 167 const SubSample *subSamples, size_t numSubSamples, 170 … String8 subSamplesToString(CryptoPlugin::SubSample const *subSamples, size_t numSubSamples) const;
|
/frameworks/native/headers/media_plugin/media/hardware/ |
D | CryptoAPI.h | 109 const SubSample *subSamples, size_t numSubSamples,
|
/frameworks/av/drm/libmediadrm/interface/mediadrm/ |
D | ICrypto.h | 70 const CryptoPlugin::SubSample *subSamples, size_t numSubSamples,
|