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.jda" 9PURPOSE = "Verify Jpeg decode accelerator works in USB HALv3." 10CRITERIA = """ 11This test will fail if there is a JDA decode error. 12""" 13ATTRIBUTES = "" 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 JDA 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=5, 36 camera_hals=['usb.so'], 37 options=['--gtest_filter=*/Camera3SingleFrameTest.GetFrame/0'] + 38 facing_options, 39 capability='hw_dec_jpeg', 40 test_config={'force_jpeg_hw_dec': True}) 41