Lines Matching refs:reply

54 static bool readExceptionCode(Parcel& reply) {
55 int32_t exceptionCode = reply.readExceptionCode();
101 Parcel data, reply;
103 remote()->transact(BnCameraService::GET_NUMBER_OF_CAMERAS, data, &reply);
105 if (readExceptionCode(reply)) return 0;
106 return reply.readInt32();
112 Parcel data, reply;
115 remote()->transact(BnCameraService::GET_CAMERA_INFO, data, &reply);
117 if (readExceptionCode(reply)) return -EPROTO;
118 status_t result = reply.readInt32();
119 if (reply.readInt32() != 0) {
120 cameraInfo->facing = reply.readInt32();
121 cameraInfo->orientation = reply.readInt32();
129 Parcel data, reply;
132 remote()->transact(BnCameraService::GET_CAMERA_CHARACTERISTICS, data, &reply);
134 if (readExceptionCode(reply)) return -EPROTO;
135 status_t result = reply.readInt32();
138 if (reply.readInt32() != 0) {
139 out.readFromParcel(&reply);
151 Parcel data, reply;
153 remote()->transact(BnCameraService::GET_CAMERA_VENDOR_TAG_DESCRIPTOR, data, &reply);
155 if (readExceptionCode(reply)) return -EPROTO;
156 status_t result = reply.readInt32();
158 if (reply.readInt32() != 0) {
160 if (VendorTagDescriptor::createFromParcel(&reply, /*out*/d) == OK) {
173 Parcel data, reply;
179 remote()->transact(BnCameraService::CONNECT, data, &reply);
181 if (readExceptionCode(reply)) return -EPROTO;
182 status_t status = reply.readInt32();
183 if (reply.readInt32() != 0) {
184 device = interface_cast<ICamera>(reply.readStrongBinder());
195 Parcel data, reply;
202 remote()->transact(BnCameraService::CONNECT_LEGACY, data, &reply);
204 if (readExceptionCode(reply)) return -EPROTO;
205 status_t status = reply.readInt32();
206 if (reply.readInt32() != 0) {
207 device = interface_cast<ICamera>(reply.readStrongBinder());
218 Parcel data, reply;
224 remote()->transact(BnCameraService::CONNECT_PRO, data, &reply);
226 if (readExceptionCode(reply)) return -EPROTO;
227 status_t status = reply.readInt32();
228 if (reply.readInt32() != 0) {
229 device = interface_cast<IProCameraUser>(reply.readStrongBinder());
243 Parcel data, reply;
249 remote()->transact(BnCameraService::CONNECT_DEVICE, data, &reply);
251 if (readExceptionCode(reply)) return -EPROTO;
252 status_t status = reply.readInt32();
253 if (reply.readInt32() != 0) {
254 device = interface_cast<ICameraDeviceUser>(reply.readStrongBinder());
261 Parcel data, reply;
264 remote()->transact(BnCameraService::ADD_LISTENER, data, &reply);
266 if (readExceptionCode(reply)) return -EPROTO;
267 return reply.readInt32();
272 Parcel data, reply;
275 remote()->transact(BnCameraService::REMOVE_LISTENER, data, &reply);
277 if (readExceptionCode(reply)) return -EPROTO;
278 return reply.readInt32();
287 Parcel data, reply;
290 remote()->transact(BnCameraService::GET_LEGACY_PARAMETERS, data, &reply);
291 if (readExceptionCode(reply)) return -EPROTO;
305 Parcel data, reply;
309 remote()->transact(BnCameraService::SUPPORTS_CAMERA_API, data, &reply);
310 if (readExceptionCode(reply)) return -EPROTO;
322 uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags)
326 CHECK_INTERFACE(ICameraService, data, reply);
327 reply->writeNoException();
328 reply->writeInt32(getNumberOfCameras());
332 CHECK_INTERFACE(ICameraService, data, reply);
336 reply->writeNoException();
337 reply->writeInt32(result);
340 reply->writeInt32(1); // means the parcelable is included
341 reply->writeInt32(cameraInfo.facing);
342 reply->writeInt32(cameraInfo.orientation);
346 CHECK_INTERFACE(ICameraService, data, reply);
349 reply->writeNoException();
350 reply->writeInt32(result);
353 reply->writeInt32(1); // means the parcelable is included
354 info.writeToParcel(reply);
358 CHECK_INTERFACE(ICameraService, data, reply);
361 reply->writeNoException();
362 reply->writeInt32(result);
366 reply->writeInt32(0);
368 reply->writeInt32(1); // means the parcelable is included
369 d->writeToParcel(reply);
374 CHECK_INTERFACE(ICameraService, data, reply);
383 reply->writeNoException();
384 reply->writeInt32(status);
386 reply->writeInt32(1);
387 reply->writeStrongBinder(camera->asBinder());
389 reply->writeInt32(0);
394 CHECK_INTERFACE(ICameraService, data, reply);
403 reply->writeNoException();
404 reply->writeInt32(status);
406 reply->writeInt32(1);
407 reply->writeStrongBinder(camera->asBinder());
409 reply->writeInt32(0);
414 CHECK_INTERFACE(ICameraService, data, reply);
423 reply->writeNoException();
424 reply->writeInt32(status);
426 reply->writeInt32(1);
427 reply->writeStrongBinder(camera->asBinder());
429 reply->writeInt32(0);
434 CHECK_INTERFACE(ICameraService, data, reply);
437 reply->writeNoException();
438 reply->writeInt32(addListener(listener));
442 CHECK_INTERFACE(ICameraService, data, reply);
445 reply->writeNoException();
446 reply->writeInt32(removeListener(listener));
450 CHECK_INTERFACE(ICameraService, data, reply);
454 reply->writeNoException();
456 reply->writeInt32(getLegacyParameters(cameraId, &parameters));
458 reply->writeInt32(1); // parameters is always available
459 reply->writeString16(parameters);
463 CHECK_INTERFACE(ICameraService, data, reply);
467 reply->writeNoException();
469 reply->writeInt32(supportsCameraApi(cameraId, apiVersion));
473 CHECK_INTERFACE(ICameraService, data, reply);
483 reply->writeNoException();
484 reply->writeInt32(status);
486 reply->writeInt32(1);
487 reply->writeStrongBinder(camera->asBinder());
489 reply->writeInt32(0);
494 return BBinder::onTransact(code, data, reply, flags);