1# Copyright 2018 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5from autotest_lib.client.common_lib import utils 6 7AUTHOR = "Chrome OS Team, chromeos-video@google.com" 8NAME = "camera_HAL3.jea" 9PURPOSE = "Verify Jpeg encode accelerator works in USB HALv3." 10CRITERIA = """ 11This test will fail if there is a JEA encode error. 12""" 13ATTRIBUTES = "suite:bvt-perbuild" 14TIME = "SHORT" 15TEST_CATEGORY = "Functional" 16TEST_CLASS = "video" 17TEST_TYPE = "client" 18BUG_TEMPLATE = { 19 'labels': ['OS-Chrome', 'VideoTestFailure'], 20 'cc': ['chromeos-video-test-failures@google.com'], 21} 22 23DOC = """ 24This test runs camera3 test to verify JEA function. 25""" 26 27facing_options = [ 28 '--%s=%s' % kv 29 for kv in utils.args_to_dict(args).items() 30 if kv[0] == 'camera_facing' 31] 32 33job.run_test( 34 'camera_HAL3', 35 cmd_timeout=10, 36 options=[ 37 '--gtest_filter=*/Camera3SimpleStillCaptureTest.TakePictureTest/0' 38 ] + facing_options, 39 capability='hw_enc_jpeg', 40 test_config={'force_jpeg_hw_enc': True}) 41