Lines Matching full:data
55 * unpacking the serialized data (i.e. bad parcel or invalid structure).
57 void readMetadata(const Parcel& data, camera_metadata_t** out) {
69 if ((err = data.readInt32(&metadataSizeTmp)) != OK) {
87 if ((err = data.readBlob(metadataSize, &blob)) != OK) {
94 reinterpret_cast<const camera_metadata_t*>(blob.data());
111 void writeMetadata(Parcel& data, camera_metadata_t* metadata) {
115 data.writeInt32(0);
120 data.writeInt32(static_cast<int32_t>(metadataSize));
125 data.writeBlob(metadataSize, &blob);
126 copy_camera_metadata(blob.data(), metadataSize, metadata);
130 (const camera_metadata_t*)blob.data(),
133 __FUNCTION__, blob.data());
162 Parcel data, reply;
163 data.writeInterfaceToken(IProCameraUser::getInterfaceDescriptor());
164 remote()->transact(DISCONNECT, data, &reply);
169 Parcel data, reply;
170 data.writeInterfaceToken(IProCameraUser::getInterfaceDescriptor());
171 data.writeStrongBinder(cameraClient->asBinder());
172 remote()->transact(CONNECT, data, &reply);
180 Parcel data, reply;
181 data.writeInterfaceToken(IProCameraUser::getInterfaceDescriptor());
182 remote()->transact(EXCLUSIVE_TRY_LOCK, data, &reply);
187 Parcel data, reply;
188 data.writeInterfaceToken(IProCameraUser::getInterfaceDescriptor());
189 remote()->transact(EXCLUSIVE_LOCK, data, &reply);
195 Parcel data, reply;
196 data.writeInterfaceToken(IProCameraUser::getInterfaceDescriptor());
197 remote()->transact(EXCLUSIVE_UNLOCK, data, &reply);
203 Parcel data, reply;
204 data.writeInterfaceToken(IProCameraUser::getInterfaceDescriptor());
205 remote()->transact(HAS_EXCLUSIVE_LOCK, data, &reply);
212 Parcel data, reply;
213 data.writeInterfaceToken(IProCameraUser::getInterfaceDescriptor());
216 writeMetadata(data, metadata);
219 data.writeInt32(streaming);
221 remote()->transact(SUBMIT_REQUEST, data, &reply);
227 Parcel data, reply;
228 data.writeInterfaceToken(IProCameraUser::getInterfaceDescriptor());
229 data.writeInt32(requestId);
231 remote()->transact(CANCEL_REQUEST, data, &reply);
237 Parcel data, reply;
238 data.writeInterfaceToken(IProCameraUser::getInterfaceDescriptor());
239 data.writeInt32(streamId);
241 remote()->transact(DELETE_STREAM, data, &reply);
250 Parcel data, reply;
251 data.writeInterfaceToken(IProCameraUser::getInterfaceDescriptor());
252 data.writeInt32(width);
253 data.writeInt32(height);
254 data.writeInt32(format);
257 data.writeStrongBinder(b);
259 remote()->transact(CREATE_STREAM, data, &reply);
273 Parcel data, reply;
274 data.writeInterfaceToken(IProCameraUser::getInterfaceDescriptor());
275 data.writeInt32(templateId);
276 remote()->transact(CREATE_DEFAULT_REQUEST, data, &reply);
284 Parcel data, reply;
285 data.writeInterfaceToken(IProCameraUser::getInterfaceDescriptor());
286 data.writeInt32(cameraId);
287 remote()->transact(GET_CAMERA_INFO, data, &reply);
303 uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags)
308 CHECK_INTERFACE(IProCameraUser, data, reply);
313 CHECK_INTERFACE(IProCameraUser, data, reply);
315 interface_cast<IProCameraCallbacks>(data.readStrongBinder());
322 CHECK_INTERFACE(IProCameraUser, data, reply);
327 CHECK_INTERFACE(IProCameraUser, data, reply);
332 CHECK_INTERFACE(IProCameraUser, data, reply);
337 CHECK_INTERFACE(IProCameraUser, data, reply);
342 CHECK_INTERFACE(IProCameraUser, data, reply);
344 readMetadata(data, /*out*/&metadata);
347 bool streaming = data.readInt32();
355 CHECK_INTERFACE(IProCameraUser, data, reply);
356 int requestId = data.readInt32();
361 CHECK_INTERFACE(IProCameraUser, data, reply);
362 int streamId = data.readInt32();
367 CHECK_INTERFACE(IProCameraUser, data, reply);
370 width = data.readInt32();
371 height = data.readInt32();
372 format = data.readInt32();
375 interface_cast<IGraphicBufferProducer>(data.readStrongBinder());
388 CHECK_INTERFACE(IProCameraUser, data, reply);
390 int templateId = data.readInt32();
404 CHECK_INTERFACE(IProCameraUser, data, reply);
406 int cameraId = data.readInt32();
420 return BBinder::onTransact(code, data, reply, flags);