/frameworks/av/drm/common/ |
D | DrmEngineBase.cpp | 30 int uniqueId, const String8* path, int action) { in getConstraints() argument 31 return onGetConstraints(uniqueId, path, action); in getConstraints() 34 DrmMetadata* DrmEngineBase::getMetadata(int uniqueId, const String8* path) { in getMetadata() argument 35 return onGetMetadata(uniqueId, path); in getMetadata() 38 status_t DrmEngineBase::initialize(int uniqueId) { in initialize() argument 39 return onInitialize(uniqueId); in initialize() 43 int uniqueId, const IDrmEngine::OnInfoListener* infoListener) { in setOnInfoListener() argument 44 return onSetOnInfoListener(uniqueId, infoListener); in setOnInfoListener() 47 status_t DrmEngineBase::terminate(int uniqueId) { in terminate() argument 48 return onTerminate(uniqueId); in terminate() [all …]
|
D | IDrmManagerService.cpp | 122 void BpDrmManagerService::removeUniqueId(int uniqueId) { in removeUniqueId() argument 126 data.writeInt32(uniqueId); in removeUniqueId() 130 void BpDrmManagerService::addClient(int uniqueId) { in addClient() argument 133 data.writeInt32(uniqueId); in addClient() 137 void BpDrmManagerService::removeClient(int uniqueId) { in removeClient() argument 140 data.writeInt32(uniqueId); in removeClient() 145 int uniqueId, const sp<IDrmServiceListener>& drmServiceListener) { in setDrmServiceListener() argument 150 data.writeInt32(uniqueId); in setDrmServiceListener() 157 int uniqueId, const String8* path, const int action) { in getConstraints() argument 162 data.writeInt32(uniqueId); in getConstraints() [all …]
|
D | DrmInfoEvent.cpp | 22 DrmInfoEvent::DrmInfoEvent(int uniqueId, int infoType, const String8 message) in DrmInfoEvent() argument 23 : mUniqueId(uniqueId), in DrmInfoEvent()
|
D | IDrmServiceListener.cpp | 48 int uniqueId = data.readInt32(); in onTransact() local 52 status_t status = notify(DrmInfoEvent(uniqueId, type, message)); in onTransact()
|
/frameworks/av/drm/libdrmframework/plugins/common/include/ |
D | DrmEngineBase.h | 37 DrmConstraints* getConstraints(int uniqueId, const String8* path, int action); 39 DrmMetadata* getMetadata(int uniqueId, const String8* path); 41 status_t initialize(int uniqueId); 43 status_t setOnInfoListener(int uniqueId, const IDrmEngine::OnInfoListener* infoListener); 45 status_t terminate(int uniqueId); 47 bool canHandle(int uniqueId, const String8& path); 49 DrmInfoStatus* processDrmInfo(int uniqueId, const DrmInfo* drmInfo); 51 status_t saveRights(int uniqueId, const DrmRights& drmRights, 54 DrmInfo* acquireDrmInfo(int uniqueId, const DrmInfoRequest* drmInfoRequest); 56 String8 getOriginalMimeType(int uniqueId, const String8& path, int fd); [all …]
|
D | IDrmEngine.h | 67 virtual status_t initialize(int uniqueId) = 0; 79 int uniqueId, const IDrmEngine::OnInfoListener* infoListener) = 0; 90 virtual status_t terminate(int uniqueId) = 0; 105 int uniqueId, const String8* path, int action) = 0; 117 virtual DrmMetadata* getMetadata(int uniqueId, const String8* path) = 0; 127 virtual bool canHandle(int uniqueId, const String8& path) = 0; 137 virtual DrmInfoStatus* processDrmInfo(int uniqueId, const DrmInfo* drmInfo) = 0; 148 virtual DrmInfo* acquireDrmInfo(int uniqueId, const DrmInfoRequest* drmInfoRequest) = 0; 161 virtual status_t saveRights(int uniqueId, const DrmRights& drmRights, 173 virtual String8 getOriginalMimeType(int uniqueId, const String8& path, int fd) = 0; [all …]
|
/frameworks/av/drm/drmserver/ |
D | DrmManagerService.cpp | 82 void DrmManagerService::removeUniqueId(int uniqueId) { in removeUniqueId() argument 83 mDrmManager->removeUniqueId(uniqueId); in removeUniqueId() 86 void DrmManagerService::addClient(int uniqueId) { in addClient() argument 87 mDrmManager->addClient(uniqueId); in addClient() 90 void DrmManagerService::removeClient(int uniqueId) { in removeClient() argument 91 mDrmManager->removeClient(uniqueId); in removeClient() 95 int uniqueId, const sp<IDrmServiceListener>& drmServiceListener) { in setDrmServiceListener() argument 97 mDrmManager->setDrmServiceListener(uniqueId, drmServiceListener); in setDrmServiceListener() 102 int uniqueId, const String8* path, const int action) { in getConstraints() argument 104 return mDrmManager->getConstraints(uniqueId, path, action); in getConstraints() [all …]
|
D | DrmManager.cpp | 56 int uniqueId = -1; in addUniqueId() local 62 uniqueId = temp; in addUniqueId() 63 mUniqueIdArray[uniqueId] = true; in addUniqueId() 68 uniqueId |= 0x1000; in addUniqueId() 75 return uniqueId; in addUniqueId() 78 void DrmManager::removeUniqueId(int uniqueId) { in removeUniqueId() argument 80 if (uniqueId & 0x1000) { in removeUniqueId() 82 uniqueId &= ~(0x1000); in removeUniqueId() 85 if (uniqueId >= 0 && uniqueId < kMaxNumUniqueIds) { in removeUniqueId() 86 mUniqueIdArray[uniqueId] = false; in removeUniqueId() [all …]
|
/frameworks/av/drm/libdrmframework/include/ |
D | IDrmManagerService.h | 87 virtual void removeUniqueId(int uniqueId) = 0; 89 virtual void addClient(int uniqueId) = 0; 91 virtual void removeClient(int uniqueId) = 0; 94 int uniqueId, const sp<IDrmServiceListener>& infoListener) = 0; 97 int uniqueId, const String8* path, const int action) = 0; 99 virtual DrmMetadata* getMetadata(int uniqueId, const String8* path) = 0; 101 virtual bool canHandle(int uniqueId, const String8& path, const String8& mimeType) = 0; 103 virtual DrmInfoStatus* processDrmInfo(int uniqueId, const DrmInfo* drmInfo) = 0; 105 virtual DrmInfo* acquireDrmInfo(int uniqueId, const DrmInfoRequest* drmInforequest) = 0; 107 virtual status_t saveRights(int uniqueId, const DrmRights& drmRights, [all …]
|
D | DrmManagerService.h | 51 void removeUniqueId(int uniqueId); 53 void addClient(int uniqueId); 55 void removeClient(int uniqueId); 58 int uniqueId, const sp<IDrmServiceListener>& drmServiceListener); 60 DrmConstraints* getConstraints(int uniqueId, const String8* path, const int action); 62 DrmMetadata* getMetadata(int uniqueId, const String8* path); 64 bool canHandle(int uniqueId, const String8& path, const String8& mimeType); 66 DrmInfoStatus* processDrmInfo(int uniqueId, const DrmInfo* drmInfo); 68 DrmInfo* acquireDrmInfo(int uniqueId, const DrmInfoRequest* drmInforequest); 70 status_t saveRights(int uniqueId, const DrmRights& drmRights, [all …]
|
D | NoOpDrmManagerClientImpl.h | 28 void remove(int uniqueId); 29 void addClient(int uniqueId); 30 void removeClient(int uniqueId); 32 int uniqueId, const sp<DrmManagerClient::OnInfoListener>& infoListener); 33 DrmConstraints* getConstraints(int uniqueId, const String8* path, const int action); 35 DrmMetadata* getMetadata(int uniqueId, const String8* path); 36 bool canHandle(int uniqueId, const String8& path, const String8& mimeType); 37 DrmInfoStatus* processDrmInfo(int uniqueId, const DrmInfo* drmInfo); 38 DrmInfo* acquireDrmInfo(int uniqueId, const DrmInfoRequest* drmInfoRequest); 39 status_t saveRights(int uniqueId, const DrmRights& drmRights, [all …]
|
D | DrmManager.h | 58 void removeUniqueId(int uniqueId); 60 void addClient(int uniqueId); 62 void removeClient(int uniqueId); 71 int uniqueId, const sp<IDrmServiceListener>& drmServiceListener); 73 DrmConstraints* getConstraints(int uniqueId, const String8* path, const int action); 75 DrmMetadata* getMetadata(int uniqueId, const String8* path); 77 bool canHandle(int uniqueId, const String8& path, const String8& mimeType); 79 DrmInfoStatus* processDrmInfo(int uniqueId, const DrmInfo* drmInfo); 81 DrmInfo* acquireDrmInfo(int uniqueId, const DrmInfoRequest* drmInfoRequest); 83 status_t saveRights(int uniqueId, const DrmRights& drmRights, [all …]
|
D | DrmManagerClientImpl.h | 46 virtual void remove(int uniqueId); 53 virtual void addClient(int uniqueId); 60 virtual void removeClient(int uniqueId); 72 int uniqueId, const sp<DrmManagerClient::OnInfoListener>& infoListener); 86 virtual DrmConstraints* getConstraints(int uniqueId, const String8* path, const int action); 98 virtual DrmMetadata* getMetadata(int uniqueId, const String8* path); 109 virtual bool canHandle(int uniqueId, const String8& path, const String8& mimeType); 119 virtual DrmInfoStatus* processDrmInfo(int uniqueId, const DrmInfo* drmInfo); 130 virtual DrmInfo* acquireDrmInfo(int uniqueId, const DrmInfoRequest* drmInfoRequest); 143 virtual status_t saveRights(int uniqueId, const DrmRights& drmRights, [all …]
|
/frameworks/av/drm/libdrmframework/plugins/passthru/include/ |
D | DrmPassthruPlugIn.h | 31 DrmConstraints* onGetConstraints(int uniqueId, const String8* path, int action); 33 DrmMetadata* onGetMetadata(int uniqueId, const String8* path); 35 status_t onInitialize(int uniqueId); 37 status_t onSetOnInfoListener(int uniqueId, const IDrmEngine::OnInfoListener* infoListener); 39 status_t onTerminate(int uniqueId); 41 bool onCanHandle(int uniqueId, const String8& path); 43 DrmInfoStatus* onProcessDrmInfo(int uniqueId, const DrmInfo* drmInfo); 45 status_t onSaveRights(int uniqueId, const DrmRights& drmRights, 48 DrmInfo* onAcquireDrmInfo(int uniqueId, const DrmInfoRequest* drmInfoRequest); 50 String8 onGetOriginalMimeType(int uniqueId, const String8& path, int fd); [all …]
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/ |
D | FwdLockEngine.h | 57 DrmConstraints* onGetConstraints(int uniqueId, const String8* path, int action); 69 DrmMetadata* onGetMetadata(int uniqueId, const String8* path); 78 status_t onInitialize(int uniqueId); 89 status_t onSetOnInfoListener(int uniqueId, const IDrmEngine::OnInfoListener* infoListener); 98 status_t onTerminate(int uniqueId); 108 bool onCanHandle(int uniqueId, const String8& path); 119 DrmInfoStatus* onProcessDrmInfo(int uniqueId, const DrmInfo* drmInfo); 132 status_t onSaveRights(int uniqueId, 146 DrmInfo* onAcquireDrmInfo(int uniqueId, 158 String8 onGetOriginalMimeType(int uniqueId, const String8& path, int fd); [all …]
|
/frameworks/av/drm/libdrmframework/plugins/passthru/src/ |
D | DrmPassthruPlugIn.cpp | 55 DrmMetadata* DrmPassthruPlugIn::onGetMetadata(int uniqueId, const String8* path) { in onGetMetadata() argument 60 int uniqueId, const String8* path, int action) { in onGetConstraints() argument 61 ALOGV("DrmPassthruPlugIn::onGetConstraints From Path: %d", uniqueId); in onGetConstraints() 76 DrmInfoStatus* DrmPassthruPlugIn::onProcessDrmInfo(int uniqueId, const DrmInfo* drmInfo) { in onProcessDrmInfo() argument 77 ALOGV("DrmPassthruPlugIn::onProcessDrmInfo - Enter : %d", uniqueId); in onProcessDrmInfo() 111 int uniqueId, const IDrmEngine::OnInfoListener* infoListener) { in onSetOnInfoListener() argument 112 ALOGV("DrmPassthruPlugIn::onSetOnInfoListener : %d", uniqueId); in onSetOnInfoListener() 116 status_t DrmPassthruPlugIn::onInitialize(int uniqueId) { in onInitialize() argument 117 ALOGV("DrmPassthruPlugIn::onInitialize : %d", uniqueId); in onInitialize() 121 status_t DrmPassthruPlugIn::onTerminate(int uniqueId) { in onTerminate() argument [all …]
|
/frameworks/av/drm/libdrmframework/ |
D | NoOpDrmManagerClientImpl.cpp | 21 void NoOpDrmManagerClientImpl::remove(int uniqueId) { in remove() argument 24 void NoOpDrmManagerClientImpl::addClient(int uniqueId) { in addClient() argument 27 void NoOpDrmManagerClientImpl::removeClient(int uniqueId) { in removeClient() argument 31 int uniqueId, const sp<DrmManagerClient::OnInfoListener>& infoListener) { in setOnInfoListener() argument 35 DrmConstraints* NoOpDrmManagerClientImpl::getConstraints(int uniqueId, const String8* path, const i… in getConstraints() argument 39 DrmMetadata* NoOpDrmManagerClientImpl::getMetadata(int uniqueId, const String8* path) { in getMetadata() argument 43 bool NoOpDrmManagerClientImpl::canHandle(int uniqueId, const String8& path, const String8& mimeType… in canHandle() argument 47 DrmInfoStatus* NoOpDrmManagerClientImpl::processDrmInfo(int uniqueId, const DrmInfo* drmInfo) { in processDrmInfo() argument 51 DrmInfo* NoOpDrmManagerClientImpl::acquireDrmInfo(int uniqueId, const DrmInfoRequest* drmInfoReques… in acquireDrmInfo() argument 55 status_t NoOpDrmManagerClientImpl::saveRights(int uniqueId, const DrmRights& drmRights, in saveRights() argument [all …]
|
D | DrmManagerClientImpl.cpp | 48 void DrmManagerClientImpl::remove(int uniqueId) { in remove() argument 49 getDrmManagerService()->removeUniqueId(uniqueId); in remove() 83 void DrmManagerClientImpl::addClient(int uniqueId) { in addClient() argument 84 getDrmManagerService()->addClient(uniqueId); in addClient() 87 void DrmManagerClientImpl::removeClient(int uniqueId) { in removeClient() argument 88 getDrmManagerService()->removeClient(uniqueId); in removeClient() 92 int uniqueId, in setOnInfoListener() argument 96 return getDrmManagerService()->setDrmServiceListener(uniqueId, in setOnInfoListener() 101 int uniqueId, const String8* path, const int action) { in getConstraints() argument 105 getDrmManagerService()->getConstraints(uniqueId, path, action); in getConstraints() [all …]
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/ |
D | FwdLockEngine.cpp | 79 FwdLockConv_CloseSession(convSession->uniqueId, &(convSession->output)); in ~FwdLockEngine() 108 DrmConstraints* FwdLockEngine::onGetConstraints(int uniqueId, const String8* path, int action) { in onGetConstraints() argument 114 (RightsStatus::RIGHTS_VALID == onCheckRightsStatus(uniqueId, *path, action))) { in onGetConstraints() 122 DrmMetadata* FwdLockEngine::onGetMetadata(int uniqueId, const String8* path) { in onGetMetadata() argument 135 android::status_t FwdLockEngine::onInitialize(int uniqueId) { in onInitialize() argument 149 FwdLockEngine::onSetOnInfoListener(int uniqueId, const IDrmEngine::OnInfoListener* infoListener) { in onSetOnInfoListener() argument 156 android::status_t FwdLockEngine::onTerminate(int uniqueId) { in onTerminate() argument 210 DrmSupportInfo* FwdLockEngine::onGetSupportInfo(int uniqueId) { in onGetSupportInfo() argument 225 bool FwdLockEngine::onCanHandle(int uniqueId, const String8& path) { in onCanHandle() argument 232 DrmInfoStatus* FwdLockEngine::onProcessDrmInfo(int uniqueId, const DrmInfo* drmInfo) { in onProcessDrmInfo() argument [all …]
|
/frameworks/base/drm/jni/ |
D | android_drm_DrmManagerClient.cpp | 167 jint uniqueId = event.getUniqueId(); in onInfo() local 171 ALOGV("JNIOnInfoListener::onInfo => %d | %d | %s", uniqueId, type, event.getMessage().string()); in onInfo() 176 mObject, uniqueId, type, message); in onInfo() 213 int uniqueId = 0; in android_drm_DrmManagerClient_initialize() local 214 sp<DrmManagerClientImpl> drmManager = DrmManagerClientImpl::create(&uniqueId, false); in android_drm_DrmManagerClient_initialize() 215 drmManager->addClient(uniqueId); in android_drm_DrmManagerClient_initialize() 219 return static_cast<jint>(uniqueId); in android_drm_DrmManagerClient_initialize() 223 JNIEnv* env, jobject thiz, jint uniqueId, jobject weak_thiz) { in android_drm_DrmManagerClient_setListeners() argument 228 getDrmManagerClientImpl(env, thiz)->setOnInfoListener(uniqueId, listener); in android_drm_DrmManagerClient_setListeners() 234 JNIEnv* env, jobject thiz, jint uniqueId) { in android_drm_DrmManagerClient_release() argument [all …]
|
/frameworks/base/drm/java/android/drm/ |
D | DrmManagerClient.java | 183 Object thisReference, int uniqueId, int infoType, String message) { in notify() argument 188 InfoHandler.INFO_EVENT_TYPE, uniqueId, infoType, message); in notify() 206 int uniqueId = msg.arg1; in handleMessage() local 217 info = new DrmInfoEvent(uniqueId, infoType, message); in handleMessage() 225 info = new DrmInfoEvent(uniqueId, infoType, message); in handleMessage() 229 error = new DrmErrorEvent(uniqueId, infoType, message); in handleMessage() 865 private native void _setListeners(int uniqueId, Object weak_this); in _setListeners() argument 867 private native void _release(int uniqueId); in _release() argument 869 private native void _installDrmEngine(int uniqueId, String engineFilepath); in _installDrmEngine() argument 871 private native ContentValues _getConstraints(int uniqueId, String path, int usage); in _getConstraints() argument [all …]
|
D | DrmErrorEvent.java | 82 public DrmErrorEvent(int uniqueId, int type, String message) { in DrmErrorEvent() argument 83 super(uniqueId, type, message); in DrmErrorEvent() 96 public DrmErrorEvent(int uniqueId, int type, String message, in DrmErrorEvent() argument 98 super(uniqueId, type, message, attributes); in DrmErrorEvent()
|
D | DrmInfoEvent.java | 72 public DrmInfoEvent(int uniqueId, int type, String message) { in DrmInfoEvent() argument 73 super(uniqueId, type, message); in DrmInfoEvent() 87 public DrmInfoEvent(int uniqueId, int type, String message, in DrmInfoEvent() argument 89 super(uniqueId, type, message, attributes); in DrmInfoEvent()
|
D | DrmEvent.java | 62 protected DrmEvent(int uniqueId, int type, String message, in DrmEvent() argument 64 mUniqueId = uniqueId; in DrmEvent() 83 protected DrmEvent(int uniqueId, int type, String message) { in DrmEvent() argument 84 mUniqueId = uniqueId; in DrmEvent()
|
/frameworks/av/include/drm/ |
D | DrmInfoEvent.h | 80 DrmInfoEvent(int uniqueId, int infoType, const String8 message);
|