Lines Matching defs:data

42         const DecryptHandle* handle, Parcel* data) {
43 data->writeInt32(handle->decryptId);
44 data->writeString8(handle->mimeType);
45 data->writeInt32(handle->decryptApiType);
46 data->writeInt32(handle->status);
49 data->writeInt32(size);
51 data->writeInt32(handle->copyControlVector.keyAt(i));
52 data->writeInt32(handle->copyControlVector.valueAt(i));
56 data->writeInt32(size);
58 data->writeString8(handle->extendedData.keyAt(i));
59 data->writeString8(handle->extendedData.valueAt(i));
63 data->writeInt32(handle->decryptInfo->decryptBufferLength);
65 data->writeInt32(INVALID_BUFFER_LENGTH);
70 DecryptHandle* handle, const Parcel& data) {
71 if (0 == data.dataAvail()) {
75 handle->decryptId = data.readInt32();
76 handle->mimeType = data.readString8();
77 handle->decryptApiType = data.readInt32();
78 handle->status = data.readInt32();
80 int size = data.readInt32();
82 DrmCopyControl key = (DrmCopyControl)data.readInt32();
83 int value = data.readInt32();
87 size = data.readInt32();
89 String8 key = data.readString8();
90 String8 value = data.readString8();
95 const int bufferLen = data.readInt32();
116 Parcel data, reply;
117 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
118 data.writeInt32(isNative);
119 remote()->transact(ADD_UNIQUEID, data, &reply);
125 Parcel data, reply;
126 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
127 data.writeInt32(uniqueId);
128 remote()->transact(REMOVE_UNIQUEID, data, &reply);
132 Parcel data, reply;
133 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
134 data.writeInt32(uniqueId);
135 remote()->transact(ADD_CLIENT, data, &reply);
139 Parcel data, reply;
140 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
141 data.writeInt32(uniqueId);
142 remote()->transact(REMOVE_CLIENT, data, &reply);
148 Parcel data, reply;
150 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
151 data.writeInt32(uniqueId);
152 data.writeStrongBinder(IInterface::asBinder(drmServiceListener));
153 remote()->transact(SET_DRM_SERVICE_LISTENER, data, &reply);
160 Parcel data, reply;
162 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
163 data.writeInt32(uniqueId);
164 data.writeString8(*path);
165 data.writeInt32(action);
167 remote()->transact(GET_CONSTRAINTS_FROM_CONTENT, data, &reply);
178 char* data = NULL;
180 data = new char[bufferSize];
181 reply.read(data, bufferSize);
182 drmConstraints->put(&key, data);
183 delete[] data;
192 Parcel data, reply;
193 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
194 data.writeInt32(uniqueId);
197 data.writeString8(*path);
198 remote()->transact(GET_METADATA_FROM_CONTENT, data, &reply);
208 char* data = NULL;
210 data = new char[bufferSize];
211 reply.read(data, bufferSize);
212 drmMetadata->put(&key, data);
213 delete[] data;
222 Parcel data, reply;
224 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
225 data.writeInt32(uniqueId);
227 data.writeString8(path);
228 data.writeString8(mimeType);
230 remote()->transact(CAN_HANDLE, data, &reply);
237 Parcel data, reply;
239 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
240 data.writeInt32(uniqueId);
243 data.writeInt32(drmInfo->getInfoType());
246 data.writeInt32(dataBufferSize);
248 data.write(dataBuffer.data, dataBufferSize);
250 data.writeString8(drmInfo->getMimeType());
252 data.writeInt32(drmInfo->getCount());
257 data.writeString8(key);
259 data.writeString8((value == String8("")) ? String8("NULL") : value);
262 remote()->transact(PROCESS_DRM_INFO, data, &reply);
274 char* data = NULL;
276 data = new char[bufferSize];
277 reply.read(data, bufferSize);
279 drmBuffer = new DrmBuffer(data, bufferSize);
288 Parcel data, reply;
290 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
291 data.writeInt32(uniqueId);
294 data.writeInt32(drmInforequest->getInfoType());
295 data.writeString8(drmInforequest->getMimeType());
297 data.writeInt32(drmInforequest->getCount());
302 data.writeString8(key);
309 data.writeFileDescriptor(fd);
311 data.writeString8((value == String8("")) ? String8("NULL") : value);
315 remote()->transact(ACQUIRE_DRM_INFO, data, &reply);
322 char* data = NULL;
325 data = new char[bufferSize];
326 reply.read(data, bufferSize);
328 drmInfo = new DrmInfo(infoType, DrmBuffer(data, bufferSize), reply.readString8());
344 Parcel data, reply;
346 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
347 data.writeInt32(uniqueId);
351 data.writeInt32(dataBuffer.length);
352 data.write(dataBuffer.data, dataBuffer.length);
355 data.writeString8((mimeType == String8("")) ? String8("NULL") : mimeType);
358 data.writeString8((accountId == String8("")) ? String8("NULL") : accountId);
361 data.writeString8((subscriptionId == String8("")) ? String8("NULL") : subscriptionId);
363 data.writeString8((rightsPath == String8("")) ? String8("NULL") : rightsPath);
364 data.writeString8((contentPath == String8("")) ? String8("NULL") : contentPath);
366 remote()->transact(SAVE_RIGHTS, data, &reply);
372 Parcel data, reply;
374 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
375 data.writeInt32(uniqueId);
376 data.writeString8(path);
378 data.writeInt32(isFdValid);
380 data.writeFileDescriptor(fd);
383 remote()->transact(GET_ORIGINAL_MIMETYPE, data, &reply);
390 Parcel data, reply;
392 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
393 data.writeInt32(uniqueId);
394 data.writeString8(path);
395 data.writeString8(mimeType);
397 remote()->transact(GET_DRM_OBJECT_TYPE, data, &reply);
404 Parcel data, reply;
406 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
407 data.writeInt32(uniqueId);
408 data.writeString8(path);
409 data.writeInt32(action);
411 remote()->transact(CHECK_RIGHTS_STATUS, data, &reply);
419 Parcel data, reply;
421 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
422 data.writeInt32(uniqueId);
424 writeDecryptHandleToParcelData(decryptHandle, &data);
426 data.writeInt32(action);
427 data.writeInt32(static_cast< int>(reserve));
429 remote()->transact(CONSUME_RIGHTS, data, &reply);
436 Parcel data, reply;
438 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
439 data.writeInt32(uniqueId);
441 writeDecryptHandleToParcelData(decryptHandle, &data);
443 data.writeInt32(playbackStatus);
444 data.writeInt64(position);
446 remote()->transact(SET_PLAYBACK_STATUS, data, &reply);
454 Parcel data, reply;
456 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
457 data.writeInt32(uniqueId);
458 data.writeString8(path);
459 data.writeInt32(action);
460 data.writeInt32(description.outputType);
461 data.writeInt32(description.configuration);
463 remote()->transact(VALIDATE_ACTION, data, &reply);
470 Parcel data, reply;
472 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
473 data.writeInt32(uniqueId);
474 data.writeString8(path);
476 remote()->transact(REMOVE_RIGHTS, data, &reply);
482 Parcel data, reply;
484 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
485 data.writeInt32(uniqueId);
487 remote()->transact(REMOVE_ALL_RIGHTS, data, &reply);
493 Parcel data, reply;
495 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
496 data.writeInt32(uniqueId);
497 data.writeString8(mimeType);
499 remote()->transact(OPEN_CONVERT_SESSION, data, &reply);
506 Parcel data, reply;
508 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
509 data.writeInt32(uniqueId);
510 data.writeInt32(convertId);
511 data.writeInt32(inputData->length);
512 data.write(inputData->data, inputData->length);
514 remote()->transact(CONVERT_DATA, data, &reply);
526 char* data = NULL;
528 data = new char[bufferSize];
529 reply.read(data, bufferSize);
531 convertedData = new DrmBuffer(data, bufferSize);
540 Parcel data, reply;
542 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
543 data.writeInt32(uniqueId);
544 data.writeInt32(convertId);
546 remote()->transact(CLOSE_CONVERT_SESSION, data, &reply);
558 char* data = NULL;
560 data = new char[bufferSize];
561 reply.read(data, bufferSize);
563 convertedData = new DrmBuffer(data, bufferSize);
573 Parcel data, reply;
575 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
576 data.writeInt32(uniqueId);
578 remote()->transact(GET_ALL_SUPPORT_INFO, data, &reply);
609 Parcel data, reply;
611 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
612 data.writeInt32(uniqueId);
613 data.writeFileDescriptor(fd);
614 data.writeInt64(offset);
615 data.writeInt64(length);
620 data.writeString8(mimeType);
622 remote()->transact(OPEN_DECRYPT_SESSION, data, &reply);
636 Parcel data, reply;
638 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
639 data.writeInt32(uniqueId);
640 data.writeString8(String8(uri));
645 data.writeString8(mimeType);
647 remote()->transact(OPEN_DECRYPT_SESSION_FROM_URI, data, &reply);
662 Parcel data, reply;
664 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
665 data.writeInt32(uniqueId);
666 if (buf.data != NULL && buf.length > 0) {
667 data.writeInt32(buf.length);
668 data.write(buf.data, buf.length);
670 data.writeInt32(0);
672 data.writeString8(mimeType);
674 remote()->transact(OPEN_DECRYPT_SESSION_FOR_STREAMING, data, &reply);
688 Parcel data, reply;
690 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
691 data.writeInt32(uniqueId);
693 writeDecryptHandleToParcelData(decryptHandle, &data);
695 remote()->transact(CLOSE_DECRYPT_SESSION, data, &reply);
704 Parcel data, reply;
706 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
707 data.writeInt32(uniqueId);
709 writeDecryptHandleToParcelData(decryptHandle, &data);
711 data.writeInt32(decryptUnitId);
713 data.writeInt32(headerInfo->length);
714 data.write(headerInfo->data, headerInfo->length);
716 remote()->transact(INITIALIZE_DECRYPT_UNIT, data, &reply);
724 Parcel data, reply;
726 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
727 data.writeInt32(uniqueId);
729 writeDecryptHandleToParcelData(decryptHandle, &data);
731 data.writeInt32(decryptUnitId);
732 data.writeInt32((*decBuffer)->length);
734 data.writeInt32(encBuffer->length);
735 data.write(encBuffer->data, encBuffer->length);
738 data.writeInt32(IV->length);
739 data.write(IV->data, IV->length);
742 remote()->transact(DECRYPT, data, &reply);
750 reply.read((void *)(*decBuffer)->data, size);
759 Parcel data, reply;
761 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
762 data.writeInt32(uniqueId);
764 writeDecryptHandleToParcelData(decryptHandle, &data);
766 data.writeInt32(decryptUnitId);
768 remote()->transact(FINALIZE_DECRYPT_UNIT, data, &reply);
776 Parcel data, reply;
779 data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor());
780 data.writeInt32(uniqueId);
782 writeDecryptHandleToParcelData(decryptHandle, &data);
784 data.writeInt32(numBytes);
785 data.writeInt64(offset);
787 remote()->transact(PREAD, data, &reply);
798 uint32_t code, const Parcel& data,
806 CHECK_INTERFACE(IDrmManagerService, data, reply);
807 int uniqueId = addUniqueId(data.readInt32());
815 CHECK_INTERFACE(IDrmManagerService, data, reply);
816 removeUniqueId(data.readInt32());
823 CHECK_INTERFACE(IDrmManagerService, data, reply);
824 addClient(data.readInt32());
831 CHECK_INTERFACE(IDrmManagerService, data, reply);
832 removeClient(data.readInt32());
839 CHECK_INTERFACE(IDrmManagerService, data, reply);
841 const int uniqueId = data.readInt32();
843 = interface_cast<IDrmServiceListener> (data.readStrongBinder());
854 CHECK_INTERFACE(IDrmManagerService, data, reply);
856 const int uniqueId = data.readInt32();
857 const String8 path = data.readString8();
860 = getConstraints(uniqueId, &path, data.readInt32());
888 CHECK_INTERFACE(IDrmManagerService, data, reply);
890 const int uniqueId = data.readInt32();
891 const String8 path = data.readString8();
920 CHECK_INTERFACE(IDrmManagerService, data, reply);
922 const int uniqueId = data.readInt32();
923 const String8 path = data.readString8();
924 const String8 mimeType = data.readString8();
935 CHECK_INTERFACE(IDrmManagerService, data, reply);
937 const int uniqueId = data.readInt32();
940 const int infoType = data.readInt32();
941 const uint32_t bufferSize = data.readInt32();
943 if (bufferSize > data.dataAvail()) {
949 buffer = (char *)data.readInplace(bufferSize);
952 DrmInfo* drmInfo = new DrmInfo(infoType, drmBuffer, data.readString8());
954 const int size = data.readInt32();
956 const String8 key(data.readString8());
957 const String8 value(data.readString8());
974 reply->write(drmBuffer->data, bufferSize);
976 delete [] drmBuffer->data;
988 CHECK_INTERFACE(IDrmManagerService, data, reply);
990 const int uniqueId = data.readInt32();
993 const int infoType = data.readInt32();
994 const String8 mimeType = data.readString8();
997 const int size = data.readInt32();
999 if (!data.dataAvail()) {
1002 const String8 key(data.readString8());
1005 int fd = data.readFileDescriptor();
1009 const String8 value(data.readString8());
1024 reply->write(drmBuffer.data, bufferSize);
1036 delete [] drmBuffer.data;
1046 CHECK_INTERFACE(IDrmManagerService, data, reply);
1048 const int uniqueId = data.readInt32();
1051 const uint32_t bufferSize = data.readInt32();
1052 if (bufferSize > data.dataAvail()) {
1057 const DrmBuffer drmBuffer((char *)data.readInplace(bufferSize), bufferSize);
1059 const String8 mimeType(data.readString8());
1060 const String8 accountId(data.readString8());
1061 const String8 subscriptionId(data.readString8());
1062 const String8 rightsPath(data.readString8());
1063 const String8 contentPath(data.readString8());
1081 CHECK_INTERFACE(IDrmManagerService, data, reply);
1083 const int uniqueId = data.readInt32();
1084 const String8 path = data.readString8();
1085 const int32_t isFdValid = data.readInt32();
1088 fd = data.readFileDescriptor();
1099 CHECK_INTERFACE(IDrmManagerService, data, reply);
1101 const int uniqueId = data.readInt32();
1102 const String8 path = data.readString8();
1103 const String8 mimeType = data.readString8();
1113 CHECK_INTERFACE(IDrmManagerService, data, reply);
1115 const int uniqueId = data.readInt32();
1116 const String8 path = data.readString8();
1117 const int action = data.readInt32();
1127 CHECK_INTERFACE(IDrmManagerService, data, reply);
1129 const int uniqueId = data.readInt32();
1132 readDecryptHandleFromParcelData(&handle, data);
1134 const int action = data.readInt32();
1135 const bool reserve = static_cast<bool>(data.readInt32());
1147 CHECK_INTERFACE(IDrmManagerService, data, reply);
1149 const int uniqueId = data.readInt32();
1152 readDecryptHandleFromParcelData(&handle, data);
1154 const int playbackStatus = data.readInt32();
1155 const int64_t position = data.readInt64();
1167 CHECK_INTERFACE(IDrmManagerService, data, reply);
1169 const int uniqueId = data.readInt32();
1170 const String8 path = data.readString8();
1171 const int action = data.readInt32();
1172 const int outputType = data.readInt32();
1173 const int configuration = data.readInt32();
1184 CHECK_INTERFACE(IDrmManagerService, data, reply);
1186 int uniqueId = data.readInt32();
1187 String8 path = data.readString8();
1197 CHECK_INTERFACE(IDrmManagerService, data, reply);
1199 const status_t status = removeAllRights(data.readInt32());
1208 CHECK_INTERFACE(IDrmManagerService, data, reply);
1210 const int uniqueId = data.readInt32();
1211 const String8 mimeType = data.readString8();
1221 CHECK_INTERFACE(IDrmManagerService, data, reply);
1223 const int uniqueId = data.readInt32();
1224 const int convertId = data.readInt32();
1226 //Filling input data
1227 const uint32_t bufferSize = data.readInt32();
1228 if (bufferSize > data.dataAvail()) {
1231 DrmBuffer* inputData = new DrmBuffer((char *)data.readInplace(bufferSize), bufferSize);
1245 reply->write(convertedData->data, bufferSize);
1247 delete [] convertedData->data;
1259 CHECK_INTERFACE(IDrmManagerService, data, reply);
1261 const int uniqueId = data.readInt32();
1262 const int convertId = data.readInt32();
1276 reply->write(convertedData->data, bufferSize);
1278 delete [] convertedData->data;
1289 CHECK_INTERFACE(IDrmManagerService, data, reply);
1291 const int uniqueId = data.readInt32();
1323 CHECK_INTERFACE(IDrmManagerService, data, reply);
1325 const int uniqueId = data.readInt32();
1326 const int fd = data.readFileDescriptor();
1328 const off64_t offset = data.readInt64();
1329 const off64_t length = data.readInt64();
1330 const String8 mime = data.readString8();
1346 CHECK_INTERFACE(IDrmManagerService, data, reply);
1348 const int uniqueId = data.readInt32();
1349 const String8 uri = data.readString8();
1350 const String8 mime = data.readString8();
1368 CHECK_INTERFACE(IDrmManagerService, data, reply);
1370 const int uniqueId = data.readInt32();
1371 const int bufferSize = data.readInt32();
1372 DrmBuffer buf((bufferSize > 0) ? (char *)data.readInplace(bufferSize) : NULL,
1374 const String8 mimeType(data.readString8());
1392 CHECK_INTERFACE(IDrmManagerService, data, reply);
1394 const int uniqueId = data.readInt32();
1397 readDecryptHandleFromParcelData(handle, data);
1407 CHECK_INTERFACE(IDrmManagerService, data, reply);
1409 const int uniqueId = data.readInt32();
1412 readDecryptHandleFromParcelData(&handle, data);
1414 const int decryptUnitId = data.readInt32();
1417 const uint32_t bufferSize = data.readInt32();
1418 if (bufferSize > data.dataAvail()) {
1424 headerInfo = new DrmBuffer((char *)data.readInplace(bufferSize), bufferSize);
1438 CHECK_INTERFACE(IDrmManagerService, data, reply);
1440 const int uniqueId = data.readInt32();
1443 readDecryptHandleFromParcelData(&handle, data);
1445 const int decryptUnitId = data.readInt32();
1446 const uint32_t decBufferSize = data.readInt32();
1447 const uint32_t encBufferSize = data.readInt32();
1449 if (encBufferSize > data.dataAvail() ||
1458 = new DrmBuffer((char *)data.readInplace(encBufferSize), encBufferSize);
1465 if (0 != data.dataAvail()) {
1466 const uint32_t ivBufferlength = data.readInt32();
1467 if (ivBufferlength <= data.dataAvail()) {
1468 IV = new DrmBuffer((char *)data.readInplace(ivBufferlength), ivBufferlength);
1480 reply->write(decBuffer->data, size);
1494 CHECK_INTERFACE(IDrmManagerService, data, reply);
1496 const int uniqueId = data.readInt32();
1499 readDecryptHandleFromParcelData(&handle, data);
1501 const status_t status = finalizeDecryptUnit(uniqueId, &handle, data.readInt32());
1511 CHECK_INTERFACE(IDrmManagerService, data, reply);
1513 const int uniqueId = data.readInt32();
1516 readDecryptHandleFromParcelData(&handle, data);
1518 const uint32_t numBytes = data.readInt32();
1525 const off64_t offset = data.readInt64();
1539 return BBinder::onTransact(code, data, reply, flags);