Exemple #1
0
def _enable_mtp(*args, **kwargs):
    """
    See usage in main method

    :return: None
    """
    device = Device(test_conf['device_id'])
    device.switch_mtp(exp_mtp=True)
Exemple #2
0
def _switch_mtp(*args, **kwargs):
    """
    See usage in main method
    :return: None
    """
    if 'loop' in kwargs.keys():
        del kwargs['loop']

    device = Device(test_conf['device_id'])
    device.switch_mtp(*args, **kwargs)
Exemple #3
0
def initiate_device():
    """
    Initiate device, like set screen, enable mtp

    :return: None
    """
    tc_logger.info('==>Start to initiate devices')
    device = Device(test_conf['device_id'])
    device.root_device()
    device.verify_hdmi_connection()
    device.set_screen()
    device.switch_mtp(True)