Lines Matching refs:uniqueId
176 int uniqueId = -1; in addUniqueId() local
182 uniqueId = temp; in addUniqueId()
183 mUniqueIdArray[uniqueId] = true; in addUniqueId()
188 uniqueId |= 0x1000; in addUniqueId()
195 return uniqueId; in addUniqueId()
198 void DrmManager::removeUniqueId(int uniqueId) { in removeUniqueId() argument
200 if (uniqueId & 0x1000) { in removeUniqueId()
202 uniqueId &= ~(0x1000); in removeUniqueId()
205 if (uniqueId >= 0 && uniqueId < kMaxNumUniqueIds) { in removeUniqueId()
206 mUniqueIdArray[uniqueId] = false; in removeUniqueId()
242 int uniqueId, const sp<IDrmServiceListener>& drmServiceListener) { in setDrmServiceListener() argument
245 mServiceListeners.add(uniqueId, drmServiceListener); in setDrmServiceListener()
247 mServiceListeners.removeItem(uniqueId); in setDrmServiceListener()
252 void DrmManager::addClient(int uniqueId) { in addClient() argument
258 rDrmEngine.initialize(uniqueId); in addClient()
259 rDrmEngine.setOnInfoListener(uniqueId, this); in addClient()
264 void DrmManager::removeClient(int uniqueId) { in removeClient() argument
269 rDrmEngine.terminate(uniqueId); in removeClient()
273 DrmConstraints* DrmManager::getConstraints(int uniqueId, const String8* path, const int action) { in getConstraints() argument
276 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, *path); in getConstraints()
279 constraints = rDrmEngine.getConstraints(uniqueId, path, action); in getConstraints()
287 DrmMetadata* DrmManager::getMetadata(int uniqueId, const String8* path) { in getMetadata() argument
290 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, *path); in getMetadata()
293 meta = rDrmEngine.getMetadata(uniqueId, path); in getMetadata()
301 bool DrmManager::canHandle(int uniqueId, const String8& path, const String8& mimeType) { in canHandle() argument
313 result = rDrmEngine.canHandle(uniqueId, path); in canHandle()
317 result = canHandle(uniqueId, path); in canHandle()
324 DrmInfoStatus* DrmManager::processDrmInfo(int uniqueId, const DrmInfo* drmInfo) { in processDrmInfo() argument
331 infoStatus = rDrmEngine.processDrmInfo(uniqueId, drmInfo); in processDrmInfo()
339 bool DrmManager::canHandle(int uniqueId, const String8& path) { in canHandle() argument
345 result = rDrmEngine.canHandle(uniqueId, path); in canHandle()
355 DrmInfo* DrmManager::acquireDrmInfo(int uniqueId, const DrmInfoRequest* drmInfoRequest) { in acquireDrmInfo() argument
362 info = rDrmEngine.acquireDrmInfo(uniqueId, drmInfoRequest); in acquireDrmInfo()
370 status_t DrmManager::saveRights(int uniqueId, const DrmRights& drmRights, in saveRights() argument
378 result = rDrmEngine.saveRights(uniqueId, drmRights, rightsPath, contentPath); in saveRights()
386 String8 DrmManager::getOriginalMimeType(int uniqueId, const String8& path, int fd) { in getOriginalMimeType() argument
389 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, path); in getOriginalMimeType()
392 mimeType = rDrmEngine.getOriginalMimeType(uniqueId, path, fd); in getOriginalMimeType()
400 int DrmManager::getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType) { in getDrmObjectType() argument
403 const String8 plugInId = getSupportedPlugInId(uniqueId, path, mimeType); in getDrmObjectType()
406 type = rDrmEngine.getDrmObjectType(uniqueId, path, mimeType); in getDrmObjectType()
414 int DrmManager::checkRightsStatus(int uniqueId, const String8& path, int action) { in checkRightsStatus() argument
417 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, path); in checkRightsStatus()
420 rightsStatus = rDrmEngine.checkRightsStatus(uniqueId, path, action); in checkRightsStatus()
429 int uniqueId, sp<DecryptHandle>& decryptHandle, int action, bool reserve) { in consumeRights() argument
434 result = drmEngine->consumeRights(uniqueId, decryptHandle, action, reserve); in consumeRights()
440 int uniqueId, sp<DecryptHandle>& decryptHandle, int playbackStatus, int64_t position) { in setPlaybackStatus() argument
445 result = drmEngine->setPlaybackStatus(uniqueId, decryptHandle, playbackStatus, position); in setPlaybackStatus()
451 int uniqueId, const String8& path, int action, const ActionDescription& description) { in validateAction() argument
453 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, path); in validateAction()
456 return rDrmEngine.validateAction(uniqueId, path, action, description); in validateAction()
461 status_t DrmManager::removeRights(int uniqueId, const String8& path) { in removeRights() argument
463 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, path); in removeRights()
467 result = rDrmEngine.removeRights(uniqueId, path); in removeRights()
475 status_t DrmManager::removeAllRights(int uniqueId) { in removeAllRights() argument
480 result = rDrmEngine.removeAllRights(uniqueId); in removeAllRights()
489 int DrmManager::openConvertSession(int uniqueId, const String8& mimeType) { in openConvertSession() argument
497 if (DRM_NO_ERROR == rDrmEngine.openConvertSession(uniqueId, mConvertId + 1)) { in openConvertSession()
508 int uniqueId, int convertId, const DrmBuffer* inputData) { in convertData() argument
514 drmConvertedStatus = drmEngine->convertData(uniqueId, convertId, inputData); in convertData()
519 DrmConvertedStatus* DrmManager::closeConvertSession(int uniqueId, int convertId) { in closeConvertSession() argument
525 drmConvertedStatus = drmEngine->closeConvertSession(uniqueId, convertId); in closeConvertSession()
564 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) { in openDecryptSession() argument
577 result = rDrmEngine.openDecryptSession(uniqueId, handle, fd, offset, length, mime); in openDecryptSession()
594 int uniqueId, const char* uri, const char* mime) { in openDecryptSession() argument
606 result = rDrmEngine.openDecryptSession(uniqueId, handle, uri, mime); in openDecryptSession()
624 int uniqueId, const DrmBuffer& buf, const String8& mimeType) { in openDecryptSession() argument
636 result = rDrmEngine.openDecryptSession(uniqueId, handle, buf, mimeType); in openDecryptSession()
653 status_t DrmManager::closeDecryptSession(int uniqueId, sp<DecryptHandle>& decryptHandle) { in closeDecryptSession() argument
658 result = drmEngine->closeDecryptSession(uniqueId, decryptHandle); in closeDecryptSession()
667 int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId, in initializeDecryptUnit() argument
673 … result = drmEngine->initializeDecryptUnit(uniqueId, decryptHandle, decryptUnitId, headerInfo); in initializeDecryptUnit()
678 status_t DrmManager::decrypt(int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId, in decrypt() argument
686 uniqueId, decryptHandle, decryptUnitId, encBuffer, decBuffer, IV); in decrypt()
692 int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId) { in finalizeDecryptUnit() argument
697 result = drmEngine->finalizeDecryptUnit(uniqueId, decryptHandle, decryptUnitId); in finalizeDecryptUnit()
702 ssize_t DrmManager::pread(int uniqueId, sp<DecryptHandle>& decryptHandle, in pread() argument
709 result = drmEngine->pread(uniqueId, decryptHandle, buffer, numBytes, offset); in pread()
715 int uniqueId, const String8& path, const String8& mimeType) { in getSupportedPlugInId() argument
721 plugInId = getSupportedPlugInIdFromPath(uniqueId, path); in getSupportedPlugInId()
742 String8 DrmManager::getSupportedPlugInIdFromPath(int uniqueId, const String8& path) { in getSupportedPlugInIdFromPath() argument
753 if (drmEngine.canHandle(uniqueId, path)) { in getSupportedPlugInIdFromPath()
765 int uniqueId = mServiceListeners.keyAt(index); in onInfo() local
767 if (uniqueId == event.getUniqueId()) { in onInfo()
768 sp<IDrmServiceListener> serviceListener = mServiceListeners.valueFor(uniqueId); in onInfo()