summaryrefslogtreecommitdiffstats
path: root/cmds/uiautomator/api/16.txt
blob: f3b0eb767672ae6382ed92edbb38d2943190c733 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
package com.android.uiautomator.core {

  public class UiCollection extends com.android.uiautomator.core.UiObject {
    ctor public UiCollection(com.android.uiautomator.core.UiSelector);
    method public com.android.uiautomator.core.UiObject getChildByDescription(com.android.uiautomator.core.UiSelector, java.lang.String) throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public com.android.uiautomator.core.UiObject getChildByInstance(com.android.uiautomator.core.UiSelector, int) throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public com.android.uiautomator.core.UiObject getChildByText(com.android.uiautomator.core.UiSelector, java.lang.String) throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public int getChildCount(com.android.uiautomator.core.UiSelector);
  }

  public class UiDevice {
    method public void clearLastTraversedText();
    method public boolean click(int, int);
    method public void dumpWindowHierarchy(java.lang.String);
    method public void freezeRotation() throws android.os.RemoteException;
    method public java.lang.String getCurrentActivityName();
    method public java.lang.String getCurrentPackageName();
    method public int getDisplayHeight();
    method public int getDisplayWidth();
    method public static com.android.uiautomator.core.UiDevice getInstance();
    method public java.lang.String getLastTraversedText();
    method public boolean hasAnyWatcherTriggered();
    method public boolean hasWatcherTriggered(java.lang.String);
    method public boolean isScreenOn() throws android.os.RemoteException;
    method public boolean pressBack();
    method public boolean pressDPadCenter();
    method public boolean pressDPadDown();
    method public boolean pressDPadLeft();
    method public boolean pressDPadRight();
    method public boolean pressDPadUp();
    method public boolean pressDelete();
    method public boolean pressEnter();
    method public boolean pressHome();
    method public boolean pressKeyCode(int);
    method public boolean pressKeyCode(int, int);
    method public boolean pressMenu();
    method public boolean pressRecentApps() throws android.os.RemoteException;
    method public boolean pressSearch();
    method public void registerWatcher(java.lang.String, com.android.uiautomator.core.UiWatcher);
    method public void removeWatcher(java.lang.String);
    method public void resetWatcherTriggers();
    method public void runWatchers();
    method public void sleep() throws android.os.RemoteException;
    method public boolean swipe(int, int, int, int, int);
    method public boolean swipe(android.graphics.Point[], int);
    method public void unfreezeRotation() throws android.os.RemoteException;
    method public void waitForIdle();
    method public void waitForIdle(long);
    method public boolean waitForWindowUpdate(java.lang.String, long);
    method public void wakeUp() throws android.os.RemoteException;
  }

  public class UiObject {
    ctor public UiObject(com.android.uiautomator.core.UiSelector);
    method public void clearTextField() throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public boolean click() throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public boolean clickAndWaitForNewWindow() throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public boolean clickAndWaitForNewWindow(long) throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public boolean clickBottomRight() throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public boolean clickTopLeft() throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public boolean exists();
    method protected android.view.accessibility.AccessibilityNodeInfo findAccessibilityNodeInfo(long);
    method public android.graphics.Rect getBounds() throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public com.android.uiautomator.core.UiObject getChild(com.android.uiautomator.core.UiSelector) throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public int getChildCount() throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public java.lang.String getContentDescription() throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public com.android.uiautomator.core.UiObject getFromParent(com.android.uiautomator.core.UiSelector) throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public java.lang.String getPackageName() throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public final com.android.uiautomator.core.UiSelector getSelector();
    method public java.lang.String getText() throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public boolean isCheckable() throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public boolean isChecked() throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public boolean isClickable() throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public boolean isEnabled() throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public boolean isFocusable() throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public boolean isFocused() throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public boolean isLongClickable() throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public boolean isScrollable() throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public boolean isSelected() throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public boolean longClick() throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public boolean longClickBottomRight() throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public boolean longClickTopLeft() throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public boolean setText(java.lang.String) throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public boolean swipeDown(int) throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public boolean swipeLeft(int) throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public boolean swipeRight(int) throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public boolean swipeUp(int) throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public boolean waitForExists(long);
    method public boolean waitUntilGone(long);
    field protected static final int SWIPE_MARGIN_LIMIT = 5; // 0x5
    field protected static final long WAIT_FOR_SELECTOR_POLL = 1000L; // 0x3e8L
    field protected static final long WAIT_FOR_SELECTOR_TIMEOUT = 10000L; // 0x2710L
    field protected static final long WAIT_FOR_WINDOW_TMEOUT = 5500L; // 0x157cL
  }

  public class UiObjectNotFoundException extends java.lang.Exception {
    ctor public UiObjectNotFoundException(java.lang.String);
    ctor public UiObjectNotFoundException(java.lang.String, java.lang.Throwable);
    ctor public UiObjectNotFoundException(java.lang.Throwable);
  }

  public class UiScrollable extends com.android.uiautomator.core.UiCollection {
    ctor public UiScrollable(com.android.uiautomator.core.UiSelector);
    method protected boolean exists(com.android.uiautomator.core.UiSelector);
    method public boolean flingBackward();
    method public boolean flingForward();
    method public boolean flingToBeginning(int);
    method public boolean flingToEnd(int);
    method public com.android.uiautomator.core.UiObject getChildByDescription(com.android.uiautomator.core.UiSelector, java.lang.String, boolean) throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public com.android.uiautomator.core.UiObject getChildByText(com.android.uiautomator.core.UiSelector, java.lang.String, boolean) throws com.android.uiautomator.core.UiObjectNotFoundException;
    method public int getMaxSearchSwipes();
    method public double getSwipeDeadZonePercentage();
    method public boolean scrollBackward();
    method public boolean scrollBackward(int);
    method public boolean scrollDescriptionIntoView(java.lang.String);
    method public boolean scrollForward();
    method public boolean scrollForward(int);
    method public boolean scrollIntoView(com.android.uiautomator.core.UiSelector);
    method public boolean scrollTextIntoView(java.lang.String);
    method public boolean scrollToBeginning(int, int);
    method public boolean scrollToBeginning(int);
    method public boolean scrollToEnd(int, int);
    method public boolean scrollToEnd(int);
    method public void setAsHorizontalList();
    method public void setAsVerticalList();
    method public void setMaxSearchSwipes(int);
    method public void setSwipeDeadZonePercentage(double);
  }

  public class UiSelector {
    ctor public UiSelector();
    method public com.android.uiautomator.core.UiSelector checked(boolean);
    method public com.android.uiautomator.core.UiSelector childSelector(com.android.uiautomator.core.UiSelector);
    method public com.android.uiautomator.core.UiSelector className(java.lang.String);
    method public com.android.uiautomator.core.UiSelector clickable(boolean);
    method public com.android.uiautomator.core.UiSelector description(java.lang.String);
    method public com.android.uiautomator.core.UiSelector descriptionContains(java.lang.String);
    method public com.android.uiautomator.core.UiSelector descriptionStartsWith(java.lang.String);
    method public com.android.uiautomator.core.UiSelector enabled(boolean);
    method public com.android.uiautomator.core.UiSelector focusable(boolean);
    method public com.android.uiautomator.core.UiSelector focused(boolean);
    method public com.android.uiautomator.core.UiSelector fromParent(com.android.uiautomator.core.UiSelector);
    method public com.android.uiautomator.core.UiSelector index(int);
    method public com.android.uiautomator.core.UiSelector instance(int);
    method public com.android.uiautomator.core.UiSelector packageName(java.lang.String);
    method public com.android.uiautomator.core.UiSelector scrollable(boolean);
    method public com.android.uiautomator.core.UiSelector selected(boolean);
    method public com.android.uiautomator.core.UiSelector text(java.lang.String);
    method public com.android.uiautomator.core.UiSelector textContains(java.lang.String);
    method public com.android.uiautomator.core.UiSelector textStartsWith(java.lang.String);
  }

  public abstract interface UiWatcher {
    method public abstract boolean checkForCondition();
  }

}

package com.android.uiautomator.testrunner {

  public abstract interface IAutomationSupport {
    method public abstract void sendStatus(int, android.os.Bundle);
  }

  public class UiAutomatorTestCase extends junit.framework.TestCase {
    ctor public UiAutomatorTestCase();
    method public com.android.uiautomator.testrunner.IAutomationSupport getAutomationSupport();
    method public android.os.Bundle getParams();
    method public com.android.uiautomator.core.UiDevice getUiDevice();
    method public void sleep(long);
  }

}