Home
last modified time | relevance | path

Searched refs:ecm (Results 1 – 15 of 15) sorted by relevance

/frameworks/av/drm/mediacas/plugins/clearkey/
Decm_generator.cpp57 status_t DecodeECM(const sp<ABuffer>& ecm, Asset* asset, in DecodeECM() argument
63 status_t status = DecodeECMClearFields(ecm, asset, default_fields); in DecodeECM()
68 const uint8_t* ptr = ecm->data() + kEcmClearFieldsSize; in DecodeECM()
75 status_t DecodeECMClearFields(const sp<ABuffer>& ecm, Asset* asset, in DecodeECMClearFields() argument
80 if (ecm->size() < kTotalEcmSize) { in DecodeECMClearFields()
82 kTotalEcmSize, ecm->size()); in DecodeECMClearFields()
85 const uint8_t* ptr = ecm->data(); in DecodeECMClearFields()
DClearKeyFetcher.cpp76 container.descriptor(0).ecm().asset_id(), in ObtainKey()
82 *asset_id = container.descriptor(0).ecm().asset_id(); in ObtainKey()
109 container.descriptor(i).ecm().buffer(), asset_); in ObtainKey()
119 key.key_bytes = container.descriptor(i).ecm().content_key(); in ObtainKey()
Decm_generator.h81 status_t DecodeECM(const sp<ABuffer>& ecm, Asset* asset,
105 status_t DecodeECMClearFields(const sp<ABuffer>& ecm, Asset* asset,
DClearKeyCasPlugin.cpp184 const CasSessionId &sessionId, const CasEcm& ecm) { in processEcm() argument
194 return session->updateECM(mKeyFetcher.get(), (void*)ecm.data(), ecm.size()); in processEcm()
353 KeyFetcher *keyFetcher, void *ecm, size_t size) { in updateECM() argument
366 && !memcmp(mEcmBuffer->base(), ecm, size)) { in updateECM()
370 mEcmBuffer = ABuffer::CreateAsCopy(ecm, size); in updateECM()
Decm.h211 EcmDescriptor(uint16_t id, const Ecm& ecm);
240 inline const Ecm& ecm() const { return ecm_; } in ecm() function
DKeyFetcher.h49 virtual status_t ObtainKey(const sp<ABuffer>& ecm,
DClearKeyFetcher.h50 status_t ObtainKey(const sp<ABuffer>& ecm, uint64_t* asset_id,
Decm.cpp93 EcmDescriptor::EcmDescriptor(uint16_t id, const Ecm& ecm) in EcmDescriptor() argument
94 : ecm_(ecm), ecm_set_(true), id_(id), id_set_(true) {} in EcmDescriptor()
DClearKeySessionLibrary.h48 status_t updateECM(KeyFetcher *keyFetcher, void *ecm, size_t size);
DAndroid.bp25 "ecm.cpp",
DClearKeyCasPlugin.h93 const CasSessionId &sessionId, const CasEcm &ecm) override;
/frameworks/av/drm/mediacas/plugins/mock/
DMockCasPlugin.cpp166 const CasSessionId &sessionId, const CasEcm& ecm) { in processEcm() argument
175 ALOGV("ECM: size=%zu", ecm.size()); in processEcm()
176 ALOGV("ECM: data=%s", arrayToString(ecm).string()); in processEcm()
DMockCasPlugin.h87 const CasSessionId &sessionId, const CasEcm &ecm) override;
/frameworks/av/media/libstagefright/mpeg2ts/
DCasManager.cpp338 hidl_vec<uint8_t> ecm; in parsePID() local
339 ecm.setToExternal((uint8_t*)br->data(), br->numBitsLeft() / 8); in parsePID()
340 auto returnStatus = mICas->processEcm(mCAPidToSessionIdMap[index], ecm); in parsePID()
/frameworks/native/headers/media_plugin/media/cas/
DCasAPI.h129 const CasEcm &ecm) = 0;