Home
last modified time | relevance | path

Searched refs:initData (Results 1 – 25 of 38) 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
82 uint32_t expectedSize = initData.size(); in parsePssh()
84 if (memcmp(&initData[readPosition], &expectedSize, in parsePssh()
92 if (memcmp(&initData[readPosition], psshIdentifier, in parsePssh()
100 if (memcmp(&initData[readPosition], psshVersion1, in parsePssh()
107 if (!isClearKeyUUID(&initData[readPosition])) { 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/hidl/
DInitDataParser.cpp47 Status InitDataParser::parse(const std::vector<uint8_t>& initData, in parse() argument
57 Status res = parsePssh(initData, &keyIds); in parse()
65 if (initData.size() != kKeyIdSize) { in parse()
68 keyIds.push_back(initData.data()); in parse()
86 Status InitDataParser::parsePssh(const std::vector<uint8_t>& initData, in parsePssh() argument
91 uint32_t expectedSize = initData.size(); in parsePssh()
93 if (memcmp(&initData[readPosition], &expectedSize, in parsePssh()
101 if (memcmp(&initData[readPosition], psshIdentifier, in parsePssh()
109 if (memcmp(&initData[readPosition], psshVersion1, in parsePssh()
116 if (!clearkeydrm::isClearKeyUUID(&initData[readPosition])) { in parsePssh()
[all …]
DCryptoFactory.cpp41 const hidl_vec<uint8_t> &initData, in createPlugin() argument
51 CryptoPlugin *cryptoPlugin = new CryptoPlugin(initData); in createPlugin()
DSession.cpp43 const std::vector<uint8_t>& initData, in getKeyRequest() argument
48 return parser.parse(initData, mimeType, keyType, keyRequest); in getKeyRequest()
DDrmPlugin.cpp165 const hidl_vec<uint8_t>& initData, in getKeyRequestCommon() argument
178 if (keyType == KeyType::OFFLINE && 0 == initData.size()) { in getKeyRequestCommon()
208 session->getKeyRequest(initData, mimeType, keyType, request)); in getKeyRequestCommon()
238 const hidl_vec<uint8_t>& initData, in getKeyRequest() argument
249 scope, initData, mimeType, keyType, optionalParameters, in getKeyRequest()
260 const hidl_vec<uint8_t>& initData, in getKeyRequest_1_1() argument
271 scope, initData, mimeType, keyType, optionalParameters, in getKeyRequest_1_1()
281 const hidl_vec<uint8_t>& initData, in getKeyRequest_1_2() argument
292 scope, initData, mimeType, keyType, optionalParameters, in getKeyRequest_1_2()
/frameworks/base/media/jni/
Dandroid_media_MediaCrypto.cpp47 const uint8_t uuid[16], const void *initData, size_t initSize) { in JCrypto() argument
50 mCrypto = MakeCrypto(uuid, initData, initSize); in JCrypto()
85 const uint8_t uuid[16], const void *initData, size_t initSize) { in MakeCrypto() argument
92 status_t err = crypto->createPlugin(uuid, initData, initSize); in MakeCrypto()
198 jbyte *initData = NULL; in android_media_MediaCrypto_native_setup() local
202 initData = env->GetByteArrayElements(initDataObj, &isCopy); in android_media_MediaCrypto_native_setup()
206 env, thiz, (const uint8_t *)uuid, initData, initDataLength); in android_media_MediaCrypto_native_setup()
211 env->ReleaseByteArrayElements(initDataObj, initData, 0); in android_media_MediaCrypto_native_setup()
212 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/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/hidl/include/
DInitDataParser.h36 Status parse(const std::vector<uint8_t>& initData,
44 Status parsePssh(const std::vector<uint8_t>& initData,
DCryptoFactory.h46 const hidl_vec<uint8_t>& initData,
DDrmPlugin.h82 const hidl_vec<uint8_t>& initData,
90 const hidl_vec<uint8_t>& initData,
98 const hidl_vec<uint8_t>& initData,
383 const hidl_vec<uint8_t>& initData,
/frameworks/av/media/ndk/include/media/
DNdkMediaCrypto.h56 AMediaCrypto* AMediaCrypto_new(const AMediaUUID uuid, const void *initData, size_t initDataSize) __…
/frameworks/base/media/java/android/media/
DMediaCrypto.java99 private native final void native_setup(@NonNull byte[] uuid, @NonNull byte[] initData) in native_setup() argument
/frameworks/av/media/codec2/sfplugin/
DCCodecBufferChannel.h133 const C2StreamInitDataInfo::output *initData);
215 const C2StreamInitDataInfo::output *initData);
/frameworks/av/include/mediadrm/
DCryptoHal.h105 const uint8_t uuid[16], const void *initData, size_t size);
DIDrm.h54 Vector<uint8_t> const &initData,
/frameworks/av/media/libmedia/include/media/
DCryptoHal.h105 const uint8_t uuid[16], const void *initData, size_t size);
/frameworks/base/core/java/android/widget/
DRadialTimePickerView.java390 initData(); in RadialTimePickerView()
450 initData(); in initialize()
506 initData(); in setCurrentHourInternal()
634 private void initData() { in initData() method in RadialTimePickerView
697 initData(); in showPicker()
/frameworks/av/drm/libmediadrm/
DCryptoHal.cpp172 const uint8_t uuid[16], const void *initData, size_t initDataSize) { in makeCryptoPlugin() argument
176 toHidlVec(initData, initDataSize), in makeCryptoPlugin()
DIDrm.cpp160 Vector<uint8_t> const &initData, in getKeyRequest()
169 writeVector(data, initData); in getKeyRequest()
825 Vector<uint8_t> sessionId, initData; in onTransact() local
828 readVector(data, initData); in onTransact()
845 status_t result = getKeyRequest(sessionId, initData, mimeType, in onTransact()
/frameworks/av/drm/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.cpp113 Vector<uint8_t> const &initData, in getKeyRequest() argument
122 … vectorToString(sessionId).string(), vectorToString(initData).string(), mimeType.string(), in getKeyRequest()
137 mByteArrayProperties.add(String8("mock-initdata"), initData); in getKeyRequest()
DMockDrmCryptoPlugin.h63 Vector<uint8_t> const &initData,

12