Home
last modified time | relevance | path

Searched refs:UiElement (Results 1 – 25 of 40) sorted by relevance

12

/external/droiddriver/src/com/google/android/droiddriver/finders/
DPredicates.java21 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 …]
DMatchFinder.java21 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()
DFinder.java19 import com.google.android.droiddriver.UiElement;
35 UiElement find(UiElement context); in find()
DChainFinder.java19 import com.google.android.droiddriver.UiElement;
48 public UiElement find(UiElement context) { in find()
DByXPath.java20 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()
DBy.java21 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/
DSentinelStrategy.java21 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 …]
DDynamicSentinelStrategy.java21 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 …]
DScroller.java19 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/
DDefaultAccessibilityValidator.java22 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 …]
DValidator.java19 import com.google.android.droiddriver.UiElement;
32 boolean isApplicable(UiElement element, Action action); in isApplicable()
38 String validate(UiElement element, Action action); in validate()
DVisibilityValidator.java19 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()
DExemptRootValidator.java19 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()
DExemptScrollActionValidator.java19 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()
DFirstApplicableValidator.java19 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()
DExemptedClassesValidator.java21 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/
DUiElementActor.java19 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()
DEventUiElementActor.java19 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()
DEventAction.java21 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()
DClickAction.java23 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/
DUiElement.java38 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/
DAccessibilityUiElementActor.java19 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()
DAccessibilityClickAction.java21 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()
DAccessibilityAction.java21 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/
DScrollerHelper.java20 import com.google.android.droiddriver.UiElement;
49 public UiElement scrollTo(Finder itemFinder) { in scrollTo()
63 public UiElement scrollTo(Finder itemFinder, PhysicalDirection direction) { in scrollTo()

12