Lines Matching refs:data
67 Parcel data, reply; in initCheck() local
68 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in initCheck()
69 status_t status = remote()->transact(INIT_CHECK, data, &reply); in initCheck()
78 Parcel data, reply; in isCryptoSchemeSupported() local
79 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in isCryptoSchemeSupported()
80 data.write(uuid, 16); in isCryptoSchemeSupported()
81 data.writeString8(mimeType); in isCryptoSchemeSupported()
82 status_t status = remote()->transact(IS_CRYPTO_SUPPORTED, data, &reply); in isCryptoSchemeSupported()
93 Parcel data, reply; in createPlugin() local
94 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in createPlugin()
95 data.write(uuid, 16); in createPlugin()
96 data.writeString8(appPackageName); in createPlugin()
97 status_t status = remote()->transact(CREATE_PLUGIN, data, &reply); in createPlugin()
107 Parcel data, reply; in destroyPlugin() local
108 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in destroyPlugin()
109 status_t status = remote()->transact(DESTROY_PLUGIN, data, &reply); in destroyPlugin()
118 Parcel data, reply; in openSession() local
119 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in openSession()
121 status_t status = remote()->transact(OPEN_SESSION, data, &reply); in openSession()
131 Parcel data, reply; in closeSession() local
132 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in closeSession()
134 writeVector(data, sessionId); in closeSession()
135 status_t status = remote()->transact(CLOSE_SESSION, data, &reply); in closeSession()
150 Parcel data, reply; in getKeyRequest() local
151 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in getKeyRequest()
153 writeVector(data, sessionId); in getKeyRequest()
154 writeVector(data, initData); in getKeyRequest()
155 data.writeString8(mimeType); in getKeyRequest()
156 data.writeInt32((uint32_t)keyType); in getKeyRequest()
158 data.writeInt32(optionalParameters.size()); in getKeyRequest()
160 data.writeString8(optionalParameters.keyAt(i)); in getKeyRequest()
161 data.writeString8(optionalParameters.valueAt(i)); in getKeyRequest()
164 status_t status = remote()->transact(GET_KEY_REQUEST, data, &reply); in getKeyRequest()
179 Parcel data, reply; in provideKeyResponse() local
180 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in provideKeyResponse()
181 writeVector(data, sessionId); in provideKeyResponse()
182 writeVector(data, response); in provideKeyResponse()
184 status_t status = remote()->transact(PROVIDE_KEY_RESPONSE, data, &reply); in provideKeyResponse()
195 Parcel data, reply; in removeKeys() local
196 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in removeKeys()
198 writeVector(data, keySetId); in removeKeys()
199 status_t status = remote()->transact(REMOVE_KEYS, data, &reply); in removeKeys()
209 Parcel data, reply; in restoreKeys() local
210 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in restoreKeys()
212 writeVector(data, sessionId); in restoreKeys()
213 writeVector(data, keySetId); in restoreKeys()
214 status_t status = remote()->transact(RESTORE_KEYS, data, &reply); in restoreKeys()
224 Parcel data, reply; in queryKeyStatus() local
225 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in queryKeyStatus()
227 writeVector(data, sessionId); in queryKeyStatus()
228 status_t status = remote()->transact(QUERY_KEY_STATUS, data, &reply); in queryKeyStatus()
247 Parcel data, reply; in getProvisionRequest() local
248 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in getProvisionRequest()
250 data.writeString8(certType); in getProvisionRequest()
251 data.writeString8(certAuthority); in getProvisionRequest()
252 status_t status = remote()->transact(GET_PROVISION_REQUEST, data, &reply); in getProvisionRequest()
266 Parcel data, reply; in provideProvisionResponse() local
267 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in provideProvisionResponse()
269 writeVector(data, response); in provideProvisionResponse()
270 status_t status = remote()->transact(PROVIDE_PROVISION_RESPONSE, data, &reply); in provideProvisionResponse()
282 Parcel data, reply; in getSecureStops() local
283 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in getSecureStops()
285 status_t status = remote()->transact(GET_SECURE_STOPS, data, &reply); in getSecureStops()
301 Parcel data, reply; in getSecureStop() local
302 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in getSecureStop()
304 writeVector(data, ssid); in getSecureStop()
305 status_t status = remote()->transact(GET_SECURE_STOP, data, &reply); in getSecureStop()
315 Parcel data, reply; in releaseSecureStops() local
316 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in releaseSecureStops()
318 writeVector(data, ssRelease); in releaseSecureStops()
319 status_t status = remote()->transact(RELEASE_SECURE_STOPS, data, &reply); in releaseSecureStops()
328 Parcel data, reply; in releaseAllSecureStops() local
329 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in releaseAllSecureStops()
331 status_t status = remote()->transact(RELEASE_ALL_SECURE_STOPS, data, &reply); in releaseAllSecureStops()
340 Parcel data, reply; in getPropertyString() local
341 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in getPropertyString()
343 data.writeString8(name); in getPropertyString()
344 status_t status = remote()->transact(GET_PROPERTY_STRING, data, &reply); in getPropertyString()
354 Parcel data, reply; in getPropertyByteArray() local
355 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in getPropertyByteArray()
357 data.writeString8(name); in getPropertyByteArray()
358 status_t status = remote()->transact(GET_PROPERTY_BYTE_ARRAY, data, &reply); in getPropertyByteArray()
368 Parcel data, reply; in setPropertyString() local
369 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in setPropertyString()
371 data.writeString8(name); in setPropertyString()
372 data.writeString8(value); in setPropertyString()
373 status_t status = remote()->transact(SET_PROPERTY_STRING, data, &reply); in setPropertyString()
383 Parcel data, reply; in setPropertyByteArray() local
384 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in setPropertyByteArray()
386 data.writeString8(name); in setPropertyByteArray()
387 writeVector(data, value); in setPropertyByteArray()
388 status_t status = remote()->transact(SET_PROPERTY_BYTE_ARRAY, data, &reply); in setPropertyByteArray()
399 Parcel data, reply; in setCipherAlgorithm() local
400 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in setCipherAlgorithm()
402 writeVector(data, sessionId); in setCipherAlgorithm()
403 data.writeString8(algorithm); in setCipherAlgorithm()
404 status_t status = remote()->transact(SET_CIPHER_ALGORITHM, data, &reply); in setCipherAlgorithm()
413 Parcel data, reply; in setMacAlgorithm() local
414 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in setMacAlgorithm()
416 writeVector(data, sessionId); in setMacAlgorithm()
417 data.writeString8(algorithm); in setMacAlgorithm()
418 status_t status = remote()->transact(SET_MAC_ALGORITHM, data, &reply); in setMacAlgorithm()
430 Parcel data, reply; in encrypt() local
431 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in encrypt()
433 writeVector(data, sessionId); in encrypt()
434 writeVector(data, keyId); in encrypt()
435 writeVector(data, input); in encrypt()
436 writeVector(data, iv); in encrypt()
438 status_t status = remote()->transact(ENCRYPT, data, &reply); in encrypt()
452 Parcel data, reply; in decrypt() local
453 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in decrypt()
455 writeVector(data, sessionId); in decrypt()
456 writeVector(data, keyId); in decrypt()
457 writeVector(data, input); in decrypt()
458 writeVector(data, iv); in decrypt()
460 status_t status = remote()->transact(DECRYPT, data, &reply); in decrypt()
473 Parcel data, reply; in sign() local
474 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in sign()
476 writeVector(data, sessionId); in sign()
477 writeVector(data, keyId); in sign()
478 writeVector(data, message); in sign()
480 status_t status = remote()->transact(SIGN, data, &reply); in sign()
494 Parcel data, reply; in verify() local
495 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in verify()
497 writeVector(data, sessionId); in verify()
498 writeVector(data, keyId); in verify()
499 writeVector(data, message); in verify()
500 writeVector(data, signature); in verify()
502 status_t status = remote()->transact(VERIFY, data, &reply); in verify()
515 Parcel data, reply; in signRSA() local
516 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in signRSA()
518 writeVector(data, sessionId); in signRSA()
519 data.writeString8(algorithm); in signRSA()
520 writeVector(data, message); in signRSA()
521 writeVector(data, wrappedKey); in signRSA()
523 status_t status = remote()->transact(SIGN_RSA, data, &reply); in signRSA()
533 Parcel data, reply; in setListener() local
534 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in setListener()
535 data.writeStrongBinder(IInterface::asBinder(listener)); in setListener()
536 status_t status = remote()->transact(SET_LISTENER, data, &reply); in setListener()
550 void writeVector(Parcel &data, Vector<uint8_t> const &vector) const { in writeVector()
551 data.writeInt32(vector.size()); in writeVector()
552 data.write(vector.array(), vector.size()); in writeVector()
562 void BnDrm::readVector(const Parcel &data, Vector<uint8_t> &vector) const { in readVector() argument
563 uint32_t size = data.readInt32(); in readVector()
565 data.read(vector.editArray(), size); in readVector()
574 uint32_t code, const Parcel &data, Parcel *reply, uint32_t flags) { in onTransact() argument
578 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
585 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
587 data.read(uuid, sizeof(uuid)); in onTransact()
588 String8 mimeType = data.readString8(); in onTransact()
595 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
597 data.read(uuid, sizeof(uuid)); in onTransact()
598 String8 appPackageName = data.readString8(); in onTransact()
605 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
612 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
622 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
624 readVector(data, sessionId); in onTransact()
631 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
634 readVector(data, sessionId); in onTransact()
635 readVector(data, initData); in onTransact()
636 String8 mimeType = data.readString8(); in onTransact()
637 DrmPlugin::KeyType keyType = (DrmPlugin::KeyType)data.readInt32(); in onTransact()
640 uint32_t count = data.readInt32(); in onTransact()
643 key = data.readString8(); in onTransact()
644 value = data.readString8(); in onTransact()
665 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
667 readVector(data, sessionId); in onTransact()
668 readVector(data, response); in onTransact()
677 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
679 readVector(data, keySetId); in onTransact()
686 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
688 readVector(data, sessionId); in onTransact()
689 readVector(data, keySetId); in onTransact()
696 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
698 readVector(data, sessionId); in onTransact()
713 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
714 String8 certType = data.readString8(); in onTransact()
715 String8 certAuthority = data.readString8(); in onTransact()
729 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
733 readVector(data, response); in onTransact()
743 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
761 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
763 readVector(data, ssid); in onTransact()
772 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
774 readVector(data, ssRelease); in onTransact()
781 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
788 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
789 String8 name = data.readString8(); in onTransact()
799 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
800 String8 name = data.readString8(); in onTransact()
810 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
811 String8 name = data.readString8(); in onTransact()
812 String8 value = data.readString8(); in onTransact()
819 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
820 String8 name = data.readString8(); in onTransact()
822 readVector(data, value); in onTransact()
829 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
831 readVector(data, sessionId); in onTransact()
832 String8 algorithm = data.readString8(); in onTransact()
839 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
841 readVector(data, sessionId); in onTransact()
842 String8 algorithm = data.readString8(); in onTransact()
849 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
851 readVector(data, sessionId); in onTransact()
852 readVector(data, keyId); in onTransact()
853 readVector(data, input); in onTransact()
854 readVector(data, iv); in onTransact()
863 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
865 readVector(data, sessionId); in onTransact()
866 readVector(data, keyId); in onTransact()
867 readVector(data, input); in onTransact()
868 readVector(data, iv); in onTransact()
877 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
879 readVector(data, sessionId); in onTransact()
880 readVector(data, keyId); in onTransact()
881 readVector(data, message); in onTransact()
890 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
892 readVector(data, sessionId); in onTransact()
893 readVector(data, keyId); in onTransact()
894 readVector(data, message); in onTransact()
895 readVector(data, signature); in onTransact()
905 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
907 readVector(data, sessionId); in onTransact()
908 String8 algorithm = data.readString8(); in onTransact()
909 readVector(data, message); in onTransact()
910 readVector(data, wrappedKey); in onTransact()
918 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
920 interface_cast<IDrmClient>(data.readStrongBinder()); in onTransact()
926 return BBinder::onTransact(code, data, reply, flags); in onTransact()