Lines Matching refs:id
63 // Map cell to id
64 int id = sTempArray[0] + sTempArray[1] * mView.getCountX();
65 return intersectsValidDropTarget(id);
69 * @return the view id of the top left corner of a valid drop region or
72 protected abstract int intersectsValidDropTarget(int id);
104 protected void onPopulateEventForVirtualView(int id, AccessibilityEvent event) {
105 if (id == INVALID_ID) {
106 throw new IllegalArgumentException("Invalid virtual view id");
112 protected void onPopulateNodeForVirtualView(int id, AccessibilityNodeInfoCompat node) {
113 if (id == INVALID_ID) {
114 throw new IllegalArgumentException("Invalid virtual view id");
117 node.setContentDescription(getLocationDescriptionForIconDrop(id));
118 node.setBoundsInParent(getItemBounds(id));
125 protected abstract String getLocationDescriptionForIconDrop(int id);
127 protected abstract String getConfirmationForIconDrop(int id);
129 private Rect getItemBounds(int id) {
130 int cellX = id % mView.getCountX();
131 int cellY = id / mView.getCountX();