Exemplo n.º 1
0
    def __init__(self, device):
        """
        Initializes this instance.

        :type device: Device
        :param device: The DUT
        """
        IAndroidPackage.__init__(self, device)
        self._path_ref = os.path.join("BENCHMARKS", "CAFFEINEMARK")
        self.is_lower_better = False
        self.__device = device
        self.__cpt_cap = 0
        self._phonesystem = device.get_uecmd("PhoneSystem")
        self._result = None
        self.__screenshot = None
        self.__res_file = None
        self._results = {
            "score": [],
            "sieve": [],
            "loop": [],
            "logic": [],
            "string": [],
            "float": [],
            "method": []
        }
Exemplo n.º 2
0
    def __init__(self, device):
        """
        Initializes this instance.

        @type device: Device
        @param device: The DUT
        """
        IAndroidPackage.__init__(self, device)
        self._path_ref = os.path.join("BENCHMARKS", "RLBENCHMARK")
        self.is_lower_better = True
        self.__pattern = ".*=\"%s\" value=\"(?P<result>[0-9\.]+)\".*"
        self._results = {
            "test1": [],
            "test2": [],
            "test3": [],
            "test4": [],
            "test5": [],
            "test6": [],
            "test7": [],
            "test8": [],
            "test9": [],
            "test10": [],
            "test11": [],
            "test12": [],
            "test13": [],
            "overall": []
        }
Exemplo n.º 3
0
    def __init__(self, device):
        """
        Initializes this instance.

        Nothing to be done in abstract class.
        """
        IAndroidPackage.__init__(self, device)
Exemplo n.º 4
0
    def __init__(self, device):
        """
        Initializes this instance.

        @type device: Device
        @param device: The DUT
        """
        IAndroidPackage.__init__(self, device)
        self._path_ref = os.path.join("BENCHMARKS", "CFBENCHMARK")
        self.is_lower_better = False
        self.__pattern = ".*=\"%s\">(?P<result>[0-9\.]+).*<.*"
        self._results = {
            "native_memory_read": [],
            "java_msflops": [],
            "native_disk_read": [],
            "native_score": [],
            "java_efficiency_memory_read": [],
            "native_mips": [],
            "native_mdflops": [],
            "java_score": [],
            "native_memory_write": [],
            "java_memory_write": [],
            "native_mallocs": [],
            "native_msflops": [],
            "java_mips": [],
            "java_efficiency_mdflops": [],
            "overall_score": [],
            "java_memory_read": [],
            "java_efficiency_memory_write": [],
            "java_efficiency_mips": [],
            "java_efficiency_msflops": []
        }
Exemplo n.º 5
0
    def __init__(self, device):
        """
        Initializes this instance.

        :type device: Device
        :param device: The DUT
        """
        IAndroidPackage.__init__(self, device)
        self.is_lower_better = False
        self.__attempt = 1
        self._path_ref = os.path.join("BENCHMARKS", "ANTUTU")
        self.__data_path = "/data/data/com.antutu.ABenchMark"
        self.__pattern = "AnTuTuBenchmarkScore:\s*%s\s*:\s*"
        self._results = {
            "memory": [],
            "integer": [],
            "float": [],
            "2d": [],
            "3d": [],
            "database": [],
            "sdwrite": [],
            "sdread": [],
            "score": []
        }
        self._result_v4 = {
            "memory": [],
            "integer": [],
            "float": [],
            "2d": [],
            "3d": [],
            "database": [],
            "score": [],
            "multitask": [],
            "ram": [],
            "dalvik": [],
            "renderscript": [],
            "storage": []
        }
        self._result_v5 = {
            "memory": [],
            "integer": [],
            "float": [],
            "2d": [],
            "3d": [],
            "database": [],
            "multitask": [],
            "score": [],
            "integersingle": [],
            "floatsingle": [],
            "dalvik": [],
            "renderscript": [],
            "storage": [],
            "ram": []
        }

        self.__available_tests = [
            "CPU_MEMORY", "2D", "3D", "DATABASE_IO", "SDCARD_IO", None
        ]
        self.__run_num = 0
