Methods Summary |
---|
public long | getActionAcknowledgmentTimeout()Gets the current timeout for waiting for an acknowledgment of generic
uiautomator actions, such as clicks, text setting, and menu presses.
The acknowledgment is an AccessibilityEvent,
corresponding to an action, that lets the framework determine if the
action was successful. Generally, this timeout should not be modified.
See {@link UiObject}
return mWaitForActionAcknowledgment;
|
public static com.android.uiautomator.core.Configurator | getInstance()Retrieves a singleton instance of Configurator.
if (sConfigurator == null) {
sConfigurator = new Configurator();
}
return sConfigurator;
|
public long | getKeyInjectionDelay()Gets the current delay between key presses when injecting text input.
See {@link UiObject#setText(String)}
return mKeyInjectionDelay;
|
public long | getScrollAcknowledgmentTimeout()Gets the timeout for waiting for an acknowledgement of an
uiautomtor scroll swipe action.
The acknowledgment is an AccessibilityEvent,
corresponding to the scroll action, that lets the framework determine if
the scroll action was successful. Generally, this timeout should not be modified.
See {@link UiScrollable}
return mScrollEventWaitTimeout;
|
public long | getWaitForIdleTimeout()Gets the current timeout used for waiting for the user interface to go
into an idle state.
By default, all core uiautomator objects except {@link UiDevice} will perform
this wait before starting to search for the widget specified by the
object's {@link UiSelector}. Once the idle state is detected or the
timeout elapses (whichever occurs first), the object will start to wait
for the selector to find a match.
See {@link #setWaitForSelectorTimeout(long)}
return mWaitForIdleTimeout;
|
public long | getWaitForSelectorTimeout()Gets the current timeout for waiting for a widget to become visible in
the user interface so that it can be matched by a selector.
Because user interface content is dynamic, sometimes a widget may not
be visible immediately and won't be detected by a selector. This timeout
allows the uiautomator framework to wait for a match to be found, up until
the timeout elapses.
return mWaitForSelector;
|
public com.android.uiautomator.core.Configurator | setActionAcknowledgmentTimeout(long timeout)Sets the timeout for waiting for an acknowledgment of generic uiautomator
actions, such as clicks, text setting, and menu presses.
The acknowledgment is an AccessibilityEvent,
corresponding to an action, that lets the framework determine if the
action was successful. Generally, this timeout should not be modified.
See {@link UiObject}
mWaitForActionAcknowledgment = timeout;
return this;
|
public com.android.uiautomator.core.Configurator | setKeyInjectionDelay(long delay)Sets a delay between key presses when injecting text input.
See {@link UiObject#setText(String)}
mKeyInjectionDelay = delay;
return this;
|
public com.android.uiautomator.core.Configurator | setScrollAcknowledgmentTimeout(long timeout)Sets the timeout for waiting for an acknowledgement of an
uiautomtor scroll swipe action.
The acknowledgment is an AccessibilityEvent,
corresponding to the scroll action, that lets the framework determine if
the scroll action was successful. Generally, this timeout should not be modified.
See {@link UiScrollable}
mScrollEventWaitTimeout = timeout;
return this;
|
public com.android.uiautomator.core.Configurator | setWaitForIdleTimeout(long timeout)Sets the timeout for waiting for the user interface to go into an idle
state before starting a uiautomator action.
By default, all core uiautomator objects except {@link UiDevice} will perform
this wait before starting to search for the widget specified by the
object's {@link UiSelector}. Once the idle state is detected or the
timeout elapses (whichever occurs first), the object will start to wait
for the selector to find a match.
See {@link #setWaitForSelectorTimeout(long)}
mWaitForIdleTimeout = timeout;
return this;
|
public com.android.uiautomator.core.Configurator | setWaitForSelectorTimeout(long timeout)Sets the timeout for waiting for a widget to become visible in the user
interface so that it can be matched by a selector.
Because user interface content is dynamic, sometimes a widget may not
be visible immediately and won't be detected by a selector. This timeout
allows the uiautomator framework to wait for a match to be found, up until
the timeout elapses.
mWaitForSelector = timeout;
return this;
|