Lines Matching defs:data
73 Parcel data, reply;
74 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
75 status_t status = remote()->transact(INIT_CHECK, data, &reply);
84 Parcel data, reply;
85 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
86 data.write(uuid, 16);
87 data.writeString8(mimeType);
88 status_t status = remote()->transact(IS_CRYPTO_SUPPORTED, data, &reply);
99 Parcel data, reply;
100 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
101 data.write(uuid, 16);
102 data.writeString8(appPackageName);
103 status_t status = remote()->transact(CREATE_PLUGIN, data, &reply);
113 Parcel data, reply;
114 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
115 status_t status = remote()->transact(DESTROY_PLUGIN, data, &reply);
125 Parcel data, reply;
126 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
127 data.writeInt32(securityLevel);
129 status_t status = remote()->transact(OPEN_SESSION, data, &reply);
139 Parcel data, reply;
140 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
142 writeVector(data, sessionId);
143 status_t status = remote()->transact(CLOSE_SESSION, data, &reply);
158 Parcel data, reply;
159 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
161 writeVector(data, sessionId);
162 writeVector(data, initData);
163 data.writeString8(mimeType);
164 data.writeInt32((uint32_t)keyType);
166 data.writeInt32(optionalParameters.size());
168 data.writeString8(optionalParameters.keyAt(i));
169 data.writeString8(optionalParameters.valueAt(i));
172 status_t status = remote()->transact(GET_KEY_REQUEST, data, &reply);
187 Parcel data, reply;
188 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
189 writeVector(data, sessionId);
190 writeVector(data, response);
192 status_t status = remote()->transact(PROVIDE_KEY_RESPONSE, data, &reply);
203 Parcel data, reply;
204 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
206 writeVector(data, keySetId);
207 status_t status = remote()->transact(REMOVE_KEYS, data, &reply);
217 Parcel data, reply;
218 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
220 writeVector(data, sessionId);
221 writeVector(data, keySetId);
222 status_t status = remote()->transact(RESTORE_KEYS, data, &reply);
232 Parcel data, reply;
233 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
235 writeVector(data, sessionId);
236 status_t status = remote()->transact(QUERY_KEY_STATUS, data, &reply);
255 Parcel data, reply;
256 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
258 data.writeString8(certType);
259 data.writeString8(certAuthority);
260 status_t status = remote()->transact(GET_PROVISION_REQUEST, data, &reply);
274 Parcel data, reply;
275 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
277 writeVector(data, response);
278 status_t status = remote()->transact(PROVIDE_PROVISION_RESPONSE, data, &reply);
290 Parcel data, reply;
291 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
293 status_t status = remote()->transact(GET_SECURE_STOPS, data, &reply);
309 Parcel data, reply;
310 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
312 status_t status = remote()->transact(GET_SECURE_STOP_IDS, data, &reply);
328 Parcel data, reply;
329 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
331 writeVector(data, ssid);
332 status_t status = remote()->transact(GET_SECURE_STOP, data, &reply);
342 Parcel data, reply;
343 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
345 writeVector(data, ssRelease);
346 status_t status = remote()->transact(RELEASE_SECURE_STOPS, data, &reply);
355 Parcel data, reply;
356 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
358 writeVector(data, ssid);
359 status_t status = remote()->transact(REMOVE_SECURE_STOP, data, &reply);
368 Parcel data, reply;
369 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
371 status_t status = remote()->transact(REMOVE_ALL_SECURE_STOPS, data, &reply);
380 Parcel data, reply;
381 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
383 data.writeString8(name);
384 status_t status = remote()->transact(GET_PROPERTY_STRING, data, &reply);
395 Parcel data, reply;
401 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
403 status_t status = remote()->transact(GET_HDCP_LEVELS, data, &reply);
414 Parcel data, reply;
420 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
422 status_t status = remote()->transact(GET_NUMBER_OF_SESSIONS, data, &reply);
434 Parcel data, reply;
440 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
442 writeVector(data, sessionId);
443 status_t status = remote()->transact(GET_SECURITY_LEVEL, data, &reply);
453 Parcel data, reply;
454 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
456 data.writeString8(name);
457 status_t status = remote()->transact(GET_PROPERTY_BYTE_ARRAY, data, &reply);
467 Parcel data, reply;
468 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
470 data.writeString8(name);
471 data.writeString8(value);
472 status_t status = remote()->transact(SET_PROPERTY_STRING, data, &reply);
482 Parcel data, reply;
483 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
485 data.writeString8(name);
486 writeVector(data, value);
487 status_t status = remote()->transact(SET_PROPERTY_BYTE_ARRAY, data, &reply);
499 Parcel data, reply;
500 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
502 status_t status = remote()->transact(GET_METRICS, data, &reply);
506 // The reply data is ordered as
527 Parcel data, reply;
528 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
530 writeVector(data, sessionId);
531 data.writeString8(algorithm);
532 status_t status = remote()->transact(SET_CIPHER_ALGORITHM, data, &reply);
541 Parcel data, reply;
542 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
544 writeVector(data, sessionId);
545 data.writeString8(algorithm);
546 status_t status = remote()->transact(SET_MAC_ALGORITHM, data, &reply);
558 Parcel data, reply;
559 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
561 writeVector(data, sessionId);
562 writeVector(data, keyId);
563 writeVector(data, input);
564 writeVector(data, iv);
566 status_t status = remote()->transact(ENCRYPT, data, &reply);
580 Parcel data, reply;
581 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
583 writeVector(data, sessionId);
584 writeVector(data, keyId);
585 writeVector(data, input);
586 writeVector(data, iv);
588 status_t status = remote()->transact(DECRYPT, data, &reply);
601 Parcel data, reply;
602 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
604 writeVector(data, sessionId);
605 writeVector(data, keyId);
606 writeVector(data, message);
608 status_t status = remote()->transact(SIGN, data, &reply);
622 Parcel data, reply;
623 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
625 writeVector(data, sessionId);
626 writeVector(data, keyId);
627 writeVector(data, message);
628 writeVector(data, signature);
630 status_t status = remote()->transact(VERIFY, data, &reply);
643 Parcel data, reply;
644 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
646 writeVector(data, sessionId);
647 data.writeString8(algorithm);
648 writeVector(data, message);
649 writeVector(data, wrappedKey);
651 status_t status = remote()->transact(SIGN_RSA, data, &reply);
661 Parcel data, reply;
662 data.writeInterfaceToken(IDrm::getInterfaceDescriptor());
663 data.writeStrongBinder(IInterface::asBinder(listener));
664 status_t status = remote()->transact(SET_LISTENER, data, &reply);
678 void writeVector(Parcel &data, Vector<uint8_t> const &vector) const {
679 data.writeInt32(vector.size());
680 data.write(vector.array(), vector.size());
690 void BnDrm::readVector(const Parcel &data, Vector<uint8_t> &vector) const {
691 uint32_t size = data.readInt32();
695 if (data.read(vector.editArray(), size) != NO_ERROR) {
707 uint32_t code, const Parcel &data, Parcel *reply, uint32_t flags) {
711 CHECK_INTERFACE(IDrm, data, reply);
718 CHECK_INTERFACE(IDrm, data, reply);
720 data.read(uuid, sizeof(uuid));
721 String8 mimeType = data.readString8();
728 CHECK_INTERFACE(IDrm, data, reply);
730 data.read(uuid, sizeof(uuid));
731 String8 appPackageName = data.readString8();
738 CHECK_INTERFACE(IDrm, data, reply);
745 CHECK_INTERFACE(IDrm, data, reply);
747 static_cast<DrmPlugin::SecurityLevel>(data.readInt32());
757 CHECK_INTERFACE(IDrm, data, reply);
759 readVector(data, sessionId);
766 CHECK_INTERFACE(IDrm, data, reply);
769 readVector(data, sessionId);
770 readVector(data, initData);
771 String8 mimeType = data.readString8();
772 DrmPlugin::KeyType keyType = (DrmPlugin::KeyType)data.readInt32();
775 uint32_t count = data.readInt32();
778 key = data.readString8();
779 value = data.readString8();
800 CHECK_INTERFACE(IDrm, data, reply);
802 readVector(data, sessionId);
803 readVector(data, response);
812 CHECK_INTERFACE(IDrm, data, reply);
814 readVector(data, keySetId);
821 CHECK_INTERFACE(IDrm, data, reply);
823 readVector(data, sessionId);
824 readVector(data, keySetId);
831 CHECK_INTERFACE(IDrm, data, reply);
833 readVector(data, sessionId);
848 CHECK_INTERFACE(IDrm, data, reply);
849 String8 certType = data.readString8();
850 String8 certAuthority = data.readString8();
864 CHECK_INTERFACE(IDrm, data, reply);
868 readVector(data, response);
878 CHECK_INTERFACE(IDrm, data, reply);
896 CHECK_INTERFACE(IDrm, data, reply);
914 CHECK_INTERFACE(IDrm, data, reply);
916 readVector(data, ssid);
925 CHECK_INTERFACE(IDrm, data, reply);
927 readVector(data, ssRelease);
934 CHECK_INTERFACE(IDrm, data, reply);
936 readVector(data, ssid);
943 CHECK_INTERFACE(IDrm, data, reply);
950 CHECK_INTERFACE(IDrm, data, reply);
962 CHECK_INTERFACE(IDrm, data, reply);
973 CHECK_INTERFACE(IDrm, data, reply);
975 readVector(data, sessionId);
985 CHECK_INTERFACE(IDrm, data, reply);
986 String8 name = data.readString8();
996 CHECK_INTERFACE(IDrm, data, reply);
997 String8 name = data.readString8();
1007 CHECK_INTERFACE(IDrm, data, reply);
1008 String8 name = data.readString8();
1009 String8 value = data.readString8();
1016 CHECK_INTERFACE(IDrm, data, reply);
1017 String8 name = data.readString8();
1019 readVector(data, value);
1026 CHECK_INTERFACE(IDrm, data, reply);
1030 // The reply data is ordered as
1044 CHECK_INTERFACE(IDrm, data, reply);
1046 readVector(data, sessionId);
1047 String8 algorithm = data.readString8();
1054 CHECK_INTERFACE(IDrm, data, reply);
1056 readVector(data, sessionId);
1057 String8 algorithm = data.readString8();
1064 CHECK_INTERFACE(IDrm, data, reply);
1066 readVector(data, sessionId);
1067 readVector(data, keyId);
1068 readVector(data, input);
1069 readVector(data, iv);
1078 CHECK_INTERFACE(IDrm, data, reply);
1080 readVector(data, sessionId);
1081 readVector(data, keyId);
1082 readVector(data, input);
1083 readVector(data, iv);
1092 CHECK_INTERFACE(IDrm, data, reply);
1094 readVector(data, sessionId);
1095 readVector(data, keyId);
1096 readVector(data, message);
1105 CHECK_INTERFACE(IDrm, data, reply);
1107 readVector(data, sessionId);
1108 readVector(data, keyId);
1109 readVector(data, message);
1110 readVector(data, signature);
1120 CHECK_INTERFACE(IDrm, data, reply);
1122 readVector(data, sessionId);
1123 String8 algorithm = data.readString8();
1124 readVector(data, message);
1125 readVector(data, wrappedKey);
1133 CHECK_INTERFACE(IDrm, data, reply);
1135 interface_cast<IDrmClient>(data.readStrongBinder());
1141 return BBinder::onTransact(code, data, reply, flags);