Exemplo n.º 6
0
 def __init__(self, device):
     """
     Initializes this instance.
     @type device: Device
     @param device: The DUT
     """
     IAndroidPackage.__init__(self, device)
     self._path_ref = os.path.join("BENCHMARKS", "GEEKBENCH")
     self.__device = device
     self.__count = 0
Exemplo n.º 7
0
    def __init__(self, device):
        """
        Initializes this instance.

        :type device: Device
        :param device: The DUT
        """
        IAndroidPackage.__init__(self, device)
        self._path_ref = os.path.join("BENCHMARKS", "BENCHMARKPI")
        self.is_lower_better = True
        self.__run_no = 0
        self._results = {"score": []}
Exemplo n.º 8
0
    def __init__(self, device):
        """
        Initializes this instance.

        :type device: Device
        :param device: The DUT
        """

        IAndroidPackage.__init__(self, device)
        self._results = {"score": []}
        self.__device = device
        self._result = None
Exemplo n.º 9
0
    def __init__(self, device):
        """
        Initializes this instance.

        :type device: Device
        :param device: The DUT
        """
        IAndroidPackage.__init__(self, device)
        self._path_ref = os.path.join("BENCHMARKS", "SMARTBENCH")
        self._results = {"score": []}
        self.__device = device
        self._benchType = None
        self._result = None
Exemplo n.º 10
0
    def __init__(self, device):
        """
        Initializes this instance.

        :type device: Device
        :param device: The DUT
        """
        IAndroidPackage.__init__(self, device)
        self._path_ref = os.path.join("BENCHMARKS", "0XBENCH")
        self.is_lower_better = False

        self.__pattern = "Benchmark: XML:"
        self._results = {"score": []}
Exemplo n.º 11
0
    def __init__(self, device):
        """
        Initializes this instance.

        @type device: Device
        @param device: The DUT
        """
        IAndroidPackage.__init__(self, device)
        self._path_ref = os.path.join("BENCHMARKS", "SMARTBENCH")
        self.is_lower_better = False
        self.__pattern = "value%s=(?P<result>\d+)"
        self.__end_log = "SBGLJellyfish:onStop()"
        self._results = {"Prod": [], "Game": []}
Exemplo n.º 12
0
    def __init__(self, device):
        """
        Initializes this instance.

        @type device: Device
        @param device: The DUT
        """

        IAndroidPackage.__init__(self, device)
        self._path_ref = os.path.join("BENCHMARKS", "ANDEBENCH")
        self.is_lower_better = False
        self.__pattern = "AndEMark\s*%s\s*\d*.\d*\s*:\s*"
        self._results = {"score": []}
        self.__available_tests = ["JAVA", "NATIVE"]
Exemplo n.º 13
0
    def __init__(self, device):
        """
        Initializes this instance.

        :type device: Device
        :param device: The DUT
        """
        IAndroidPackage.__init__(self, device)
        self._path_ref = os.path.join("BENCHMARKS", "GLBENCHMARK")
        self.is_lower_better = False

        self._run_no = 0
        self._results = {"score": []}

        self.__data_path = None
        self.__drive_version = None
        self.__version = None
        self.__selected_tests_xml = None
        self.__main_menu = None
        self.__result_file = None

        self.__tests = {}
        self.__report_path = None
        self.__glb_start_command = [
            "move_home", "dpad_center", "dpad_right", "enter"
        ]
        self.__regex_test_result = "FinishCurrentTest.*\(.*frames\s(?P<result>[\d]*).*FPS"
        self.__test_name = None
        self.__test_dic = {
            "glbenchmark21": {
                "EgyptStandard": "Egypt_Standard",
                "EgyptOffScreen": "Egypt_OffScreen",
                "ProStandard": "Pro_Standard",
                "ProOffScreen": "Pro_OffScreen"
            },
            "glbenchmark25": {
                "EgyptHD": "EgyptHD_C24Z16_ETC1",
                "EgyptHDOffScreen": "EgyptHD_C24Z16_ETC1_OffScreen",
                "EgyptStandard": "EgyptHD_C16Z16_ETC1",
                "EgyptOffScreen": "EgyptHD_C16Z16_ETC1_OffScreen"
            },
            "glbenchmark27": {
                "TRexHD": "TRexHD_C24Z16_ETC1_OnScreen",
                "TRexHDOffScreen": "TRexHD_C24Z16_ETC1_OffScreen",
                "EgyptHD": "EgyptHD_C24Z16_OnScreen",
                "EgyptHDOffScreen": "EgyptHD_C24Z16_OffScreen"
            }
        }
