Lines Matching refs:handle
41 const DecryptHandle* handle, Parcel* data) { in writeDecryptHandleToParcelData() argument
42 data->writeInt32(handle->decryptId); in writeDecryptHandleToParcelData()
43 data->writeString8(handle->mimeType); in writeDecryptHandleToParcelData()
44 data->writeInt32(handle->decryptApiType); in writeDecryptHandleToParcelData()
45 data->writeInt32(handle->status); in writeDecryptHandleToParcelData()
47 int size = handle->copyControlVector.size(); in writeDecryptHandleToParcelData()
50 data->writeInt32(handle->copyControlVector.keyAt(i)); in writeDecryptHandleToParcelData()
51 data->writeInt32(handle->copyControlVector.valueAt(i)); in writeDecryptHandleToParcelData()
54 size = handle->extendedData.size(); in writeDecryptHandleToParcelData()
57 data->writeString8(handle->extendedData.keyAt(i)); in writeDecryptHandleToParcelData()
58 data->writeString8(handle->extendedData.valueAt(i)); in writeDecryptHandleToParcelData()
61 if (NULL != handle->decryptInfo) { in writeDecryptHandleToParcelData()
62 data->writeInt32(handle->decryptInfo->decryptBufferLength); in writeDecryptHandleToParcelData()
69 DecryptHandle* handle, const Parcel& data) { in readDecryptHandleFromParcelData() argument
74 handle->decryptId = data.readInt32(); in readDecryptHandleFromParcelData()
75 handle->mimeType = data.readString8(); in readDecryptHandleFromParcelData()
76 handle->decryptApiType = data.readInt32(); in readDecryptHandleFromParcelData()
77 handle->status = data.readInt32(); in readDecryptHandleFromParcelData()
83 handle->copyControlVector.add(key, value); in readDecryptHandleFromParcelData()
90 handle->extendedData.add(key, value); in readDecryptHandleFromParcelData()
93 handle->decryptInfo = NULL; in readDecryptHandleFromParcelData()
96 handle->decryptInfo = new DecryptInfo(); in readDecryptHandleFromParcelData()
97 handle->decryptInfo->decryptBufferLength = bufferLen; in readDecryptHandleFromParcelData()
101 static void clearDecryptHandle(DecryptHandle* handle) { in clearDecryptHandle() argument
102 if (handle == NULL) { in clearDecryptHandle()
105 if (handle->decryptInfo) { in clearDecryptHandle()
106 delete handle->decryptInfo; in clearDecryptHandle()
107 handle->decryptInfo = NULL; in clearDecryptHandle()
109 handle->copyControlVector.clear(); in clearDecryptHandle()
110 handle->extendedData.clear(); in clearDecryptHandle()
631 DecryptHandle* handle = NULL; in openDecryptSession() local
633 handle = new DecryptHandle(); in openDecryptSession()
634 readDecryptHandleFromParcelData(handle, reply); in openDecryptSession()
636 return handle; in openDecryptSession()
656 DecryptHandle* handle = NULL; in openDecryptSession() local
658 handle = new DecryptHandle(); in openDecryptSession()
659 readDecryptHandleFromParcelData(handle, reply); in openDecryptSession()
663 return handle; in openDecryptSession()
683 DecryptHandle* handle = NULL; in openDecryptSession() local
685 handle = new DecryptHandle(); in openDecryptSession()
686 readDecryptHandleFromParcelData(handle, reply); in openDecryptSession()
690 return handle; in openDecryptSession()
1134 DecryptHandle handle; in onTransact() local
1135 readDecryptHandleFromParcelData(&handle, data); in onTransact()
1140 = consumeRights(uniqueId, &handle, action, reserve); in onTransact()
1143 clearDecryptHandle(&handle); in onTransact()
1154 DecryptHandle handle; in onTransact() local
1155 readDecryptHandleFromParcelData(&handle, data); in onTransact()
1160 = setPlaybackStatus(uniqueId, &handle, playbackStatus, position); in onTransact()
1163 clearDecryptHandle(&handle); in onTransact()
1332 DecryptHandle* handle in onTransact() local
1335 if (NULL != handle) { in onTransact()
1336 writeDecryptHandleToParcelData(handle, reply); in onTransact()
1337 clearDecryptHandle(handle); in onTransact()
1338 delete handle; handle = NULL; in onTransact()
1352 DecryptHandle* handle = openDecryptSession(uniqueId, uri.string(), mime.string()); in onTransact() local
1354 if (NULL != handle) { in onTransact()
1355 writeDecryptHandleToParcelData(handle, reply); in onTransact()
1357 clearDecryptHandle(handle); in onTransact()
1358 delete handle; handle = NULL; in onTransact()
1376 DecryptHandle* handle = openDecryptSession(uniqueId, buf, mimeType); in onTransact() local
1378 if (handle != NULL) { in onTransact()
1379 writeDecryptHandleToParcelData(handle, reply); in onTransact()
1380 clearDecryptHandle(handle); in onTransact()
1381 delete handle; in onTransact()
1382 handle = NULL; in onTransact()
1396 DecryptHandle* handle = new DecryptHandle(); in onTransact() local
1397 readDecryptHandleFromParcelData(handle, data); in onTransact()
1399 const status_t status = closeDecryptSession(uniqueId, handle); in onTransact()
1411 DecryptHandle handle; in onTransact() local
1412 readDecryptHandleFromParcelData(&handle, data); in onTransact()
1422 = initializeDecryptUnit(uniqueId, &handle, decryptUnitId, headerInfo); in onTransact()
1425 clearDecryptHandle(&handle); in onTransact()
1437 DecryptHandle handle; in onTransact() local
1438 readDecryptHandleFromParcelData(&handle, data); in onTransact()
1458 = decrypt(uniqueId, &handle, decryptUnitId, encBuffer, &decBuffer, IV); in onTransact()
1466 clearDecryptHandle(&handle); in onTransact()
1481 DecryptHandle handle; in onTransact() local
1482 readDecryptHandleFromParcelData(&handle, data); in onTransact()
1484 const status_t status = finalizeDecryptUnit(uniqueId, &handle, data.readInt32()); in onTransact()
1487 clearDecryptHandle(&handle); in onTransact()
1498 DecryptHandle handle; in onTransact() local
1499 readDecryptHandleFromParcelData(&handle, data); in onTransact()
1506 ssize_t result = pread(uniqueId, &handle, buffer, numBytes, offset); in onTransact()
1512 clearDecryptHandle(&handle); in onTransact()