Lines Matching defs:virtualViewId
190 final int virtualViewId = getVirtualViewAt(event.getX(), event.getY());
191 updateHoveredVirtualView(virtualViewId);
192 return (virtualViewId != INVALID_ID);
325 * @param virtualViewId the identifier of the virtual view
328 private void getBoundsInParent(int virtualViewId, Rect outBounds) {
329 final AccessibilityNodeInfoCompat node = obtainAccessibilityNodeInfo(virtualViewId);
432 for (int virtualViewId = 0; virtualViewId < virtualViewIds.size(); virtualViewId++) {
433 final AccessibilityNodeInfoCompat virtualView = createNodeForChild(virtualViewId);
434 allNodes.put(virtualViewId, virtualView);
499 * @param virtualViewId the identifier of the virtual view for which to
505 public final boolean sendEventForVirtualView(int virtualViewId, int eventType) {
506 if ((virtualViewId == INVALID_ID) || !mManager.isEnabled()) {
515 final AccessibilityEvent event = createEvent(virtualViewId, eventType);
538 * @param virtualViewId the virtual view id to invalidate, or
542 public final void invalidateVirtualView(int virtualViewId) {
543 invalidateVirtualView(virtualViewId,
555 * @param virtualViewId the virtual view id to invalidate, or
566 public final void invalidateVirtualView(int virtualViewId, int changeTypes) {
567 if (virtualViewId != INVALID_ID && mManager.isEnabled()) {
571 final AccessibilityEvent event = createEvent(virtualViewId,
596 * @param virtualViewId the virtual view identifier
600 protected void onVirtualViewKeyboardFocusChanged(int virtualViewId, boolean hasFocus) {
608 * @param virtualViewId the virtual view id for the item currently being
612 private void updateHoveredVirtualView(int virtualViewId) {
613 if (mHoveredVirtualViewId == virtualViewId) {
618 mHoveredVirtualViewId = virtualViewId;
622 sendEventForVirtualView(virtualViewId, AccessibilityEventCompat.TYPE_VIEW_HOVER_ENTER);
631 * @param virtualViewId the virtual view id for the item for which to
637 private AccessibilityEvent createEvent(int virtualViewId, int eventType) {
638 switch (virtualViewId) {
642 return createEventForChild(virtualViewId, eventType);
671 * @param virtualViewId the virtual view id for the item for which to
677 private AccessibilityEvent createEventForChild(int virtualViewId, int eventType) {
680 final AccessibilityNodeInfoCompat node = obtainAccessibilityNodeInfo(virtualViewId);
691 onPopulateEventForVirtualView(virtualViewId, event);
701 record.setSource(mHost, virtualViewId);
714 * @param virtualViewId the identifier of the virtual view for which to
720 private AccessibilityNodeInfoCompat obtainAccessibilityNodeInfo(int virtualViewId) {
721 if (virtualViewId == HOST_ID) {
725 return createNodeForChild(virtualViewId);
787 * @param virtualViewId the virtual view id for item for which to construct
792 private AccessibilityNodeInfoCompat createNodeForChild(int virtualViewId) {
803 onPopulateNodeForVirtualView(virtualViewId, node);
829 node.setSource(mHost, virtualViewId);
833 if (mAccessibilityFocusedVirtualViewId == virtualViewId) {
842 final boolean isFocused = mKeyboardFocusedVirtualViewId == virtualViewId;
870 private boolean performAction(int virtualViewId, int action, Bundle arguments) {
871 switch (virtualViewId) {
875 return performActionForChild(virtualViewId, action, arguments);
883 private boolean performActionForChild(int virtualViewId, int action, Bundle arguments) {
886 return requestAccessibilityFocus(virtualViewId);
888 return clearAccessibilityFocus(virtualViewId);
890 return requestKeyboardFocusForVirtualView(virtualViewId);
892 return clearKeyboardFocusForVirtualView(virtualViewId);
894 return onPerformActionForVirtualView(virtualViewId, action, arguments);
949 * @param virtualViewId the identifier of the virtual view on which to
953 private boolean requestAccessibilityFocus(int virtualViewId) {
959 if (mAccessibilityFocusedVirtualViewId != virtualViewId) {
966 mAccessibilityFocusedVirtualViewId = virtualViewId;
970 sendEventForVirtualView(virtualViewId,
980 * @param virtualViewId the identifier of the virtual view from which to
984 private boolean clearAccessibilityFocus(int virtualViewId) {
985 if (mAccessibilityFocusedVirtualViewId == virtualViewId) {
988 sendEventForVirtualView(virtualViewId,
998 * @param virtualViewId the identifier of the virtual view on which to
1002 public final boolean requestKeyboardFocusForVirtualView(int virtualViewId) {
1008 if (mKeyboardFocusedVirtualViewId == virtualViewId) {
1017 mKeyboardFocusedVirtualViewId = virtualViewId;
1019 onVirtualViewKeyboardFocusChanged(virtualViewId, true);
1020 sendEventForVirtualView(virtualViewId, AccessibilityEvent.TYPE_VIEW_FOCUSED);
1028 * @param virtualViewId the identifier of the virtual view from which to
1032 public final boolean clearKeyboardFocusForVirtualView(int virtualViewId) {
1033 if (mKeyboardFocusedVirtualViewId != virtualViewId) {
1040 onVirtualViewKeyboardFocusChanged(virtualViewId, false);
1041 sendEventForVirtualView(virtualViewId, AccessibilityEvent.TYPE_VIEW_FOCUSED);
1096 * @param virtualViewId The virtual view id for the item for which to
1100 protected void onPopulateEventForVirtualView(int virtualViewId, AccessibilityEvent event) {
1175 * @param virtualViewId The virtual view identifier of the item for
1180 int virtualViewId, AccessibilityNodeInfoCompat node);
1210 * @param virtualViewId The virtual view identifier of the item on which
1218 int virtualViewId, int action, Bundle arguments);
1225 public AccessibilityNodeInfoCompat createAccessibilityNodeInfo(int virtualViewId) {
1229 ExploreByTouchHelper.this.obtainAccessibilityNodeInfo(virtualViewId);
1234 public boolean performAction(int virtualViewId, int action, Bundle arguments) {
1235 return ExploreByTouchHelper.this.performAction(virtualViewId, action, arguments);