Home | History | Annotate | Download | only in utils
      1 #
      2 # Copyright 2018 - The Android Open Source Project
      3 #
      4 # Licensed under the Apache License, Version 2.0 (the "License");
      5 # you may not use this file except in compliance with the License.
      6 # You may obtain a copy of the License at
      7 #
      8 #     http://www.apache.org/licenses/LICENSE-2.0
      9 #
     10 # Unless required by applicable law or agreed to in writing, software
     11 # distributed under the License is distributed on an "AS IS" BASIS,
     12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13 # See the License for the specific language governing permissions and
     14 # limitations under the License.
     15 #
     16 
     17 class Constant(object):
     18     """Constant values used in scripts. """
     19 
     20     # Header of the .bp files generated by scripts.
     21     BP_WARNING_HEADER = (
     22         '// This file was auto-generated. Do not edit manually.\n'
     23         '// Use launch_hal_test.py or update_makefiles.py in test/vts-testcase/hal/script/ to generate this file.\n\n')
     24     # Default path that stores the Google defined HAL interface.
     25     HAL_INTERFACE_PATH = 'hardware/interfaces'
     26     # Regular expression for HAL package names.
     27     HAL_PACKAGE_NAME_PATTERN = '(([a-zA-Z_0-9]*)(?:[.][a-zA-Z_0-9]*)*)@([0-9]+)[.]([0-9]+)'
     28     # Default package root for Google defined HAL interface.
     29     HAL_PACKAGE_PREFIX = 'android.hardware'
     30     # Default path that stores HAL traces, used for replay tests.
     31     HAL_TRACE_PATH = 'test/vts-testcase/hal-trace'
     32     # Default path for VTS test configure files.
     33     VTS_HAL_TEST_CASE_PATH = 'test/vts-testcase/hal'
     34