def __init__(self, config, device_config): """ Constructor :type phone_name: str :param phone_name: Name of the current phone(e.g. PHONE1) """ IntelDeviceBase.__init__(self, config, device_config) self.switch_on()
def __init__(self, config, logger): """ Constructor :type phone_name: string :param phone_name: Name of the current phone(e.g. PHONE1) """ IntelDeviceBase.__init__(self, config, logger) self._cellular_network_interface = self.get_config("cellularNetworkInterface", "rmnet0")
def __init__(self, config, logger): """ Constructor :type phone_name: str :param phone_name: Name of the current phone(e.g. PHONE1) """ IntelDeviceBase.__init__(self, config, logger) # Benefit of settle duration to set fastboot settle duration self._fastboot_settledown_duration = self._settledown_duration self._keyboard_emulator_sleep_between_char = 1
def __init__(self, config, logger): """ Constructor :type phone_name: str :param phone_name: Name of the current phone(e.g. PHONE1) """ IntelDeviceBase.__init__(self, config, logger) # Benefit of settle duration to set fastboot settle duration self._fastboot_settledown_duration = self._settledown_duration self._keyboard_emulator_sleep_between_char = 1 self._multiple_devices = self.config.get_value("multipleDevices", "False", "str_to_bool")
def __init__(self, config, logger): """ Constructor :type config: dict :param config: Device configuration to use :type logger: logger :param logger: Logger to use """ IntelDeviceBase.__init__(self, config, logger) self._cellular_network_interface = self.get_config( "cellularNetworkInterface", "rmnet0")
def __init__(self, config, logger): """ Constructor :type phone_name: str :param phone_name: Name of the current phone(e.g. PHONE1) """ IntelDeviceBase.__init__(self, config, logger) # Flashing configuration elements (This device class only supports OS flashing procedure) # TODO: in case of Galaxy tab "fastbootKeyCombo" does not make sense because, there is no fastboot command for this device. # But to avoid adding other new key which do the same things, we reuse it. # Rework of device flashing (in collaboration with pupdr) is planned. This key could be refactored at this time. self._pos_keycombo = self.get_config("fastbootKeyCombo")
def __init__(self, config, logger): """ Constructor :type phone_name: string :param phone_name: Name of the current phone(e.g. PHONE1) """ IntelDeviceBase.__init__(self, config, logger) self._cellular_network_interface = self.get_config("cellularNetworkInterface", "rmnet0") self._em = EquipmentManager() iocard = self.get_config("IoCard", "IO_CARD", str) self._io_card = self._em.get_io_card(iocard) self._usb_recovery_ongoing = False self.prevent_usb_plug = 5