Did I find the right examples for you? yes no

All Samples(23)  |  Call(18)  |  Derive(1)  |  Import(4)
Implementation of DeviceManager interface that uses the Android "adb"
utility to communicate with the device. Normally used to communicate
with a device that is directly connected with the host machine over a USB
port.

src/m/a/marionette_client-0.7.7/marionette/runner/mixins/b2g.py   marionette_client(Download)
def get_dm(marionette=None,**kwargs):
    dm_type = os.environ.get('DM_TRANS', 'adb')
    if marionette and marionette.emulator:
        adb_path = marionette.emulator.b2g.adb_path
        return mozdevice.DeviceManagerADB(adbPath=adb_path,
                                          deviceSerial='emulator-%d' % marionette.emulator.port,
                                          **kwargs)
    elif marionette and marionette.device_serial and dm_type == 'adb':
        return mozdevice.DeviceManagerADB(deviceSerial=marionette.device_serial,
    else:
        if dm_type == 'adb':
            return mozdevice.DeviceManagerADB(**kwargs)
        elif dm_type == 'sut':
            host = os.environ.get('TEST_DEVICE')

src/m/a/marionette_client-0.7.7/marionette/b2ginstance.py   marionette_client(Download)
 
from b2gbuild import B2GBuild
from mozdevice import DeviceManagerADB
import mozcrash
 
    def dm(self):
        if not self._dm:
            self._dm = DeviceManagerADB(adbPath=self.adb_path)
        return self._dm
 

src/f/x/fxos_appgen-0.2.6/fxos_appgen/generator.py   fxos_appgen(Download)
def uninstall_app(app_name, adb_path=None, script_timeout=5000):
    dm = None
    if adb_path:
        dm = mozdevice.DeviceManagerADB(adbPath=adb_path)
    else:
        dm = mozdevice.DeviceManagerADB()
def install_app(app_name, app_path, adb_path=None, script_timeout=5000):
    dm = None
    if adb_path:
        dm = mozdevice.DeviceManagerADB(adbPath=adb_path)
    else:
        dm = mozdevice.DeviceManagerADB()

src/w/p/wptrunner-0.2.5/wptrunner/device_setup/device_setup.py   wptrunner(Download)
def main(options):
    print "Setting up CertTest app to device"
    dm = None
    if options.adb_path:
        dm = mozdevice.DeviceManagerADB(adbPath=options.adb_path)
    else:
        dm = mozdevice.DeviceManagerADB()

src/a/d/ADBFuzz-HEAD/adbfuzz.py   ADBFuzz(Download)
from ConfigParser import SafeConfigParser
 
from mozdevice import DeviceManagerADB
 
from adbfuzzconfig import ADBFuzzConfig
  def deploy(self, packageFile, prefFile):
    self.dm = DeviceManagerADB(self.config.remoteAddr, 5555)
 
    # Install a signal handler that shuts down our external programs on SIGINT
    signal.signal(signal.SIGINT, self.signal_handler)
  def reset(self, prefFile):
    self.dm = DeviceManagerADB(self.config.remoteAddr, 5555)
 
    # Install a signal handler that shuts down our external programs on SIGINT
    signal.signal(signal.SIGINT, self.signal_handler)
  def remoteInit(self):
    if (self.remoteInitialized != None):
      return
 
    self.dm = DeviceManagerADB(self.config.remoteAddr, 5555)

src/m/o/mozb2g-0.4/mozb2g/b2gmixin.py   mozb2g(Download)
 
from marionette import Marionette
from mozdevice import DeviceManagerADB, DeviceManagerSUT, DMError
import mozfile
 
class DeviceADB(DeviceManagerADB, B2GMixin):
    def __init__(self, **kwargs):
        DeviceManagerADB.__init__(self, **kwargs)
        B2GMixin.__init__(self, **kwargs)
 

src/m/o/mozversion-0.4/mozversion/mozversion.py   mozversion(Download)
    def __init__(self, sources=None, dm_type='adb', host=None, **kwargs):
        B2GVersion.__init__(self, sources, **kwargs)
 
        if dm_type == 'adb':
            dm = mozdevice.DeviceManagerADB()

src/w/p/wptrunner-0.2.5/wptrunner/browser.py   wptrunner(Download)
    def __init__(self, logger, prefs_root):
        Browser.__init__(self, logger)
        logger.info("Waiting for device")
        subprocess.call(["adb", "wait-for-device"])
        self.device = mozdevice.DeviceManagerADB()

src/b/2/b2gperf-0.25/b2gperf/b2gperf.py   b2gperf(Download)
 
        self.device = gaiatest.GaiaDevice(self.marionette)
        dm = mozdevice.DeviceManagerADB()
        self.device.add_device_manager(dm)
 

src/b/2/b2gpopulate-0.22/b2gpopulate/b2gpopulate.py   b2gpopulate(Download)
    def __init__(self, marionette, log_level='INFO', start_timeout=60):
        self.marionette = marionette
        self.data_layer = GaiaData(self.marionette)
        self.device = GaiaDevice(self.marionette)
        dm = mozdevice.DeviceManagerADB()

  1 | 2  Next