def swipe(self, p1, p2, duration=0.5, steps=5, fingers=1):
        """
        Perform swipe event on the device

        Args:
            p1: start point
            p2: end point
            duration: how long to swipe the screen, default 0.5
            steps: how big is the swipe step, default 5
            fingers: the number of fingers. 1 or 2.

        Examples:
            >>> dev = Android()  # or dev = device()
            >>> dev.swipe((100, 100), (200, 200))  # absolute coordinates
            >>> dev.swipe((0.1, 0.1), (0.2, 0.2))  # relative coordinates

        Returns:
            (pos1, pos2)

        """
        p1 = get_absolute_coordinate(p1, self)
        p2 = get_absolute_coordinate(p2, self)
        self.touch_proxy.swipe(p1, p2, duration=duration, steps=steps, fingers=fingers)
        return p1, p2

        Perform swipe event on the device

        Args:
            p1: start point
            p2: end point
            duration: how long to swipe the screen, default 0.5
            steps: how big is the swipe step, default 5
            fingers: the number of fingers. 1 or 2.

        Examples:
            >>> dev = Android()  # or dev = device()
            >>> dev.swipe((100, 100), (200, 200))  # absolute coordinates
            >>> dev.swipe((0.1, 0.1), (0.2, 0.2))  # relative coordinates

        Returns:
            (pos1, pos2)

        
airtest/core/android/android.py