[Title] add detail info dialog items
authorSon Hyunjun <hj79.son@samsung.com>
Tue, 3 Apr 2012 13:50:45 +0000 (22:50 +0900)
committerSon Hyunjun <hj79.son@samsung.com>
Tue, 3 Apr 2012 13:50:45 +0000 (22:50 +0900)
[Type] Feature
[Module] Skin
[Priority] Minor
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]

Change-Id: I94c8029192cd1242a07ca07d3d70a4658a2fd100

tizen/src/skin/client/src/org/tizen/emulator/skin/dialog/DetailInfoDialog.java

index 598cba6f7d71b62bec5b764c74db034af7581de6..f0b10aa36685ec121df4db5bbb0359af83cf7291 100644 (file)
@@ -127,7 +127,7 @@ public class DetailInfoDialog extends SkinDialog {
 
        @Override
        protected void setShellSize() {
-               shell.setSize( (int) ( 350 * 1.618 ), 350 );
+               shell.setSize( (int) ( 380 * 1.618 ), 380 );
        }
 
        private String queryData() {
@@ -196,11 +196,20 @@ public class DetailInfoDialog extends SkinDialog {
 
                String cpu = "";
                String ram = "";
+               String dpi = "";
                String sdPath = "";
                String imagePath = "";
                boolean isFirstDrive = true;
                String sharedPath = "";
+               boolean isHwVirtual = false;
+               String hwVirtualCompare = "";
 
+               if ( SkinUtil.isLinuxPlatform() ) {
+                       hwVirtualCompare = "-enable-kvm";
+               } else if ( SkinUtil.isWindowsPlatform() ) {
+                       hwVirtualCompare = "-enable-hax";
+               }
+               
                String[] split = infoData.split( DATA_DELIMITER );
 
                for ( int i = 0; i < split.length; i++ ) {
@@ -257,6 +266,27 @@ public class DetailInfoDialog extends SkinDialog {
                                                        sharedPath = sp[1].substring( spIndex + 1, sp[1].length() );
                                                }
 
+                                       } else if ( "-append".equals( arg ) ) {
+
+                                               arg = split[i + 1].trim();
+
+                                               int idx = arg.indexOf( "dpi" );
+
+                                               if ( -1 != idx ) {
+                                                       if( idx + 7 <= arg.length() ) {
+                                                               
+                                                               dpi = arg.substring( idx, idx + 7 ); // end index is not 8, remove last '0'
+                                                               
+                                                               String[] sp = dpi.split( "=" );
+                                                               if ( 1 < sp.length ) {
+                                                                       dpi = sp[1];
+                                                               }
+                                                               
+                                                       }
+                                               }
+
+                                       } else if ( hwVirtualCompare.equals( arg ) ) {
+                                               isHwVirtual = true;
                                        }
 
                                }
@@ -272,27 +302,37 @@ public class DetailInfoDialog extends SkinDialog {
 
                String width = config.getArg( ArgsConstants.RESOLUTION_WIDTH );
                String height = config.getArg( ArgsConstants.RESOLUTION_HEIGHT );
-               result.put( "Resolution", width + "x" + height );
-               result.put( "RAM", ram );
+               result.put( "Display Resolution", width + "x" + height );
+               result.put( "Display Density", dpi );
 
                if ( StringUtil.isEmpty( sdPath ) ) {
                        result.put( "SD Card", "Not Supported" );
-                       result.put( "SD Path", "None" );
+                       result.put( "SD Card Path", "None" );
                } else {
                        result.put( "SD Card", "Supported" );
-                       result.put( "SD Path", sdPath );
+                       result.put( "SD Card Path", sdPath );
                }
 
-               if ( StringUtil.isEmpty( imagePath ) ) {
-                       result.put( "Image Path", "Not identified" );                   
+               result.put( "RAM Size", ram );
+
+               if ( StringUtil.isEmpty( sharedPath ) ) {
+                       result.put( "File Sharing", "Not Supported" );
+                       result.put( "File Shared Path", "None" );
                }else {
-                       result.put( "Image Path", imagePath );                  
+                       result.put( "File Sharing", "Supported" );
+                       result.put( "File Shared Path", sharedPath );
                }
 
-               if ( StringUtil.isEmpty( sharedPath ) ) {
-                       result.put( "Shared Path", "None" );
+               if( isHwVirtual ) {
+                       result.put( "HW Virtualization", "Supported" );
                }else {
-                       result.put( "Shared Path", sharedPath );
+                       result.put( "HW Virtualization", "Not Supported" );
+               }
+               
+               if ( StringUtil.isEmpty( imagePath ) ) {
+                       result.put( "Image Path", "Not identified" );                   
+               }else {
+                       result.put( "Image Path", imagePath );                  
                }
 
                return result;