use of android.view.accessibility.AccessibilityNodeInfo in project android_frameworks_base by DirtyUnicorns.
the class UiObject method isClickable.
/**
* Checks if the UI element's <code>clickable</code> property is currently true.
*
* @return true if it is else false
* @throws UiObjectNotFoundException
* @since API Level 16
*/
public boolean isClickable() throws UiObjectNotFoundException {
Tracer.trace();
AccessibilityNodeInfo node = findAccessibilityNodeInfo(mConfig.getWaitForSelectorTimeout());
if (node == null) {
throw new UiObjectNotFoundException(getSelector().toString());
}
return node.isClickable();
}
use of android.view.accessibility.AccessibilityNodeInfo in project android_frameworks_base by DirtyUnicorns.
the class UiObject method isFocusable.
/**
* Check if the UI element's <code>focusable</code> property is currently true.
*
* @return true if it is else false
* @throws UiObjectNotFoundException
* @since API Level 16
*/
public boolean isFocusable() throws UiObjectNotFoundException {
Tracer.trace();
AccessibilityNodeInfo node = findAccessibilityNodeInfo(mConfig.getWaitForSelectorTimeout());
if (node == null) {
throw new UiObjectNotFoundException(getSelector().toString());
}
return node.isFocusable();
}
use of android.view.accessibility.AccessibilityNodeInfo in project android_frameworks_base by DirtyUnicorns.
the class UiObject method getChildCount.
/**
* Counts the child views immediately under the present UiObject.
*
* @return the count of child views.
* @throws UiObjectNotFoundException
* @since API Level 16
*/
public int getChildCount() throws UiObjectNotFoundException {
Tracer.trace();
AccessibilityNodeInfo node = findAccessibilityNodeInfo(mConfig.getWaitForSelectorTimeout());
if (node == null) {
throw new UiObjectNotFoundException(getSelector().toString());
}
return node.getChildCount();
}
use of android.view.accessibility.AccessibilityNodeInfo in project android_frameworks_base by DirtyUnicorns.
the class UiObject method isScrollable.
/**
* Check if the view's <code>scrollable</code> property is currently true
*
* @return true if it is else false
* @throws UiObjectNotFoundException
* @since API Level 16
*/
public boolean isScrollable() throws UiObjectNotFoundException {
Tracer.trace();
AccessibilityNodeInfo node = findAccessibilityNodeInfo(mConfig.getWaitForSelectorTimeout());
if (node == null) {
throw new UiObjectNotFoundException(getSelector().toString());
}
return node.isScrollable();
}
use of android.view.accessibility.AccessibilityNodeInfo in project android_frameworks_base by DirtyUnicorns.
the class UiObject method getVisibleBounds.
/**
* Returns the visible bounds of the view.
*
* If a portion of the view is visible, only the bounds of the visible portion are
* reported.
*
* @return Rect
* @throws UiObjectNotFoundException
* @see #getBounds()
* @since API Level 17
*/
public Rect getVisibleBounds() throws UiObjectNotFoundException {
Tracer.trace();
AccessibilityNodeInfo node = findAccessibilityNodeInfo(mConfig.getWaitForSelectorTimeout());
if (node == null) {
throw new UiObjectNotFoundException(getSelector().toString());
}
return getVisibleBounds(node);
}
Aggregations