/frameworks/av/drm/mediadrm/plugins/clearkey/default/tests/ |
D | InitDataParserUnittest.cpp | 40 status_t attemptParse(const Vector<uint8_t>& initData, in attemptParse() argument 44 return parser.parse(initData, mimeType, licenseRequest); in attemptParse() 47 void attemptParseExpectingSuccess(const Vector<uint8_t>& initData, in attemptParseExpectingSuccess() argument 53 ASSERT_EQ(android::OK, attemptParse(initData, mimeType, &request)); in attemptParseExpectingSuccess() 70 void attemptParseExpectingFailure(const Vector<uint8_t>& initData, in attemptParseExpectingFailure() argument 73 ASSERT_NE(android::OK, attemptParse(initData, mimeType, &request)); in attemptParseExpectingFailure() 90 Vector<uint8_t> initData; in TEST_F() local 91 initData.appendArray(pssh, 52); in TEST_F() 96 attemptParseExpectingSuccess(initData, kCencMimeType, expectedKeys); in TEST_F() 115 Vector<uint8_t> initData; in TEST_F() local [all …]
|
/frameworks/av/drm/mediadrm/plugins/clearkey/default/ |
D | InitDataParser.cpp | 44 android::status_t InitDataParser::parse(const Vector<uint8_t>& initData, in parse() argument 52 android::status_t res = parsePssh(initData, &keyIds); in parse() 60 if (initData.size() != kKeyIdSize) { in parse() 63 keyIds.push(initData.array()); in parse() 77 android::status_t InitDataParser::parsePssh(const Vector<uint8_t>& initData, in parsePssh() argument 83 uint32_t expectedSize = initData.size(); in parsePssh() 89 if (initData.size() < headerSize) { in parsePssh() 95 if (memcmp(&initData[readPosition], &expectedSize, in parsePssh() 102 if (memcmp(&initData[readPosition], psshIdentifier, in parsePssh() 109 if (memcmp(&initData[readPosition], psshVersion1, in parsePssh() [all …]
|
D | Session.cpp | 38 const Vector<uint8_t>& initData, in getKeyRequest() argument 42 return parser.parse(initData, mimeType, keyRequest); in getKeyRequest()
|
D | DrmPlugin.cpp | 85 const Vector<uint8_t>& initData, in getKeyRequest() argument 108 return session->getKeyRequest(initData, mimeType, &request); in getKeyRequest()
|
/frameworks/av/drm/mediadrm/plugins/clearkey/common/ |
D | InitDataParser.cpp | 42 CdmResponseType InitDataParser::parse(const std::vector<uint8_t>& initData, in parse() argument 51 auto res = parsePssh(initData, &keyIds); in parse() 58 if (initData.size() != kKeyIdSize) { in parse() 61 keyIds.push_back(initData.data()); in parse() 79 CdmResponseType InitDataParser::parsePssh(const std::vector<uint8_t>& initData, in parsePssh() argument 85 uint32_t expectedSize = initData.size(); in parsePssh() 91 if (initData.size() < headerSize) { in parsePssh() 97 if (memcmp(&initData[readPosition], &expectedSize, sizeof(expectedSize)) != 0) { in parsePssh() 103 if (memcmp(&initData[readPosition], psshIdentifier, sizeof(psshIdentifier)) != 0) { in parsePssh() 109 if (memcmp(&initData[readPosition], psshVersion1, sizeof(psshVersion1)) != 0) { in parsePssh() [all …]
|
D | Session.cpp | 31 CdmResponseType Session::getKeyRequest(const std::vector<uint8_t>& initData, in getKeyRequest() argument 36 return parser.parse(initData, mimeType, keyType, keyRequest); in getKeyRequest()
|
/frameworks/base/media/jni/ |
D | android_media_MediaCrypto.cpp | 46 const uint8_t uuid[16], const void *initData, size_t initSize) { in JCrypto() argument 49 mCrypto = MakeCrypto(uuid, initData, initSize); in JCrypto() 71 const uint8_t uuid[16], const void *initData, size_t initSize) { in MakeCrypto() argument 78 status_t err = crypto->createPlugin(uuid, initData, initSize); in MakeCrypto() 184 jbyte *initData = NULL; in android_media_MediaCrypto_native_setup() local 188 initData = env->GetByteArrayElements(initDataObj, &isCopy); in android_media_MediaCrypto_native_setup() 192 env, thiz, (const uint8_t *)uuid, initData, initDataLength); in android_media_MediaCrypto_native_setup() 197 env->ReleaseByteArrayElements(initDataObj, initData, 0); in android_media_MediaCrypto_native_setup() 198 initData = NULL; in android_media_MediaCrypto_native_setup()
|
D | android_media_MediaCrypto.h | 34 const uint8_t uuid[16], const void *initData, size_t initSize); 52 const uint8_t uuid[16], const void *initData, size_t initSize);
|
/frameworks/av/media/ndk/fuzzer/ |
D | ndk_crypto_fuzzer.cpp | 36 std::vector<uint8_t> initData = in LLVMFuzzerTestOneInput() local 38 AMediaCrypto* crypto = AMediaCrypto_new(uuid, initData.data(), initData.size()); in LLVMFuzzerTestOneInput()
|
/frameworks/av/drm/mediadrm/plugins/clearkey/default/include/ |
D | InitDataParser.h | 31 android::status_t parse(const android::Vector<uint8_t>& initData, 38 android::status_t parsePssh(const android::Vector<uint8_t>& initData,
|
/frameworks/av/drm/mediadrm/plugins/clearkey/common/include/clearkeydrm/ |
D | InitDataParser.h | 26 CdmResponseType parse(const std::vector<uint8_t>& initData, const std::string& mimeType, 32 CdmResponseType parsePssh(const std::vector<uint8_t>& initData,
|
/frameworks/av/media/mtp/tests/MtpFuzzer/ |
D | MtpPacketFuzzerUtils.h | 90 std::vector<uint8_t> initData = in writeHandle() local 92 handle.write(initData.data(), initData.size()); in writeHandle()
|
D | mtp_data_packet_fuzzer.cpp | 85 std::vector<uint8_t> initData = in process() local 87 mtpDataPacket.putAUInt8(initData.data(), initData.size()); in process()
|
/frameworks/av/media/ndk/include/media/ |
D | NdkMediaCrypto.h | 63 AMediaCrypto* AMediaCrypto_new(const AMediaUUID uuid, const void *initData, size_t initDataSize) __…
|
/frameworks/base/media/java/android/media/ |
D | MediaExtractor.java | 396 Collectors.toMap(initData -> initData.uuid, initData -> initData)); in getDrmInitData()
|
D | MediaCrypto.java | 102 private native final void native_setup(@NonNull byte[] uuid, @NonNull byte[] initData) in native_setup() argument
|
/frameworks/av/drm/libmediadrm/ |
D | DrmUtils.cpp | 148 const uint8_t uuid[16], const void* initData, in MakeCryptoPlugin() argument 152 toHidlArray16(uuid), toHidlVec(initData, initDataSize), in MakeCryptoPlugin() 237 const void* initData, in MakeCryptoPlugins() argument 241 plugins.push_back(MakeCryptoPlugin(factory, uuid, initData, initDataSize)); in MakeCryptoPlugins()
|
D | DrmHal.cpp | 73 DrmStatus DrmHal::getKeyRequest(Vector<uint8_t> const& sessionId, Vector<uint8_t> const& initData, in getKeyRequest() argument 79 return mDrmHalAidl->getKeyRequest(sessionId, initData, mimeType, keyType, in getKeyRequest() 81 return mDrmHalHidl->getKeyRequest(sessionId, initData, mimeType, keyType, optionalParameters, in getKeyRequest()
|
D | CryptoHalHidl.cpp | 132 const uint8_t uuid[16], const void* initData, in makeCryptoPlugin() argument 136 factory->createPlugin(toHidlArray16(uuid), toHidlVec(initData, initDataSize), in makeCryptoPlugin()
|
D | CryptoHalAidl.cpp | 202 const std::vector<uint8_t> initData) { in makeCryptoPlugin() argument 204 if (factory->createCryptoPlugin(uuidAidl, initData, &pluginAidl).isOk()) { in makeCryptoPlugin()
|
/frameworks/av/drm/libmediadrm/fuzzer/ |
D | mediadrm_fuzzer.cpp | 234 Vector<uint8_t> initData = {}; in invokeDrmDecryptEncryptAPI() local 235 initData.appendArray(data, size); in invokeDrmDecryptEncryptAPI() 247 mDrm->getKeyRequest(mSessionId, initData, mimeType, keyType, mdOptionalParameters, keyRequest, in invokeDrmDecryptEncryptAPI()
|
/frameworks/av/drm/libmediadrm/include/mediadrm/ |
D | CryptoHalHidl.h | 96 const uint8_t uuid[16], const void *initData, size_t size);
|
D | CryptoHalAidl.h | 81 const std::vector<uint8_t> initData);
|
/frameworks/av/media/codec2/sfplugin/ |
D | CCodecBufferChannel.h | 201 const C2StreamInitDataInfo::output *initData); 314 const C2StreamInitDataInfo::output *initData);
|
/frameworks/base/core/java/android/widget/ |
D | RadialTimePickerView.java | 395 initData(); in RadialTimePickerView() 455 initData(); in initialize() 511 initData(); in setCurrentHourInternal() 639 private void initData() { in initData() method in RadialTimePickerView 702 initData(); in showPicker()
|