Lines Matching refs:data
76 Parcel data, reply; in initCheck() local
77 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in initCheck()
78 status_t status = remote()->transact(INIT_CHECK, data, &reply); in initCheck()
88 Parcel data, reply; in isCryptoSchemeSupported() local
89 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in isCryptoSchemeSupported()
90 data.write(uuid, 16); in isCryptoSchemeSupported()
91 data.writeString8(mimeType); in isCryptoSchemeSupported()
92 data.writeInt32(level); in isCryptoSchemeSupported()
94 status_t status = remote()->transact(IS_CRYPTO_SUPPORTED, data, &reply); in isCryptoSchemeSupported()
106 Parcel data, reply; in createPlugin() local
107 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in createPlugin()
108 data.write(uuid, 16); in createPlugin()
109 data.writeString8(appPackageName); in createPlugin()
110 status_t status = remote()->transact(CREATE_PLUGIN, data, &reply); in createPlugin()
120 Parcel data, reply; in destroyPlugin() local
121 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in destroyPlugin()
122 status_t status = remote()->transact(DESTROY_PLUGIN, data, &reply); in destroyPlugin()
132 Parcel data, reply; in openSession() local
133 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in openSession()
134 data.writeInt32(level); in openSession()
136 status_t status = remote()->transact(OPEN_SESSION, data, &reply); in openSession()
146 Parcel data, reply; in closeSession() local
147 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in closeSession()
149 writeVector(data, sessionId); in closeSession()
150 status_t status = remote()->transact(CLOSE_SESSION, data, &reply); in closeSession()
165 Parcel data, reply; in getKeyRequest() local
166 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in getKeyRequest()
168 writeVector(data, sessionId); in getKeyRequest()
169 writeVector(data, initData); in getKeyRequest()
170 data.writeString8(mimeType); in getKeyRequest()
171 data.writeInt32((uint32_t)keyType); in getKeyRequest()
173 data.writeInt32(optionalParameters.size()); in getKeyRequest()
175 data.writeString8(optionalParameters.keyAt(i)); in getKeyRequest()
176 data.writeString8(optionalParameters.valueAt(i)); in getKeyRequest()
179 status_t status = remote()->transact(GET_KEY_REQUEST, data, &reply); in getKeyRequest()
194 Parcel data, reply; in provideKeyResponse() local
195 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in provideKeyResponse()
196 writeVector(data, sessionId); in provideKeyResponse()
197 writeVector(data, response); in provideKeyResponse()
199 status_t status = remote()->transact(PROVIDE_KEY_RESPONSE, data, &reply); in provideKeyResponse()
210 Parcel data, reply; in removeKeys() local
211 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in removeKeys()
213 writeVector(data, keySetId); in removeKeys()
214 status_t status = remote()->transact(REMOVE_KEYS, data, &reply); in removeKeys()
224 Parcel data, reply; in restoreKeys() local
225 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in restoreKeys()
227 writeVector(data, sessionId); in restoreKeys()
228 writeVector(data, keySetId); in restoreKeys()
229 status_t status = remote()->transact(RESTORE_KEYS, data, &reply); in restoreKeys()
239 Parcel data, reply; in queryKeyStatus() local
240 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in queryKeyStatus()
242 writeVector(data, sessionId); in queryKeyStatus()
243 status_t status = remote()->transact(QUERY_KEY_STATUS, data, &reply); in queryKeyStatus()
262 Parcel data, reply; in getProvisionRequest() local
263 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in getProvisionRequest()
265 data.writeString8(certType); in getProvisionRequest()
266 data.writeString8(certAuthority); in getProvisionRequest()
267 status_t status = remote()->transact(GET_PROVISION_REQUEST, data, &reply); in getProvisionRequest()
281 Parcel data, reply; in provideProvisionResponse() local
282 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in provideProvisionResponse()
284 writeVector(data, response); in provideProvisionResponse()
285 status_t status = remote()->transact(PROVIDE_PROVISION_RESPONSE, data, &reply); in provideProvisionResponse()
297 Parcel data, reply; in getSecureStops() local
298 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in getSecureStops()
300 status_t status = remote()->transact(GET_SECURE_STOPS, data, &reply); in getSecureStops()
316 Parcel data, reply; in getSecureStopIds() local
317 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in getSecureStopIds()
319 status_t status = remote()->transact(GET_SECURE_STOP_IDS, data, &reply); in getSecureStopIds()
335 Parcel data, reply; in getSecureStop() local
336 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in getSecureStop()
338 writeVector(data, ssid); in getSecureStop()
339 status_t status = remote()->transact(GET_SECURE_STOP, data, &reply); in getSecureStop()
349 Parcel data, reply; in releaseSecureStops() local
350 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in releaseSecureStops()
352 writeVector(data, ssRelease); in releaseSecureStops()
353 status_t status = remote()->transact(RELEASE_SECURE_STOPS, data, &reply); in releaseSecureStops()
362 Parcel data, reply; in removeSecureStop() local
363 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in removeSecureStop()
365 writeVector(data, ssid); in removeSecureStop()
366 status_t status = remote()->transact(REMOVE_SECURE_STOP, data, &reply); in removeSecureStop()
375 Parcel data, reply; in removeAllSecureStops() local
376 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in removeAllSecureStops()
378 status_t status = remote()->transact(REMOVE_ALL_SECURE_STOPS, data, &reply); in removeAllSecureStops()
387 Parcel data, reply; in getOfflineLicenseKeySetIds() local
388 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in getOfflineLicenseKeySetIds()
390 status_t status = remote()->transact(GET_OFFLINE_LICENSE_KEYSET_IDS, data, &reply); in getOfflineLicenseKeySetIds()
406 Parcel data, reply; in removeOfflineLicense() local
407 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in removeOfflineLicense()
409 writeVector(data, keySetId); in removeOfflineLicense()
410 status_t status = remote()->transact(REMOVE_OFFLINE_LICENSE, data, &reply); in removeOfflineLicense()
419 Parcel data, reply; in getOfflineLicenseState() local
420 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in getOfflineLicenseState()
422 writeVector(data, keySetId); in getOfflineLicenseState()
423 status_t status = remote()->transact(GET_OFFLINE_LICENSE_STATE, data, &reply); in getOfflineLicenseState()
433 Parcel data, reply; in getPropertyString() local
434 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in getPropertyString()
436 data.writeString8(name); in getPropertyString()
437 status_t status = remote()->transact(GET_PROPERTY_STRING, data, &reply); in getPropertyString()
448 Parcel data, reply; in getHdcpLevels() local
454 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in getHdcpLevels()
456 status_t status = remote()->transact(GET_HDCP_LEVELS, data, &reply); in getHdcpLevels()
467 Parcel data, reply; in getNumberOfSessions() local
473 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in getNumberOfSessions()
475 status_t status = remote()->transact(GET_NUMBER_OF_SESSIONS, data, &reply); in getNumberOfSessions()
487 Parcel data, reply; in getSecurityLevel() local
493 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in getSecurityLevel()
495 writeVector(data, sessionId); in getSecurityLevel()
496 status_t status = remote()->transact(GET_SECURITY_LEVEL, data, &reply); in getSecurityLevel()
506 Parcel data, reply; in getPropertyByteArray() local
507 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in getPropertyByteArray()
509 data.writeString8(name); in getPropertyByteArray()
510 status_t status = remote()->transact(GET_PROPERTY_BYTE_ARRAY, data, &reply); in getPropertyByteArray()
520 Parcel data, reply; in setPropertyString() local
521 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in setPropertyString()
523 data.writeString8(name); in setPropertyString()
524 data.writeString8(value); in setPropertyString()
525 status_t status = remote()->transact(SET_PROPERTY_STRING, data, &reply); in setPropertyString()
535 Parcel data, reply; in setPropertyByteArray() local
536 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in setPropertyByteArray()
538 data.writeString8(name); in setPropertyByteArray()
539 writeVector(data, value); in setPropertyByteArray()
540 status_t status = remote()->transact(SET_PROPERTY_BYTE_ARRAY, data, &reply); in setPropertyByteArray()
552 Parcel data, reply; in getMetrics() local
553 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in getMetrics()
555 status_t status = remote()->transact(GET_METRICS, data, &reply); in getMetrics()
580 Parcel data, reply; in setCipherAlgorithm() local
581 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in setCipherAlgorithm()
583 writeVector(data, sessionId); in setCipherAlgorithm()
584 data.writeString8(algorithm); in setCipherAlgorithm()
585 status_t status = remote()->transact(SET_CIPHER_ALGORITHM, data, &reply); in setCipherAlgorithm()
594 Parcel data, reply; in setMacAlgorithm() local
595 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in setMacAlgorithm()
597 writeVector(data, sessionId); in setMacAlgorithm()
598 data.writeString8(algorithm); in setMacAlgorithm()
599 status_t status = remote()->transact(SET_MAC_ALGORITHM, data, &reply); in setMacAlgorithm()
611 Parcel data, reply; in encrypt() local
612 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in encrypt()
614 writeVector(data, sessionId); in encrypt()
615 writeVector(data, keyId); in encrypt()
616 writeVector(data, input); in encrypt()
617 writeVector(data, iv); in encrypt()
619 status_t status = remote()->transact(ENCRYPT, data, &reply); in encrypt()
633 Parcel data, reply; in decrypt() local
634 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in decrypt()
636 writeVector(data, sessionId); in decrypt()
637 writeVector(data, keyId); in decrypt()
638 writeVector(data, input); in decrypt()
639 writeVector(data, iv); in decrypt()
641 status_t status = remote()->transact(DECRYPT, data, &reply); in decrypt()
654 Parcel data, reply; in sign() local
655 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in sign()
657 writeVector(data, sessionId); in sign()
658 writeVector(data, keyId); in sign()
659 writeVector(data, message); in sign()
661 status_t status = remote()->transact(SIGN, data, &reply); in sign()
675 Parcel data, reply; in verify() local
676 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in verify()
678 writeVector(data, sessionId); in verify()
679 writeVector(data, keyId); in verify()
680 writeVector(data, message); in verify()
681 writeVector(data, signature); in verify()
683 status_t status = remote()->transact(VERIFY, data, &reply); in verify()
696 Parcel data, reply; in signRSA() local
697 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in signRSA()
699 writeVector(data, sessionId); in signRSA()
700 data.writeString8(algorithm); in signRSA()
701 writeVector(data, message); in signRSA()
702 writeVector(data, wrappedKey); in signRSA()
704 status_t status = remote()->transact(SIGN_RSA, data, &reply); in signRSA()
714 Parcel data, reply; in setListener() local
715 data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); in setListener()
716 data.writeStrongBinder(IInterface::asBinder(listener)); in setListener()
717 status_t status = remote()->transact(SET_LISTENER, data, &reply); in setListener()
731 void writeVector(Parcel &data, Vector<uint8_t> const &vector) const { in writeVector()
732 data.writeInt32(vector.size()); in writeVector()
733 data.write(vector.array(), vector.size()); in writeVector()
743 void BnDrm::readVector(const Parcel &data, Vector<uint8_t> &vector) const { in readVector() argument
744 uint32_t size = data.readInt32(); in readVector()
748 if (data.read(vector.editArray(), size) != NO_ERROR) { in readVector()
760 uint32_t code, const Parcel &data, Parcel *reply, uint32_t flags) { in onTransact() argument
764 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
771 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
773 data.read(uuid, sizeof(uuid)); in onTransact()
774 String8 mimeType = data.readString8(); in onTransact()
776 static_cast<DrmPlugin::SecurityLevel>(data.readInt32()); in onTransact()
786 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
788 data.read(uuid, sizeof(uuid)); in onTransact()
789 String8 appPackageName = data.readString8(); in onTransact()
796 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
803 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
805 static_cast<DrmPlugin::SecurityLevel>(data.readInt32()); in onTransact()
815 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
817 readVector(data, sessionId); in onTransact()
824 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
827 readVector(data, sessionId); in onTransact()
828 readVector(data, initData); in onTransact()
829 String8 mimeType = data.readString8(); in onTransact()
830 DrmPlugin::KeyType keyType = (DrmPlugin::KeyType)data.readInt32(); in onTransact()
833 uint32_t count = data.readInt32(); in onTransact()
836 key = data.readString8(); in onTransact()
837 value = data.readString8(); in onTransact()
858 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
860 readVector(data, sessionId); in onTransact()
861 readVector(data, response); in onTransact()
870 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
872 readVector(data, keySetId); in onTransact()
879 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
881 readVector(data, sessionId); in onTransact()
882 readVector(data, keySetId); in onTransact()
889 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
891 readVector(data, sessionId); in onTransact()
906 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
907 String8 certType = data.readString8(); in onTransact()
908 String8 certAuthority = data.readString8(); in onTransact()
922 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
926 readVector(data, response); in onTransact()
936 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
954 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
972 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
974 readVector(data, ssid); in onTransact()
983 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
985 readVector(data, ssRelease); in onTransact()
992 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
994 readVector(data, ssid); in onTransact()
1001 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1008 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1020 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1031 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1033 readVector(data, sessionId); in onTransact()
1043 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1061 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1063 readVector(data, keySetId); in onTransact()
1070 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1072 readVector(data, keySetId); in onTransact()
1083 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1084 String8 name = data.readString8(); in onTransact()
1094 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1095 String8 name = data.readString8(); in onTransact()
1105 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1106 String8 name = data.readString8(); in onTransact()
1107 String8 value = data.readString8(); in onTransact()
1114 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1115 String8 name = data.readString8(); in onTransact()
1117 readVector(data, value); in onTransact()
1124 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1142 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1144 readVector(data, sessionId); in onTransact()
1145 String8 algorithm = data.readString8(); in onTransact()
1152 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1154 readVector(data, sessionId); in onTransact()
1155 String8 algorithm = data.readString8(); in onTransact()
1162 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1164 readVector(data, sessionId); in onTransact()
1165 readVector(data, keyId); in onTransact()
1166 readVector(data, input); in onTransact()
1167 readVector(data, iv); in onTransact()
1176 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1178 readVector(data, sessionId); in onTransact()
1179 readVector(data, keyId); in onTransact()
1180 readVector(data, input); in onTransact()
1181 readVector(data, iv); in onTransact()
1190 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1192 readVector(data, sessionId); in onTransact()
1193 readVector(data, keyId); in onTransact()
1194 readVector(data, message); in onTransact()
1203 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1205 readVector(data, sessionId); in onTransact()
1206 readVector(data, keyId); in onTransact()
1207 readVector(data, message); in onTransact()
1208 readVector(data, signature); in onTransact()
1218 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1220 readVector(data, sessionId); in onTransact()
1221 String8 algorithm = data.readString8(); in onTransact()
1222 readVector(data, message); in onTransact()
1223 readVector(data, wrappedKey); in onTransact()
1231 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1233 interface_cast<IDrmClient>(data.readStrongBinder()); in onTransact()
1239 return BBinder::onTransact(code, data, reply, flags); in onTransact()