Merge "Add hfp test command hfp_waiting_call."
diff --git a/acts/framework/acts/controllers/fuchsia_lib/bt/hfp_lib.py b/acts/framework/acts/controllers/fuchsia_lib/bt/hfp_lib.py
index ea04c61..cd789cf 100644
--- a/acts/framework/acts/controllers/fuchsia_lib/bt/hfp_lib.py
+++ b/acts/framework/acts/controllers/fuchsia_lib/bt/hfp_lib.py
@@ -128,6 +128,23 @@
 
         return self.send_command(test_id, test_cmd, test_args)
 
+    def initiateIncomingWaitingCall(self, remote):
+        """Opens an incoming call when there is an onging call and alerts
+        the HFP peer.
+
+        Args:
+            remote: The number of the remote party.
+
+        Returns:
+            Dictionary, call_id if success, error if error.
+        """
+        test_cmd = "hfp_facade.IncomingWaitingCall"
+        test_args = {"remote": remote }
+        test_id = self.build_id(self.test_counter)
+        self.test_counter += 1
+
+        return self.send_command(test_id, test_cmd, test_args)
+
     def initiateOutgoingCall(self, remote):
         """Opens an outgoing call channel and alerts the HFP peer.
 
diff --git a/acts_tests/tests/google/fuchsia/bt/command_input.py b/acts_tests/tests/google/fuchsia/bt/command_input.py
index 0ae3cf1..c993ac0 100644
--- a/acts_tests/tests/google/fuchsia/bt/command_input.py
+++ b/acts_tests/tests/google/fuchsia/bt/command_input.py
@@ -2469,6 +2469,27 @@
         except Exception as err:
             self.log.error(FAILURE.format(cmd, err))
 
+    def do_hfp_waiting_call(self, line):
+        """
+        Description: Simulate an incoming call on the call manager when there is
+        an onging active call already.
+
+        Input(s):
+            remote: The number of the remote party on the incoming call
+
+        Usage:
+          Examples:
+            hfp_waiting_call <remote>
+            hfp_waiting_call 14085555555
+        """
+        cmd = "Simulates an incoming call"
+        try:
+            remote = line.strip()
+            result = self.pri_dut.hfp_lib.initiateIncomingWaitingCall(remote)
+            self.log.info(result)
+        except Exception as err:
+            self.log.error(FAILURE.format(cmd, err))
+
     def do_hfp_outgoing_call(self, line):
         """
         Description: Simulate an outgoing call on the call manager