Available Methods
- recycle ( )
- obtain ( )
- getCollectionInfo ( )
- getChild ( )
- ACTION_SCROLL_FORWARD
- ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY
- setClassName ( )
- refresh ( )
- ACTION_NEXT_AT_MOVEMENT_GRANULARITY
- ACTION_CLICK
- addAction ( )
- getChildCount ( )
- setContentDescription ( )
- setBoundsInParent ( )
- equals ( )
- getBoundsInScreen ( )
- getText ( )
- getTextSelectionEnd ( )
- ACTION_SCROLL_BACKWARD
- setVisibleToUser ( )
- getContentDescription ( )
- wrap ( )
- isVisibleToUser ( )
- hashCode ( )
- setCollectionInfo ( )
- unwrap ( )
- getParent ( )
- ACTION_PASTE
- isEditable ( )
- setEnabled ( )
- getWindowId ( )
- getClassName ( )
- ACTION_EXPAND
- setCollectionItemInfo ( )
- getExtras ( )
- getCollectionItemInfo ( )
- setRoleDescription ( )
- getRangeInfo ( )
- ACTION_LONG_CLICK
- ACTION_CUT
Related Classes
- android.os.Bundle
- android.content.Context
- android.view.View
- android.util.Log
- android.view.ViewGroup
- android.view.LayoutInflater
- android.os.Build
- android.view.Menu
- android.text.TextUtils
- android.view.MotionEvent
- android.widget.EditText
- android.annotation.TargetApi
- android.graphics.Rect
- android.view.WindowManager
- android.widget.FrameLayout
- javax.annotation.Nullable
- android.os.SystemClock
- android.view.View.OnClickListener
- androidx.annotation.NonNull
- androidx.annotation.Nullable
- android.widget.ScrollView
- com.google.common.base.Strings
- android.graphics.PixelFormat
- android.view.inputmethod.EditorInfo
- android.text.SpannableString
Java Code Examples for androidx.core.view.accessibility.AccessibilityNodeInfoCompat#hashCode()
The following examples show how to use
androidx.core.view.accessibility.AccessibilityNodeInfoCompat#hashCode() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NodePathDescription.java From talkback with Apache License 2.0 | 5 votes |
/** * Returns true if we can find a node in path with the same hash code and identity information of * {@code target}. */ public boolean containsNodeByHashAndIdentity(AccessibilityNodeInfoCompat target) { if (target == null) { return false; } int hashCode = target.hashCode(); // Compare from root to leaf, because root node is more immutable. for (NodeDescription description : nodeDescriptions) { if ((description.nodeInfoHashCode == hashCode) && description.identityMatches(target)) { return true; } } return false; }
Example 2
Source File: NodeDescription.java From talkback with Apache License 2.0 | 5 votes |
static NodeDescription obtain(AccessibilityNodeInfoCompat node) { CollectionItemInfoCompat itemInfo = node.getCollectionItemInfo(); return new NodeDescription( node.getClassName(), node.getViewIdResourceName(), itemInfo == null ? INDEX_TYPE_RAW : INDEX_TYPE_COLLECTION, itemInfo == null ? UNDEFINED_INDEX : itemInfo.getRowIndex(), itemInfo == null ? UNDEFINED_INDEX : itemInfo.getColumnIndex(), getRawIndexInParent(node), node.hashCode()); }