Add VoNR/EPSFB/VoLTE/CSFB call results to json

parse result to json file

result file: https://b.corp.google.com/action/issues/184388523/attachments/33088970?download=true

Test: automation
Bug: 184388523
Change-Id: I2347dca662c12a7777314059b03d7c832fe726ba
diff --git a/acts_tests/acts_contrib/test_utils/tel/tel_test_utils.py b/acts_tests/acts_contrib/test_utils/tel/tel_test_utils.py
index a3bfe7f..d45e9e1 100644
--- a/acts_tests/acts_contrib/test_utils/tel/tel_test_utils.py
+++ b/acts_tests/acts_contrib/test_utils/tel/tel_test_utils.py
@@ -210,6 +210,7 @@
 STORY_LINE = "+19523521350"
 CallResult = TelephonyVoiceTestResult.CallResult.Value
 voice_call_type = {}
+result_dict ={}
 
 class TelTestUtilsError(Exception):
     pass
@@ -1643,7 +1644,8 @@
                   incall_ui_display=INCALL_UI_DISPLAY_FOREGROUND,
                   video=False,
                   voice_type_init=None,
-                  call_stats_check=False):
+                  call_stats_check=False,
+                  result_info=result_dict):
     """Make phone call from caller to callee.
 
     Args:
@@ -1683,6 +1685,7 @@
             phone_call_type = check_call_status(ad,
                                                 voice_type_init,
                                                 voice_type_in_call)
+            result_info["Call Stats"] = phone_call_type
             ad.log.debug("Voice Call Type: %s", phone_call_type)
 
     finally:
@@ -2335,7 +2338,8 @@
                         video_state=None,
                         slot_id_callee=None,
                         voice_type_init=None,
-                        call_stats_check=False):
+                        call_stats_check=False,
+                        result_info=result_dict):
     """ Call process, including make a phone call from caller,
     accept from callee, and hang up. The call is on default voice subscription
 
@@ -2374,7 +2378,7 @@
         log, ad_caller, ad_callee, subid_caller, subid_callee, ad_hangup,
         verify_caller_func, verify_callee_func, wait_time_in_call,
         incall_ui_display, dialing_number_length, video_state,
-        voice_type_init, call_stats_check)
+        voice_type_init, call_stats_check, result_info)
 
 
 def call_setup_teardown_for_subscription(
@@ -2391,7 +2395,8 @@
         dialing_number_length=None,
         video_state=None,
         voice_type_init=None,
-        call_stats_check=False):
+        call_stats_check=False,
+        result_info=result_dict):
     """ Call process, including make a phone call from caller,
     accept from callee, and hang up. The call is on specified subscription
 
@@ -2531,10 +2536,12 @@
             phone_a_call_type = check_call_status(ad_caller,
                                                   voice_type_init[0],
                                                   voice_type_in_call[0])
+            result_info["Call Stats"] = phone_a_call_type
             ad_caller.log.debug("Voice Call Type: %s", phone_a_call_type)
             phone_b_call_type = check_call_status(ad_callee,
                                                   voice_type_init[1],
                                                   voice_type_in_call[1])
+            result_info["Call Stats"] = phone_b_call_type
             ad_callee.log.debug("Voice Call Type: %s", phone_b_call_type)
 
         elapsed_time = 0
@@ -11326,4 +11333,4 @@
         stop_time = datetime.now()
         passed_time = (stop_time - start_time).total_seconds()
         if passed_time > max_wait_time:
-            return
\ No newline at end of file
+            return
diff --git a/acts_tests/tests/google/tel/live/TelLiveStressTest.py b/acts_tests/tests/google/tel/live/TelLiveStressTest.py
index 50db714..f9df1bf 100644
--- a/acts_tests/tests/google/tel/live/TelLiveStressTest.py
+++ b/acts_tests/tests/google/tel/live/TelLiveStressTest.py
@@ -473,7 +473,8 @@
                 self.call_server_number,
                 incall_ui_display=INCALL_UI_DISPLAY_BACKGROUND,
                 call_stats_check=self.call_stats_check,
-                voice_type_init=voice_type_init
+                voice_type_init=voice_type_init,
+                result_info = self.result_info
             ) and wait_for_in_call_active(self.dut, 60, 3)
         else:
             call_setup_result = call_setup_teardown(
@@ -487,7 +488,8 @@
                 incall_ui_display=INCALL_UI_DISPLAY_BACKGROUND,
                 slot_id_callee=slot_id_callee,
                 call_stats_check=self.call_stats_check,
-                voice_type_init=voice_type_init)
+                voice_type_init=voice_type_init,
+                result_info = self.result_info)
             self.result_collection[RESULTS_LIST[call_setup_result.result_value]] += 1
 
         if not call_setup_result: