summaryrefslogtreecommitdiffstats
path: root/camera
diff options
context:
space:
mode:
authorRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-10-30 15:28:21 +0000
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-10-30 15:28:21 +0000
commit78012f3513540230a4617d95b81114218593f921 (patch)
tree44e8f02d2bd27993ee0bda569f388c8fdf997eab /camera
parentb931db8c307db6b94fcc52ea3ff9adda5b8d9de4 (diff)
downloaddevice_samsung_smdk4412-common-78012f3513540230a4617d95b81114218593f921.zip
device_samsung_smdk4412-common-78012f3513540230a4617d95b81114218593f921.tar.gz
device_samsung_smdk4412-common-78012f3513540230a4617d95b81114218593f921.tar.bz2
camera: Fix android.hardware.cts.CameraTest#testFaceDetection
junit.framework.AssertionFailedError: Should throw an exception if face detection is not supported. Change-Id: I2cf8d26e94c0943838db7300ab05b4c0172b15c1
Diffstat (limited to 'camera')
-rw-r--r--camera/exynos_camera.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/camera/exynos_camera.c b/camera/exynos_camera.c
index ed618e3..f6817a3 100644
--- a/camera/exynos_camera.c
+++ b/camera/exynos_camera.c
@@ -4238,6 +4238,13 @@ int exynos_camera_send_command(struct camera_device *dev,
int32_t cmd, int32_t arg1, int32_t arg2)
{
ALOGD("%s(%p, %d, %d, %d)", __func__, dev, cmd, arg1, arg2);
+ switch (cmd) {
+ case CAMERA_CMD_START_FACE_DETECTION:
+ return -EINVAL;
+ break;
+ default:
+ break;
+ }
return 0;
}