summaryrefslogtreecommitdiffstats
path: root/camera/ICamera.cpp
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2014-11-14 07:58:25 -0800
committerMarco Nelissen <marcone@google.com>2014-11-14 14:01:03 -0800
commit06b46062d2f8bc82ca3061a23d197734ae51918b (patch)
tree3aee1330c3d65579643e50d105da35919ddc295f /camera/ICamera.cpp
parente5a9eb684921b75919b1a7fee97259b0ca48bd47 (diff)
downloadframeworks_av-06b46062d2f8bc82ca3061a23d197734ae51918b.zip
frameworks_av-06b46062d2f8bc82ca3061a23d197734ae51918b.tar.gz
frameworks_av-06b46062d2f8bc82ca3061a23d197734ae51918b.tar.bz2
Update calls to IInterface::asBinder()
to use the new static version. Change-Id: I89a5988a0ac694ffc04d88cf939e8455bf925d4c
Diffstat (limited to 'camera/ICamera.cpp')
-rw-r--r--camera/ICamera.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/camera/ICamera.cpp b/camera/ICamera.cpp
index ca31c65..9943be6 100644
--- a/camera/ICamera.cpp
+++ b/camera/ICamera.cpp
@@ -75,7 +75,7 @@ public:
ALOGV("setPreviewTarget");
Parcel data, reply;
data.writeInterfaceToken(ICamera::getInterfaceDescriptor());
- sp<IBinder> b(bufferProducer != NULL ? bufferProducer->asBinder() : NULL);
+ sp<IBinder> b(IInterface::asBinder(bufferProducer));
data.writeStrongBinder(b);
remote()->transact(SET_PREVIEW_TARGET, data, &reply);
return reply.readInt32();
@@ -98,7 +98,7 @@ public:
ALOGV("setPreviewCallbackTarget");
Parcel data, reply;
data.writeInterfaceToken(ICamera::getInterfaceDescriptor());
- sp<IBinder> b(callbackProducer->asBinder());
+ sp<IBinder> b(IInterface::asBinder(callbackProducer));
data.writeStrongBinder(b);
remote()->transact(SET_PREVIEW_CALLBACK_TARGET, data, &reply);
return reply.readInt32();
@@ -147,7 +147,7 @@ public:
ALOGV("releaseRecordingFrame");
Parcel data, reply;
data.writeInterfaceToken(ICamera::getInterfaceDescriptor());
- data.writeStrongBinder(mem->asBinder());
+ data.writeStrongBinder(IInterface::asBinder(mem));
remote()->transact(RELEASE_RECORDING_FRAME, data, &reply);
}
@@ -250,7 +250,7 @@ public:
{
Parcel data, reply;
data.writeInterfaceToken(ICamera::getInterfaceDescriptor());
- data.writeStrongBinder(cameraClient->asBinder());
+ data.writeStrongBinder(IInterface::asBinder(cameraClient));
remote()->transact(CONNECT, data, &reply);
return reply.readInt32();
}