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()
620 DecryptHandle* handle = NULL; in openDecryptSession() local
622 handle = new DecryptHandle(); in openDecryptSession()
623 readDecryptHandleFromParcelData(handle, reply); in openDecryptSession()
625 return handle; in openDecryptSession()
645 DecryptHandle* handle = NULL; in openDecryptSession() local
647 handle = new DecryptHandle(); in openDecryptSession()
648 readDecryptHandleFromParcelData(handle, reply); in openDecryptSession()
652 return handle; in openDecryptSession()
1084 DecryptHandle handle; in onTransact() local
1085 readDecryptHandleFromParcelData(&handle, data); in onTransact()
1090 = consumeRights(uniqueId, &handle, action, reserve); in onTransact()
1093 clearDecryptHandle(&handle); in onTransact()
1104 DecryptHandle handle; in onTransact() local
1105 readDecryptHandleFromParcelData(&handle, data); in onTransact()
1110 = setPlaybackStatus(uniqueId, &handle, playbackStatus, position); in onTransact()
1113 clearDecryptHandle(&handle); in onTransact()
1282 DecryptHandle* handle in onTransact() local
1285 if (NULL != handle) { in onTransact()
1286 writeDecryptHandleToParcelData(handle, reply); in onTransact()
1287 clearDecryptHandle(handle); in onTransact()
1288 delete handle; handle = NULL; in onTransact()
1302 DecryptHandle* handle = openDecryptSession(uniqueId, uri.string(), mime.string()); in onTransact() local
1304 if (NULL != handle) { in onTransact()
1305 writeDecryptHandleToParcelData(handle, reply); in onTransact()
1307 clearDecryptHandle(handle); in onTransact()
1308 delete handle; handle = NULL; in onTransact()
1322 DecryptHandle* handle = new DecryptHandle(); in onTransact() local
1323 readDecryptHandleFromParcelData(handle, data); in onTransact()
1325 const status_t status = closeDecryptSession(uniqueId, handle); in onTransact()
1337 DecryptHandle handle; in onTransact() local
1338 readDecryptHandleFromParcelData(&handle, data); in onTransact()
1348 = initializeDecryptUnit(uniqueId, &handle, decryptUnitId, headerInfo); in onTransact()
1351 clearDecryptHandle(&handle); in onTransact()
1363 DecryptHandle handle; in onTransact() local
1364 readDecryptHandleFromParcelData(&handle, data); in onTransact()
1384 = decrypt(uniqueId, &handle, decryptUnitId, encBuffer, &decBuffer, IV); in onTransact()
1392 clearDecryptHandle(&handle); in onTransact()
1407 DecryptHandle handle; in onTransact() local
1408 readDecryptHandleFromParcelData(&handle, data); in onTransact()
1410 const status_t status = finalizeDecryptUnit(uniqueId, &handle, data.readInt32()); in onTransact()
1413 clearDecryptHandle(&handle); in onTransact()
1424 DecryptHandle handle; in onTransact() local
1425 readDecryptHandleFromParcelData(&handle, data); in onTransact()
1432 ssize_t result = pread(uniqueId, &handle, buffer, numBytes, offset); in onTransact()
1438 clearDecryptHandle(&handle); in onTransact()