Пример #1
0
def play_cc():
    adb_common.apk_inst_chk('CC')
    adb_common.start_app(vars.apks['CC']['package'] + '/' +
                         vars.apks['CC']['launch'])
    adb_common.android_wait("30")
    adb_common.press("335", "555")
    adb_common.android_wait("5")
    adb_common.press("292", "773")
    adb_common.android_wait("5")
    adb_common.press("361", "651")
    adb_common.android_wait("5")
    adb_common.swipe("459", "475", "330", "469")
    adb_common.android_wait("1")
    adb_common.swipe("328", "534", "325", "629")
    adb_common.android_wait("1")
    adb_common.swipe("377", "334", "519", "347")
    adb_common.android_wait("1")
    adb_common.swipe("208", "402", "231", "338")
    adb_common.android_wait("1")
    adb_common.swipe("255", "401", "260", "497")
    adb_common.android_wait("1")
    adb_common.swipe("265", "544", "266", "540")
    adb_common.android_wait("1")
    adb_common.swipe("326", "481", "403", "488")
    adb_common.home()
Пример #2
0
def use_fb():
    adb_common.apk_inst_chk('facebook')
    adb_common.start_app(vars.apks['facebook']['package'] + '/' +
                         vars.apks['facebook']['launch'])
    adb_common.android_wait("6")
    adb_common.scroll()
    adb_common.scroll()
    adb_common.scroll()
    adb_common.home()
Пример #3
0
def play_tetris():
    adb_common.apk_inst_chk('Tetris')
    adb_common.start_app(vars.apks['Tetris']['package'] + '/' + vars.apks['Tetris']['launch'])
    adb_common.android_wait("4")
    adb_common.press("326", "363")
    adb_common.press("105", "469")
    adb_common.android_wait("15")
    adb_common.swipe("315", "330", "316", "501")
    adb_common.android_wait("2")
    adb_common.home()
Пример #4
0
def play_tetris():
    adb_common.apk_inst_chk('Tetris')
    adb_common.start_app(vars.apks['Tetris']['package'] + '/' +
                         vars.apks['Tetris']['launch'])
    adb_common.android_wait("4")
    adb_common.press("326", "363")
    adb_common.press("105", "469")
    adb_common.android_wait("15")
    adb_common.swipe("315", "330", "316", "501")
    adb_common.android_wait("2")
    adb_common.home()
Пример #5
0
def play_pvz():
    adb_common.apk_inst_chk('PvZ')
    adb_common.start_app(vars.apks['PvZ']['package'] + '/' + vars.apks['PvZ']['launch'])
    adb_common.android_wait("8")
    adb_common.press("312", "685")
    adb_common.press("285", "668")
    adb_common.press("262", "557")
    adb_common.press("254", "549")
    adb_common.android_wait("2")
    adb_common.apk_inst_chk('Tetris')
    adb_common.start_app(vars.apks['Tetris']['package'] + '/' + vars.apks['Tetris']['launch'])
    adb_common.android_wait("1")
    adb_common.home()
Пример #6
0
def play_cc():
    adb_common.apk_inst_chk('CC')
    adb_common.start_app(vars.apks['CC']['package'] + '/' + vars.apks['CC']['launch'])
    adb_common.android_wait("30")
    adb_common.press("335", "555")
    adb_common.android_wait("5")
    adb_common.press("292", "773")
    adb_common.android_wait("5")
    adb_common.press("361", "651")
    adb_common.android_wait("5")
    adb_common.swipe("459", "475", "330", "469")
    adb_common.android_wait("1")
    adb_common.swipe("328", "534", "325", "629")
    adb_common.android_wait("1")
    adb_common.swipe("377", "334", "519", "347")
    adb_common.android_wait("1")
    adb_common.swipe("208", "402", "231", "338")
    adb_common.android_wait("1")
    adb_common.swipe("255", "401", "260", "497")
    adb_common.android_wait("1")
    adb_common.swipe("265", "544", "266", "540")
    adb_common.android_wait("1")
    adb_common.swipe("326", "481", "403", "488")
    adb_common.home()
Пример #7
0
def inst_stat_ops():
    adb_common.apk_inst_chk('StatColl')
Пример #8
0
def inst_stat_ops():
    adb_common.apk_inst_chk('StatColl')