From a4f7cef55c450567c5d1773b951483c17d98e36e Mon Sep 17 00:00:00 2001 From: "Hyunjong.park" Date: Thu, 26 Jun 2014 15:33:55 +0900 Subject: [PATCH] setting : disable few features features list(fine, UI, syscall, insidecall) Signed-off-by: Hyunjong.park Change-Id: I0b3de3a8c55d7662174b14c59586313fb24a9dff --- .../ui/toolbar/ConfigureManager.java | 18 ++++++------- .../ConfigurationDialogDataManager.java | 31 +++++++++++----------- .../ConfigurationDialogSettingPage.java | 8 +++--- 3 files changed, 29 insertions(+), 28 deletions(-) diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/ConfigureManager.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/ConfigureManager.java index afb6406..5555d3d 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/ConfigureManager.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/ConfigureManager.java @@ -144,25 +144,25 @@ public class ConfigureManager { } if (null == data.get(ConfigureLabels.FEATURE_THREAD)) { data.put(ConfigureLabels.FEATURE_THREAD, - Long.toString(AnalyzerConstants.FEATURE_THREAD_API)); + Long.toString(AnalyzerConstants.FEATURE_OFF)); data.put(ConfigureLabels.FEATURE_SYSTEM_THREAD, Long.toString(AnalyzerConstants.SYSTEM_THREAD_LOAD)); } if (null == data.get(ConfigureLabels.FEATURE_USERINTERFACE)) { data.put(ConfigureLabels.FEATURE_USERINTERFACE, - Long.toString(AnalyzerConstants.FEATURE_OSP_UI_API)); + Long.toString(AnalyzerConstants.FEATURE_OFF)); } if (null == data.get(ConfigureLabels.FEATURE_SCREENSHOT)) { data.put(ConfigureLabels.FEATURE_SCREENSHOT, - Long.toString(AnalyzerConstants.FEATURE_SCREENSHOT)); + Long.toString(AnalyzerConstants.FEATURE_OFF)); } if (null == data.get(ConfigureLabels.FEATURE_USER_EVENT)) { data.put(ConfigureLabels.FEATURE_USER_EVENT, - Long.toString(AnalyzerConstants.FEATURE_USER_EVENT)); + Long.toString(AnalyzerConstants.FEATURE_OFF)); } if (null == data.get(ConfigureLabels.FEATURE_RECORDING)) { data.put(ConfigureLabels.FEATURE_RECORDING, - Long.toString(AnalyzerConstants.FEATURE_RECORDING)); + Long.toString(AnalyzerConstants.FEATURE_OFF)); } // if (null == data.get(ConfigureLabels.FEATURE_SYSCALL)) { @@ -198,17 +198,17 @@ public class ConfigureManager { } if (null == data.get(ConfigureLabels.FEATURE_CONTEXT_SWITCH)) { data.put(ConfigureLabels.FEATURE_CONTEXT_SWITCH, - Long.toString(AnalyzerConstants.FEATURE_CONTEXT_SWITCHING)); + Long.toString(AnalyzerConstants.FEATURE_OFF)); } if (null == data.get(ConfigureLabels.FEATURE_NETWORK)) { data.put(ConfigureLabels.FEATURE_NETWORK, - Long.toString(AnalyzerConstants.FEATURE_NETWORK_API)); + Long.toString(AnalyzerConstants.FEATURE_OFF)); } if (null == data.get(ConfigureLabels.FEATURE_OPENGL)) { data.put(ConfigureLabels.FEATURE_OPENGL, - Long.toString(AnalyzerConstants.FEATURE_OPENGL_API)); + Long.toString(AnalyzerConstants.FEATURE_OFF)); } // if (null == data.get(ConfigureLabels.FEATURE_SYSTEM)) { // data.put(ConfigureLabels.FEATURE_SYSTEM, @@ -316,7 +316,7 @@ public class ConfigureManager { Long.toString(DALogger.DEBUG)); } } - + private void initConfigDataFromFile() { if (null == PathManager.DA_CONFIG_FOLDER_PATH) { return; diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/configuration/ConfigurationDialogDataManager.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/configuration/ConfigurationDialogDataManager.java index c558301..6555da7 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/configuration/ConfigurationDialogDataManager.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/configuration/ConfigurationDialogDataManager.java @@ -76,27 +76,28 @@ public class ConfigurationDialogDataManager { ConfigureLabels.FEATURE_MEMORY_ALLOCATION, ConfigureLabels.FEATURE_THREAD, ConfigureLabels.FEATURE_NETWORK, - ConfigureLabels.FEATURE_FILE, + // ConfigureLabels.FEATURE_FILE, ConfigureLabels.FEATURE_OPENGL, - ConfigureLabels.FEATURE_USERINTERFACE, + // ConfigureLabels.FEATURE_USERINTERFACE, ConfigureLabels.FEATURE_SCREENSHOT, ConfigureLabels.FEATURE_USER_EVENT, ConfigureLabels.FEATURE_RECORDING, ConfigureLabels.FEATURE_CONTEXT_SWITCH, - ConfigureLabels.FEATURE_SYSCALL_FILE, - ConfigureLabels.FEATURE_SYSCALL_IPC, - ConfigureLabels.FEATURE_SYSCALL_PROCESS, - ConfigureLabels.FEATURE_SYSCALL_SIGNAL, - ConfigureLabels.FEATURE_SYSCALL_NETWORK, - ConfigureLabels.FEATURE_SYSCALL_DESC, - - ConfigureLabels.INCLUDE_INSIDE_CALL_MEMORY, - ConfigureLabels.INCLUDE_INSIDE_CALL_THREAD, - ConfigureLabels.INCLUDE_INSIDE_CALL_FILE, - ConfigureLabels.INCLUDE_INSIDE_CALL_NETWORK, - ConfigureLabels.INCLUDE_INSIDE_CALL_UI, - ConfigureLabels.INCLUDE_INSIDE_OPENGL, }; +// ConfigureLabels.FEATURE_SYSCALL_FILE, +// ConfigureLabels.FEATURE_SYSCALL_IPC, +// ConfigureLabels.FEATURE_SYSCALL_PROCESS, +// ConfigureLabels.FEATURE_SYSCALL_SIGNAL, +// ConfigureLabels.FEATURE_SYSCALL_NETWORK, +// ConfigureLabels.FEATURE_SYSCALL_DESC, + + // ConfigureLabels.INCLUDE_INSIDE_CALL_MEMORY, + // ConfigureLabels.INCLUDE_INSIDE_CALL_THREAD, + // ConfigureLabels.INCLUDE_INSIDE_CALL_FILE, + // ConfigureLabels.INCLUDE_INSIDE_CALL_NETWORK, + // ConfigureLabels.INCLUDE_INSIDE_CALL_UI, + // ConfigureLabels.INCLUDE_INSIDE_OPENGL, + }; optionalSettingName = new String[] { ConfigureLabels.SHOW_INITIAL, ConfigureLabels.AUTO_STOP, diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/configuration/ConfigurationDialogSettingPage.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/configuration/ConfigurationDialogSettingPage.java index 440f623..d5d2746 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/configuration/ConfigurationDialogSettingPage.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/configuration/ConfigurationDialogSettingPage.java @@ -75,7 +75,7 @@ public class ConfigurationDialogSettingPage extends DAPageComposite { data.width = 20; showInitialCheckBox.setLayoutData(data); showInitialCheckBox.setForeground(ColorResources.BLACK); - showInitialCheckBox.setBackground(ColorResources.DIALOG_BG_UPPER); + showInitialCheckBox.setBackground(ColorResources.CONFIGURATION_TABLE_COVER_BACKGROUND_COLOR); showInitialCheckBox.setText(ConfigureLabels.SHOW_INITIAL); showInitialCheckBox.addSelectionListener(showInitiaRadioButtonListener); if (ConfigurationDialogDataManager.getInstance().getfeatureValue( @@ -86,7 +86,7 @@ public class ConfigurationDialogSettingPage extends DAPageComposite { } Label showInitalLabel = new Label(this, SWT.TRANSPARENT); showInitalLabel.setText(ConfigureLabels.SHOW_INITIAL); - showInitalLabel.setBackground(ColorResources.DIALOG_BG_UPPER); + showInitalLabel.setBackground(ColorResources.CONFIGURATION_TABLE_COVER_BACKGROUND_COLOR); showInitalLabel.setForeground(ColorResources.BLACK); showInitalLabel.setFont(FontResources.CONFIGURATION_TABLE_TITLE_FONT); data = new FormData(); @@ -103,7 +103,7 @@ public class ConfigurationDialogSettingPage extends DAPageComposite { data.width = 20; autoStopCheckBox.setLayoutData(data); autoStopCheckBox.setForeground(ColorResources.BLACK); - autoStopCheckBox.setBackground(ColorResources.DIALOG_BG_UPPER); + autoStopCheckBox.setBackground(ColorResources.CONFIGURATION_TABLE_COVER_BACKGROUND_COLOR); autoStopCheckBox.setText(ConfigureLabels.AUTO_STOP); autoStopCheckBox.addSelectionListener(autoStopRadioButtonListener); if (ConfigurationDialogDataManager.getInstance().getfeatureValue( @@ -114,7 +114,7 @@ public class ConfigurationDialogSettingPage extends DAPageComposite { } Label autoStopLabel = new Label(this, SWT.TRANSPARENT); autoStopLabel.setText(ConfigureLabels.AUTO_STOP); - autoStopLabel.setBackground(ColorResources.DIALOG_BG_UPPER); + autoStopLabel.setBackground(ColorResources.CONFIGURATION_TABLE_COVER_BACKGROUND_COLOR); autoStopLabel.setForeground(ColorResources.BLACK); autoStopLabel.setFont(FontResources.CONFIGURATION_TABLE_TITLE_FONT); data = new FormData(); -- 2.7.4