/external/droiddriver/src/com/google/android/droiddriver/actions/ |
H A D | UiElementActor.java | 19 import com.google.android.droiddriver.UiElement; 23 * Interface for performing actions on a {@link UiElement}. 31 void setText(UiElement uiElement, String text); 37 void click(UiElement uiElement); 43 void longClick(UiElement uiElement); 49 void doubleClick(UiElement uiElement); 57 void scroll(UiElement uiElement, PhysicalDirection direction);
|
H A D | Action.java | 19 import com.google.android.droiddriver.UiElement; 22 * Interface for performing action on a UiElement. An action is a high-level 35 boolean perform(UiElement element);
|
H A D | EventAction.java | 21 import com.google.android.droiddriver.UiElement; 32 public boolean perform(UiElement element) { 40 * @param element the UiElement to perform the action on 45 protected abstract boolean perform(InputInjector injector, UiElement element);
|
H A D | EventUiElementActor.java | 19 import com.google.android.droiddriver.UiElement; 30 public void setText(UiElement uiElement, String text) { 35 public void click(UiElement uiElement) { 40 public void longClick(UiElement uiElement) { 45 public void doubleClick(UiElement uiElement) { 50 public void scroll(UiElement uiElement, PhysicalDirection direction) {
|
H A D | KeyAction.java | 19 import com.google.android.droiddriver.UiElement; 33 protected void maybeCheckFocused(UiElement element) {
|
/external/droiddriver/src/com/google/android/droiddriver/finders/ |
H A D | MatchFinder.java | 21 import com.google.android.droiddriver.UiElement; 26 * Traverses the UiElement tree and returns the first UiElement satisfying 30 protected final Predicate<? super UiElement> predicate; 32 public MatchFinder(Predicate<? super UiElement> predicate) { 46 public UiElement find(UiElement context) { 51 for (UiElement child : context.getChildren(UiElement.VISIBLE)) { 69 public final boolean matches(UiElement elemen [all...] |
H A D | Finder.java | 19 import com.google.android.droiddriver.UiElement; 23 * Interface for finding UiElement. 27 * Returns the matching UiElement. The implementing finder should not poll. 31 * @param context The starting UiElement, used as search context 35 UiElement find(UiElement context);
|
H A D | Predicates.java | 21 import com.google.android.droiddriver.UiElement; 147 * Returns a predicate that evaluates to {@code true} on a {@link UiElement} 150 public static Predicate<UiElement> attributeTrue(final Attribute attribute) { 151 return new Predicate<UiElement>() { 153 public boolean apply(UiElement element) { 166 * Returns a predicate that evaluates to {@code true} on a {@link UiElement} 169 public static Predicate<UiElement> attributeFalse(final Attribute attribute) { 170 return new Predicate<UiElement>() { 172 public boolean apply(UiElement element) { 185 * Returns a predicate that evaluates to {@code true} on a {@link UiElement} [all...] |
H A D | ChainFinder.java | 19 import com.google.android.droiddriver.UiElement; 23 * Finds UiElement by applying Finders in turn: using the UiElement returned by 26 * composition</a>. The returned UiElement can be thought of as the result of 30 * target UiElement, which is a descendant. ChainFinder can be chained with 48 public UiElement find(UiElement context) {
|
/external/droiddriver/src/com/google/android/droiddriver/validators/ |
H A D | DefaultAccessibilityValidator.java | 22 import com.google.android.droiddriver.UiElement; 31 public boolean isApplicable(UiElement element, Action action) { 36 public String validate(UiElement element, Action action) { 41 private static boolean isAccessibilityFocusable(UiElement element) { 52 private static boolean isTopLevelScrollItem(UiElement element) { 53 UiElement parent = element.getParent(); 57 private static boolean isActionableForAccessibility(UiElement element) { 69 private static boolean isSpeakingNode(UiElement element) { 74 private static boolean hasNonActionableSpeakingChildren(UiElement element) { 76 for (UiElement chil [all...] |
H A D | Validator.java | 19 import com.google.android.droiddriver.UiElement; 23 * Interface for validating a UiElement, checked when an action is performed. 24 * For example, in general accessibility mandates that an actionable UiElement 32 boolean isApplicable(UiElement element, Action action); 38 String validate(UiElement element, Action action);
|
H A D | ExemptRootValidator.java | 19 import com.google.android.droiddriver.UiElement; 27 public boolean isApplicable(UiElement element, Action action) { 32 public String validate(UiElement element, Action action) {
|
H A D | ExemptScrollActionValidator.java | 19 import com.google.android.droiddriver.UiElement; 29 public boolean isApplicable(UiElement element, Action action) { 34 public String validate(UiElement element, Action action) {
|
H A D | VisibilityValidator.java | 19 import com.google.android.droiddriver.UiElement; 27 public boolean isApplicable(UiElement element, Action action) { 32 public String validate(UiElement element, Action action) {
|
H A D | FirstApplicableValidator.java | 19 import com.google.android.droiddriver.UiElement; 34 public boolean isApplicable(UiElement element, Action action) { 39 public String validate(UiElement element, Action action) {
|
/external/droiddriver/src/com/google/android/droiddriver/actions/accessibility/ |
H A D | AccessibilityUiElementActor.java | 19 import com.google.android.droiddriver.UiElement; 31 public void setText(UiElement uiElement, String text) { 36 public void click(UiElement uiElement) { 41 public void longClick(UiElement uiElement) { 46 public void doubleClick(UiElement uiElement) { 51 public void scroll(UiElement uiElement, PhysicalDirection direction) {
|
H A D | AccessibilityAction.java | 21 import com.google.android.droiddriver.UiElement; 35 public boolean perform(UiElement element) { 42 * @param node the AccessibilityNodeInfo used to create the UiElement 43 * @param element the UiElement to perform the action on 47 protected abstract boolean perform(AccessibilityNodeInfo node, UiElement element);
|
H A D | AccessibilityClickAction.java | 21 import com.google.android.droiddriver.UiElement; 25 * An {@link AccessibilityAction} that clicks on a UiElement. 43 protected boolean perform(AccessibilityNodeInfo node, UiElement element) { 54 protected boolean perform(AccessibilityNodeInfo node, UiElement element) { 69 protected boolean perform(AccessibilityNodeInfo node, UiElement element) {
|
H A D | AccessibilityScrollAction.java | 21 import com.google.android.droiddriver.UiElement; 27 * An {@link AccessibilityAction} that scrolls an UiElement. 42 protected boolean perform(AccessibilityNodeInfo node, UiElement element) {
|
/external/droiddriver/src/com/google/android/droiddriver/scroll/ |
H A D | SentinelStrategy.java | 21 import com.google.android.droiddriver.UiElement; 44 protected final Predicate<? super UiElement> predicate; 51 protected Getter(Predicate<? super UiElement> predicate) { 61 public UiElement find(UiElement container) { 62 UiElement sentinel = getSentinel(container.getChildren(predicate)); 71 protected abstract UiElement getSentinel(List<? extends UiElement> children); 82 protected UiElement getSentinel(List<? extends UiElement> childre [all...] |
H A D | Scroller.java | 19 import com.google.android.droiddriver.UiElement; 37 * @return the UiElement matching {@code itemFinder} 40 UiElement scrollTo(DroidDriver driver, Finder containerFinder, Finder itemFinder); 52 * @return the UiElement matching {@code itemFinder} 55 UiElement scrollTo(DroidDriver driver, Finder containerFinder, Finder itemFinder,
|
H A D | DynamicSentinelStrategy.java | 21 import com.google.android.droiddriver.UiElement; 32 * child is updated after scrolling. Use this when {@link UiElement#getChildren} 46 boolean isSentinelUpdated(UiElement newSentinel, UiElement oldSentinel); 79 protected abstract String getUniqueString(UiElement uniqueStringElement); 81 private String getUniqueStringFromSentinel(UiElement sentinel) { 90 public boolean isSentinelUpdated(UiElement newSentinel, UiElement oldSentinel) { 134 protected String getUniqueString(UiElement uniqueStringElement) { 149 protected String getUniqueString(UiElement uniqueStringElemen [all...] |
H A D | ScrollStepStrategy.java | 19 import com.google.android.droiddriver.UiElement; 81 void doScroll(UiElement container, PhysicalDirection direction);
|
/external/droiddriver/src/com/google/android/droiddriver/ |
H A D | UiElement.java | 35 * actions. Note that actions often update UiElement, so users are advised not 38 public interface UiElement { interface 123 * Gets the UiElement bounds in screen coordinates. The coordinates may not be 129 * Gets the UiElement bounds in screen coordinates. The coordinates will be 201 List<? extends UiElement> getChildren(Predicate<? super UiElement> predicate); 206 Predicate<UiElement> VISIBLE = new Predicate<UiElement>() { 208 public boolean apply(UiElement element) { 221 UiElement getParen [all...] |
H A D | DroidDriver.java | 44 * UiElement el = driver.on(By.anyOf(finder1, finder2, ...)); 50 * <li>You know the UiElement will appear, and want to optimize the speed by 59 * Returns the first {@link UiElement} found using the given finder. This 67 UiElement on(Finder finder); 70 * Returns the first {@link UiElement} found using the given finder without 79 UiElement find(Finder finder); 82 * Refreshes the UiElement tree. All methods in this interface that take a 88 * Polls until a {@link UiElement} is found using the given finder, or the 90 * that it does not return the {@link UiElement}. 99 * Polls until the {@link UiElement} foun [all...] |