<s> import time <EOL> from wlauto import AndroidDevice , Parameter <EOL> from wlauto . exceptions import TimeoutError <EOL> from wlauto . utils . android import adb_shell <EOL> class Note3Device ( AndroidDevice ) : <EOL> name = '<STR_LIT>' <EOL> description = """<STR_LIT>""" <EOL> parameters = [ <EOL> Parameter ( '<STR_LIT>' , default = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] , override = True ) , <EOL> Parameter ( '<STR_LIT>' , default = [ <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ] , override = True ) , <EOL> Parameter ( '<STR_LIT>' , default = '<STR_LIT>' , override = True ) , <EOL> ] <EOL> def __init__ ( self , ** kwargs ) : <EOL> super ( Note3Device , self ) . __init__ ( ** kwargs ) <EOL> self . _just_rebooted = False <EOL> def initialize ( self , context ) : <EOL> self . execute ( '<STR_LIT>' , check_exit_code = False ) <EOL> def reset ( self ) : <EOL> super ( Note3Device , self ) . reset ( ) <EOL> self . _just_rebooted = True <EOL> def hard_reset ( self ) : <EOL> super ( Note3Device , self ) . hard_reset ( ) <EOL> self . _just_rebooted = True <EOL> def connect ( self ) : <EOL> super ( Note3Device , self ) . connect ( ) <EOL> if self . _just_rebooted : <EOL> self . logger . debug ( '<STR_LIT>' ) <EOL> try : <EOL> adb_shell ( self . adb_name , '<STR_LIT>' , timeout = <NUM_LIT:20> ) <EOL> time . sleep ( <NUM_LIT:5> ) <EOL> except TimeoutError : <EOL> pass <EOL> self . logger . debug ( '<STR_LIT>' ) <EOL> self . _just_rebooted = False <EOL> time . sleep ( self . long_delay ) <EOL> self . execute ( '<STR_LIT>' ) </s>
