Lines Matching defs:child

427     protected void onViewAdded(View child) {
428 super.onViewAdded(child);
429 if (!(child instanceof CellLayout)) {
432 CellLayout cl = ((CellLayout) child);
445 View child = dragLayer.getChildAt(i);
446 if (child instanceof Folder) {
447 Folder folder = (Folder) child;
460 * Adds the specified child in the specified screen. The position and dimension of
461 * the child are defined by x, y, spanX and spanY.
463 * @param child The child to add in one of the workspace's screens.
464 * @param screen The screen in which to add the child.
465 * @param x The X position of the child in the screen's grid.
466 * @param y The Y position of the child in the screen's grid.
467 * @param spanX The number of cells spanned horizontally by the child.
468 * @param spanY The number of cells spanned vertically by the child.
470 void addInScreen(View child, long container, int screen, int x, int y, int spanX, int spanY) {
471 addInScreen(child, container, screen, x, y, spanX, spanY, false);
475 * Adds the specified child in the specified screen. The position and dimension of
476 * the child are defined by x, y, spanX and spanY.
478 * @param child The child to add in one of the workspace's screens.
479 * @param screen The screen in which to add the child.
480 * @param x The X position of the child in the screen's grid.
481 * @param y The Y position of the child in the screen's grid.
482 * @param spanX The number of cells spanned horizontally by the child.
483 * @param spanY The number of cells spanned vertically by the child.
484 * @param insert When true, the child is inserted at the beginning of the children list.
486 void addInScreen(View child, long container, int screen, int x, int y, int spanX, int spanY,
491 + " (was " + screen + "); skipping child");
499 child.setOnKeyListener(null);
502 if (child instanceof FolderIcon) {
503 ((FolderIcon) child).setTextVisible(false);
516 if (child instanceof FolderIcon) {
517 ((FolderIcon) child).setTextVisible(true);
521 child.setOnKeyListener(new IconKeyEventListener());
524 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
538 // Get the canonical child id to uniquely represent this view in this screen
540 boolean markCellsAsOccupied = !(child instanceof Folder);
541 if (!layout.addViewToCellLayout(child, insert ? 0 : -1, childId, lp, markCellsAsOccupied)) {
548 if (!(child instanceof Folder)) {
549 child.setHapticFeedbackEnabled(false);
550 child.setOnLongClickListener(mLongClickListener);
552 if (child instanceof DropTarget) {
553 mDragController.addDropTarget((DropTarget) child);
1921 View child = cellInfo.cell;
1924 if (!child.isInTouchMode()) {
1929 child.setVisibility(GONE);
1931 child.clearFocus();
1932 child.setPressed(false);
1940 mDragOutline = createDragOutline(child, canvas, bitmapPadding);
1941 beginDragShared(child, this);
1944 public void beginDragShared(View child, DragSource source) {
1951 final Bitmap b = createDragBitmap(child, new Canvas(), bitmapPadding);
1955 mLauncher.getDragLayer().getLocationInDragLayer(child, mTempXY);
1956 final int dragLayerX = (int) mTempXY[0] + (child.getWidth() - bmpWidth) / 2;
1961 if (child instanceof BubbleTextView || child instanceof PagedViewIcon) {
1964 int top = child.getPaddingTop();
1973 } else if (child instanceof FolderIcon) {
1975 dragRect = new Rect(0, 0, child.getWidth(), previewSize);
1979 if (child instanceof BubbleTextView) {
1980 BubbleTextView icon = (BubbleTextView) child;
1984 mDragController.startDrag(b, dragLayerX, dragLayerY, source, child.getTag(),
2781 final View child = (mDragInfo == null) ? null : mDragInfo.cell;
2821 mDragTargetLayout.visualizeDropLocation(child, mDragOutline,
3321 View child = layout.getChildAt(i);
3322 if (child instanceof Folder) {
3323 Folder f = (Folder) child;
3338 View child = layout.getChildAt(i);
3339 if (child.getTag() == tag) {
3340 return child;
3438 View child = childrenToRemove.get(j);
3441 layoutParent.removeViewInLayout(child);
3442 if (child instanceof DropTarget) {
3443 mDragController.removeDropTarget((DropTarget)child);