summaryrefslogtreecommitdiffstats
path: root/camera/ICameraServiceListener.cpp
diff options
context:
space:
mode:
authorRuben Brunk <rubenbrunk@google.com>2015-06-16 11:00:37 -0700
committerRuben Brunk <rubenbrunk@google.com>2015-07-06 17:49:44 -0700
commit3450ba7879be6522ea46a56c5e66e5382f5dd5ba (patch)
tree201ed5e416af4f44012e6b5c7f2b16bd30cfc673 /camera/ICameraServiceListener.cpp
parenta3b3caaae3fc23b99c5c455ee429f79c270cfbae (diff)
downloadframeworks_av-3450ba7879be6522ea46a56c5e66e5382f5dd5ba.zip
frameworks_av-3450ba7879be6522ea46a56c5e66e5382f5dd5ba.tar.gz
frameworks_av-3450ba7879be6522ea46a56c5e66e5382f5dd5ba.tar.bz2
camera2: Fix native binder interface and add tests.
- Add CameraBinderTests for limited coverage of native camera2 binder interfaces for the camera service. - Fix several bugs in the native binder interfaces. Bug: 18468810 Change-Id: Iab2d81a5cacd20daf7454aeeed033cc13d88452c
Diffstat (limited to 'camera/ICameraServiceListener.cpp')
-rw-r--r--camera/ICameraServiceListener.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/camera/ICameraServiceListener.cpp b/camera/ICameraServiceListener.cpp
index 90a8bc2..0010325 100644
--- a/camera/ICameraServiceListener.cpp
+++ b/camera/ICameraServiceListener.cpp
@@ -45,8 +45,7 @@ public:
virtual void onStatusChanged(Status status, int32_t cameraId)
{
Parcel data, reply;
- data.writeInterfaceToken(
- ICameraServiceListener::getInterfaceDescriptor());
+ data.writeInterfaceToken(ICameraServiceListener::getInterfaceDescriptor());
data.writeInt32(static_cast<int32_t>(status));
data.writeInt32(cameraId);
@@ -60,8 +59,7 @@ public:
virtual void onTorchStatusChanged(TorchStatus status, const String16 &cameraId)
{
Parcel data, reply;
- data.writeInterfaceToken(
- ICameraServiceListener::getInterfaceDescriptor());
+ data.writeInterfaceToken(ICameraServiceListener::getInterfaceDescriptor());
data.writeInt32(static_cast<int32_t>(status));
data.writeString16(cameraId);
@@ -73,14 +71,12 @@ public:
}
};
-IMPLEMENT_META_INTERFACE(CameraServiceListener,
- "android.hardware.ICameraServiceListener");
+IMPLEMENT_META_INTERFACE(CameraServiceListener, "android.hardware.ICameraServiceListener");
// ----------------------------------------------------------------------
-status_t BnCameraServiceListener::onTransact(
- uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags)
-{
+status_t BnCameraServiceListener::onTransact(uint32_t code, const Parcel& data, Parcel* reply,
+ uint32_t flags) {
switch(code) {
case STATUS_CHANGED: {
CHECK_INTERFACE(ICameraServiceListener, data, reply);