Examples of DeviceInfo


Examples of com.google.gdt.eclipse.designer.mobile.device.model.DeviceInfo

      {
        addDevice(category, "devA", "a");
        addDevice(category, "devB", "b");
      }
      // has expected order
      DeviceInfo deviceA = DeviceManager.getDevice("devA");
      DeviceInfo deviceB = DeviceManager.getDevice("devB");
      assertEquals(devices.indexOf(deviceA), devices.indexOf(deviceB) - 1);
      // do move
      DeviceManager.commandsAdd(new DeviceMoveCommand(deviceB, category, deviceA));
      // new order
      assertEquals(devices.indexOf(deviceB), devices.indexOf(deviceA) - 1);
    }
    // reload
    DeviceManager.commandsWrite();
    DeviceManager.forceReload();
    // still has expected order
    {
      CategoryInfo category = DeviceManager.getCategories().get(0);
      List<DeviceInfo> devices = category.getDevices();
      DeviceInfo deviceA = DeviceManager.getDevice("devA");
      DeviceInfo deviceB = DeviceManager.getDevice("devB");
      assertEquals(devices.indexOf(deviceB), devices.indexOf(deviceA) - 1);
    }
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.mobile.device.model.DeviceInfo

      {
        addDevice(category, "devA", "a");
        addDevice(category, "devB", "b");
      }
      // has expected order
      DeviceInfo deviceA = DeviceManager.getDevice("devA");
      assertEquals(devices.indexOf(deviceA), devices.size() - 2);
      // do move
      DeviceManager.commandsAdd(new DeviceMoveCommand(deviceA, category, null));
      // new order
      assertEquals(devices.indexOf(deviceA), devices.size() - 1);
    }
    // reload
    DeviceManager.commandsWrite();
    DeviceManager.forceReload();
    // still has expected order
    {
      CategoryInfo category = DeviceManager.getCategories().get(0);
      List<DeviceInfo> devices = category.getDevices();
      DeviceInfo deviceA = DeviceManager.getDevice("devA");
      assertEquals(devices.indexOf(deviceA), devices.size() - 1);
    }
  }
View Full Code Here

Examples of org.dcm4che3.net.DeviceInfo

        ArrayList<DeviceInfo> results = new ArrayList<DeviceInfo>();
        try {
            Preferences devicePrefs = rootPrefs.node(DICOM_DEVICES_ROOT);
            for (String deviceName : devicePrefs.childrenNames()) {
                Preferences deviceNode = devicePrefs.node(deviceName);
                DeviceInfo deviceInfo = new DeviceInfo();
                deviceInfo.setDeviceName(deviceName);
                loadFrom(deviceInfo, deviceNode);
                if (match(deviceInfo, keys))
                    results.add(deviceInfo);
            }
        } catch (BackingStoreException e) {
View Full Code Here

Examples of org.dcm4che3.net.DeviceInfo

                "dicomInstitutionName",
                "dicomInstitutionDepartmentName",
                "dicomPrimaryDeviceType",
                "dicomInstalled");
            while (ne.hasMore()) {
                DeviceInfo deviceInfo = new DeviceInfo();
                loadFrom(deviceInfo, ne.next().getAttributes());
                results.add(deviceInfo);
            }
        } catch (NamingException e) {
            throw new ConfigurationException(e);
View Full Code Here

Examples of org.dcm4che3.net.DeviceInfo

        } catch (ConfigurationAlreadyExistsException e) {}
        config.removeDevice("Test-Device-1");
    }

    private DeviceInfo deviceInfo(String deviceName) {
        DeviceInfo keys =  new DeviceInfo();
        keys.setDeviceName(deviceName);
        return keys;
    }
View Full Code Here

Examples of org.dcm4che3.net.DeviceInfo

        } catch (ConfigurationAlreadyExistsException e) {}
        config.removeDevice("Test-Device-1");
    }

    private DeviceInfo deviceInfo(String deviceName) {
        DeviceInfo keys =  new DeviceInfo();
        keys.setDeviceName(deviceName);
        return keys;
    }
View Full Code Here

Examples of org.libimobiledevice.ios.driver.binding.model.DeviceInfo

      return;
    }
    RealDevice d = null;
    try {
      IOSDevice device = DeviceService.get(uuid);
      DeviceInfo info = new DeviceInfo(uuid);
      d = new RealDevice(info);
      log.info("new device detected (" + uuid + ") " + info.getDeviceName());
      reals.add(d);
      InstallerService s = new InstallerService(device);
      String id = "com.apple.mobilesafari";
      ApplicationInfo safari = s.getApplication(id);
      String v = (String) safari.getProperty("CFBundleVersion");
      log.info("device " + info.getDeviceName() + " = safari " + v);

      IPAShellApplication ipa = new IPAShellApplication(id, v, safari);
      apps.add(ipa);

      InformationService i = new InformationService(device);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.