1// Signature format: 2.0 2package com.android.uiautomator.core { 3 4 @Deprecated public final class Configurator { 5 method @Deprecated public long getActionAcknowledgmentTimeout(); 6 method @Deprecated public static com.android.uiautomator.core.Configurator getInstance(); 7 method @Deprecated public long getKeyInjectionDelay(); 8 method @Deprecated public long getScrollAcknowledgmentTimeout(); 9 method @Deprecated public long getWaitForIdleTimeout(); 10 method @Deprecated public long getWaitForSelectorTimeout(); 11 method @Deprecated public com.android.uiautomator.core.Configurator setActionAcknowledgmentTimeout(long); 12 method @Deprecated public com.android.uiautomator.core.Configurator setKeyInjectionDelay(long); 13 method @Deprecated public com.android.uiautomator.core.Configurator setScrollAcknowledgmentTimeout(long); 14 method @Deprecated public com.android.uiautomator.core.Configurator setWaitForIdleTimeout(long); 15 method @Deprecated public com.android.uiautomator.core.Configurator setWaitForSelectorTimeout(long); 16 } 17 18 @Deprecated public class UiCollection extends com.android.uiautomator.core.UiObject { 19 ctor @Deprecated public UiCollection(com.android.uiautomator.core.UiSelector); 20 method @Deprecated public com.android.uiautomator.core.UiObject getChildByDescription(com.android.uiautomator.core.UiSelector, String) throws com.android.uiautomator.core.UiObjectNotFoundException; 21 method @Deprecated public com.android.uiautomator.core.UiObject getChildByInstance(com.android.uiautomator.core.UiSelector, int) throws com.android.uiautomator.core.UiObjectNotFoundException; 22 method @Deprecated public com.android.uiautomator.core.UiObject getChildByText(com.android.uiautomator.core.UiSelector, String) throws com.android.uiautomator.core.UiObjectNotFoundException; 23 method @Deprecated public int getChildCount(com.android.uiautomator.core.UiSelector); 24 } 25 26 @Deprecated public class UiDevice { 27 method @Deprecated public void clearLastTraversedText(); 28 method @Deprecated public boolean click(int, int); 29 method @Deprecated public boolean drag(int, int, int, int, int); 30 method @Deprecated public void dumpWindowHierarchy(String); 31 method @Deprecated public void freezeRotation() throws android.os.RemoteException; 32 method @Deprecated public String getCurrentActivityName(); 33 method @Deprecated public String getCurrentPackageName(); 34 method @Deprecated public int getDisplayHeight(); 35 method @Deprecated public int getDisplayRotation(); 36 method @Deprecated public android.graphics.Point getDisplaySizeDp(); 37 method @Deprecated public int getDisplayWidth(); 38 method @Deprecated public static com.android.uiautomator.core.UiDevice getInstance(); 39 method @Deprecated public String getLastTraversedText(); 40 method @Deprecated public String getProductName(); 41 method @Deprecated public boolean hasAnyWatcherTriggered(); 42 method @Deprecated public boolean hasWatcherTriggered(String); 43 method @Deprecated public boolean isNaturalOrientation(); 44 method @Deprecated public boolean isScreenOn() throws android.os.RemoteException; 45 method @Deprecated public boolean openNotification(); 46 method @Deprecated public boolean openQuickSettings(); 47 method @Deprecated public boolean pressBack(); 48 method @Deprecated public boolean pressDPadCenter(); 49 method @Deprecated public boolean pressDPadDown(); 50 method @Deprecated public boolean pressDPadLeft(); 51 method @Deprecated public boolean pressDPadRight(); 52 method @Deprecated public boolean pressDPadUp(); 53 method @Deprecated public boolean pressDelete(); 54 method @Deprecated public boolean pressEnter(); 55 method @Deprecated public boolean pressHome(); 56 method @Deprecated public boolean pressKeyCode(int); 57 method @Deprecated public boolean pressKeyCode(int, int); 58 method @Deprecated public boolean pressMenu(); 59 method @Deprecated public boolean pressRecentApps() throws android.os.RemoteException; 60 method @Deprecated public boolean pressSearch(); 61 method @Deprecated public void registerWatcher(String, com.android.uiautomator.core.UiWatcher); 62 method @Deprecated public void removeWatcher(String); 63 method @Deprecated public void resetWatcherTriggers(); 64 method @Deprecated public void runWatchers(); 65 method @Deprecated public void setCompressedLayoutHeirarchy(boolean); 66 method @Deprecated public void setOrientationLeft() throws android.os.RemoteException; 67 method @Deprecated public void setOrientationNatural() throws android.os.RemoteException; 68 method @Deprecated public void setOrientationRight() throws android.os.RemoteException; 69 method @Deprecated public void sleep() throws android.os.RemoteException; 70 method @Deprecated public boolean swipe(int, int, int, int, int); 71 method @Deprecated public boolean swipe(android.graphics.Point[], int); 72 method @Deprecated public boolean takeScreenshot(java.io.File); 73 method @Deprecated public boolean takeScreenshot(java.io.File, float, int); 74 method @Deprecated public void unfreezeRotation() throws android.os.RemoteException; 75 method @Deprecated public void waitForIdle(); 76 method @Deprecated public void waitForIdle(long); 77 method @Deprecated public boolean waitForWindowUpdate(String, long); 78 method @Deprecated public void wakeUp() throws android.os.RemoteException; 79 } 80 81 @Deprecated public class UiObject { 82 ctor @Deprecated public UiObject(com.android.uiautomator.core.UiSelector); 83 method @Deprecated public void clearTextField() throws com.android.uiautomator.core.UiObjectNotFoundException; 84 method @Deprecated public boolean click() throws com.android.uiautomator.core.UiObjectNotFoundException; 85 method @Deprecated public boolean clickAndWaitForNewWindow() throws com.android.uiautomator.core.UiObjectNotFoundException; 86 method @Deprecated public boolean clickAndWaitForNewWindow(long) throws com.android.uiautomator.core.UiObjectNotFoundException; 87 method @Deprecated public boolean clickBottomRight() throws com.android.uiautomator.core.UiObjectNotFoundException; 88 method @Deprecated public boolean clickTopLeft() throws com.android.uiautomator.core.UiObjectNotFoundException; 89 method @Deprecated public boolean dragTo(com.android.uiautomator.core.UiObject, int) throws com.android.uiautomator.core.UiObjectNotFoundException; 90 method @Deprecated public boolean dragTo(int, int, int) throws com.android.uiautomator.core.UiObjectNotFoundException; 91 method @Deprecated public boolean exists(); 92 method @Deprecated protected android.view.accessibility.AccessibilityNodeInfo findAccessibilityNodeInfo(long); 93 method @Deprecated public android.graphics.Rect getBounds() throws com.android.uiautomator.core.UiObjectNotFoundException; 94 method @Deprecated public com.android.uiautomator.core.UiObject getChild(com.android.uiautomator.core.UiSelector) throws com.android.uiautomator.core.UiObjectNotFoundException; 95 method @Deprecated public int getChildCount() throws com.android.uiautomator.core.UiObjectNotFoundException; 96 method @Deprecated public String getClassName() throws com.android.uiautomator.core.UiObjectNotFoundException; 97 method @Deprecated public String getContentDescription() throws com.android.uiautomator.core.UiObjectNotFoundException; 98 method @Deprecated public com.android.uiautomator.core.UiObject getFromParent(com.android.uiautomator.core.UiSelector) throws com.android.uiautomator.core.UiObjectNotFoundException; 99 method @Deprecated public String getPackageName() throws com.android.uiautomator.core.UiObjectNotFoundException; 100 method @Deprecated public final com.android.uiautomator.core.UiSelector getSelector(); 101 method @Deprecated public String getText() throws com.android.uiautomator.core.UiObjectNotFoundException; 102 method @Deprecated public android.graphics.Rect getVisibleBounds() throws com.android.uiautomator.core.UiObjectNotFoundException; 103 method @Deprecated public boolean isCheckable() throws com.android.uiautomator.core.UiObjectNotFoundException; 104 method @Deprecated public boolean isChecked() throws com.android.uiautomator.core.UiObjectNotFoundException; 105 method @Deprecated public boolean isClickable() throws com.android.uiautomator.core.UiObjectNotFoundException; 106 method @Deprecated public boolean isEnabled() throws com.android.uiautomator.core.UiObjectNotFoundException; 107 method @Deprecated public boolean isFocusable() throws com.android.uiautomator.core.UiObjectNotFoundException; 108 method @Deprecated public boolean isFocused() throws com.android.uiautomator.core.UiObjectNotFoundException; 109 method @Deprecated public boolean isLongClickable() throws com.android.uiautomator.core.UiObjectNotFoundException; 110 method @Deprecated public boolean isScrollable() throws com.android.uiautomator.core.UiObjectNotFoundException; 111 method @Deprecated public boolean isSelected() throws com.android.uiautomator.core.UiObjectNotFoundException; 112 method @Deprecated public boolean longClick() throws com.android.uiautomator.core.UiObjectNotFoundException; 113 method @Deprecated public boolean longClickBottomRight() throws com.android.uiautomator.core.UiObjectNotFoundException; 114 method @Deprecated public boolean longClickTopLeft() throws com.android.uiautomator.core.UiObjectNotFoundException; 115 method @Deprecated public boolean performMultiPointerGesture(android.view.MotionEvent.PointerCoords[]...); 116 method @Deprecated public boolean performTwoPointerGesture(android.graphics.Point, android.graphics.Point, android.graphics.Point, android.graphics.Point, int); 117 method @Deprecated public boolean pinchIn(int, int) throws com.android.uiautomator.core.UiObjectNotFoundException; 118 method @Deprecated public boolean pinchOut(int, int) throws com.android.uiautomator.core.UiObjectNotFoundException; 119 method @Deprecated public boolean setText(String) throws com.android.uiautomator.core.UiObjectNotFoundException; 120 method @Deprecated public boolean swipeDown(int) throws com.android.uiautomator.core.UiObjectNotFoundException; 121 method @Deprecated public boolean swipeLeft(int) throws com.android.uiautomator.core.UiObjectNotFoundException; 122 method @Deprecated public boolean swipeRight(int) throws com.android.uiautomator.core.UiObjectNotFoundException; 123 method @Deprecated public boolean swipeUp(int) throws com.android.uiautomator.core.UiObjectNotFoundException; 124 method @Deprecated public boolean waitForExists(long); 125 method @Deprecated public boolean waitUntilGone(long); 126 field @Deprecated protected static final int FINGER_TOUCH_HALF_WIDTH = 20; // 0x14 127 field @Deprecated protected static final int SWIPE_MARGIN_LIMIT = 5; // 0x5 128 field @Deprecated protected static final long WAIT_FOR_EVENT_TMEOUT = 3000L; // 0xbb8L 129 field @Deprecated protected static final long WAIT_FOR_SELECTOR_POLL = 1000L; // 0x3e8L 130 field @Deprecated protected static final long WAIT_FOR_SELECTOR_TIMEOUT = 10000L; // 0x2710L 131 field @Deprecated protected static final long WAIT_FOR_WINDOW_TMEOUT = 5500L; // 0x157cL 132 } 133 134 @Deprecated public class UiObjectNotFoundException extends java.lang.Exception { 135 ctor @Deprecated public UiObjectNotFoundException(String); 136 ctor @Deprecated public UiObjectNotFoundException(String, Throwable); 137 ctor @Deprecated public UiObjectNotFoundException(Throwable); 138 } 139 140 @Deprecated public class UiScrollable extends com.android.uiautomator.core.UiCollection { 141 ctor @Deprecated public UiScrollable(com.android.uiautomator.core.UiSelector); 142 method @Deprecated protected boolean exists(com.android.uiautomator.core.UiSelector); 143 method @Deprecated public boolean flingBackward() throws com.android.uiautomator.core.UiObjectNotFoundException; 144 method @Deprecated public boolean flingForward() throws com.android.uiautomator.core.UiObjectNotFoundException; 145 method @Deprecated public boolean flingToBeginning(int) throws com.android.uiautomator.core.UiObjectNotFoundException; 146 method @Deprecated public boolean flingToEnd(int) throws com.android.uiautomator.core.UiObjectNotFoundException; 147 method @Deprecated public com.android.uiautomator.core.UiObject getChildByDescription(com.android.uiautomator.core.UiSelector, String, boolean) throws com.android.uiautomator.core.UiObjectNotFoundException; 148 method @Deprecated public com.android.uiautomator.core.UiObject getChildByText(com.android.uiautomator.core.UiSelector, String, boolean) throws com.android.uiautomator.core.UiObjectNotFoundException; 149 method @Deprecated public int getMaxSearchSwipes(); 150 method @Deprecated public double getSwipeDeadZonePercentage(); 151 method @Deprecated public boolean scrollBackward() throws com.android.uiautomator.core.UiObjectNotFoundException; 152 method @Deprecated public boolean scrollBackward(int) throws com.android.uiautomator.core.UiObjectNotFoundException; 153 method @Deprecated public boolean scrollDescriptionIntoView(String) throws com.android.uiautomator.core.UiObjectNotFoundException; 154 method @Deprecated public boolean scrollForward() throws com.android.uiautomator.core.UiObjectNotFoundException; 155 method @Deprecated public boolean scrollForward(int) throws com.android.uiautomator.core.UiObjectNotFoundException; 156 method @Deprecated public boolean scrollIntoView(com.android.uiautomator.core.UiObject) throws com.android.uiautomator.core.UiObjectNotFoundException; 157 method @Deprecated public boolean scrollIntoView(com.android.uiautomator.core.UiSelector) throws com.android.uiautomator.core.UiObjectNotFoundException; 158 method @Deprecated public boolean scrollTextIntoView(String) throws com.android.uiautomator.core.UiObjectNotFoundException; 159 method @Deprecated public boolean scrollToBeginning(int, int) throws com.android.uiautomator.core.UiObjectNotFoundException; 160 method @Deprecated public boolean scrollToBeginning(int) throws com.android.uiautomator.core.UiObjectNotFoundException; 161 method @Deprecated public boolean scrollToEnd(int, int) throws com.android.uiautomator.core.UiObjectNotFoundException; 162 method @Deprecated public boolean scrollToEnd(int) throws com.android.uiautomator.core.UiObjectNotFoundException; 163 method @Deprecated public com.android.uiautomator.core.UiScrollable setAsHorizontalList(); 164 method @Deprecated public com.android.uiautomator.core.UiScrollable setAsVerticalList(); 165 method @Deprecated public com.android.uiautomator.core.UiScrollable setMaxSearchSwipes(int); 166 method @Deprecated public com.android.uiautomator.core.UiScrollable setSwipeDeadZonePercentage(double); 167 } 168 169 @Deprecated public class UiSelector { 170 ctor @Deprecated public UiSelector(); 171 method @Deprecated public com.android.uiautomator.core.UiSelector checkable(boolean); 172 method @Deprecated public com.android.uiautomator.core.UiSelector checked(boolean); 173 method @Deprecated public com.android.uiautomator.core.UiSelector childSelector(com.android.uiautomator.core.UiSelector); 174 method @Deprecated public com.android.uiautomator.core.UiSelector className(String); 175 method @Deprecated public <T> com.android.uiautomator.core.UiSelector className(Class<T>); 176 method @Deprecated public com.android.uiautomator.core.UiSelector classNameMatches(String); 177 method @Deprecated public com.android.uiautomator.core.UiSelector clickable(boolean); 178 method @Deprecated protected com.android.uiautomator.core.UiSelector cloneSelector(); 179 method @Deprecated public com.android.uiautomator.core.UiSelector description(String); 180 method @Deprecated public com.android.uiautomator.core.UiSelector descriptionContains(String); 181 method @Deprecated public com.android.uiautomator.core.UiSelector descriptionMatches(String); 182 method @Deprecated public com.android.uiautomator.core.UiSelector descriptionStartsWith(String); 183 method @Deprecated public com.android.uiautomator.core.UiSelector enabled(boolean); 184 method @Deprecated public com.android.uiautomator.core.UiSelector focusable(boolean); 185 method @Deprecated public com.android.uiautomator.core.UiSelector focused(boolean); 186 method @Deprecated public com.android.uiautomator.core.UiSelector fromParent(com.android.uiautomator.core.UiSelector); 187 method @Deprecated public com.android.uiautomator.core.UiSelector index(int); 188 method @Deprecated public com.android.uiautomator.core.UiSelector instance(int); 189 method @Deprecated public com.android.uiautomator.core.UiSelector longClickable(boolean); 190 method @Deprecated public com.android.uiautomator.core.UiSelector packageName(String); 191 method @Deprecated public com.android.uiautomator.core.UiSelector packageNameMatches(String); 192 method @Deprecated public com.android.uiautomator.core.UiSelector resourceId(String); 193 method @Deprecated public com.android.uiautomator.core.UiSelector resourceIdMatches(String); 194 method @Deprecated public com.android.uiautomator.core.UiSelector scrollable(boolean); 195 method @Deprecated public com.android.uiautomator.core.UiSelector selected(boolean); 196 method @Deprecated public com.android.uiautomator.core.UiSelector text(String); 197 method @Deprecated public com.android.uiautomator.core.UiSelector textContains(String); 198 method @Deprecated public com.android.uiautomator.core.UiSelector textMatches(String); 199 method @Deprecated public com.android.uiautomator.core.UiSelector textStartsWith(String); 200 } 201 202 @Deprecated public interface UiWatcher { 203 method @Deprecated public boolean checkForCondition(); 204 } 205 206} 207 208package com.android.uiautomator.testrunner { 209 210 @Deprecated public interface IAutomationSupport { 211 method @Deprecated public void sendStatus(int, android.os.Bundle); 212 } 213 214 @Deprecated public class UiAutomatorTestCase extends junit.framework.TestCase { 215 ctor @Deprecated public UiAutomatorTestCase(); 216 method @Deprecated public com.android.uiautomator.testrunner.IAutomationSupport getAutomationSupport(); 217 method @Deprecated public android.os.Bundle getParams(); 218 method @Deprecated public com.android.uiautomator.core.UiDevice getUiDevice(); 219 method @Deprecated public void sleep(long); 220 } 221 222} 223 224