//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2012.04.20 at 10:49:37 오전 KST
+// Generated on: 2012.07.03 at 02:07:17 PM KST
//
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2012.04.20 at 10:49:37 오전 KST
+// Generated on: 2012.07.03 at 02:07:17 PM KST
//
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2012.04.20 at 10:49:37 오전 KST
+// Generated on: 2012.07.03 at 02:07:17 PM KST
//
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2012.04.20 at 10:49:37 오전 KST
+// Generated on: 2012.07.03 at 02:07:17 PM KST
//
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2012.04.20 at 10:49:37 오전 KST
+// Generated on: 2012.07.03 at 02:07:17 PM KST
//
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2012.04.20 at 10:49:37 오전 KST
+// Generated on: 2012.07.03 at 02:07:17 PM KST
//
}
/**
- * Create an instance of {@link UsabilityType }
+ * Create an instance of {@link EmulatorConfiguration }
*
*/
- public UsabilityType createUsabilityType() {
- return new UsabilityType();
+ public EmulatorConfiguration createEmulatorConfiguration() {
+ return new EmulatorConfiguration();
}
/**
}
/**
- * Create an instance of {@link DiskImageFormatType }
+ * Create an instance of {@link TouchType }
*
*/
- public DiskImageFormatType createDiskImageFormatType() {
- return new DiskImageFormatType();
+ public TouchType createTouchType() {
+ return new TouchType();
}
/**
- * Create an instance of {@link BaseInformationType.DiskImage }
+ * Create an instance of {@link SkinType }
*
*/
- public BaseInformationType.DiskImage createBaseInformationTypeDiskImage() {
- return new BaseInformationType.DiskImage();
+ public SkinType createSkinType() {
+ return new SkinType();
}
/**
- * Create an instance of {@link UsabilityType.Logging }
+ * Create an instance of {@link DeviceType }
*
*/
- public UsabilityType.Logging createUsabilityTypeLogging() {
- return new UsabilityType.Logging();
+ public DeviceType createDeviceType() {
+ return new DeviceType();
}
/**
- * Create an instance of {@link RamType.Size }
+ * Create an instance of {@link BaseInformationType.DiskImage }
*
*/
- public RamType.Size createRamTypeSize() {
- return new RamType.Size();
+ public BaseInformationType.DiskImage createBaseInformationTypeDiskImage() {
+ return new BaseInformationType.DiskImage();
}
/**
- * Create an instance of {@link EmulatorConfiguration }
+ * Create an instance of {@link DisplayType.Density }
*
*/
- public EmulatorConfiguration createEmulatorConfiguration() {
- return new EmulatorConfiguration();
+ public DisplayType.Density createDisplayTypeDensity() {
+ return new DisplayType.Density();
}
/**
- * Create an instance of {@link UsabilityType.FileSharing }
+ * Create an instance of {@link UsabilityType.Logging }
*
*/
- public UsabilityType.FileSharing createUsabilityTypeFileSharing() {
- return new UsabilityType.FileSharing();
+ public UsabilityType.Logging createUsabilityTypeLogging() {
+ return new UsabilityType.Logging();
}
/**
- * Create an instance of {@link DisplayType.Density }
+ * Create an instance of {@link UsabilityType }
*
*/
- public DisplayType.Density createDisplayTypeDensity() {
- return new DisplayType.Density();
+ public UsabilityType createUsabilityType() {
+ return new UsabilityType();
}
/**
- * Create an instance of {@link SkinType }
+ * Create an instance of {@link DisplayType.Resolution }
*
*/
- public SkinType createSkinType() {
- return new SkinType();
+ public DisplayType.Resolution createDisplayTypeResolution() {
+ return new DisplayType.Resolution();
+ }
+
+ /**
+ * Create an instance of {@link RamType.Size }
+ *
+ */
+ public RamType.Size createRamTypeSize() {
+ return new RamType.Size();
}
/**
}
/**
- * Create an instance of {@link DeviceType }
+ * Create an instance of {@link DisplayType }
*
*/
- public DeviceType createDeviceType() {
- return new DeviceType();
+ public DisplayType createDisplayType() {
+ return new DisplayType();
}
/**
- * Create an instance of {@link TouchType }
+ * Create an instance of {@link DiskImageFormatType }
*
*/
- public TouchType createTouchType() {
- return new TouchType();
+ public DiskImageFormatType createDiskImageFormatType() {
+ return new DiskImageFormatType();
}
/**
- * Create an instance of {@link DisplayType.Resolution }
+ * Create an instance of {@link UsabilityType.FileSharing }
*
*/
- public DisplayType.Resolution createDisplayTypeResolution() {
- return new DisplayType.Resolution();
+ public UsabilityType.FileSharing createUsabilityTypeFileSharing() {
+ return new UsabilityType.FileSharing();
}
/**
return new DisplayType.SkinPath();
}
- /**
- * Create an instance of {@link DisplayType }
- *
- */
- public DisplayType createDisplayType() {
- return new DisplayType();
- }
-
}
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2012.04.20 at 10:49:37 오전 KST
+// Generated on: 2012.07.03 at 02:07:17 PM KST
//
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2012.04.20 at 10:49:37 오전 KST
+// Generated on: 2012.07.03 at 02:07:17 PM KST
//
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2012.04.20 at 10:49:37 오전 KST
+// Generated on: 2012.07.03 at 02:07:17 PM KST
//
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2012.04.20 at 10:49:37 오전 KST
+// Generated on: 2012.07.03 at 02:07:17 PM KST
//
* </complexType>
* </element>
* <element name="hwVirtualization" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ * <element name="hwGLAcceleration" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="advancedOptions" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
"logging",
"fileSharing",
"hwVirtualization",
+ "hwGLAcceleration",
"advancedOptions"
})
public class UsabilityType {
@XmlElement(required = true)
protected UsabilityType.FileSharing fileSharing;
protected boolean hwVirtualization;
+ protected boolean hwGLAcceleration;
protected String advancedOptions;
/**
}
/**
+ * Gets the value of the hwGLAcceleration property.
+ *
+ */
+ public boolean isHwGLAcceleration() {
+ return hwGLAcceleration;
+ }
+
+ /**
+ * Sets the value of the hwGLAcceleration property.
+ *
+ */
+ public void setHwGLAcceleration(boolean value) {
+ this.hwGLAcceleration = value;
+ }
+
+ /**
* Gets the value of the advancedOptions property.
*
* @return
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2012.04.20 at 10:49:37 오전 KST
+// Generated on: 2012.07.03 at 02:07:17 PM KST
//
@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.tizen.org/em", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
Package: emulator-manager
-Version: 1.0.61
+Version: 1.0.62
OS: linux
Build-host-os: linux
Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
Description: Tizen Emulator Manager
Package: emulator-manager
-Version: 1.0.61
+Version: 1.0.62
OS: windows
Build-host-os: windows
Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
+/*
+ * Emulator Manager
+ *
+ * Copyright (C) 2011 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * SeokYeon Hwang <syeon.hwang@samsung.com>
+ * JiHye Kim <jihye1128.kim@samsung.com>
+ * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
package org.tizen.emulator.manager.console;
import java.util.ArrayList;
public final static String OP_VIRTUALIZATION = "hw-virtualization";
public final static String OP_MAXTOUCH = "max-touch-point";
public final static String OP_ADDOPTION = "add-options";
+ public final static String OP_GLACCELERATION = "hw-gl-acceleration";
}
+/*
+ * Emulator Manager
+ *
+ * Copyright (C) 2011 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * SeokYeon Hwang <syeon.hwang@samsung.com>
+ * JiHye Kim <jihye1128.kim@samsung.com>
+ * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
package org.tizen.emulator.manager.console;
import java.io.File;
commandList.add(new Command("v", Actions.OP_VIRTUALIZATION,
"Select enable or disable hardware virtualization.(yes | no)",
property.isHWVirtualization ? "yes" : "no", false, true));
+ commandList.add(new Command("g", Actions.OP_GLACCELERATION,
+ "Select enable or disable hardware GL acceleration.(yes | no)",
+ property.isGLAcceleration ? "yes" : "no", false, true));
commandList.add(new Command("t", Actions.OP_MAXTOUCH,
"Set count of multi touch point.(1 or 2)", Integer.toString(property.maxTouchCount), false, true));
commandList.add(new Command("a", Actions.OP_ADDOPTION,
commandList.add(new Command("v", Actions.OP_VIRTUALIZATION,
"Select enable or disable hardware virtualization.(yes | no)",
property.isHWVirtualization ? "yes" : "no", false, true));
+ commandList.add(new Command("g", Actions.OP_GLACCELERATION,
+ "Select enable or disable hardware GL acceleration.(yes | no)",
+ property.isGLAcceleration ? "yes" : "no", false, true));
commandList.add(new Command("t", Actions.OP_MAXTOUCH,
"Set count of multi touch point.(1 or 2)", Integer.toString(property.maxTouchCount), false, true));
commandList.add(new Command("a", Actions.OP_ADDOPTION,
}
}
- if(prop.getWorker().isRunningNow()) {
- System.out.println("Error: Can not execute this VM.\n" +
- "The same name is running now.");
- return false;
- }
-
Launcher launcher = new Launcher();
List<String> cmd = launcher.getLaunchCommand(prop, path);
}
if (!isTest) {
+ if(prop.getWorker().isRunningNow()) {
+ System.out.println("Error: Can not execute this VM.\n" +
+ "The same name is running now.");
+ return false;
+ }
+
if (launcher.launch(cmd)) {
System.out.println("Success to start emulator.");
} else {
+/*
+ * Emulator Manager
+ *
+ * Copyright (C) 2011 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * SeokYeon Hwang <syeon.hwang@samsung.com>
+ * JiHye Kim <jihye1128.kim@samsung.com>
+ * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
package org.tizen.emulator.manager.console;
import java.util.logging.Level;
+/*
+ * Emulator Manager
+ *
+ * Copyright (C) 2011 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * SeokYeon Hwang <syeon.hwang@samsung.com>
+ * JiHye Kim <jihye1128.kim@samsung.com>
+ * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
package org.tizen.emulator.manager.console;
import java.io.File;
else if (c.getLongName() == Actions.OP_VIRTUALIZATION) {
prop.isHWVirtualization = checkHWVirtualization(c.getCurrentValue());
}
+ else if (c.getLongName() == Actions.OP_GLACCELERATION) {
+ prop.isGLAcceleration = checkGLAcceleration(c.getCurrentValue());
+ }
else if (c.getLongName() == Actions.OP_MAXTOUCH) {
int i = Integer.valueOf(c.getCurrentValue());
if (i != 1 && i != 2) {
}
}
+ private boolean checkGLAcceleration(String currentValue) throws ConsoleException{
+ String value = currentValue.toLowerCase();
+ if (value.equals("true")) {
+ return true;
+ } else if (value.equals("false")) {
+ return false;
+ } else {
+ throw new ConsoleException("Please, check your input (" + currentValue + ") "
+ + "Avaliable value is true or false.");
+ }
+ }
+
private boolean checkHWVirtualization(String currentValue) throws ConsoleException {
String value = currentValue.toLowerCase();
if (value.equals("true")) {
+/*
+ * Emulator Manager
+ *
+ * Copyright (C) 2011 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * SeokYeon Hwang <syeon.hwang@samsung.com>
+ * JiHye Kim <jihye1128.kim@samsung.com>
+ * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
package org.tizen.emulator.manager.console;
public class ConsoleException extends Exception {
+/*
+ * Emulator Manager
+ *
+ * Copyright (C) 2011 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * SeokYeon Hwang <syeon.hwang@samsung.com>
+ * JiHye Kim <jihye1128.kim@samsung.com>
+ * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
package org.tizen.emulator.manager.console;
import java.util.ArrayList;
// check resolution because can not change dpi
if (c.getLongName().equals(Actions.OP_RESOLUTION)) {
+ System.out.println("Can not change dpi...");
newVM.dpi = oldVM.dpi;
}
}
+/*
+ * Emulator Manager
+ *
+ * Copyright (C) 2011 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * SeokYeon Hwang <syeon.hwang@samsung.com>
+ * JiHye Kim <jihye1128.kim@samsung.com>
+ * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
package org.tizen.emulator.manager.console;
import java.util.ArrayList;
str+= String.format("\t%-17s : %s\n", "HW Virtualization",
(prop.getConfiguration().getUsability().isHwVirtualization() ? "TRUE" : "FALSE"));
-
+
+ str+= String.format("\t%-17s : %s\n", "HW GL Acceleration",
+ (prop.getConfiguration().getUsability().isHwGLAcceleration() ? "TRUE" : "FALSE"));
+
if (prop.getConfiguration().getUsability().getAdvancedOptions() != null) {
str+= String.format("\t%-17s : %s\n", "Advanced Options: ", prop.getConfiguration().getUsability().getAdvancedOptions());
}
+/*
+ * Emulator Manager
+ *
+ * Copyright (C) 2011 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * SeokYeon Hwang <syeon.hwang@samsung.com>
+ * JiHye Kim <jihye1128.kim@samsung.com>
+ * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
package org.tizen.emulator.manager.image;
public class BaseImage {
+/*
+ * Emulator Manager
+ *
+ * Copyright (C) 2011 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * SeokYeon Hwang <syeon.hwang@samsung.com>
+ * JiHye Kim <jihye1128.kim@samsung.com>
+ * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
package org.tizen.emulator.manager.image;
import java.io.File;
+/*
+ * Emulator Manager
+ *
+ * Copyright (C) 2011 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * SeokYeon Hwang <syeon.hwang@samsung.com>
+ * JiHye Kim <jihye1128.kim@samsung.com>
+ * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
package org.tizen.emulator.manager.tool;
import java.io.IOException;
+/*
+ * Emulator Manager
+ *
+ * Copyright (C) 2011 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * SeokYeon Hwang <syeon.hwang@samsung.com>
+ * JiHye Kim <jihye1128.kim@samsung.com>
+ * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
package org.tizen.emulator.manager.tool;
import java.io.File;
+/*
+ * Emulator Manager
+ *
+ * Copyright (C) 2011 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * SeokYeon Hwang <syeon.hwang@samsung.com>
+ * JiHye Kim <jihye1128.kim@samsung.com>
+ * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
package org.tizen.emulator.manager.tool;
import java.io.File;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.widgets.Text;
-import org.tizen.emulator.manager.EmulatorManager;
-import org.tizen.emulator.manager.EmulatorManager.ManagerModeType;
import org.tizen.emulator.manager.tool.CheckVirtualization;
import org.tizen.emulator.manager.tool.StringResource;
import org.tizen.emulator.manager.ui.MessageDialog;
ImageName("Name"), ImageNameInfo(""), BaseImage("BaseImage"),
Resolution("Display Resolution "), Density("Display Density"), /*SkinType("Front Key Type"),*/
RAMSize("RAM Size"),
- ShareType("File Sharing"), SharePath("File Sharing Path"), HWVirtual("HW Virtualization"),
+ ShareType("File Sharing"), SharePath("File Sharing Path"),
+ HWVirtual("HW Virtualization"), GLAccele("HW GL Acceleration "),
TouchType("Max Touch Point");
private String value;
ImageName("Name"), BaseImage("BaseImage"),
Resolution("Display Resolution "), Density("Display Density"), /*SkinType("Front Key Type"),*/
RAMSize("RAM Size"),
- ShareType("File Sharing"), SharePath("File Sharing Path"), HWVirtual("HW Virtualization"),
+ ShareType("File Sharing"), SharePath("File Sharing Path"),
+ HWVirtual("HW Virtualization"), GLAccele("HW GL Acceleration "),
TouchType("Max Touch Point"), Dummy("");
private String value;
private VMPropertyValue newValue = null;
private boolean isCreateMode = true;
- private ManagerModeType managerMode;
+ //private ManagerModeType managerMode;
public VMPropertyView(Table table) {
this.helper = new VMCreateHelper();
this.image = ResourceRegistry.getImage(ImageName.FOLDER);
makeItemList();
- this.managerMode = EmulatorManager.getInstance().getManagerMode();
+ //this.managerMode = EmulatorManager.getInstance().getManagerMode();
}
private void makeItemList() {
widget.itemList.get(citem.ordinal()).setText(0, citem.toString());
}
+ /*
if (managerMode.equals(ManagerModeType.INHOUSE_MODE) == false) {
widget.itemList.get(CItem.TouchType.ordinal()).setText(0, "");
}
+ */
}
private void settingDetailColumn() {
widget.itemList.get(ditem.ordinal()).setText(0, ditem.toString());
}
+ /*
if (managerMode.equals(ManagerModeType.INHOUSE_MODE) == false) {
widget.itemList.get(DItem.TouchType.ordinal()).setText(0, "");
}
+ */
}
public void detailView(VMsProperty property) {
widget.itemList.get(DItem.HWVirtual.ordinal()).setText(1, oldValue.isHWVirtualization && CheckVirtualization.getInstance().isSupportVirtualization()
? StringResource.SUPPORTED : StringResource.NOT_SUPPORTED);
- if (managerMode.equals(ManagerModeType.INHOUSE_MODE)) {
- widget.itemList.get(DItem.TouchType.ordinal()).setText(1, String.valueOf(oldValue.maxTouchCount));
- }
+ widget.itemList.get(DItem.GLAccele.ordinal()).setText(1, oldValue.isGLAcceleration ? StringResource.SUPPORTED : StringResource.NOT_SUPPORTED);
+
+ widget.itemList.get(DItem.TouchType.ordinal()).setText(1, String.valueOf(oldValue.maxTouchCount));
}
public void createDetailView(boolean isDefaultImage) {
widget.itemList.get(CItem.HWVirtual.ordinal()).setText(1, oldValue.isHWVirtualization && CheckVirtualization.getInstance().isSupportVirtualization()
? StringResource.SUPPORTED : StringResource.NOT_SUPPORTED);
- if (managerMode.equals(ManagerModeType.INHOUSE_MODE)) {
- widget.itemList.get(CItem.TouchType.ordinal()).setText(1, String.valueOf(oldValue.maxTouchCount));
- }
+ widget.itemList.get(CItem.GLAccele.ordinal()).setText(1, oldValue.isGLAcceleration ? StringResource.SUPPORTED : StringResource.NOT_SUPPORTED);
+
+ widget.itemList.get(CItem.TouchType.ordinal()).setText(1, String.valueOf(oldValue.maxTouchCount));
}
public void modifyView(Button confirm) {
createRAMSizeArea(table);
createFileShareArea(table);
createHWVirtualArea(table);
+ createGLAcceleArea(table);
createTouchArea(table);
settingModifyTableEditor();
createRAMSizeArea(table);
createFileShareArea(table);
createHWVirtualArea(table);
+ createGLAcceleArea(table);
createTouchArea(table);
settingCreateTableEditor();
editor.grabHorizontal = true;
editor.setEditor(widget.HWVirtualCombo, widget.itemList.get(DItem.HWVirtual.ordinal()), 1);
- if (managerMode.equals(ManagerModeType.INHOUSE_MODE)) {
- editor = new TableEditor(table);
- editor.grabHorizontal = true;
- editor.setEditor(widget.TouchSpinner, widget.itemList.get(DItem.TouchType.ordinal()), 1);
- }
+ editor = new TableEditor(table);
+ editor.grabHorizontal = true;
+ editor.setEditor(widget.GLAcceleCombo, widget.itemList.get(DItem.GLAccele.ordinal()), 1);
+
+ editor = new TableEditor(table);
+ editor.grabHorizontal = true;
+ editor.setEditor(widget.TouchSpinner, widget.itemList.get(DItem.TouchType.ordinal()), 1);
}
private void settingCreateTableEditor() {
editor.grabHorizontal = true;
editor.setEditor(widget.HWVirtualCombo, widget.itemList.get(CItem.HWVirtual.ordinal()), 1);
- if (managerMode.equals(ManagerModeType.INHOUSE_MODE)) {
- editor = new TableEditor(table);
- editor.grabHorizontal = true;
- editor.setEditor(widget.TouchSpinner, widget.itemList.get(CItem.TouchType.ordinal()), 1);
- }
+ editor = new TableEditor(table);
+ editor.grabHorizontal = true;
+ editor.setEditor(widget.GLAcceleCombo, widget.itemList.get(CItem.GLAccele.ordinal()), 1);
+
+ editor = new TableEditor(table);
+ editor.grabHorizontal = true;
+ editor.setEditor(widget.TouchSpinner, widget.itemList.get(CItem.TouchType.ordinal()), 1);
}
public static final int MAX_NAME_LEN = 20;
});
}
+ private void createGLAcceleArea(final Table table) {
+ widget.GLAcceleCombo = helper.makeCombo(table);
+ helper.addComboItem(widget.GLAcceleCombo, SupportType.getInstance().getList());
+ widget.GLAcceleCombo.select(oldValue.isGLAcceleration ? 0 : 1);
+
+ createGLAccelListener();
+ }
+
+ private void createGLAccelListener() {
+ widget.GLAcceleCombo.addSelectionListener(new SelectionListener() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ int i = widget.GLAcceleCombo.getSelectionIndex();
+ newValue.isGLAcceleration = i == 0 ? true : false;
+
+ if (!isCreateMode) {
+ checkModifyState();
+ }
+ }
+ @Override
+ public void widgetDefaultSelected(SelectionEvent e) {
+ }
+ });
+ }
+
private void createTouchArea(Table table) {
widget.TouchSpinner = new Spinner(table, SWT.BORDER);
widget.TouchSpinner.setValues(oldValue.maxTouchCount, 1, 2, 0, 1, 1);
public DirectoryDialog shareFileDD;
public Combo HWVirtualCombo;
+ public Combo GLAcceleCombo;
public Spinner TouchSpinner;
public Button cancelButton;
shareTypeCombo.dispose();
selectShareFolderButton.dispose();
HWVirtualCombo.dispose();
+ GLAcceleCombo.dispose();
TouchSpinner.dispose();
}
}
import java.util.List;
import java.util.logging.Level;
-import org.tizen.emulator.manager.EmulatorManager;
-import org.tizen.emulator.manager.EmulatorManager.ManagerModeType;
import org.tizen.emulator.manager.logging.EMLogger;
import org.tizen.emulator.manager.tool.About;
import org.tizen.emulator.manager.tool.FileIO;
createFileShare();
createDisplay();
createRam();
- createHWVirtualization();
+ createUsability();
}
catch(VMsCreatorException e) {
deleteFolder(folder);
private void createRam() {}
- private void createHWVirtualization() {}
+ private void createUsability() {}
private void settingProperty() {
ObjectFactory factory = EmulatorVMs.getInstance().getObjectFactory();
ec.getUsability().setLogging(factory.createUsabilityTypeLogging());
ec.getUsability().getLogging().setLevel("NONE");
ec.getUsability().setHwVirtualization(newVM.isHWVirtualization);
+ ec.getUsability().setHwGLAcceleration(newVM.isGLAcceleration);
ec.getUsability().setFileSharing(factory.createUsabilityTypeFileSharing());
if (!newVM.fileSharePath.isEmpty()) {
ec.getDevice().getRAM().getSize().setUnit("MiB");
ec.getDevice().getRAM().getSize().setValue(newVM.ramSize);
- if (EmulatorManager.getInstance().getManagerMode().equals(ManagerModeType.INHOUSE_MODE)) {
- ec.getDevice().setTouch(factory.createTouchType());
- ec.getDevice().getTouch().setMaxTouchPoint(newVM.maxTouchCount);
- }
+ //if (EmulatorManager.getInstance().getManagerMode().equals(ManagerModeType.INHOUSE_MODE)) {
+ ec.getDevice().setTouch(factory.createTouchType());
+ ec.getDevice().getTouch().setMaxTouchPoint(newVM.maxTouchCount);
+ //}
if (newVM.addOptions != null) {
ec.getUsability().setAdvancedOptions(newVM.addOptions);
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.tizen.emulator.manager.EmulatorManager;
-import org.tizen.emulator.manager.EmulatorManager.ManagerModeType;
import org.tizen.emulator.manager.logging.EMLogger;
import org.tizen.emulator.manager.tool.CheckVirtualization;
import org.tizen.emulator.manager.tool.FileIO;
cmd.add(hwVirtualization);
}
- if (EmulatorManager.getInstance().getManagerMode().equals(ManagerModeType.INHOUSE_MODE)) {
- TouchType touchType = property.getConfiguration().getDevice().getTouch();
- if (touchType != null) {
- cmd.add("-max-touch-point");
- cmd.add("" + touchType.getMaxTouchPoint());
- }
+ // add hw gl acceleration
+ if (property.getConfiguration().getUsability().isHwGLAcceleration()) {
+ cmd.add("-enable-gl");
+ }
+
+ //if (EmulatorManager.getInstance().getManagerMode().equals(ManagerModeType.INHOUSE_MODE)) {
+ TouchType touchType = property.getConfiguration().getDevice().getTouch();
+ if (touchType != null) {
+ cmd.add("-max-touch-point");
+ cmd.add("" + touchType.getMaxTouchPoint());
}
+ //}
/* append user added options if exists */
String advancedOptions = property.getConfiguration().getUsability().getAdvancedOptions();
import java.io.File;
-import org.tizen.emulator.manager.EmulatorManager;
-import org.tizen.emulator.manager.EmulatorManager.ManagerModeType;
import org.tizen.emulator.manager.tool.FileIO;
import org.tizen.emulator.manager.vms.xml.EmulatorConfiguration;
import org.tizen.emulator.manager.vms.xml.TouchType;
property.getConfiguration().getUsability().setHwVirtualization(newVM.isHWVirtualization);
}
+ if (newVM.isGLAcceleration != oldVM.isGLAcceleration) {
+ property.getConfiguration().getUsability().setHwGLAcceleration(newVM.isGLAcceleration);
+ }
+
TouchType touchType = property.getConfiguration().getDevice().getTouch();
if (newVM.maxTouchCount != oldVM.maxTouchCount) {
if (touchType != null) {
touchType.setMaxTouchPoint(newVM.maxTouchCount);
- } else if (EmulatorManager.getInstance().getManagerMode().equals(ManagerModeType.INHOUSE_MODE)) {
+ } else {
+ //else if (EmulatorManager.getInstance().getManagerMode().equals(ManagerModeType.INHOUSE_MODE)) {
//touchType == null
EmulatorConfiguration ec = property.getConfiguration();
ec.getDevice().setTouch(EmulatorVMs.getInstance().getObjectFactory().createTouchType());
+/*
+ * Emulator Manager
+ *
+ * Copyright (C) 2011 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * SeokYeon Hwang <syeon.hwang@samsung.com>
+ * JiHye Kim <jihye1128.kim@samsung.com>
+ * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
package org.tizen.emulator.manager.vms;
public enum RAM_SIZE {
+/*
+ * Emulator Manager
+ *
+ * Copyright (C) 2011 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * SeokYeon Hwang <syeon.hwang@samsung.com>
+ * JiHye Kim <jihye1128.kim@samsung.com>
+ * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
package org.tizen.emulator.manager.vms;
public enum RESOLUTION {
public String fileSharePathName;
public boolean isHWVirtualization;
+ public boolean isGLAcceleration;
public int maxTouchCount;
public String addOptions;
}
ramSize = property.getConfiguration().getDevice().getRAM().getSize().getValue();
isHWVirtualization = property.getConfiguration().getUsability().isHwVirtualization();
+ isGLAcceleration = property.getConfiguration().getUsability().isHwGLAcceleration();
TouchType touchType = property.getConfiguration().getDevice().getTouch();
if (touchType != null) {
dest.fileSharePath = this.fileSharePath;
dest.fileSharePathName = this.fileSharePathName;
dest.isHWVirtualization = this.isHWVirtualization;
+ dest.isGLAcceleration = this.isGLAcceleration;
+
dest.maxTouchCount = this.maxTouchCount;
dest.addOptions = this.addOptions;
if (this.isHWVirtualization != dest.isHWVirtualization) {
return false;
}
+
+ if (this.isGLAcceleration != dest.isGLAcceleration) {
+ return false;
+ }
+
if (this.maxTouchCount != dest.maxTouchCount) {
return false;
}
value.fileSharePathName = "( None )";
value.isHWVirtualization = true;
+ value.isGLAcceleration = false;
+
value.maxTouchCount = 2;
value.addOptions = null;
</element>
<element name="hwVirtualization" type="boolean" minOccurs="1"
maxOccurs="1" />
+ <element name="hwGLAcceleration" type="boolean" minOccurs="1"
+ maxOccurs="1" />
<element name="advancedOptions" type="string" minOccurs="0"
maxOccurs="1" />
</sequence>