telemetry.internal.backends.mandoline.android | index telemetry/internal/backends/mandoline/android.py

`# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.`

Modules
`` |  |
devil.android.apk_helper atexit devil.base_error pylib.constants | devil.android.device_errors devil.android.device_utils logging os | signal subprocess sys threading | time

Classes
`` |  | __builtin__.object AndroidShell
class AndroidShell(__builtin__.object)
`` | `Used to set up and run a given mojo shell binary on an Android device. |config| is the mopy.config.Config for the build.`
| Methods defined here: InitShell(self, device=None) `Runs adb as root, and installs the apk as needed. |device| is the target device to run on, if multiple devices are connected. Returns 0 on success or a non-zero exit code on a terminal failure.` ShowLogs(self, stdout=<open file '<stdout>', mode 'w'>) `Displays the mojo shell logs and returns the process reading the logs.` StartActivity(self, activity_name, arguments, stdout, on_fifo_closed, temp_gdb_dir=None) `Starts the shell with the given |arguments|, directing output to |stdout|. |on_fifo_closed| will be run if the FIFO can't be found or when it's closed. |temp_gdb_dir| is set to a location with appropriate symlinks for gdb to find when attached to the device's remote process on startup.` __init__(self, config, chrome_root) kill(self) `Stops the mojo shell; matches the Popen.kill method signature.` Data descriptors defined here: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)`

Data
`` |  | LOGCAT_TAGS = ['AndroidHandler', 'MojoFileHelper', 'MojoMain', 'MojoShellActivity', 'MojoShellApplication', 'chromium'] MAPPING_PREFIX = '--map-origin='