replay, opengl : change sequence number type 97/28997/1
authorHyunjong.park <phjwithyou.park@samsung.com>
Mon, 20 Oct 2014 03:57:02 +0000 (12:57 +0900)
committerHyunjong.park <phjwithyou.park@samsung.com>
Mon, 20 Oct 2014 03:57:02 +0000 (12:57 +0900)
Signed-off-by: Hyunjong.park <phjwithyou.park@samsung.com>
Change-Id: I58becbded24f9eb2632ab64f168a23097dddeaa2

org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/network/data/NetworkAPIDBManager.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/opengl/data/DB/GLAPIDBTableManager.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/opengl/data/DB/GLCommonStateDBTableManager.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/replay/data/ReplayDBManager.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/replayEditor/data/ReplayEditSaveDataMaker.java

index 9c12505..d2c8048 100644 (file)
@@ -144,7 +144,7 @@ public class NetworkAPIDBManager extends DBTable {
                try {
                        while (rs.next()) {
                                NetworkAPIType data = new NetworkAPIType();
-                               data.setSeq(rs.getInt(DB_SEQ_INDEX + 1));
+                               data.setSeq(rs.getLong(DB_SEQ_INDEX + 1));
                                data.setDestinationAddress(rs.getString(DB_DESTINATION_ADDRESS_INDEX + 1));
                                data.setFdStr(rs.getString(DB_FD_VALUE_INDEX + 1));
                                data.setTime(rs.getLong(DB_API_TIME_INDEX + 1));
@@ -174,7 +174,7 @@ public class NetworkAPIDBManager extends DBTable {
                try {
                        while (rs.next()) {
                                NetworkAPIType data = new NetworkAPIType();
-                               data.setSeq(rs.getInt(DB_SEQ_INDEX + 1));
+                               data.setSeq(rs.getLong(DB_SEQ_INDEX + 1));
                                data.setDestinationAddress(rs.getString(DB_DESTINATION_ADDRESS_INDEX + 1));
                                data.setFdStr(rs.getString(DB_FD_VALUE_INDEX + 1));
                                data.setTime(rs.getLong(DB_API_TIME_INDEX + 1));
index 121d515..c4e3b25 100644 (file)
@@ -127,7 +127,7 @@ public class GLAPIDBTableManager extends DBTable {
                try {
                        while (rs.next()) {
                                GLAPIData data = new GLAPIData();
-                               data.setSeq(rs.getInt(TABLE_SEQ_INDEX + 1));
+                               data.setSeq(rs.getLong(TABLE_SEQ_INDEX + 1));
                                data.setContextID(rs.getLong(TABLE_CONTEXT_ID_INDEX + 1));
                                data.setFrameIndex(rs.getInt(TABLE_FRAME_INDEX_INDEX + 1));
                                data.setTime(rs.getLong(TABLE_TIME_INDEX + 1));
index 195e46a..6eec2ce 100644 (file)
@@ -151,7 +151,6 @@ public class GLCommonStateDBTableManager extends DBTable {
                if (index == GLContextNameEnum.RID.ordinal()
                                || index == GLContextNameEnum.BLEND_EQUATION_RGB.ordinal()
                                || index == GLContextNameEnum.BLEND_EQUATION_ALPHA.ordinal()
-                               || index == GLContextNameEnum.BLEND_EQUATION_RGB.ordinal()
                                || index == GLContextNameEnum.BLEND_SRC_RGB.ordinal()
                                || index == GLContextNameEnum.BLEND_SRC_ALPHA.ordinal()
                                || index == GLContextNameEnum.BLEND_DEST_RGB.ordinal()
index 195932e..0b775ce 100644 (file)
@@ -75,7 +75,7 @@ public class ReplayDBManager extends DBTable {
 
        public ReplayDBManager() {
                addColumn(new DBColumn(RID, DBConstants.PRIMARY_KEY, DBConstants.INTEGER));
-               addColumn(new DBColumn(SEQ, DBConstants.NOT_NULL, DBConstants.INTEGER));
+               addColumn(new DBColumn(SEQ, DBConstants.NOT_NULL, DBConstants.LONG));
                addColumn(new DBColumn(TIME, DBConstants.NOT_NULL, DBConstants.LONG));
                addColumn(new DBColumn(SEC, DBConstants.NOT_NULL, DBConstants.INTEGER));
                addColumn(new DBColumn(NANO, DBConstants.NOT_NULL, DBConstants.INTEGER));
@@ -97,7 +97,7 @@ public class ReplayDBManager extends DBTable {
                for (List<Object> data : result) {
                        RecordEventObject reObj = new RecordEventObject();
                        reObj.setId((Integer) data.get(DB_RID_INDEX));
-                       reObj.setSeq((Integer) data.get(DB_SEQ_INDEX));
+                       reObj.setSeq((Long) data.get(DB_SEQ_INDEX));
                        reObj.setTime((Long) data.get(DB_TIME_INDEX));
                        DATime eventTime = new DATime();
                        eventTime.setSec((Integer) data.get(DB_SEC_INDEX));
@@ -128,7 +128,7 @@ public class ReplayDBManager extends DBTable {
                } else {
                        try {
                                prep.setInt(DB_RID_INDEX + 1, (Integer) (rowData.get(DB_RID_INDEX)));
-                               prep.setInt(DB_SEQ_INDEX + 1, (Integer) (rowData.get(DB_SEQ_INDEX)));
+                               prep.setLong(DB_SEQ_INDEX + 1, (Long) (rowData.get(DB_SEQ_INDEX)));
                                prep.setLong(DB_TIME_INDEX + 1, (Long) (rowData.get(DB_TIME_INDEX)));
                                prep.setInt(DB_SEC_INDEX + 1, (Integer) (rowData.get(DB_SEC_INDEX)));
                                prep.setInt(DB_NANO_INDEX + 1, (Integer) (rowData.get(DB_NANO_INDEX)));
index bf3f6cf..120063e 100644 (file)
@@ -40,7 +40,7 @@ import org.tizen.dynamicanalyzer.util.WorkbenchUtil;
 
 public class ReplayEditSaveDataMaker extends ReplayEditDataType {
 
-       private static final int tmpSeqForEventLogFormatSize = 0000;
+       private static final long tmpSeqForEventLogFormatSize = 0000;
        private static final int EVENT_TYPE_TOUCH_DOUSE_UP_VALUE = -1;
 
        private int insertDBRid = 0;