1be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhupackage com.android.uiautomator.core {
2be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu
3be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu  public class UiCollection extends com.android.uiautomator.core.UiObject {
4be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    ctor public UiCollection(com.android.uiautomator.core.UiSelector);
5be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiObject getChildByDescription(com.android.uiautomator.core.UiSelector, java.lang.String) throws com.android.uiautomator.core.UiObjectNotFoundException;
6be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiObject getChildByInstance(com.android.uiautomator.core.UiSelector, int) throws com.android.uiautomator.core.UiObjectNotFoundException;
7be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiObject getChildByText(com.android.uiautomator.core.UiSelector, java.lang.String) throws com.android.uiautomator.core.UiObjectNotFoundException;
8be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public int getChildCount(com.android.uiautomator.core.UiSelector);
9be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu  }
10be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu
11be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu  public class UiDevice {
12be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public void clearLastTraversedText();
13be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean click(int, int);
14be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public void dumpWindowHierarchy(java.lang.String);
15be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public void freezeRotation() throws android.os.RemoteException;
16be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public java.lang.String getCurrentActivityName();
17be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public java.lang.String getCurrentPackageName();
18be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public int getDisplayHeight();
19be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public int getDisplayWidth();
20be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public static com.android.uiautomator.core.UiDevice getInstance();
21be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public java.lang.String getLastTraversedText();
22be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean hasAnyWatcherTriggered();
23be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean hasWatcherTriggered(java.lang.String);
24be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean isScreenOn() throws android.os.RemoteException;
25be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean pressBack();
26be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean pressDPadCenter();
27be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean pressDPadDown();
28be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean pressDPadLeft();
29be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean pressDPadRight();
30be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean pressDPadUp();
31be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean pressDelete();
32be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean pressEnter();
33be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean pressHome();
34be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean pressKeyCode(int);
35be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean pressKeyCode(int, int);
36be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean pressMenu();
37be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean pressRecentApps() throws android.os.RemoteException;
38be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean pressSearch();
39be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public void registerWatcher(java.lang.String, com.android.uiautomator.core.UiWatcher);
40be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public void removeWatcher(java.lang.String);
41be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public void resetWatcherTriggers();
42be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public void runWatchers();
43be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public void sleep() throws android.os.RemoteException;
44be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean swipe(int, int, int, int, int);
45be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean swipe(android.graphics.Point[], int);
46be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public void unfreezeRotation() throws android.os.RemoteException;
47be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public void waitForIdle();
48be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public void waitForIdle(long);
49be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean waitForWindowUpdate(java.lang.String, long);
50be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public void wakeUp() throws android.os.RemoteException;
51be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu  }
52be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu
53be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu  public class UiObject {
54be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    ctor public UiObject(com.android.uiautomator.core.UiSelector);
55be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public void clearTextField() throws com.android.uiautomator.core.UiObjectNotFoundException;
56be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean click() throws com.android.uiautomator.core.UiObjectNotFoundException;
57be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean clickAndWaitForNewWindow() throws com.android.uiautomator.core.UiObjectNotFoundException;
58be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean clickAndWaitForNewWindow(long) throws com.android.uiautomator.core.UiObjectNotFoundException;
59be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean clickBottomRight() throws com.android.uiautomator.core.UiObjectNotFoundException;
60be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean clickTopLeft() throws com.android.uiautomator.core.UiObjectNotFoundException;
61be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean exists();
62be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method protected android.view.accessibility.AccessibilityNodeInfo findAccessibilityNodeInfo(long);
63be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public android.graphics.Rect getBounds() throws com.android.uiautomator.core.UiObjectNotFoundException;
64be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiObject getChild(com.android.uiautomator.core.UiSelector) throws com.android.uiautomator.core.UiObjectNotFoundException;
65be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public int getChildCount() throws com.android.uiautomator.core.UiObjectNotFoundException;
66be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public java.lang.String getContentDescription() throws com.android.uiautomator.core.UiObjectNotFoundException;
67be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiObject getFromParent(com.android.uiautomator.core.UiSelector) throws com.android.uiautomator.core.UiObjectNotFoundException;
68be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public java.lang.String getPackageName() throws com.android.uiautomator.core.UiObjectNotFoundException;
69be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public final com.android.uiautomator.core.UiSelector getSelector();
70be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public java.lang.String getText() throws com.android.uiautomator.core.UiObjectNotFoundException;
71be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean isCheckable() throws com.android.uiautomator.core.UiObjectNotFoundException;
72be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean isChecked() throws com.android.uiautomator.core.UiObjectNotFoundException;
73be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean isClickable() throws com.android.uiautomator.core.UiObjectNotFoundException;
74be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean isEnabled() throws com.android.uiautomator.core.UiObjectNotFoundException;
75be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean isFocusable() throws com.android.uiautomator.core.UiObjectNotFoundException;
76be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean isFocused() throws com.android.uiautomator.core.UiObjectNotFoundException;
77be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean isLongClickable() throws com.android.uiautomator.core.UiObjectNotFoundException;
78be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean isScrollable() throws com.android.uiautomator.core.UiObjectNotFoundException;
79be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean isSelected() throws com.android.uiautomator.core.UiObjectNotFoundException;
80be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean longClick() throws com.android.uiautomator.core.UiObjectNotFoundException;
81be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean longClickBottomRight() throws com.android.uiautomator.core.UiObjectNotFoundException;
82be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean longClickTopLeft() throws com.android.uiautomator.core.UiObjectNotFoundException;
83be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean setText(java.lang.String) throws com.android.uiautomator.core.UiObjectNotFoundException;
84be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean swipeDown(int) throws com.android.uiautomator.core.UiObjectNotFoundException;
85be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean swipeLeft(int) throws com.android.uiautomator.core.UiObjectNotFoundException;
86be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean swipeRight(int) throws com.android.uiautomator.core.UiObjectNotFoundException;
87be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean swipeUp(int) throws com.android.uiautomator.core.UiObjectNotFoundException;
88be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean waitForExists(long);
89be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean waitUntilGone(long);
90be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    field protected static final int SWIPE_MARGIN_LIMIT = 5; // 0x5
91be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    field protected static final long WAIT_FOR_SELECTOR_POLL = 1000L; // 0x3e8L
92be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    field protected static final long WAIT_FOR_SELECTOR_TIMEOUT = 10000L; // 0x2710L
93be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    field protected static final long WAIT_FOR_WINDOW_TMEOUT = 5500L; // 0x157cL
94be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu  }
95be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu
96be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu  public class UiObjectNotFoundException extends java.lang.Exception {
97be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    ctor public UiObjectNotFoundException(java.lang.String);
98be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    ctor public UiObjectNotFoundException(java.lang.String, java.lang.Throwable);
99be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    ctor public UiObjectNotFoundException(java.lang.Throwable);
100be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu  }
101be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu
102be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu  public class UiScrollable extends com.android.uiautomator.core.UiCollection {
103be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    ctor public UiScrollable(com.android.uiautomator.core.UiSelector);
104be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method protected boolean exists(com.android.uiautomator.core.UiSelector);
105be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean flingBackward();
106be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean flingForward();
107be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean flingToBeginning(int);
108be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean flingToEnd(int);
109be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiObject getChildByDescription(com.android.uiautomator.core.UiSelector, java.lang.String, boolean) throws com.android.uiautomator.core.UiObjectNotFoundException;
110be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiObject getChildByText(com.android.uiautomator.core.UiSelector, java.lang.String, boolean) throws com.android.uiautomator.core.UiObjectNotFoundException;
111be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public int getMaxSearchSwipes();
112be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public double getSwipeDeadZonePercentage();
113be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean scrollBackward();
114be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean scrollBackward(int);
115be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean scrollDescriptionIntoView(java.lang.String);
116be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean scrollForward();
117be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean scrollForward(int);
118be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean scrollIntoView(com.android.uiautomator.core.UiSelector);
119be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean scrollTextIntoView(java.lang.String);
120be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean scrollToBeginning(int, int);
121be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean scrollToBeginning(int);
122be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean scrollToEnd(int, int);
123be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public boolean scrollToEnd(int);
124be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public void setAsHorizontalList();
125be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public void setAsVerticalList();
126be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public void setMaxSearchSwipes(int);
127be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public void setSwipeDeadZonePercentage(double);
128be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu  }
129be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu
130be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu  public class UiSelector {
131be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    ctor public UiSelector();
132be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiSelector checked(boolean);
133be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiSelector childSelector(com.android.uiautomator.core.UiSelector);
134be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiSelector className(java.lang.String);
135be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiSelector clickable(boolean);
136be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiSelector description(java.lang.String);
137be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiSelector descriptionContains(java.lang.String);
138be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiSelector descriptionStartsWith(java.lang.String);
139be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiSelector enabled(boolean);
140be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiSelector focusable(boolean);
141be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiSelector focused(boolean);
142be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiSelector fromParent(com.android.uiautomator.core.UiSelector);
143be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiSelector index(int);
144be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiSelector instance(int);
145be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiSelector packageName(java.lang.String);
146be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiSelector scrollable(boolean);
147be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiSelector selected(boolean);
148be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiSelector text(java.lang.String);
149be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiSelector textContains(java.lang.String);
150be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiSelector textStartsWith(java.lang.String);
151be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu  }
152be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu
153be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu  public abstract interface UiWatcher {
154be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public abstract boolean checkForCondition();
155be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu  }
156be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu
157be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu}
158be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu
159be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhupackage com.android.uiautomator.testrunner {
160be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu
161be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu  public abstract interface IAutomationSupport {
162be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public abstract void sendStatus(int, android.os.Bundle);
163be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu  }
164be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu
165be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu  public class UiAutomatorTestCase extends junit.framework.TestCase {
166be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    ctor public UiAutomatorTestCase();
167be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.testrunner.IAutomationSupport getAutomationSupport();
168be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public android.os.Bundle getParams();
169be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public com.android.uiautomator.core.UiDevice getUiDevice();
170be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu    method public void sleep(long);
171be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu  }
172be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu
173be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu}
174be6e99484bd8b20f51c8fbd6dce828802b020099Guang Zhu
175