Home | History | Annotate | Download | only in drmserver

Lines Matching full:uniqueid

90 void DrmManager::removeUniqueId(int uniqueId) {
93 if (uniqueId == mUniqueIdVector.itemAt(i)) {
137 int uniqueId, const sp<IDrmServiceListener>& drmServiceListener) {
140 mServiceListeners.add(uniqueId, drmServiceListener);
142 mServiceListeners.removeItem(uniqueId);
147 void DrmManager::addClient(int uniqueId) {
153 rDrmEngine.initialize(uniqueId);
154 rDrmEngine.setOnInfoListener(uniqueId, this);
159 void DrmManager::removeClient(int uniqueId) {
164 rDrmEngine.terminate(uniqueId);
168 DrmConstraints* DrmManager::getConstraints(int uniqueId, const String8* path, const int action) {
170 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, *path);
173 return rDrmEngine.getConstraints(uniqueId, path, action);
178 DrmMetadata* DrmManager::getMetadata(int uniqueId, const String8* path) {
180 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, *path);
183 return rDrmEngine.getMetadata(uniqueId, path);
188 status_t DrmManager::installDrmEngine(int uniqueId, const String8& absolutePath) {
193 rDrmEngine.initialize(uniqueId);
194 rDrmEngine.setOnInfoListener(uniqueId, this);
203 bool DrmManager::canHandle(int uniqueId, const String8& path, const String8& mimeType) {
211 result = rDrmEngine.canHandle(uniqueId, path);
215 result = canHandle(uniqueId, path);
222 DrmInfoStatus* DrmManager::processDrmInfo(int uniqueId, const DrmInfo* drmInfo) {
227 return rDrmEngine.processDrmInfo(uniqueId, drmInfo);
232 bool DrmManager::canHandle(int uniqueId, const String8& path) {
238 result = rDrmEngine.canHandle(uniqueId, path);
247 DrmInfo* DrmManager::acquireDrmInfo(int uniqueId, const DrmInfoRequest* drmInfoRequest) {
252 return rDrmEngine.acquireDrmInfo(uniqueId, drmInfoRequest);
257 status_t DrmManager::saveRights(int uniqueId, const DrmRights& drmRights,
264 result = rDrmEngine.saveRights(uniqueId, drmRights, rightsPath, contentPath);
269 String8 DrmManager::getOriginalMimeType(int uniqueId, const String8& path) {
271 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, path);
274 return rDrmEngine.getOriginalMimeType(uniqueId, path);
279 int DrmManager::getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType) {
281 const String8 plugInId = getSupportedPlugInId(uniqueId, path, mimeType);
284 return rDrmEngine.getDrmObjectType(uniqueId, path, mimeType);
289 int DrmManager::checkRightsStatus(int uniqueId, const String8& path, int action) {
291 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, path);
294 return rDrmEngine.checkRightsStatus(uniqueId, path, action);
300 int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) {
305 result = drmEngine->consumeRights(uniqueId, decryptHandle, action, reserve);
311 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) {
316 result = drmEngine->setPlaybackStatus(uniqueId, decryptHandle, playbackStatus, position);
322 int uniqueId, const String8& path, int action, const ActionDescription& description) {
324 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, path);
327 return rDrmEngine.validateAction(uniqueId, path, action, description);
332 status_t DrmManager::removeRights(int uniqueId, const String8& path) {
334 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, path);
338 result = rDrmEngine.removeRights(uniqueId, path);
343 status_t DrmManager::removeAllRights(int uniqueId) {
348 result = rDrmEngine.removeAllRights(uniqueId);
356 int DrmManager::openConvertSession(int uniqueId, const String8& mimeType) {
364 if (DRM_NO_ERROR == rDrmEngine.openConvertSession(uniqueId, mConvertId + 1)) {
374 int uniqueId, int convertId, const DrmBuffer* inputData) {
380 drmConvertedStatus = drmEngine->convertData(uniqueId, convertId, inputData);
385 DrmConvertedStatus* DrmManager::closeConvertSession(int uniqueId, int convertId) {
391 drmConvertedStatus = drmEngine->closeConvertSession(uniqueId, convertId);
398 int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) {
429 DecryptHandle* DrmManager::openDecryptSession(int uniqueId, int fd, off64_t offset, off64_t length) {
441 result = rDrmEngine.openDecryptSession(uniqueId, handle, fd, offset, length);
456 DecryptHandle* DrmManager::openDecryptSession(int uniqueId, const char* uri) {
468 result = rDrmEngine.openDecryptSession(uniqueId, handle, uri);
484 status_t DrmManager::closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle) {
489 result = drmEngine->closeDecryptSession(uniqueId, decryptHandle);
498 int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, const DrmBuffer* headerInfo) {
503 result = drmEngine->initializeDecryptUnit(uniqueId, decryptHandle, decryptUnitId, headerInfo);
508 status_t DrmManager::decrypt(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId,
516 uniqueId, decryptHandle, decryptUnitId, encBuffer, decBuffer, IV);
522 int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId) {
527 result = drmEngine->finalizeDecryptUnit(uniqueId, decryptHandle, decryptUnitId);
532 ssize_t DrmManager::pread(int uniqueId, DecryptHandle* decryptHandle,
539 result = drmEngine->pread(uniqueId, decryptHandle, buffer, numBytes, offset);
545 int uniqueId, const String8& path, const String8& mimeType) {
551 plugInId = getSupportedPlugInIdFromPath(uniqueId, path);
572 String8 DrmManager::getSupportedPlugInIdFromPath(int uniqueId, const String8& path) {
583 if (drmEngine.canHandle(uniqueId, path)) {
595 int uniqueId = mServiceListeners.keyAt(index);
597 if (uniqueId == event.getUniqueId()) {
598 sp<IDrmServiceListener> serviceListener = mServiceListeners.valueFor(uniqueId);