SRADA-972,SRADA-971 StopCommand output contains ErrorCode.
authorp.privalov <p.privalov@partner.samsung.com>
Thu, 28 Jul 2016 16:43:05 +0000 (19:43 +0300)
committerPetr Privalov <p.privalov@partner.samsung.com>
Fri, 29 Jul 2016 15:58:23 +0000 (00:58 +0900)
commit19c2ba5a40943163f676fded9be04eaf1bdfc36a
tree2991d393259c6de3d8e62eb4cff638f1744ed848
parente18398a0a009cc775881956db9c7d5ed83c071b2
SRADA-972,SRADA-971 StopCommand output contains ErrorCode.

If error occured during application selection in Cli mode  TracingProcess
will be stopped and stop command output will contain error description.

Changes:
 * TracingProcess now able to send message to tracingProcessManager in case of
   error occured during startTrace() execution. New message type introduced.
 * CliInternals.selectApp now returns ErrorCode.
 * PackageInfo.getBinaryInformation() now returns ErrorCode.
 * Imlemented method getErrorCode(int) in ErrorCode - to get error code by it's
   number.
 * in stop command now checked case if TracingProcess is already stopped.

In case of wrong application "dacli devices -u" will not show specified device.

Change-Id: I73b58b411daa5064294eebf92f67a987841ef10e
org.tizen.dynamicanalyzer.cli/src/org/tizen/dynamicanalyzer/cli/CliInternals.java
org.tizen.dynamicanalyzer.cli/src/org/tizen/dynamicanalyzer/cli/commands/StopCommand.java
org.tizen.dynamicanalyzer.cli/src/org/tizen/dynamicanalyzer/cli/manager/TracingProcessManager.java
org.tizen.dynamicanalyzer.cli/src/org/tizen/dynamicanalyzer/cli/tracing/TracingProcess.java
org.tizen.dynamicanalyzer.cli/src/org/tizen/dynamicanalyzer/cli/utils/Message.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/common/DAResult.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/project/PackageInfo.java