camera-option: Added image path to variable category.
authorminkee.lee <minkee.lee@samsung.com>
Thu, 9 Jul 2015 07:20:11 +0000 (16:20 +0900)
committerminkee Lee <minkee.lee@samsung.com>
Thu, 9 Jul 2015 07:27:54 +0000 (16:27 +0900)
- front : virt_cam_img_path0
- rear : virt_cam_img_path1

Change-Id: I96c99b2665ba7ac3ca9f5877aeb14feec0096a19
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
src/org/tizen/emulator/manager/vms/option/CameraOption.java
src/org/tizen/emulator/manager/vms/option/OPTION_KEY.java

index fe9a5e9..5028ffe 100644 (file)
@@ -51,7 +51,9 @@ public class CameraOption extends Option {
                        String imagePath = property.getPropertyValue()
                                .getAdvancedOptionSubValue(ItemName.CAMERA, CameraViewItem.ITEM_FRONT_IMAGE);
                        // front, virtual
-                       config.addQemuOption("-device", "maru-camera,index=1,path=" + imagePath);
+                       config.addVariableWithSpace(OPTION_KEY.VAR_VIRT_CAM_IMG_PATH1, imagePath);
+                       config.addQemuOption("-device", "maru-camera,index=1,path="
+                                       + varForm(OPTION_KEY.VAR_VIRT_CAM_IMG_PATH1));
                }
 
                // Check rear camera.
@@ -65,7 +67,9 @@ public class CameraOption extends Option {
                        String imagePath = property.getPropertyValue()
                                .getAdvancedOptionSubValue(ItemName.CAMERA, CameraViewItem.ITEM_REAR_IMAGE);
                        // rear, virtual
-                       config.addQemuOption("-device", "maru-camera,index=0,path=" + imagePath);
+                       config.addVariableWithSpace(OPTION_KEY.VAR_VIRT_CAM_IMG_PATH0, imagePath);
+                       config.addQemuOption("-device", "maru-camera,index=0,path="
+                                       + varForm(OPTION_KEY.VAR_VIRT_CAM_IMG_PATH0));
                }
 
        }
index adc0cf9..7408da5 100644 (file)
@@ -48,7 +48,9 @@ public enum OPTION_KEY {
        VAR_BIOS_PATH("bios_path"),
        VAR_KERNEL("kernel"),
        VAR_KERNEL_LOG("kernel_log"),
-       VAR_APPEND("append");
+       VAR_APPEND("append"),
+       VAR_VIRT_CAM_IMG_PATH0("virt_cam_img_path0"),
+       VAR_VIRT_CAM_IMG_PATH1("virt_cam_img_path1");
 
        String variable;
        OPTION_KEY(String var) {