Lines Matching defs:data
49 Parcel data, reply;
50 data.writeInterfaceToken(ICrypto::getInterfaceDescriptor());
51 remote()->transact(INIT_CHECK, data, &reply);
57 Parcel data, reply;
58 data.writeInterfaceToken(ICrypto::getInterfaceDescriptor());
59 data.write(uuid, 16);
60 remote()->transact(IS_CRYPTO_SUPPORTED, data, &reply);
67 Parcel data, reply;
68 data.writeInterfaceToken(ICrypto::getInterfaceDescriptor());
69 data.write(uuid, 16);
70 data.writeInt32(opaqueSize);
73 data.write(opaqueData, opaqueSize);
76 remote()->transact(CREATE_PLUGIN, data, &reply);
82 Parcel data, reply;
83 data.writeInterfaceToken(ICrypto::getInterfaceDescriptor());
84 remote()->transact(DESTROY_PLUGIN, data, &reply);
91 Parcel data, reply;
92 data.writeInterfaceToken(ICrypto::getInterfaceDescriptor());
93 data.writeCString(mime);
94 remote()->transact(REQUIRES_SECURE_COMPONENT, data, &reply);
104 Parcel data, reply;
105 data.writeInterfaceToken(ICrypto::getInterfaceDescriptor());
106 data.writeInt32(mode);
107 data.writeInt32(pattern.mEncryptBlocks);
108 data.writeInt32(pattern.mSkipBlocks);
120 data.write(key, 16);
121 data.write(iv, 16);
129 data.writeInt32(totalSize);
130 data.writeStrongBinder(IInterface::asBinder(source.mSharedMemory));
131 data.writeInt32(source.mHeapSeqNum);
132 data.writeInt32(offset);
134 data.writeInt32(numSubSamples);
135 data.write(subSamples, sizeof(CryptoPlugin::SubSample) * numSubSamples);
137 data.writeInt32((int32_t)destination.mType);
142 data.writeNativeHandle(destination.mHandle);
147 data.writeStrongBinder(IInterface::asBinder(destination.mSharedMemory));
150 remote()->transact(DECRYPT, data, &reply);
166 Parcel data, reply;
167 data.writeInterfaceToken(ICrypto::getInterfaceDescriptor());
168 data.writeInt32(width);
169 data.writeInt32(height);
170 remote()->transact(NOTIFY_RESOLUTION, data, &reply);
174 Parcel data, reply;
175 data.writeInterfaceToken(ICrypto::getInterfaceDescriptor());
177 writeVector(data, sessionId);
178 remote()->transact(SET_MEDIADRM_SESSION, data, &reply);
184 Parcel data, reply;
185 data.writeInterfaceToken(ICrypto::getInterfaceDescriptor());
186 data.writeStrongBinder(IInterface::asBinder(heap));
187 status_t err = remote()->transact(SET_HEAP, data, &reply);
199 Parcel data, reply;
200 data.writeInterfaceToken(ICrypto::getInterfaceDescriptor());
201 data.writeInt32(seqNum);
202 remote()->transact(UNSET_HEAP, data, &reply);
214 void writeVector(Parcel &data, Vector<uint8_t> const &vector) const {
215 data.writeInt32(vector.size());
216 data.write(vector.array(), vector.size());
226 void BnCrypto::readVector(const Parcel &data, Vector<uint8_t> &vector) const {
227 uint32_t size = data.readInt32();
229 data.read(vector.editArray(), size);
238 uint32_t code, const Parcel &data, Parcel *reply, uint32_t flags) {
242 CHECK_INTERFACE(ICrypto, data, reply);
250 CHECK_INTERFACE(ICrypto, data, reply);
252 data.read(uuid, sizeof(uuid));
260 CHECK_INTERFACE(ICrypto, data, reply);
263 data.read(uuid, sizeof(uuid));
265 size_t opaqueSize = data.readInt32();
278 data.read(opaqueData, opaqueSize);
289 CHECK_INTERFACE(ICrypto, data, reply);
297 CHECK_INTERFACE(ICrypto, data, reply);
299 const char *mime = data.readCString();
311 CHECK_INTERFACE(ICrypto, data, reply);
313 CryptoPlugin::Mode mode = (CryptoPlugin::Mode)data.readInt32();
315 pattern.mEncryptBlocks = data.readInt32();
316 pattern.mSkipBlocks = data.readInt32();
319 data.read(key, sizeof(key));
322 data.read(iv, sizeof(iv));
324 size_t totalSize = data.readInt32();
329 interface_cast<IMemory>(data.readStrongBinder());
334 source.mHeapSeqNum = data.readInt32();
336 int32_t offset = data.readInt32();
338 int32_t numSubSamples = data.readInt32();
347 data.read(subSamples.get(),
351 destination.mType = (DestinationType)data.readInt32();
353 destination.mHandle = data.readNativeHandle();
360 interface_cast<IMemory>(data.readStrongBinder());
430 CHECK_INTERFACE(ICrypto, data, reply);
432 int32_t width = data.readInt32();
433 int32_t height = data.readInt32();
441 CHECK_INTERFACE(IDrm, data, reply);
443 readVector(data, sessionId);
450 CHECK_INTERFACE(ICrypto, data, reply);
452 interface_cast<IMemoryHeap>(data.readStrongBinder());
459 CHECK_INTERFACE(ICrypto, data, reply);
460 int32_t seqNum = data.readInt32();
466 return BBinder::onTransact(code, data, reply, flags);