Exemplo n.º 14
0
    def __init__(self, device):
        """
        Initializes this instance.

        Nothing to be done in abstract class.
        """
        IAndroidPackage.__init__(self, device)
        self._path_ref = os.path.join("BENCHMARKS", "BASEMARK")
        self.is_lower_better = False

        self.__disable_egl = False
        self._result = None
        self.__basemark_test = None
        self.__score = None
        self.__tests = ["TAIJI", "HOVERJET"]
        self._results = {"score": []}
        self.__app_log = "/sdcard/rightware/basemarkes2v1/fm_mobile_app_log.txt"
Exemplo n.º 15
0
    def __init__(self, device):
        """
        Initializes this instance.

        @type device: Device
        @param device: The DUT
        """
        IAndroidPackage.__init__(self, device)
        self.is_lower_better = False
        self.__count = 0
        self.html5_cords = 0
        self.__device = device
        self.TIMEOUT = 10
        self.__pattern = ".*=\"%s\" value=\"(?P<result>[0-9\.]+)\".*"
        self._results = {"chapter-html5-score": []}
        self.result_file_name = "/data/data/com.quicinc.vellamo/shared_prefs/v2sp.xml"
        self._path_ref = os.path.join("BENCHMARKS", "VELLAMO")
Exemplo n.º 16
0
    def __init__(self, device):
        """
        Initializes this instance.

        :type device: Device
        :param device: The DUT
        """
        IAndroidPackage.__init__(self, device)
        self._path_ref = os.path.join("BENCHMARKS", "QUADRANT")
        self.is_lower_better = False

        self.__pattern = ".* %s aggregate score is (?P<result>\d+)"
        self._result = {}

        self.__aggregate_score = {
            "cpu": [],
            "memory": [],
            "io": [],
            "g2d": [],
            "g3d": [],
            "score": []
        }

        self.__subscore_pattern = ".* %s executed .*, reference .*, score: (?P<score>\d+)"
        self.__subscores = {
            "cpu_branching_logic": [],
            "cpu_matrix_int": [],
            "cpu_matrix_long": [],
            "cpu_matrix_short": [],
            "cpu_matrix_byte": [],
            "cpu_matrix_float": [],
            "cpu_matrix_double": [],
            "cpu_checksum": [],
            "io_fs_write": [],
            "io_fs_read": [],
            "io_db_write": [],
            "io_db_read": [],
            "g2d_fractal": [],
            "g3d_corridor": [],
            "g3d_planet": [],
            "g3d_dna": []
        }
Exemplo n.º 17
0
    def __init__(self, device):
        """
        Initializes this instance.

        @type device: Device
        @param device: The DUT
        """
        IAndroidPackage.__init__(self, device)
        self._path_ref = os.path.join("BENCHMARKS", "3DMARK")
        self.is_lower_better = False
        self.__pattern = "%s&quot;:&quot;([0-9.]+)"
        self._results = {
            "gt1_fps": [],
            "demo_fps": [],
            "score": [],
            "physics_score": [],
            "graphics_score": [],
            "physics_fps": [],
            "gt2_fps": []
        }
        self.__device = device
        self.result_file_name = "/data/data/com.futuremark.dmandroid.application/shared_prefs/activity.ResultsActivity.xml"