/external/droiddriver/src/com/google/android/droiddriver/finders/ |
D | Predicates.java | 21 import com.google.android.droiddriver.UiElement; 150 public static Predicate<UiElement> attributeTrue(final Attribute attribute) { 151 return new Predicate<UiElement>() { 153 public boolean apply(UiElement element) { 169 public static Predicate<UiElement> attributeFalse(final Attribute attribute) { 170 return new Predicate<UiElement>() { 172 public boolean apply(UiElement element) { 188 public static Predicate<UiElement> attributeEquals(final Attribute attribute, 190 return new Predicate<UiElement>() { 192 public boolean apply(UiElement element) { [all …]
|
D | MatchFinder.java | 21 import com.google.android.droiddriver.UiElement; 30 protected final Predicate<? super UiElement> predicate; 32 public MatchFinder(Predicate<? super UiElement> predicate) { in MatchFinder() 46 public UiElement find(UiElement context) { in find() 51 for (UiElement child : context.getChildren(UiElement.VISIBLE)) { in find() 69 public final boolean matches(UiElement element) { in matches()
|
D | Finder.java | 19 import com.google.android.droiddriver.UiElement; 35 UiElement find(UiElement context); in find()
|
D | ChainFinder.java | 19 import com.google.android.droiddriver.UiElement; 48 public UiElement find(UiElement context) { in find()
|
D | ByXPath.java | 20 import com.google.android.droiddriver.UiElement; 88 public UiElement find(UiElement context) { in find() 89 Element domNode = getDomNode((BaseUiElement<?, ?>) context, UiElement.VISIBLE); in find() 98 UiElement match = FROM_DOM_MAP.get(foundNode); in find() 128 Predicate<? super UiElement> predicate) { in getDomNode() 137 Predicate<? super UiElement> predicate) { in buildDomNode() 170 if (!UiElement.VISIBLE.equals(predicate)) { in buildDomNode()
|
D | By.java | 21 import com.google.android.droiddriver.UiElement; 152 private static Predicate<? super UiElement>[] getPredicates(MatchFinder... finders) { in getPredicates() 154 Predicate<? super UiElement>[] predicates = new Predicate[finders.length]; in getPredicates() 227 return new MatchFinder(new Predicate<UiElement>() { in withDescendant() 229 public boolean apply(UiElement element) { in withDescendant()
|
/external/droiddriver/src/com/google/android/droiddriver/scroll/ |
D | SentinelStrategy.java | 21 import com.google.android.droiddriver.UiElement; 44 protected final Predicate<? super UiElement> predicate; 51 protected Getter(Predicate<? super UiElement> predicate) { in Getter() 61 public UiElement find(UiElement container) { in find() 62 UiElement sentinel = getSentinel(container.getChildren(predicate)); in find() 71 protected abstract UiElement getSentinel(List<? extends UiElement> children); in getSentinel() 82 protected UiElement getSentinel(List<? extends UiElement> children) { 96 protected UiElement getSentinel(List<? extends UiElement> children) { 117 protected UiElement getSentinel(List<? extends UiElement> children) { 132 protected UiElement getSentinel(List<? extends UiElement> children) { [all …]
|
D | DynamicSentinelStrategy.java | 21 import com.google.android.droiddriver.UiElement; 46 boolean isSentinelUpdated(UiElement newSentinel, UiElement oldSentinel); in isSentinelUpdated() 79 protected abstract String getUniqueString(UiElement uniqueStringElement); in getUniqueString() 81 private String getUniqueStringFromSentinel(UiElement sentinel) { in getUniqueStringFromSentinel() 90 public boolean isSentinelUpdated(UiElement newSentinel, UiElement oldSentinel) { in isSentinelUpdated() 134 protected String getUniqueString(UiElement uniqueStringElement) { in getUniqueString() 149 protected String getUniqueString(UiElement uniqueStringElement) { in getUniqueString() 171 protected String getUniqueString(UiElement uniqueStringElement) { in getUniqueString() 177 private UiElement lastSentinel; 187 super(new MorePredicateGetter(backwardGetter, UiElement.VISIBLE), new MorePredicateGetter( in DynamicSentinelStrategy() [all …]
|
D | Scroller.java | 19 import com.google.android.droiddriver.UiElement; 40 UiElement scrollTo(DroidDriver driver, Finder containerFinder, Finder itemFinder); in scrollTo() 55 UiElement scrollTo(DroidDriver driver, Finder containerFinder, Finder itemFinder, in scrollTo()
|
/external/droiddriver/src/com/google/android/droiddriver/validators/ |
D | DefaultAccessibilityValidator.java | 22 import com.google.android.droiddriver.UiElement; 31 public boolean isApplicable(UiElement element, Action action) { in isApplicable() 36 public String validate(UiElement element, Action action) { in validate() 41 private static boolean isAccessibilityFocusable(UiElement element) { in isAccessibilityFocusable() 52 private static boolean isTopLevelScrollItem(UiElement element) { in isTopLevelScrollItem() 53 UiElement parent = element.getParent(); in isTopLevelScrollItem() 57 private static boolean isActionableForAccessibility(UiElement element) { in isActionableForAccessibility() 69 private static boolean isSpeakingNode(UiElement element) { in isSpeakingNode() 74 private static boolean hasNonActionableSpeakingChildren(UiElement element) { in hasNonActionableSpeakingChildren() 76 for (UiElement child : element.getChildren(UiElement.VISIBLE)) { in hasNonActionableSpeakingChildren() [all …]
|
D | Validator.java | 19 import com.google.android.droiddriver.UiElement; 32 boolean isApplicable(UiElement element, Action action); in isApplicable() 38 String validate(UiElement element, Action action); in validate()
|
D | VisibilityValidator.java | 19 import com.google.android.droiddriver.UiElement; 27 public boolean isApplicable(UiElement element, Action action) { in isApplicable() 32 public String validate(UiElement element, Action action) { in validate()
|
D | ExemptRootValidator.java | 19 import com.google.android.droiddriver.UiElement; 27 public boolean isApplicable(UiElement element, Action action) { in isApplicable() 32 public String validate(UiElement element, Action action) { in validate()
|
D | ExemptScrollActionValidator.java | 19 import com.google.android.droiddriver.UiElement; 29 public boolean isApplicable(UiElement element, Action action) { in isApplicable() 34 public String validate(UiElement element, Action action) { in validate()
|
D | FirstApplicableValidator.java | 19 import com.google.android.droiddriver.UiElement; 34 public boolean isApplicable(UiElement element, Action action) { in isApplicable() 39 public String validate(UiElement element, Action action) { in validate()
|
D | ExemptedClassesValidator.java | 21 import com.google.android.droiddriver.UiElement; 34 public boolean isApplicable(UiElement element, Action action) { in isApplicable() 57 public String validate(UiElement element, Action action) { in validate()
|
/external/droiddriver/src/com/google/android/droiddriver/actions/ |
D | UiElementActor.java | 19 import com.google.android.droiddriver.UiElement; 31 void setText(UiElement uiElement, String text); in setText() 37 void click(UiElement uiElement); in click() 43 void longClick(UiElement uiElement); in longClick() 49 void doubleClick(UiElement uiElement); in doubleClick() 57 void scroll(UiElement uiElement, PhysicalDirection direction); in scroll()
|
D | EventUiElementActor.java | 19 import com.google.android.droiddriver.UiElement; 30 public void setText(UiElement uiElement, String text) { in setText() 35 public void click(UiElement uiElement) { in click() 40 public void longClick(UiElement uiElement) { in longClick() 45 public void doubleClick(UiElement uiElement) { in doubleClick() 50 public void scroll(UiElement uiElement, PhysicalDirection direction) { in scroll()
|
D | EventAction.java | 21 import com.google.android.droiddriver.UiElement; 32 public boolean perform(UiElement element) { in perform() 45 protected abstract boolean perform(InputInjector injector, UiElement element); in perform()
|
D | ClickAction.java | 23 import com.google.android.droiddriver.UiElement; 43 public boolean perform(InputInjector injector, UiElement element) { in perform() 56 public boolean perform(InputInjector injector, UiElement element) { in perform() 72 public boolean perform(InputInjector injector, UiElement element) { in perform()
|
/external/droiddriver/src/com/google/android/droiddriver/ |
D | UiElement.java | 38 public interface UiElement { interface 201 List<? extends UiElement> getChildren(Predicate<? super UiElement> predicate); in getChildren() 206 Predicate<UiElement> VISIBLE = new Predicate<UiElement>() { 208 public boolean apply(UiElement element) { 221 UiElement getParent(); in getParent()
|
/external/droiddriver/src/com/google/android/droiddriver/actions/accessibility/ |
D | AccessibilityUiElementActor.java | 19 import com.google.android.droiddriver.UiElement; 31 public void setText(UiElement uiElement, String text) { in setText() 36 public void click(UiElement uiElement) { in click() 41 public void longClick(UiElement uiElement) { in longClick() 46 public void doubleClick(UiElement uiElement) { in doubleClick() 51 public void scroll(UiElement uiElement, PhysicalDirection direction) { in scroll()
|
D | AccessibilityClickAction.java | 21 import com.google.android.droiddriver.UiElement; 43 protected boolean perform(AccessibilityNodeInfo node, UiElement element) { in perform() 54 protected boolean perform(AccessibilityNodeInfo node, UiElement element) { in perform() 69 protected boolean perform(AccessibilityNodeInfo node, UiElement element) { in perform()
|
D | AccessibilityAction.java | 21 import com.google.android.droiddriver.UiElement; 35 public boolean perform(UiElement element) { in perform() 47 protected abstract boolean perform(AccessibilityNodeInfo node, UiElement element); in perform()
|
/external/droiddriver/src/com/google/android/droiddriver/helpers/ |
D | ScrollerHelper.java | 20 import com.google.android.droiddriver.UiElement; 49 public UiElement scrollTo(Finder itemFinder) { in scrollTo() 63 public UiElement scrollTo(Finder itemFinder, PhysicalDirection direction) { in scrollTo()
|