<s> import os <EOL> from wlauto import AndroidUiAutoBenchmark , Parameter <EOL> import wlauto . common . android . resources <EOL> class Videostreaming ( AndroidUiAutoBenchmark ) : <EOL> name = '<STR_LIT>' <EOL> description = """<STR_LIT>""" <EOL> name = '<STR_LIT>' <EOL> package = '<STR_LIT>' <EOL> activity = '<STR_LIT>' <EOL> parameters = [ <EOL> Parameter ( '<STR_LIT>' , kind = str , <EOL> description = '<STR_LIT>' ) , <EOL> Parameter ( '<STR_LIT>' , kind = str , default = '<STR_LIT>' , allowed_values = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] , <EOL> description = '<STR_LIT>' <EOL> '<STR_LIT>' ) , <EOL> Parameter ( '<STR_LIT>' , kind = int , default = <NUM_LIT:20> , <EOL> description = """<STR_LIT>""" ) , <EOL> Parameter ( '<STR_LIT>' , kind = int , default = <NUM_LIT:3> , <EOL> description = """<STR_LIT>""" ) , <EOL> Parameter ( '<STR_LIT>' , kind = int , default = <NUM_LIT:200> , <EOL> description = '<STR_LIT>' ) , <EOL> ] <EOL> def init_resources ( self , context ) : <EOL> self . uiauto_params [ '<STR_LIT>' ] = self . tolerance <EOL> self . uiauto_params [ '<STR_LIT>' ] = self . sampling_interval <EOL> if self . video_name and self . video_name != "<STR_LIT>" : <EOL> self . uiauto_params [ '<STR_LIT>' ] = self . video_name . replace ( "<STR_LIT:U+0020>" , "<STR_LIT>" ) <EOL> else : <EOL> self . uiauto_params [ '<STR_LIT>' ] = "<STR_LIT>" . format ( self . resolution ) . replace ( "<STR_LIT:U+0020>" , "<STR_LIT>" ) <EOL> self . apk_file = context . resolver . get ( wlauto . common . android . resources . ApkFile ( self ) ) <EOL> self . uiauto_file = context . resolver . get ( wlauto . common . android . resources . JarFile ( self ) ) <EOL> self . device_uiauto_file = self . device . path . join ( self . device . working_directory , <EOL> os . path . basename ( self . uiauto_file ) ) <EOL> if not self . uiauto_package : <EOL> self . uiauto_package = os . path . splitext ( os . path . basename ( self . uiauto_file ) ) [ <NUM_LIT:0> ] </s>
