Beispiel #1
0
    def __init__(self, device):
        """
        Initializes this instance.

        :type device: Device
        :param device: The DUT
        """
        IApplication.__init__(self, device)

        self._wifi_router = None
        self._ssid = None
        self._passphrase = None
        self._security = None
        self._browser_cache_dir = None
        self._results = None
        self._wait_btwn_cmd = None
        self._browser = "native"
        self._browsername = None
        self._logcat_pattern = None
        self._display_orientation = False
        self.__url = None
        self._parameters = {}

        self._sw_release = device.get_sw_release()
        self._model_number = device.get_model_number()
        self._kernel_version = device.get_kernel_version()
        self._fw_version = device.get_fw_version()
        self._device_id = device.get_device_id()
Beispiel #2
0
    def __init__(self, device):
        """
        Initializes this instance.

        @type device: Device
        @param device: The DUT
        """
        IApplication.__init__(self, device)

        self.is_lower_better = True
        self.__pattern = "\[\s*(?P<result>\d*\.\d*)\].*bootanim.exit"
        self.__pattern2 = ".*Boot animation finished.*"
        self.__subscore_pattern = ".*boot_progress_%s.*\s(?P<score>\d+)"
        self._results = {"score": []}
        self.__subscores = {
            "start": [],
            "preload_start": [],
            "preload_end": [],
            "system_run": [],
            "pms_start": [],
            "pms_system_scan_start": [],
            "pms_data_scan_start": [],
            "pms_scan_end": [],
            "pms_ready": [],
            "ams_ready": [],
            "enable_screen": []
        }

        self.__match = None
        self.start_cold_boot = 0
        self.end_cold_boot = 0
Beispiel #3
0
    def __init__(self, device):
        """
        Initializes this instance.

        :type device: Device
        :param device: The DUT
        """
        IApplication.__init__(self, device)
Beispiel #4
0
    def __init__(self, device):
        """
        Initializes this instance.

        :type device: Device
        :param device: The DUT
        """
        IApplication.__init__(self, device)
        self.__app_name = None
        self.__launcher = None
        self.__version = None
Beispiel #5
0
    def __init__(self, device):
        """
        Initializes this instance.

        :type device: Device
        :param device: The DUT
        """
        IApplication.__init__(self, device)

        self.__binary_file = "/data/%s" % self._benchmark_name
        self.__shell_file = "/data/%s.sh" % self._benchmark_name
        self._result_file = "/data/result_%s.txt" % self._benchmark_name
        self._command = "./%s" % self._benchmark_name
Beispiel #6
0
    def __init__(self, device):
        """
        Initializes this instance.

        :type device: Device
        :param device: The DUT
        """
        IApplication.__init__(self, device)
        self._camera = None
        self._camera_name = "camera"
        self._arguments = None
        self._capture_number = None
        self._sleep_time_between_capture = None
        self._flash_mode = None
        self._screen_mode = None
        self._execution_file = None
        self._device = device
        self.__umic_report_path = None
        self.__um_capture_pid = None