• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# SPDX-License-Identifier: Apache-2.0
2#
3# Copyright (C) 2015, ARM Limited and contributors.
4#
5# Licensed under the Apache License, Version 2.0 (the "License"); you may
6# not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17
18"""Initialization for Android module"""
19
20from screen import Screen
21from system import System
22from workload import Workload
23from benchmark import LisaBenchmark
24
25# Initialization of Android Workloads
26import os
27import sys
28
29from glob import glob
30from importlib import import_module
31
32# Add workloads dir to system path
33workloads_dir = os.path.dirname(os.path.abspath(__file__))
34workloads_dir = os.path.join(workloads_dir, 'workloads')
35sys.path.insert(0, workloads_dir)
36
37for filepath in glob(os.path.join(workloads_dir, '*.py')):
38    filename = os.path.splitext(os.path.basename(filepath))[0]
39    # Ignore __init__ files
40    if filename.startswith('__'):
41        continue
42    # Import workload module
43    import_module(filename)
44