Lines Matching refs:uniqueId
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()
127 int uniqueId, const sp<IDrmServiceListener>& drmServiceListener) { in setDrmServiceListener() argument
130 mServiceListeners.add(uniqueId, drmServiceListener); in setDrmServiceListener()
132 mServiceListeners.removeItem(uniqueId); in setDrmServiceListener()
137 void DrmManager::addClient(int uniqueId) { in addClient() argument
143 rDrmEngine.initialize(uniqueId); in addClient()
144 rDrmEngine.setOnInfoListener(uniqueId, this); in addClient()
149 void DrmManager::removeClient(int uniqueId) { in removeClient() argument
154 rDrmEngine.terminate(uniqueId); in removeClient()
158 DrmConstraints* DrmManager::getConstraints(int uniqueId, const String8* path, const int action) { in getConstraints() argument
160 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, *path); in getConstraints()
163 return rDrmEngine.getConstraints(uniqueId, path, action); in getConstraints()
168 DrmMetadata* DrmManager::getMetadata(int uniqueId, const String8* path) { in getMetadata() argument
170 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, *path); in getMetadata()
173 return rDrmEngine.getMetadata(uniqueId, path); in getMetadata()
178 bool DrmManager::canHandle(int uniqueId, const String8& path, const String8& mimeType) { in canHandle() argument
186 result = rDrmEngine.canHandle(uniqueId, path); in canHandle()
190 result = canHandle(uniqueId, path); in canHandle()
197 DrmInfoStatus* DrmManager::processDrmInfo(int uniqueId, const DrmInfo* drmInfo) { in processDrmInfo() argument
202 return rDrmEngine.processDrmInfo(uniqueId, drmInfo); in processDrmInfo()
207 bool DrmManager::canHandle(int uniqueId, const String8& path) { in canHandle() argument
213 result = rDrmEngine.canHandle(uniqueId, path); in canHandle()
222 DrmInfo* DrmManager::acquireDrmInfo(int uniqueId, const DrmInfoRequest* drmInfoRequest) { in acquireDrmInfo() argument
227 return rDrmEngine.acquireDrmInfo(uniqueId, drmInfoRequest); in acquireDrmInfo()
232 status_t DrmManager::saveRights(int uniqueId, const DrmRights& drmRights, in saveRights() argument
239 result = rDrmEngine.saveRights(uniqueId, drmRights, rightsPath, contentPath); in saveRights()
244 String8 DrmManager::getOriginalMimeType(int uniqueId, const String8& path, int fd) { in getOriginalMimeType() argument
246 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, path); in getOriginalMimeType()
249 return rDrmEngine.getOriginalMimeType(uniqueId, path, fd); in getOriginalMimeType()
254 int DrmManager::getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType) { in getDrmObjectType() argument
256 const String8 plugInId = getSupportedPlugInId(uniqueId, path, mimeType); in getDrmObjectType()
259 return rDrmEngine.getDrmObjectType(uniqueId, path, mimeType); in getDrmObjectType()
264 int DrmManager::checkRightsStatus(int uniqueId, const String8& path, int action) { in checkRightsStatus() argument
266 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, path); in checkRightsStatus()
269 return rDrmEngine.checkRightsStatus(uniqueId, path, action); in checkRightsStatus()
275 int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) { in consumeRights() argument
280 result = drmEngine->consumeRights(uniqueId, decryptHandle, action, reserve); in consumeRights()
286 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) { in setPlaybackStatus() argument
291 result = drmEngine->setPlaybackStatus(uniqueId, decryptHandle, playbackStatus, position); in setPlaybackStatus()
297 int uniqueId, const String8& path, int action, const ActionDescription& description) { in validateAction() argument
299 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, path); in validateAction()
302 return rDrmEngine.validateAction(uniqueId, path, action, description); in validateAction()
307 status_t DrmManager::removeRights(int uniqueId, const String8& path) { in removeRights() argument
309 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, path); in removeRights()
313 result = rDrmEngine.removeRights(uniqueId, path); in removeRights()
318 status_t DrmManager::removeAllRights(int uniqueId) { in removeAllRights() argument
323 result = rDrmEngine.removeAllRights(uniqueId); in removeAllRights()
331 int DrmManager::openConvertSession(int uniqueId, const String8& mimeType) { in openConvertSession() argument
339 if (DRM_NO_ERROR == rDrmEngine.openConvertSession(uniqueId, mConvertId + 1)) { in openConvertSession()
349 int uniqueId, int convertId, const DrmBuffer* inputData) { in convertData() argument
355 drmConvertedStatus = drmEngine->convertData(uniqueId, convertId, inputData); in convertData()
360 DrmConvertedStatus* DrmManager::closeConvertSession(int uniqueId, int convertId) { in closeConvertSession() argument
366 drmConvertedStatus = drmEngine->closeConvertSession(uniqueId, convertId); in closeConvertSession()
405 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) { in openDecryptSession() argument
418 result = rDrmEngine.openDecryptSession(uniqueId, handle, fd, offset, length, mime); in openDecryptSession()
434 int uniqueId, const char* uri, const char* mime) { in openDecryptSession() argument
446 result = rDrmEngine.openDecryptSession(uniqueId, handle, uri, mime); in openDecryptSession()
463 int uniqueId, const DrmBuffer& buf, const String8& mimeType) { in openDecryptSession() argument
475 result = rDrmEngine.openDecryptSession(uniqueId, handle, buf, mimeType); in openDecryptSession()
492 status_t DrmManager::closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle) { in closeDecryptSession() argument
497 result = drmEngine->closeDecryptSession(uniqueId, decryptHandle); in closeDecryptSession()
506 int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, const DrmBuffer* headerInfo) { in initializeDecryptUnit() argument
511 … result = drmEngine->initializeDecryptUnit(uniqueId, decryptHandle, decryptUnitId, headerInfo); in initializeDecryptUnit()
516 status_t DrmManager::decrypt(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, in decrypt() argument
524 uniqueId, decryptHandle, decryptUnitId, encBuffer, decBuffer, IV); in decrypt()
530 int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId) { in finalizeDecryptUnit() argument
535 result = drmEngine->finalizeDecryptUnit(uniqueId, decryptHandle, decryptUnitId); in finalizeDecryptUnit()
540 ssize_t DrmManager::pread(int uniqueId, DecryptHandle* decryptHandle, in pread() argument
547 result = drmEngine->pread(uniqueId, decryptHandle, buffer, numBytes, offset); in pread()
553 int uniqueId, const String8& path, const String8& mimeType) { in getSupportedPlugInId() argument
559 plugInId = getSupportedPlugInIdFromPath(uniqueId, path); in getSupportedPlugInId()
580 String8 DrmManager::getSupportedPlugInIdFromPath(int uniqueId, const String8& path) { in getSupportedPlugInIdFromPath() argument
591 if (drmEngine.canHandle(uniqueId, path)) { in getSupportedPlugInIdFromPath()
603 int uniqueId = mServiceListeners.keyAt(index); in onInfo() local
605 if (uniqueId == event.getUniqueId()) { in onInfo()
606 sp<IDrmServiceListener> serviceListener = mServiceListeners.valueFor(uniqueId); in onInfo()