From 52a39ec7ff1331e573dc7b6ea6e3d10aa5dc376a Mon Sep 17 00:00:00 2001 From: Timothy Knight Date: Sat, 11 Oct 2014 17:22:30 -0700 Subject: CameraITS: Made some scene0 tests faster Change-Id: Ib11ddf9206d9168fc826118b5f2d832e7de9e8e6 --- apps/CameraITS/tests/scene0/test_capture_result_dump.py | 4 ++-- apps/CameraITS/tests/scene0/test_metadata.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'apps') diff --git a/apps/CameraITS/tests/scene0/test_capture_result_dump.py b/apps/CameraITS/tests/scene0/test_capture_result_dump.py index 449314f..4fd5d4a 100644 --- a/apps/CameraITS/tests/scene0/test_capture_result_dump.py +++ b/apps/CameraITS/tests/scene0/test_capture_result_dump.py @@ -28,9 +28,9 @@ def main(): # Arbitrary capture request exposure values; image content is not # important for this test, only the metadata. props = cam.get_camera_properties() - req,_ = its.objects.get_fastest_manual_capture_settings(props) + req,fmt = its.objects.get_fastest_manual_capture_settings(props) req["android.statistics.lensShadingMapMode"] = 1 - cap = cam.do_capture(req, cam.CAP_YUV) + cap = cam.do_capture(req, fmt) pprint.pprint(cap["metadata"]) # No pass/fail check; test passes if it completes. diff --git a/apps/CameraITS/tests/scene0/test_metadata.py b/apps/CameraITS/tests/scene0/test_metadata.py index 41abe90..ea5a301 100644 --- a/apps/CameraITS/tests/scene0/test_metadata.py +++ b/apps/CameraITS/tests/scene0/test_metadata.py @@ -32,8 +32,8 @@ def main(): # Arbitrary capture request exposure values; image content is not # important for this test, only the metadata. props = cam.get_camera_properties() - req,_ = its.objects.get_fastest_manual_capture_settings(props) - cap = cam.do_capture(req, cam.CAP_YUV) + req,fmt = its.objects.get_fastest_manual_capture_settings(props) + cap = cam.do_capture(req, fmt) md = cap["metadata"] print "Hardware level" -- cgit v1.2.3