Add swipe, zoom, rotate, tilt

Bug: 138301255
Test: build and run test
Change-Id: I753b4e89b2075b8dcd3a93574275e9af797075f4
diff --git a/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/IAutoMapsHelper.java b/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/IAutoMapsHelper.java
index ca8f6c2..527eff3 100644
--- a/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/IAutoMapsHelper.java
+++ b/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/IAutoMapsHelper.java
@@ -40,4 +40,100 @@
      *
      */
     void stopNavigation();
-}
\ No newline at end of file
+
+    /**
+     * Setup expectations: None
+     *
+     * <p>Check if maps app is open. Maps can be opened either in full screen or in home screen.
+     */
+    boolean isOpen();
+
+    /**
+     * Setup expectations: Maps app is open
+     *
+     * <p>Swipe upwards by <code>percent</code> percent of maps region in <code>durationMs</code>
+     * milliseconds.
+     *
+     * @param percent The percentage of the scrollable region by which to swipe up.
+     * @param durationMs The duration it takes to perform this gesture in milliseconds.
+     */
+    void swipeUp(float percent, long durationMs);
+
+    /**
+     * Setup expectations: Maps app is open
+     *
+     * <p>Swipe downwards by <code>percent</code> percent of maps region in <code>durationMs</code>
+     * milliseconds.
+     *
+     * @param percent The percentage of the scrollable region by which to swipe down.
+     * @param durationMs The duration it takes to perform this gesture in milliseconds.
+     */
+    void swipeDown(float percent, long durationMs);
+
+    /**
+     * Setup expectations: Maps app is open
+     *
+     * <p>Swipe leftwards by <code>percent</code> percent of maps region in <code>durationMs</code>
+     * milliseconds.
+     *
+     * @param percent The percentage of the scrollable region by which to swipe left.
+     * @param durationMs The duration it takes to perform this gesture in milliseconds.
+     */
+    void swipeLeft(float percent, long durationMs);
+
+    /**
+     * Setup expectations: Maps app is open
+     *
+     * <p>Swipe rightwards by <code>percent</code> percent of maps region in <code>durationMs</code>
+     * milliseconds.
+     *
+     * @param percent The percentage of the scrollable region by which to swipe right.
+     * @param durationMs The duration it takes to perform this gesture in milliseconds.
+     */
+    void swipeRight(float percent, long durationMs);
+
+    /**
+     * Setup expectations: Maps app is open
+     *
+     * <p>Scale by <code>percent</code> percent in <code>durationMs</code> milliseconds. When <code>
+     * percent</code> is less 100, it scales down, and vice versa. For example, when percent is 50,
+     * it will scale down so that objects look half the size as before, and when percent is 200, it
+     * will scale up and objects look twice as large.
+     *
+     * @param percent The percentage by which to scale up/down.
+     * @param durationMs The duration it takes to perform this gesture in milliseconds.
+     */
+    void scale(float percent, long durationMs);
+
+    /**
+     * Setup expectations: Maps app is open
+     *
+     * <p>Rotate by <code>angle</code> degrees in <code>durationMs</code> milliseconds, rotation is
+     * around the center of the maps region. Positive angle for clockwise rotation, and negative
+     * angle for counter-clockwise rotation.
+     *
+     * @param angle The angle in degree by which to rotate to screen.
+     * @param durationMs The duration it takes to perform this gesture in milliseconds.
+     */
+    void rotate(float angle, long durationMs);
+
+    /**
+     * Setup expectations: Maps app is open
+     *
+     * <p>Tilt up by <code>angle</code> degrees in <code>durationMs</code> milliseconds.
+     *
+     * @param angle The angle in degree by which to tilt up the screen's view angle.
+     * @param durationMs The duration it takes to perform this gesture in milliseconds.
+     */
+    void tiltUp(float angle, long durationMs);
+
+    /**
+     * Setup expectations: Maps app is open
+     *
+     * <p>Tilt down by <code>angle</code> degrees in <code>durationMs</code> milliseconds.
+     *
+     * @param angle The angle in degree by which to tilt down the screen's view angle.
+     * @param durationMs The duration it takes to perform this gesture in milliseconds.
+     */
+    void tiltDown(float angle, long durationMs);
+}