Lines Matching refs:uniqueId

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