Lines Matching defs: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, int fd) {
271 const String8 plugInId = getSupportedPlugInIdFromPath(uniqueId, path);
274 return rDrmEngine.getOriginalMimeType(uniqueId, path, fd);
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) {
430 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) {
443 result = rDrmEngine.openDecryptSession(uniqueId, handle, fd, offset, length, mime);
459 int uniqueId, const char* uri, const char* mime) {
471 result = rDrmEngine.openDecryptSession(uniqueId, handle, uri, mime);
488 int uniqueId, const DrmBuffer& buf, const String8& mimeType) {
500 result = rDrmEngine.openDecryptSession(uniqueId, handle, buf, mimeType);
517 status_t DrmManager::closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle) {
522 result = drmEngine->closeDecryptSession(uniqueId, decryptHandle);
531 int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, const DrmBuffer* headerInfo) {
536 result = drmEngine->initializeDecryptUnit(uniqueId, decryptHandle, decryptUnitId, headerInfo);
541 status_t DrmManager::decrypt(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId,
549 uniqueId, decryptHandle, decryptUnitId, encBuffer, decBuffer, IV);
555 int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId) {
560 result = drmEngine->finalizeDecryptUnit(uniqueId, decryptHandle, decryptUnitId);
565 ssize_t DrmManager::pread(int uniqueId, DecryptHandle* decryptHandle,
572 result = drmEngine->pread(uniqueId, decryptHandle, buffer, numBytes, offset);
578 int uniqueId, const String8& path, const String8& mimeType) {
584 plugInId = getSupportedPlugInIdFromPath(uniqueId, path);
605 String8 DrmManager::getSupportedPlugInIdFromPath(int uniqueId, const String8& path) {
616 if (drmEngine.canHandle(uniqueId, path)) {
628 int uniqueId = mServiceListeners.keyAt(index);
630 if (uniqueId == event.getUniqueId()) {
631 sp<IDrmServiceListener> serviceListener = mServiceListeners.valueFor(uniqueId);