<s> '''<STR_LIT>''' <EOL> import re <EOL> import sys <EOL> import os <EOL> try : <EOL> sys . path . append ( os . path . join ( os . environ [ '<STR_LIT>' ] , '<STR_LIT:src>' ) ) <EOL> except : <EOL> pass <EOL> from com . dtmilano . android . viewclient import ViewClient <EOL> VPS = "<STR_LIT>" <EOL> USE_BROWSER = True <EOL> if USE_BROWSER : <EOL> package = '<STR_LIT>' <EOL> activity = '<STR_LIT>' <EOL> _id = '<STR_LIT>' <EOL> else : <EOL> package = '<STR_LIT>' <EOL> activity = '<STR_LIT>' <EOL> _id = '<STR_LIT>' <EOL> component = package + "<STR_LIT:/>" + activity <EOL> uri = '<STR_LIT>' <EOL> device , serialno = ViewClient . connectToDeviceOrExit ( ) <EOL> device . startActivity ( component = component , uri = uri ) <EOL> ViewClient . sleep ( <NUM_LIT:5> ) <EOL> vc = ViewClient ( device = device , serialno = serialno ) <EOL> sdkVersion = vc . getSdkVersion ( ) <EOL> if sdkVersion > <NUM_LIT:10> : <EOL> device . drag ( ( <NUM_LIT> , <NUM_LIT> ) , ( <NUM_LIT> , <NUM_LIT> ) , <NUM_LIT:1> , <NUM_LIT:20> ) <EOL> else : <EOL> for i in range ( <NUM_LIT:10> ) : <EOL> device . press ( '<STR_LIT>' ) <EOL> ViewClient . sleep ( <NUM_LIT:1> ) <EOL> vc . findViewByIdOrRaise ( _id if sdkVersion >= <NUM_LIT:16> else '<STR_LIT>' if sdkVersion > <NUM_LIT:10> else '<STR_LIT>' ) . touch ( ) <EOL> ViewClient . sleep ( <NUM_LIT:1> ) <EOL> device . press ( '<STR_LIT>' ) <EOL> device . type ( VPS ) <EOL> ViewClient . sleep ( <NUM_LIT:1> ) <EOL> device . press ( '<STR_LIT>' ) <EOL> ViewClient . sleep ( <NUM_LIT:3> ) <EOL> vc . dump ( ) <EOL> print vc . findViewByIdOrRaise ( '<STR_LIT>' if sdkVersion >= <NUM_LIT:16> else '<STR_LIT>' ) . getText ( ) . replace ( '<STR_LIT>' , "<STR_LIT:\n>" ) <EOL> device . press ( '<STR_LIT>' if sdkVersion > <NUM_LIT:10> else '<STR_LIT>' ) </s>
