Ejemplo n.º 1
1
def net_monitor_setup(root_path):
    if not myadb.verify_adb_devices_connect():
        print 'Error, no adb devices connected!'
        exit(1)

    init_path_vars(root_path)
    mutils.g_create_report_dir(root_path)
Ejemplo n.º 2
0
def mem_monitor_procrank_setup():
    if not AdbUtils.verify_adb_devices_connect():
        print 'Error, no adb devices connected!'
        exit(1)

    init_path_vars(g_report_root_path)
    MUtils.g_create_report_dir(g_report_root_path)
Ejemplo n.º 3
0
def cpu_monitor_top_setup():
    if not AdbUtils.verify_adb_devices_connect():
        print 'Error, no adb devices connected!'
        exit(1)
    
    init_path_vars(g_report_root_path)
    MUtils.g_create_report_dir(g_report_root_path)
Ejemplo n.º 4
0
def dump_logcat_for_app_main(pkg_name, file_path):
    if not AdbUtils.verify_adb_devices_connect():
        print 'Error, no adb devices connected!'
        exit(1)
    
    filter_str = get_pids_filter_string(pkg_name)
    dump_logcat_by_process_id(filter_str, file_path)
Ejemplo n.º 5
0
def dump_logcat_for_app_main(pkg_name, file_path):
    if not AdbUtils.verify_adb_devices_connect():
        print 'Error, no adb devices connected!'
        exit(1)

    filter_str = get_pids_filter_string(pkg_name)
    dump_logcat_by_process_id(filter_str, file_path)
Ejemplo n.º 6
0
def pull_all_testing_logs():
    # the adb connection maybe disconnect when running the monkey
    if not AdbUtils.verify_adb_devices_connect():
        print 'Warn, no devices connected, NO files pulled!'
        return

    cmd_pull_logcat_log = 'adb pull %s %s' % (g_logcat_log_path_for_shell, g_log_dir_path_for_win)
    run_system_command(cmd_pull_logcat_log)
    cmd_pull_whitelist = 'adb pull %s %s' % (g_whitelist_file_path_for_shell, g_log_dir_path_for_win)
    run_system_command(cmd_pull_whitelist)

    run_system_command(build_command_pull_anr_file())
    run_system_command(build_command_pull_tombstone_file())
Ejemplo n.º 7
0
def mem_monitor_dumpsys_setup():
    if not AdbUtils.verify_adb_devices_connect():
        print 'No adb devices connected!'
        exit(1)
    init_path_vars(g_report_root_path)
Ejemplo n.º 8
0
def pull_captures():
    if not AdbUtils.verify_adb_devices_connect():
        print 'Warn, no devices connected, NO captures pulled!'
        return
    cmd = 'adb pull %s %s' % (g_captures_dir_path_for_shell, g_captures_dir_path_for_win)
    run_system_command(cmd)
Ejemplo n.º 9
0
def mem_monitor_dumpsys_setup():
    if not AdbUtils.verify_adb_devices_connect():
        print 'No adb devices connected!'
        exit(1)
    init_path_vars(g_report_root_path)