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