Home | History | Annotate | Download | only in hierarchyviewer

Lines Matching refs:device

20 import com.android.hierarchyviewer.device.Window;
23 import com.android.hierarchyviewer.device.DeviceBridge;
71 for (IDevice device : DeviceBridge.getDevices()) {
72 printDevice(device);
77 private static void printDevice(IDevice device) {
78 System.out.println(device.toString() + "\t\t" +
79 (device.isEmulator() ? "emulator" : "device"));
83 IDevice device = selectDevice(deviceName);
84 if (device != null) {
85 if (DeviceBridge.isViewServerRunning(device)) {
86 DeviceBridge.stopViewServer(device);
88 DeviceBridge.startViewServer(device);
89 DeviceBridge.setupDeviceForward(device);
91 CaptureLoader.saveLayers(device, Window.FOCUSED_WINDOW, new File(file));
93 System.out.println("The selected device does not exist");
106 for (IDevice device : DeviceBridge.getDevices()) {
107 if (device.getSerialNumber().equalsIgnoreCase(deviceName)) {
108 return device;
126 System.out.println(" --psd [device] <file>\t Export psd and exit");
138 String device = null;
141 device = args[++i];
146 outputPsd(device, file);