[Title] Print other file api on File API List Table
authorphjwithyou.park <phjwithyou.park@samsung.com>
Mon, 30 Jul 2012 06:31:38 +0000 (15:31 +0900)
committerphjwithyou.park <phjwithyou.park@samsung.com>
Mon, 30 Jul 2012 06:31:38 +0000 (15:31 +0900)
[Type] feature
[Module] DA - File Page
[Priority] normal
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/views/filePage/fileChart/FileChartManager.java

index fa27847..f03af03 100644 (file)
@@ -262,6 +262,7 @@ public class FileChartManager {
 
                                // close
                        } else if (fdApiType.equals(LogCenterConstants.FD_API_TYPE_CLOSE)) {
+                               
                                FileChartItemData child = getFDRegister().get(fd);
                                if (null == child) {
                                        continue;
@@ -397,37 +398,42 @@ public class FileChartManager {
                                        e.printStackTrace();
                                }
                        } 
+                       
+                       
                        else  /// Other
                        {
-                               System.out.print("Other\n");
+                               
+                               System.out.print(" Other "+input+"\n");
+
                                // Print Called Function On File Chart Except( Open, close, Error )     
                                FailedData ffd = new FailedData(input);
                                FileChartItemData fcid = getFDRegister().get(fd);
                                if (null == fcid) {
-                                       System.out.print("ERROR - parentFailed 13\n");
                                        ffd = null;
                                        continue;
                                }
                                path = fcid.getParentKey();
                                if (path.isEmpty()) {
-                                       System.out.print("ERROR - parentFailed 2\n");
                                        System.out.println();
                                }
                                fcid.getCalledFunctionData().add(ffd);
                                
                                FileChartItemData parentCalled = getFileRegister().get(path);
                                if (null == parentCalled) {
-                                       System.out.print("ERROR - parentFailed 3\n");
                                        parentCalled = createNewFileData(path);
                                }
                                parentCalled.getCalledFunctionData().add(ffd);
                                AnalyzerManager.getCalledFunctionChecker().getFailedList().add(ffd);
+                       
+                               // Insert File API List Table
+                               fcid.getLastData().getRelations().add(seqNum);
                        }
                }
        }
 
-       private void warningCheck(FileChartItemData file, List<String> input,
-                       int type) {
+       
+       
+       private void warningCheck(FileChartItemData file, List<String> input, int type) {
                if (type == TYPE_CLOSE) {
                        long firstTime = file.getLastData().getFirstTime();
                        if (firstTime < 0) {