Package com.android.ddmlib

Examples of com.android.ddmlib.AndroidDebugBridge$IDebugBridgeChangeListener


        setUserCanCancel(false);
    }

    @Override
    protected Void doInBackground() throws Exception {
        AndroidDebugBridge bridge = AndroidDebugBridge.getBridge();
        IDevice[] devices = bridge.getDevices();
        IDevice selectedDevice = null;
        String connectedDevice = mediator.getConnectedDevice();

        final String absolutePath = file.getAbsolutePath();
        final String fileName = file.getName();
View Full Code Here


  private DeviceScreenView deviceScreenView;

  public DroidEx(StartupOptions options) throws IOException {
    this.options = options;

    AndroidDebugBridge bridge = AndroidDebugBridge.createBridge();
    sleep(1000); // allow sync

    try {
      initDevice(bridge);
      initRenderSettings();
View Full Code Here

    @Override
    public void init() throws DeviceException {
        try {
            AndroidDebugBridge.initIfNeeded(false /*clientSupport*/);

            AndroidDebugBridge bridge = AndroidDebugBridge.createBridge(
                    sdkParser.getAdb().getAbsolutePath(), false /*forceNewBridge*/);

            long timeOut = 30000; // 30 sec
            int sleepTime = 1000;
            while (!bridge.hasInitialDeviceList() && timeOut > 0) {
                Thread.sleep(sleepTime);
                timeOut -= sleepTime;
            }

            if (timeOut <= 0 && !bridge.hasInitialDeviceList()) {
                throw new RuntimeException("Timeout getting device list.", null);
            }

            IDevice[] devices = bridge.getDevices();

            if (devices.length == 0) {
                throw new RuntimeException("No connected devices!", null);
            }

View Full Code Here

TOP

Related Classes of com.android.ddmlib.AndroidDebugBridge$IDebugBridgeChangeListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.