• Home
  • Raw
  • Download

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()
122 int uniqueId, const sp<IDrmServiceListener>& drmServiceListener) { in setDrmServiceListener() argument
125 mServiceListeners.add(uniqueId, drmServiceListener); in setDrmServiceListener()
127 mServiceListeners.removeItem(uniqueId); in setDrmServiceListener()
132 void DrmManager::addClient(int uniqueId) { in addClient() argument
138 rDrmEngine.initialize(uniqueId); in addClient()
139 rDrmEngine.setOnInfoListener(uniqueId, this); in addClient()
144 void DrmManager::removeClient(int uniqueId) { in removeClient() argument
149 rDrmEngine.terminate(uniqueId); in removeClient()
153 DrmConstraints* DrmManager::getConstraints(int uniqueId, const String8* path, const int action) { in getConstraints() argument
155 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, *path); in getConstraints()
158 return rDrmEngine.getConstraints(uniqueId, path, action); in getConstraints()
163 DrmMetadata* DrmManager::getMetadata(int uniqueId, const String8* path) { in getMetadata() argument
165 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, *path); in getMetadata()
168 return rDrmEngine.getMetadata(uniqueId, path); in getMetadata()
173 bool DrmManager::canHandle(int uniqueId, const String8& path, const String8& mimeType) { in canHandle() argument
181 result = rDrmEngine.canHandle(uniqueId, path); in canHandle()
185 result = canHandle(uniqueId, path); in canHandle()
192 DrmInfoStatus* DrmManager::processDrmInfo(int uniqueId, const DrmInfo* drmInfo) { in processDrmInfo() argument
197 return rDrmEngine.processDrmInfo(uniqueId, drmInfo); in processDrmInfo()
202 bool DrmManager::canHandle(int uniqueId, const String8& path) { in canHandle() argument
208 result = rDrmEngine.canHandle(uniqueId, path); in canHandle()
217 DrmInfo* DrmManager::acquireDrmInfo(int uniqueId, const DrmInfoRequest* drmInfoRequest) { in acquireDrmInfo() argument
222 return rDrmEngine.acquireDrmInfo(uniqueId, drmInfoRequest); in acquireDrmInfo()
227 status_t DrmManager::saveRights(int uniqueId, const DrmRights& drmRights, in saveRights() argument
234 result = rDrmEngine.saveRights(uniqueId, drmRights, rightsPath, contentPath); in saveRights()
239 String8 DrmManager::getOriginalMimeType(int uniqueId, const String8& path, int fd) { in getOriginalMimeType() argument
241 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, path); in getOriginalMimeType()
244 return rDrmEngine.getOriginalMimeType(uniqueId, path, fd); in getOriginalMimeType()
249 int DrmManager::getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType) { in getDrmObjectType() argument
251 const String8 plugInId = getSupportedPlugInId(uniqueId, path, mimeType); in getDrmObjectType()
254 return rDrmEngine.getDrmObjectType(uniqueId, path, mimeType); in getDrmObjectType()
259 int DrmManager::checkRightsStatus(int uniqueId, const String8& path, int action) { in checkRightsStatus() argument
261 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, path); in checkRightsStatus()
264 return rDrmEngine.checkRightsStatus(uniqueId, path, action); in checkRightsStatus()
270 int uniqueId, sp<DecryptHandle>& decryptHandle, int action, bool reserve) { in consumeRights() argument
275 result = drmEngine->consumeRights(uniqueId, decryptHandle, action, reserve); in consumeRights()
281 int uniqueId, sp<DecryptHandle>& decryptHandle, int playbackStatus, int64_t position) { in setPlaybackStatus() argument
286 result = drmEngine->setPlaybackStatus(uniqueId, decryptHandle, playbackStatus, position); in setPlaybackStatus()
292 int uniqueId, const String8& path, int action, const ActionDescription& description) { in validateAction() argument
294 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, path); in validateAction()
297 return rDrmEngine.validateAction(uniqueId, path, action, description); in validateAction()
302 status_t DrmManager::removeRights(int uniqueId, const String8& path) { in removeRights() argument
304 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, path); in removeRights()
308 result = rDrmEngine.removeRights(uniqueId, path); in removeRights()
313 status_t DrmManager::removeAllRights(int uniqueId) { in removeAllRights() argument
318 result = rDrmEngine.removeAllRights(uniqueId); in removeAllRights()
326 int DrmManager::openConvertSession(int uniqueId, const String8& mimeType) { in openConvertSession() argument
334 if (DRM_NO_ERROR == rDrmEngine.openConvertSession(uniqueId, mConvertId + 1)) { in openConvertSession()
344 int uniqueId, int convertId, const DrmBuffer* inputData) { in convertData() argument
350 drmConvertedStatus = drmEngine->convertData(uniqueId, convertId, inputData); in convertData()
355 DrmConvertedStatus* DrmManager::closeConvertSession(int uniqueId, int convertId) { in closeConvertSession() argument
361 drmConvertedStatus = drmEngine->closeConvertSession(uniqueId, convertId); in closeConvertSession()
400 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) { in openDecryptSession() argument
413 result = rDrmEngine.openDecryptSession(uniqueId, handle, fd, offset, length, mime); in openDecryptSession()
429 int uniqueId, const char* uri, const char* mime) { in openDecryptSession() argument
441 result = rDrmEngine.openDecryptSession(uniqueId, handle, uri, mime); in openDecryptSession()
458 int uniqueId, const DrmBuffer& buf, const String8& mimeType) { in openDecryptSession() argument
470 result = rDrmEngine.openDecryptSession(uniqueId, handle, buf, mimeType); in openDecryptSession()
486 status_t DrmManager::closeDecryptSession(int uniqueId, sp<DecryptHandle>& decryptHandle) { in closeDecryptSession() argument
491 result = drmEngine->closeDecryptSession(uniqueId, decryptHandle); in closeDecryptSession()
500 int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId, in initializeDecryptUnit() argument
506 … result = drmEngine->initializeDecryptUnit(uniqueId, decryptHandle, decryptUnitId, headerInfo); in initializeDecryptUnit()
511 status_t DrmManager::decrypt(int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId, in decrypt() argument
519 uniqueId, decryptHandle, decryptUnitId, encBuffer, decBuffer, IV); in decrypt()
525 int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId) { in finalizeDecryptUnit() argument
530 result = drmEngine->finalizeDecryptUnit(uniqueId, decryptHandle, decryptUnitId); in finalizeDecryptUnit()
535 ssize_t DrmManager::pread(int uniqueId, sp<DecryptHandle>& decryptHandle, in pread() argument
542 result = drmEngine->pread(uniqueId, decryptHandle, buffer, numBytes, offset); in pread()
548 int uniqueId, const String8& path, const String8& mimeType) { in getSupportedPlugInId() argument
554 plugInId = getSupportedPlugInIdFromPath(uniqueId, path); in getSupportedPlugInId()
575 String8 DrmManager::getSupportedPlugInIdFromPath(int uniqueId, const String8& path) { in getSupportedPlugInIdFromPath() argument
586 if (drmEngine.canHandle(uniqueId, path)) { in getSupportedPlugInIdFromPath()
598 int uniqueId = mServiceListeners.keyAt(index); in onInfo() local
600 if (uniqueId == event.getUniqueId()) { in onInfo()
601 sp<IDrmServiceListener> serviceListener = mServiceListeners.valueFor(uniqueId); in onInfo()