Home | History | Annotate | Download | only in camera

Lines Matching refs:reply

53 static bool readExceptionCode(Parcel& reply) {
54 int32_t exceptionCode = reply.readExceptionCode();
106 Parcel data, reply;
109 remote()->transact(BnCameraService::GET_NUMBER_OF_CAMERAS, data, &reply);
111 if (readExceptionCode(reply)) return 0;
112 return reply.readInt32();
118 Parcel data, reply;
121 remote()->transact(BnCameraService::GET_CAMERA_INFO, data, &reply);
123 if (readExceptionCode(reply)) return -EPROTO;
124 status_t result = reply.readInt32();
125 if (reply.readInt32() != 0) {
126 cameraInfo->facing = reply.readInt32();
127 cameraInfo->orientation = reply.readInt32();
135 Parcel data, reply;
138 remote()->transact(BnCameraService::GET_CAMERA_CHARACTERISTICS, data, &reply);
140 if (readExceptionCode(reply)) return -EPROTO;
141 status_t result = reply.readInt32();
144 if (reply.readInt32() != 0) {
145 out.readFromParcel(&reply);
157 Parcel data, reply;
159 remote()->transact(BnCameraService::GET_CAMERA_VENDOR_TAG_DESCRIPTOR, data, &reply);
161 if (readExceptionCode(reply)) return -EPROTO;
162 status_t result = reply.readInt32();
164 if (reply.readInt32() != 0) {
166 if (VendorTagDescriptor::createFromParcel(&reply, /*out*/d) == OK) {
179 Parcel data, reply;
187 status = remote()->transact(BnCameraService::CONNECT, data, &reply);
190 if (readExceptionCode(reply)) return -EPROTO;
191 status = reply.readInt32();
192 if (reply.readInt32() != 0) {
193 device = interface_cast<ICamera>(reply.readStrongBinder());
204 Parcel data, reply;
213 status = remote()->transact(BnCameraService::CONNECT_LEGACY, data, &reply);
216 if (readExceptionCode(reply)) return -EPROTO;
217 status = reply.readInt32();
218 if (reply.readInt32() != 0) {
219 device = interface_cast<ICamera>(reply.readStrongBinder());
227 Parcel data, reply;
232 remote()->transact(BnCameraService::SET_TORCH_MODE, data, &reply);
234 if (readExceptionCode(reply)) return -EPROTO;
235 return reply.readInt32();
247 Parcel data, reply;
255 status = remote()->transact(BnCameraService::CONNECT_DEVICE, data, &reply);
258 if (readExceptionCode(reply)) return -EPROTO;
259 status = reply.readInt32();
260 if (reply.readInt32() != 0) {
261 device = interface_cast<ICameraDeviceUser>(reply.readStrongBinder());
268 Parcel data, reply;
271 remote()->transact(BnCameraService::ADD_LISTENER, data, &reply);
273 if (readExceptionCode(reply)) return -EPROTO;
274 return reply.readInt32();
279 Parcel data, reply;
282 remote()->transact(BnCameraService::REMOVE_LISTENER, data, &reply);
284 if (readExceptionCode(reply)) return -EPROTO;
285 return reply.readInt32();
294 Parcel data, reply;
298 remote()->transact(BnCameraService::GET_LEGACY_PARAMETERS, data, &reply);
299 if (readExceptionCode(reply)) return -EPROTO;
313 Parcel data, reply;
318 remote()->transact(BnCameraService::SUPPORTS_CAMERA_API, data, &reply);
319 if (readExceptionCode(reply)) return -EPROTO;
326 Parcel data, reply;
330 remote()->transact(BnCameraService::NOTIFY_SYSTEM_EVENT, data, &reply,
341 uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags)
345 CHECK_INTERFACE(ICameraService, data, reply);
346 reply->writeNoException();
347 reply->writeInt32(getNumberOfCameras(data.readInt32()));
351 CHECK_INTERFACE(ICameraService, data, reply);
355 reply->writeNoException();
356 reply->writeInt32(result);
359 reply->writeInt32(1); // means the parcelable is included
360 reply->writeInt32(cameraInfo.facing);
361 reply->writeInt32(cameraInfo.orientation);
365 CHECK_INTERFACE(ICameraService, data, reply);
368 reply->writeNoException();
369 reply->writeInt32(result);
372 reply->writeInt32(1); // means the parcelable is included
373 info.writeToParcel(reply);
377 CHECK_INTERFACE(ICameraService, data, reply);
380 reply->writeNoException();
381 reply->writeInt32(result);
385 reply->writeInt32(0);
387 reply->writeInt32(1); // means the parcelable is included
388 d->writeToParcel(reply);
393 CHECK_INTERFACE(ICameraService, data, reply);
402 reply->writeNoException();
403 reply->writeInt32(status);
405 reply->writeInt32(1);
406 reply->writeStrongBinder(IInterface::asBinder(camera));
408 reply->writeInt32(0);
413 CHECK_INTERFACE(ICameraService, data, reply);
422 reply->writeNoException();
423 reply->writeInt32(status);
425 reply->writeInt32(1);
426 reply->writeStrongBinder(IInterface::asBinder(camera));
428 reply->writeInt32(0);
433 CHECK_INTERFACE(ICameraService, data, reply);
436 reply->writeNoException();
437 reply->writeInt32(addListener(listener));
441 CHECK_INTERFACE(ICameraService, data, reply);
444 reply->writeNoException();
445 reply->writeInt32(removeListener(listener));
449 CHECK_INTERFACE(ICameraService, data, reply);
453 reply->writeNoException();
455 reply->writeInt32(getLegacyParameters(cameraId, &parameters));
457 reply->writeInt32(1); // parameters is always available
458 reply->writeString16(parameters);
462 CHECK_INTERFACE(ICameraService, data, reply);
466 reply->writeNoException();
468 reply->writeInt32(supportsCameraApi(cameraId, apiVersion));
472 CHECK_INTERFACE(ICameraService, data, reply);
482 reply->writeNoException();
483 reply->writeInt32(status);
485 reply->writeInt32(1);
486 reply->writeStrongBinder(IInterface::asBinder(camera));
488 reply->writeInt32(0);
493 CHECK_INTERFACE(ICameraService, data, reply);
498 reply->writeNoException();
499 reply->writeInt32(status);
503 CHECK_INTERFACE(ICameraService, data, reply);
528 return BBinder::onTransact(code, data, reply, flags);