Home
last modified time | relevance | path

Searched refs:initData (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/av/drm/mediadrm/plugins/clearkey/default/tests/
DInitDataParserUnittest.cpp40 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/
DInitDataParser.cpp44 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 …]
DSession.cpp38 const Vector<uint8_t>& initData, in getKeyRequest() argument
42 return parser.parse(initData, mimeType, keyRequest); in getKeyRequest()
DDrmPlugin.cpp85 const Vector<uint8_t>& initData, in getKeyRequest() argument
108 return session->getKeyRequest(initData, mimeType, &request); in getKeyRequest()
/frameworks/av/drm/mediadrm/plugins/clearkey/common/
DInitDataParser.cpp42 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 …]
DSession.cpp31 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/
Dandroid_media_MediaCrypto.cpp46 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()
Dandroid_media_MediaCrypto.h34 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/
Dndk_crypto_fuzzer.cpp36 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/
DInitDataParser.h31 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/
DInitDataParser.h26 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/
DMtpPacketFuzzerUtils.h90 std::vector<uint8_t> initData = in writeHandle() local
92 handle.write(initData.data(), initData.size()); in writeHandle()
Dmtp_data_packet_fuzzer.cpp85 std::vector<uint8_t> initData = in process() local
87 mtpDataPacket.putAUInt8(initData.data(), initData.size()); in process()
/frameworks/av/media/ndk/include/media/
DNdkMediaCrypto.h63 AMediaCrypto* AMediaCrypto_new(const AMediaUUID uuid, const void *initData, size_t initDataSize) __…
/frameworks/base/media/java/android/media/
DMediaExtractor.java396 Collectors.toMap(initData -> initData.uuid, initData -> initData)); in getDrmInitData()
DMediaCrypto.java102 private native final void native_setup(@NonNull byte[] uuid, @NonNull byte[] initData) in native_setup() argument
/frameworks/av/drm/libmediadrm/
DDrmUtils.cpp148 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()
DDrmHal.cpp73 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()
DCryptoHalHidl.cpp132 const uint8_t uuid[16], const void* initData, in makeCryptoPlugin() argument
136 factory->createPlugin(toHidlArray16(uuid), toHidlVec(initData, initDataSize), in makeCryptoPlugin()
DCryptoHalAidl.cpp202 const std::vector<uint8_t> initData) { in makeCryptoPlugin() argument
204 if (factory->createCryptoPlugin(uuidAidl, initData, &pluginAidl).isOk()) { in makeCryptoPlugin()
/frameworks/av/drm/libmediadrm/fuzzer/
Dmediadrm_fuzzer.cpp234 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/
DCryptoHalHidl.h96 const uint8_t uuid[16], const void *initData, size_t size);
DCryptoHalAidl.h81 const std::vector<uint8_t> initData);
/frameworks/av/media/codec2/sfplugin/
DCCodecBufferChannel.h201 const C2StreamInitDataInfo::output *initData);
314 const C2StreamInitDataInfo::output *initData);
/frameworks/base/core/java/android/widget/
DRadialTimePickerView.java395 initData(); in RadialTimePickerView()
455 initData(); in initialize()
511 initData(); in setCurrentHourInternal()
639 private void initData() { in initData() method in RadialTimePickerView
702 initData(); in showPicker()

12