Fields Summary |
---|
private static final AccessibilityNodeInfoImpl | IMPL |
private final Object | mInfo |
public static final int | ACTION_FOCUSAction that focuses the node. |
public static final int | ACTION_CLEAR_FOCUSAction that unfocuses the node. |
public static final int | ACTION_SELECTAction that selects the node. |
public static final int | ACTION_CLEAR_SELECTIONAction that unselects the node. |
public static final int | ACTION_CLICKAction that clicks on the node info. |
public static final int | ACTION_LONG_CLICKAction that long clicks on the node. |
public static final int | ACTION_ACCESSIBILITY_FOCUSAction that gives accessibility focus to the node. |
public static final int | ACTION_CLEAR_ACCESSIBILITY_FOCUSAction that clears accessibility focus of the node. |
public static final int | ACTION_NEXT_AT_MOVEMENT_GRANULARITYAction that requests to go to the next entity in this node's text
at a given movement granularity. For example, move to the next character,
word, etc.
Arguments: {@link #ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT}<,
{@link #ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN}
Example: Move to the previous character and do not extend selection.
Bundle arguments = new Bundle();
arguments.putInt(AccessibilityNodeInfo.ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT,
AccessibilityNodeInfo.MOVEMENT_GRANULARITY_CHARACTER);
arguments.putBoolean(AccessibilityNodeInfo.ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN,
false);
info.performAction(AccessibilityNodeInfo.ACTION_NEXT_AT_MOVEMENT_GRANULARITY, arguments);
|
public static final int | ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITYAction that requests to go to the previous entity in this node's text
at a given movement granularity. For example, move to the next character,
word, etc.
Arguments: {@link #ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT}<,
{@link #ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN}
Example: Move to the next character and do not extend selection.
Bundle arguments = new Bundle();
arguments.putInt(AccessibilityNodeInfo.ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT,
AccessibilityNodeInfo.MOVEMENT_GRANULARITY_CHARACTER);
arguments.putBoolean(AccessibilityNodeInfo.ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN,
false);
info.performAction(AccessibilityNodeInfo.ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY,
arguments);
|
public static final int | ACTION_NEXT_HTML_ELEMENTAction to move to the next HTML element of a given type. For example, move
to the BUTTON, INPUT, TABLE, etc.
Arguments: {@link #ACTION_ARGUMENT_HTML_ELEMENT_STRING}
Example:
Bundle arguments = new Bundle();
arguments.putString(AccessibilityNodeInfo.ACTION_ARGUMENT_HTML_ELEMENT_STRING, "BUTTON");
info.performAction(AccessibilityNodeInfo.ACTION_NEXT_HTML_ELEMENT, arguments);
|
public static final int | ACTION_PREVIOUS_HTML_ELEMENTAction to move to the previous HTML element of a given type. For example, move
to the BUTTON, INPUT, TABLE, etc.
Arguments: {@link #ACTION_ARGUMENT_HTML_ELEMENT_STRING}
Example:
Bundle arguments = new Bundle();
arguments.putString(AccessibilityNodeInfo.ACTION_ARGUMENT_HTML_ELEMENT_STRING, "BUTTON");
info.performAction(AccessibilityNodeInfo.ACTION_PREVIOUS_HTML_ELEMENT, arguments);
|
public static final int | ACTION_SCROLL_FORWARDAction to scroll the node content forward. |
public static final int | ACTION_SCROLL_BACKWARDAction to scroll the node content backward. |
public static final int | ACTION_COPYAction to copy the current selection to the clipboard. |
public static final int | ACTION_PASTEAction to paste the current clipboard content. |
public static final int | ACTION_CUTAction to cut the current selection and place it to the clipboard. |
public static final int | ACTION_SET_SELECTIONAction to set the selection. Performing this action with no arguments
clears the selection.
Arguments: {@link #ACTION_ARGUMENT_SELECTION_START_INT},
{@link #ACTION_ARGUMENT_SELECTION_END_INT}
Example:
Bundle arguments = new Bundle();
arguments.putInt(AccessibilityNodeInfo.ACTION_ARGUMENT_SELECTION_START_INT, 1);
arguments.putInt(AccessibilityNodeInfo.ACTION_ARGUMENT_SELECTION_END_INT, 2);
info.performAction(AccessibilityNodeInfo.ACTION_SET_SELECTION, arguments);
|
public static final int | ACTION_SET_TEXTAction that sets the text of the node. Performing the action without argument, using
null or empty {@link CharSequence} will clear the text. This action will also put the
cursor at the end of text.
Arguments: {@link #ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE}
Example:
Bundle arguments = new Bundle();
arguments.putCharSequence(AccessibilityNodeInfo.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE,
"android");
info.performAction(AccessibilityNodeInfo.ACTION_SET_TEXT, arguments);
|
public static final String | ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INTArgument for which movement granularity to be used when traversing the node text.
Type: int
Actions: {@link #ACTION_NEXT_AT_MOVEMENT_GRANULARITY},
{@link #ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY}
|
public static final String | ACTION_ARGUMENT_HTML_ELEMENT_STRINGArgument for which HTML element to get moving to the next/previous HTML element.
Type: String
Actions: {@link #ACTION_NEXT_HTML_ELEMENT},
{@link #ACTION_PREVIOUS_HTML_ELEMENT}
|
public static final String | ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEANArgument for whether when moving at granularity to extend the selection
or to move it otherwise.
Type: boolean
Actions: {@link #ACTION_NEXT_AT_MOVEMENT_GRANULARITY},
{@link #ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY}
|
public static final String | ACTION_ARGUMENT_SELECTION_START_INTArgument for specifying the selection start.
Type: int
Actions: {@link #ACTION_SET_SELECTION}
|
public static final String | ACTION_ARGUMENT_SELECTION_END_INTArgument for specifying the selection end.
Type: int
Actions: {@link #ACTION_SET_SELECTION}
|
public static final String | ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCEArgument for specifying the text content to set
Type: CharSequence
Actions: {@link #ACTION_SET_TEXT}
|
public static final int | FOCUS_INPUTThe input focus. |
public static final int | FOCUS_ACCESSIBILITYThe accessibility focus. |
public static final int | MOVEMENT_GRANULARITY_CHARACTERMovement granularity bit for traversing the text of a node by character. |
public static final int | MOVEMENT_GRANULARITY_WORDMovement granularity bit for traversing the text of a node by word. |
public static final int | MOVEMENT_GRANULARITY_LINEMovement granularity bit for traversing the text of a node by line. |
public static final int | MOVEMENT_GRANULARITY_PARAGRAPHMovement granularity bit for traversing the text of a node by paragraph. |
public static final int | MOVEMENT_GRANULARITY_PAGEMovement granularity bit for traversing the text of a node by page. |
Methods Summary |
---|
public void | addAction(int action)Adds an action that can be performed on the node.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}. This class is
made immutable before being delivered to an AccessibilityService.
IMPL.addAction(mInfo, action);
|
public void | addAction(android.support.v4.view.accessibility.AccessibilityNodeInfoCompat$AccessibilityActionCompat action)Adds an action that can be performed on the node.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}. This class is
made immutable before being delivered to an AccessibilityService.
IMPL.addAction(mInfo, action.mAction);
|
public void | addChild(android.view.View child)Adds a child.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}. This class is
made immutable before being delivered to an AccessibilityService.
IMPL.addChild(mInfo, child);
|
public void | addChild(android.view.View root, int virtualDescendantId)Adds a virtual child which is a descendant of the given root .
If virtualDescendantId is {@link View#NO_ID} the root
is added as a child.
A virtual descendant is an imaginary View that is reported as a part of the view
hierarchy for accessibility purposes. This enables custom views that draw complex
content to report them selves as a tree of virtual views, thus conveying their
logical structure.
IMPL.addChild(mInfo, root, virtualDescendantId);
|
public boolean | equals(java.lang.Object obj)
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
AccessibilityNodeInfoCompat other = (AccessibilityNodeInfoCompat) obj;
if (mInfo == null) {
if (other.mInfo != null) {
return false;
}
} else if (!mInfo.equals(other.mInfo)) {
return false;
}
return true;
|
public java.util.List | findAccessibilityNodeInfosByText(java.lang.String text)Finds {@link android.view.accessibility.AccessibilityNodeInfo}s by text. The match
is case insensitive containment. The search is relative to this info i.e. this
info is the root of the traversed tree.
Note: It is a client responsibility to recycle the
received info by calling {@link android.view.accessibility.AccessibilityNodeInfo#recycle()}
to avoid creating of multiple instances.
List<AccessibilityNodeInfoCompat> result = new ArrayList<AccessibilityNodeInfoCompat>();
List<Object> infos = IMPL.findAccessibilityNodeInfosByText(mInfo, text);
final int infoCount = infos.size();
for (int i = 0; i < infoCount; i++) {
Object info = infos.get(i);
result.add(new AccessibilityNodeInfoCompat(info));
}
return result;
|
public android.support.v4.view.accessibility.AccessibilityNodeInfoCompat | findFocus(int focus)Find the view that has the specified focus type. The search starts from
the view represented by this node info.
return AccessibilityNodeInfoCompat.wrapNonNullInstance(IMPL.findFocus(mInfo, focus));
|
public android.support.v4.view.accessibility.AccessibilityNodeInfoCompat | focusSearch(int direction)Searches for the nearest view in the specified direction that can take
input focus.
return AccessibilityNodeInfoCompat.wrapNonNullInstance(IMPL.focusSearch(mInfo, direction));
|
public java.util.List | getActionList()Gets the actions that can be performed on the node.
List<Object> actions = IMPL.getActionList(mInfo);
if (actions != null) {
List<AccessibilityActionCompat> result = new ArrayList<AccessibilityActionCompat>();
final int actionCount = actions.size();
for (int i = 0; i < actionCount; i++) {
Object action = actions.get(i);
result.add(new AccessibilityActionCompat(action));
}
return result;
} else {
return Collections.<AccessibilityActionCompat>emptyList();
}
|
private static java.lang.String | getActionSymbolicName(int action)
switch (action) {
case ACTION_FOCUS:
return "ACTION_FOCUS";
case ACTION_CLEAR_FOCUS:
return "ACTION_CLEAR_FOCUS";
case ACTION_SELECT:
return "ACTION_SELECT";
case ACTION_CLEAR_SELECTION:
return "ACTION_CLEAR_SELECTION";
case ACTION_CLICK:
return "ACTION_CLICK";
case ACTION_LONG_CLICK:
return "ACTION_LONG_CLICK";
case ACTION_ACCESSIBILITY_FOCUS:
return "ACTION_ACCESSIBILITY_FOCUS";
case ACTION_CLEAR_ACCESSIBILITY_FOCUS:
return "ACTION_CLEAR_ACCESSIBILITY_FOCUS";
case ACTION_NEXT_AT_MOVEMENT_GRANULARITY:
return "ACTION_NEXT_AT_MOVEMENT_GRANULARITY";
case ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY:
return "ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY";
case ACTION_NEXT_HTML_ELEMENT:
return "ACTION_NEXT_HTML_ELEMENT";
case ACTION_PREVIOUS_HTML_ELEMENT:
return "ACTION_PREVIOUS_HTML_ELEMENT";
case ACTION_SCROLL_FORWARD:
return "ACTION_SCROLL_FORWARD";
case ACTION_SCROLL_BACKWARD:
return "ACTION_SCROLL_BACKWARD";
case ACTION_CUT:
return "ACTION_CUT";
case ACTION_COPY:
return "ACTION_COPY";
case ACTION_PASTE:
return "ACTION_PASTE";
case ACTION_SET_SELECTION:
return "ACTION_SET_SELECTION";
default:
return"ACTION_UNKNOWN";
}
|
public int | getActions()Gets the actions that can be performed on the node.
return IMPL.getActions(mInfo);
|
public void | getBoundsInParent(android.graphics.Rect outBounds)Gets the node bounds in parent coordinates.
IMPL.getBoundsInParent(mInfo, outBounds);
|
public void | getBoundsInScreen(android.graphics.Rect outBounds)Gets the node bounds in screen coordinates.
IMPL.getBoundsInScreen(mInfo, outBounds);
|
public android.support.v4.view.accessibility.AccessibilityNodeInfoCompat | getChild(int index)Get the child at given index.
Note: It is a client responsibility to recycle the
received info by calling {@link AccessibilityNodeInfoCompat#recycle()} to
avoid creating of multiple instances.
return AccessibilityNodeInfoCompat.wrapNonNullInstance(IMPL.getChild(mInfo, index));
|
public int | getChildCount()Gets the number of children.
return IMPL.getChildCount(mInfo);
|
public java.lang.CharSequence | getClassName()Gets the class this node comes from.
return IMPL.getClassName(mInfo);
|
public android.support.v4.view.accessibility.AccessibilityNodeInfoCompat$CollectionInfoCompat | getCollectionInfo()Gets the collection info if the node is a collection. A collection
child is always a collection item.
Object info = IMPL.getCollectionInfo(mInfo);
if (info == null) return null;
return new CollectionInfoCompat(info);
|
public android.support.v4.view.accessibility.AccessibilityNodeInfoCompat$CollectionItemInfoCompat | getCollectionItemInfo()Gets the collection item info if the node is a collection item. A collection
item is always a child of a collection.
Object info = IMPL.getCollectionItemInfo(mInfo);
if (info == null) return null;
return new CollectionItemInfoCompat(info);
|
public java.lang.CharSequence | getContentDescription()Gets the content description of this node.
return IMPL.getContentDescription(mInfo);
|
public java.lang.Object | getInfo()
return mInfo;
|
public int | getLiveRegion()Gets the node's live region mode.
A live region is a node that contains information that is important for
the user and when it changes the user should be notified. For example,
in a login screen with a TextView that displays an "incorrect password"
notification, that view should be marked as a live region with mode
{@link ViewCompat#ACCESSIBILITY_LIVE_REGION_POLITE}.
It is the responsibility of the accessibility service to monitor
{@link AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED} events
indicating changes to live region nodes and their children.
return IMPL.getLiveRegion(mInfo);
|
public int | getMovementGranularities()Gets the movement granularities for traversing the text of this node.
return IMPL.getMovementGranularities(mInfo);
|
public java.lang.CharSequence | getPackageName()Gets the package this node comes from.
return IMPL.getPackageName(mInfo);
|
public android.support.v4.view.accessibility.AccessibilityNodeInfoCompat | getParent()Gets the parent.
Note: It is a client responsibility to recycle the
received info by calling {@link android.view.accessibility.AccessibilityNodeInfo#recycle()}
to avoid creating of multiple instances.
return AccessibilityNodeInfoCompat.wrapNonNullInstance(IMPL.getParent(mInfo));
|
public android.support.v4.view.accessibility.AccessibilityNodeInfoCompat$RangeInfoCompat | getRangeInfo()Gets the range info if this node is a range.
Object info = IMPL.getRangeInfo(mInfo);
if (info == null) return null;
return new RangeInfoCompat(info);
|
public java.lang.CharSequence | getText()Gets the text of this node.
return IMPL.getText(mInfo);
|
public java.lang.String | getViewIdResourceName()Gets the fully qualified resource name of the source view's id.
Note: The primary usage of this API is for UI test automation
and in order to report the source view id of an {@link AccessibilityNodeInfoCompat}
the client has to set the {@link AccessibilityServiceInfoCompat#FLAG_REPORT_VIEW_IDS}
flag when configuring his {@link android.accessibilityservice.AccessibilityService}.
return IMPL.getViewIdResourceName(mInfo);
|
public int | getWindowId()Gets the id of the window from which the info comes from.
return IMPL.getWindowId(mInfo);
|
public int | hashCode()
return (mInfo == null) ? 0 : mInfo.hashCode();
|
public boolean | isAccessibilityFocused()Gets whether this node is accessibility focused.
return IMPL.isAccessibilityFocused(mInfo);
|
public boolean | isCheckable()Gets whether this node is checkable.
return IMPL.isCheckable(mInfo);
|
public boolean | isChecked()Gets whether this node is checked.
return IMPL.isChecked(mInfo);
|
public boolean | isClickable()Gets whether this node is clickable.
return IMPL.isClickable(mInfo);
|
public boolean | isEnabled()Gets whether this node is enabled.
return IMPL.isEnabled(mInfo);
|
public boolean | isFocusable()Gets whether this node is focusable.
return IMPL.isFocusable(mInfo);
|
public boolean | isFocused()Gets whether this node is focused.
return IMPL.isFocused(mInfo);
|
public boolean | isLongClickable()Gets whether this node is long clickable.
return IMPL.isLongClickable(mInfo);
|
public boolean | isPassword()Gets whether this node is a password.
return IMPL.isPassword(mInfo);
|
public boolean | isScrollable()Gets if the node is scrollable.
return IMPL.isScrollable(mInfo);
|
public boolean | isSelected()Gets whether this node is selected.
return IMPL.isSelected(mInfo);
|
public boolean | isVisibleToUser()Sets whether this node is visible to the user.
return IMPL.isVisibleToUser(mInfo);
|
public static android.support.v4.view.accessibility.AccessibilityNodeInfoCompat | obtain(android.view.View source)Returns a cached instance if such is available otherwise a new one and
sets the source.
return AccessibilityNodeInfoCompat.wrapNonNullInstance(IMPL.obtain(source));
|
public static android.support.v4.view.accessibility.AccessibilityNodeInfoCompat | obtain(android.view.View root, int virtualDescendantId)Returns a cached instance if such is available otherwise a new one
and sets the source.
return AccessibilityNodeInfoCompat.wrapNonNullInstance(
IMPL.obtain(root, virtualDescendantId));
|
public static android.support.v4.view.accessibility.AccessibilityNodeInfoCompat | obtain()Returns a cached instance if such is available otherwise a new one.
return AccessibilityNodeInfoCompat.wrapNonNullInstance(IMPL.obtain());
|
public static android.support.v4.view.accessibility.AccessibilityNodeInfoCompat | obtain(android.support.v4.view.accessibility.AccessibilityNodeInfoCompat info)Returns a cached instance if such is available or a new one is create.
The returned instance is initialized from the given info .
return AccessibilityNodeInfoCompat.wrapNonNullInstance(IMPL.obtain(info.mInfo));
|
public boolean | performAction(int action)Performs an action on the node.
Note: An action can be performed only if the request is
made from an {@link android.accessibilityservice.AccessibilityService}.
return IMPL.performAction(mInfo, action);
|
public boolean | performAction(int action, android.os.Bundle arguments)Performs an action on the node.
Note: An action can be performed only if the request is made
from an {@link android.accessibilityservice.AccessibilityService}.
return IMPL.performAction(mInfo, action, arguments);
|
public void | recycle()Return an instance back to be reused.
Note: You must not touch the object after calling this function.
IMPL.recycle(mInfo);
|
public void | setAccessibilityFocused(boolean focused)Sets whether this node is accessibility focused.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}.
This class is made immutable before being delivered to an AccessibilityService.
IMPL.setAccessibilityFocused(mInfo, focused);
|
public void | setBoundsInParent(android.graphics.Rect bounds)Sets the node bounds in parent coordinates.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}. This class is
made immutable before being delivered to an AccessibilityService.
IMPL.setBoundsInParent(mInfo, bounds);
|
public void | setBoundsInScreen(android.graphics.Rect bounds)Sets the node bounds in screen coordinates.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}. This class is
made immutable before being delivered to an AccessibilityService.
IMPL.setBoundsInScreen(mInfo, bounds);
|
public void | setCheckable(boolean checkable)Sets whether this node is checkable.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}. This class is
made immutable before being delivered to an AccessibilityService.
IMPL.setCheckable(mInfo, checkable);
|
public void | setChecked(boolean checked)Sets whether this node is checked.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}. This class is
made immutable before being delivered to an AccessibilityService.
IMPL.setChecked(mInfo, checked);
|
public void | setClassName(java.lang.CharSequence className)Sets the class this node comes from.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}. This class is
made immutable before being delivered to an AccessibilityService.
IMPL.setClassName(mInfo, className);
|
public void | setClickable(boolean clickable)Sets whether this node is clickable.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}. This class is
made immutable before being delivered to an AccessibilityService.
IMPL.setClickable(mInfo, clickable);
|
public void | setCollectionInfo(java.lang.Object collectionInfo)
IMPL.setCollectionInfo(mInfo, ((CollectionInfoCompat) collectionInfo).mInfo);
|
public void | setCollectionItemInfo(java.lang.Object collectionItemInfo)
IMPL.setCollectionItemInfo(mInfo, ((CollectionItemInfoCompat) collectionItemInfo).mInfo);
|
public void | setContentDescription(java.lang.CharSequence contentDescription)Sets the content description of this node.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}. This class is
made immutable before being delivered to an AccessibilityService.
IMPL.setContentDescription(mInfo, contentDescription);
|
public void | setEnabled(boolean enabled)Sets whether this node is enabled.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}. This class is
made immutable before being delivered to an AccessibilityService.
IMPL.setEnabled(mInfo, enabled);
|
public void | setFocusable(boolean focusable)Sets whether this node is focusable.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}. This class is
made immutable before being delivered to an AccessibilityService.
IMPL.setFocusable(mInfo, focusable);
|
public void | setFocused(boolean focused)Sets whether this node is focused.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}. This class is
made immutable before being delivered to an AccessibilityService.
IMPL.setFocused(mInfo, focused);
|
public void | setLiveRegion(int mode)Sets the node's live region mode.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}. This class is
made immutable before being delivered to an AccessibilityService.
IMPL.setLiveRegion(mInfo, mode);
|
public void | setLongClickable(boolean longClickable)Sets whether this node is long clickable.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}. This class is
made immutable before being delivered to an AccessibilityService.
IMPL.setLongClickable(mInfo, longClickable);
|
public void | setMovementGranularities(int granularities)Sets the movement granularities for traversing the text of this node.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}.
This class is made immutable before being delivered to an AccessibilityService.
IMPL.setMovementGranularities(mInfo, granularities);
|
public void | setPackageName(java.lang.CharSequence packageName)Sets the package this node comes from.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}. This class is
made immutable before being delivered to an AccessibilityService.
IMPL.setPackageName(mInfo, packageName);
|
public void | setParent(android.view.View parent)Sets the parent.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}. This class is
made immutable before being delivered to an AccessibilityService.
IMPL.setParent(mInfo, parent);
|
public void | setParent(android.view.View root, int virtualDescendantId)Sets the parent to be a virtual descendant of the given root .
If virtualDescendantId equals to {@link View#NO_ID} the root
is set as the parent.
A virtual descendant is an imaginary View that is reported as a part of the view
hierarchy for accessibility purposes. This enables custom views that draw complex
content to report them selves as a tree of virtual views, thus conveying their
logical structure.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}.
This class is made immutable before being delivered to an AccessibilityService.
IMPL.setParent(mInfo, root, virtualDescendantId);
|
public void | setPassword(boolean password)Sets whether this node is a password.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}. This class is
made immutable before being delivered to an AccessibilityService.
IMPL.setPassword(mInfo, password);
|
public void | setScrollable(boolean scrollable)Sets if the node is scrollable.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}. This class is
made immutable before being delivered to an AccessibilityService.
IMPL.setScrollable(mInfo, scrollable);
|
public void | setSelected(boolean selected)Sets whether this node is selected.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}. This class is
made immutable before being delivered to an AccessibilityService.
IMPL.setSelected(mInfo, selected);
|
public void | setSource(android.view.View source)Sets the source.
IMPL.setSource(mInfo, source);
|
public void | setSource(android.view.View root, int virtualDescendantId)Sets the source to be a virtual descendant of the given root .
If virtualDescendantId is {@link View#NO_ID} the root
is set as the source.
A virtual descendant is an imaginary View that is reported as a part of the view
hierarchy for accessibility purposes. This enables custom views that draw complex
content to report themselves as a tree of virtual views, thus conveying their
logical structure.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}.
This class is made immutable before being delivered to an AccessibilityService.
IMPL.setSource(mInfo, root, virtualDescendantId);
|
public void | setText(java.lang.CharSequence text)Sets the text of this node.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}. This class is
made immutable before being delivered to an AccessibilityService.
IMPL.setText(mInfo, text);
|
public void | setViewIdResourceName(java.lang.String viewId)Sets the fully qualified resource name of the source view's id.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}.
This class is made immutable before being delivered to an AccessibilityService.
IMPL.setViewIdResourceName(mInfo, viewId);
|
public void | setVisibleToUser(boolean visibleToUser)Sets whether this node is visible to the user.
Note: Cannot be called from an
{@link android.accessibilityservice.AccessibilityService}.
This class is made immutable before being delivered to an AccessibilityService.
IMPL.setVisibleToUser(mInfo, visibleToUser);
|
public java.lang.String | toString()
StringBuilder builder = new StringBuilder();
builder.append(super.toString());
Rect bounds = new Rect();
getBoundsInParent(bounds);
builder.append("; boundsInParent: " + bounds);
getBoundsInScreen(bounds);
builder.append("; boundsInScreen: " + bounds);
builder.append("; packageName: ").append(getPackageName());
builder.append("; className: ").append(getClassName());
builder.append("; text: ").append(getText());
builder.append("; contentDescription: ").append(getContentDescription());
builder.append("; viewId: ").append(getViewIdResourceName());
builder.append("; checkable: ").append(isCheckable());
builder.append("; checked: ").append(isChecked());
builder.append("; focusable: ").append(isFocusable());
builder.append("; focused: ").append(isFocused());
builder.append("; selected: ").append(isSelected());
builder.append("; clickable: ").append(isClickable());
builder.append("; longClickable: ").append(isLongClickable());
builder.append("; enabled: ").append(isEnabled());
builder.append("; password: ").append(isPassword());
builder.append("; scrollable: " + isScrollable());
builder.append("; [");
for (int actionBits = getActions(); actionBits != 0;) {
final int action = 1 << Integer.numberOfTrailingZeros(actionBits);
actionBits &= ~action;
builder.append(getActionSymbolicName(action));
if (actionBits != 0) {
builder.append(", ");
}
}
builder.append("]");
return builder.toString();
|
static android.support.v4.view.accessibility.AccessibilityNodeInfoCompat | wrapNonNullInstance(java.lang.Object object)Creates a wrapper for info implementation.
if (object != null) {
return new AccessibilityNodeInfoCompat(object);
}
return null;
|