// FIXME: permission denied problem
if (!targetHashCode.equals(localHashCode)) {
- String destFilePath = AnalyzerPaths.TEMP_FOLDER_PATH
- + File.separator
- + selectedApp.getExecFileName(appInfo.getAppType());
- try {
- DACommunicator.getSelectedDevice().getIDevice()
- .becomeSuperUser(true);
- } catch (TimeoutException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (SdbCommandRejectedException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- SyncResult res = CommunicatorUtils.pull(targetPath, destFilePath);
- if (null != res && res.isOk()) {
- System.out.println("binary copy success!!");//$NON-NLS-1$
- } else {
- System.out.println("Failed to get " + targetPath + " step 2"); //$NON-NLS-1$
- return HostResult.ERR_BIN_INFO_GET_FAIL;
- }
- String[] splitName = binaryPath.split(CommonConstants.SLASH);
- binaryPath = AnalyzerPaths.TEMP_FOLDER_PATH + File.separator
- + new String(splitName[splitName.length - 1]);
- binInfo.setPath(binaryPath);
+// String destFilePath = AnalyzerPaths.TEMP_FOLDER_PATH
+// + File.separator
+// + selectedApp.getExecFileName(appInfo.getAppType());
+// try {
+// DACommunicator.getSelectedDevice().getIDevice()
+// .becomeSuperUser(true);
+// } catch (TimeoutException e) {
+// // TODO Auto-generated catch block
+// e.printStackTrace();
+// } catch (SdbCommandRejectedException e) {
+// // TODO Auto-generated catch block
+// e.printStackTrace();
+// } catch (IOException e) {
+// // TODO Auto-generated catch block
+// e.printStackTrace();
+// }
+//
+// SyncResult res = CommunicatorUtils.pull(targetPath, destFilePath);
+// if (null != res && res.isOk()) {
+// System.out.println("binary copy success!!");//$NON-NLS-1$
+// } else {
+// System.out.println("Failed to get " + targetPath + " step 2"); //$NON-NLS-1$
+// return HostResult.ERR_BIN_INFO_GET_FAIL;
+// }
+// String[] splitName = binaryPath.split(CommonConstants.SLASH);
+// binaryPath = AnalyzerPaths.TEMP_FOLDER_PATH + File.separator
+// + new String(splitName[splitName.length - 1]);
+// binInfo.setPath(binaryPath);
}
binInfo.setPath(binaryPath);
import java.util.List;
-import org.tizen.dynamicanalyzer.logparser.LogCenterConstants;
+import org.tizen.dynamicanalyzer.common.AnalyzerConstants;
import org.tizen.dynamicanalyzer.nl.TimelineChartLabels;
import org.tizen.dynamicanalyzer.resources.ColorResources;
import org.tizen.dynamicanalyzer.resources.ImageResources;
private CPUChart() {
chartType = TimelineConstants.CHART_TYPE_CPU;
- probeType = LogCenterConstants.LOG_DEVICE;
+ probeType = AnalyzerConstants.MSG_DATA_SYSTEM;
chartName = TimelineChartLabels.CPU_CHART_TITLE;
chartIcon = ImageResources.CHART_CPU;
addIcon = ImageResources.ADD_CHART_CPU;
import java.util.ArrayList;
import java.util.List;
-import org.tizen.dynamicanalyzer.logparser.LogCenterConstants;
+import org.tizen.dynamicanalyzer.common.AnalyzerConstants;
import org.tizen.dynamicanalyzer.nl.TimelineChartLabels;
import org.tizen.dynamicanalyzer.resources.ColorResources;
import org.tizen.dynamicanalyzer.resources.ImageResources;
public CPUCoreChart() {
chartType = TimelineConstants.CHART_TYPE_CPU_CORE;
- probeType = LogCenterConstants.LOG_DEVICE;
+ probeType = AnalyzerConstants.MSG_DATA_SYSTEM;
chartName = TimelineChartLabels.CPU_CORE_CHART_TITLE;
chartIcon = ImageResources.CHART_CPU_CORE;
addIcon = ImageResources.ADD_CHART_CPU_CORE;
import java.util.List;
-import org.tizen.dynamicanalyzer.logparser.LogCenterConstants;
+import org.tizen.dynamicanalyzer.common.AnalyzerConstants;
import org.tizen.dynamicanalyzer.nl.TimelineChartLabels;
import org.tizen.dynamicanalyzer.resources.ColorResources;
import org.tizen.dynamicanalyzer.resources.ImageResources;
private CPUFrequencyChart() {
chartType = TimelineConstants.CHART_TYPE_CPU_FREQUENCY;
- probeType = LogCenterConstants.LOG_DEVICE;
+ probeType = AnalyzerConstants.MSG_DATA_SYSTEM;
chartName = TimelineChartLabels.CPU_FREQUENCY_CHART_TITLE;
chartIcon = ImageResources.CHART_CPU_FREQUENCY;
addIcon = ImageResources.ADD_CHART_CPU_FREQUENCY;
import java.util.Map;
import java.util.concurrent.Semaphore;
-import org.tizen.dynamicanalyzer.logparser.LogCenterConstants;
+import org.tizen.dynamicanalyzer.common.AnalyzerConstants;
import org.tizen.dynamicanalyzer.nl.TimelineChartLabels;
import org.tizen.dynamicanalyzer.resources.ColorResources;
import org.tizen.dynamicanalyzer.resources.ImageResources;
private FileChart() {
chartType = TimelineConstants.CHART_TYPE_FILE;
- probeType = LogCenterConstants.LOG_DEVICE;
+ probeType = AnalyzerConstants.MSG_DATA_SYSTEM;
chartName = TimelineChartLabels.FILE_CHART_TITLE;
chartIcon = ImageResources.CHART_FILE;
addIcon = ImageResources.ADD_CHART_FILE;
import java.util.HashMap;
import java.util.List;
+import org.tizen.dynamicanalyzer.common.AnalyzerConstants;
import org.tizen.dynamicanalyzer.logparser.LogCenterConstants;
import org.tizen.dynamicanalyzer.nl.TimelineChartLabels;
import org.tizen.dynamicanalyzer.resources.ColorResources;
private HeapChart() {
chartType = TimelineConstants.CHART_TYPE_HEAP;
- probeType = LogCenterConstants.LOG_DEVICE;
+ probeType = AnalyzerConstants.MSG_DATA_SYSTEM;
chartName = TimelineChartLabels.HEAP_CHART_TITLE;
chartIcon = ImageResources.CHART_HEAP;
addIcon = ImageResources.ADD_CHART_HEAP;
import java.util.List;
-import org.tizen.dynamicanalyzer.logparser.LogCenterConstants;
+import org.tizen.dynamicanalyzer.common.AnalyzerConstants;
import org.tizen.dynamicanalyzer.nl.TimelineChartLabels;
import org.tizen.dynamicanalyzer.resources.ColorResources;
import org.tizen.dynamicanalyzer.resources.ImageResources;
private ProcessMemoryChart() {
chartType = TimelineConstants.CHART_TYPE_PROCESS_MEMORY;
- probeType = LogCenterConstants.LOG_DEVICE;
+ probeType = AnalyzerConstants.MSG_DATA_SYSTEM;
chartName = TimelineChartLabels.PROCESS_MEMORY_CHART_TITLE;
chartIcon = ImageResources.CHART_PROCESS_MEMORY;
addIcon = ImageResources.ADD_CHART_PROCESS_MEMORY;
import org.eclipse.swt.widgets.Display;
import org.tizen.dynamicanalyzer.common.AnalyzerConstants;
import org.tizen.dynamicanalyzer.common.AnalyzerManager;
-import org.tizen.dynamicanalyzer.logparser.LogCenterConstants;
import org.tizen.dynamicanalyzer.nl.TimelineChartLabels;
import org.tizen.dynamicanalyzer.resources.ImageResources;
import org.tizen.dynamicanalyzer.swap.logparser.LogPackage;
private ScreenshotChart() {
chartType = TimelineConstants.CHART_TYPE_SCREENSHOT;
chartStyle = DAChart.CHART_STYLE_SCREENSHOT;
- probeType = LogCenterConstants.LOG_SCREENSHOT;
+ probeType = AnalyzerConstants.MSG_PROBE_SCREENSHOT;
chartName = TimelineChartLabels.SCREENSHOT_CHART_TITLE;
chartIcon = ImageResources.CHART_SCREENSHOT;
addIcon = ImageResources.ADD_CHART_SCREENSHOT;
import java.util.List;
+import org.tizen.dynamicanalyzer.common.AnalyzerConstants;
import org.tizen.dynamicanalyzer.common.AnalyzerManager;
-import org.tizen.dynamicanalyzer.logparser.LogCenterConstants;
import org.tizen.dynamicanalyzer.nl.TimelineChartLabels;
import org.tizen.dynamicanalyzer.resources.ColorResources;
import org.tizen.dynamicanalyzer.resources.ImageResources;
private SystemMemoryChart() {
chartType = TimelineConstants.CHART_TYPE_SYSTEM_MEMORY;
- probeType = LogCenterConstants.LOG_DEVICE;
+ probeType = AnalyzerConstants.MSG_DATA_SYSTEM;
chartName = TimelineChartLabels.SYSTEM_MEMORY_CHART_TITLE;
chartIcon = ImageResources.CHART_SYSTEM_MEMORY;
addIcon = ImageResources.ADD_CHART_SYSTEM_MEMORY;
import java.util.List;
+import org.tizen.dynamicanalyzer.common.AnalyzerConstants;
import org.tizen.dynamicanalyzer.common.CommonConstants;
-import org.tizen.dynamicanalyzer.logparser.LogCenterConstants;
import org.tizen.dynamicanalyzer.nl.TimelineChartLabels;
import org.tizen.dynamicanalyzer.resources.ColorResources;
import org.tizen.dynamicanalyzer.resources.FontResources;
private UIEventChart() {
chartType = TimelineConstants.CHART_TYPE_UIEVENT;
chartStyle = DAChart.CHART_STYLE_MULTI;
- probeType = LogCenterConstants.LOG_UI_EVENT;
+ probeType = AnalyzerConstants.MSG_PROBE_UIEVENT;
chartName = TimelineChartLabels.UI_EVENT_CHART_TITLE;
chartIcon = ImageResources.CHART_UI_EVENT;
addIcon = ImageResources.ADD_CHART_UI_EVENT;