Lines Matching refs:child
127 for (AppWidgetResizeFrame child: mResizeFrames) { in handleTouchDown()
128 child.getHitRect(hitRect); in handleTouchDown()
130 if (child.beginResizeIfPointInRegion(x - child.getLeft(), y - child.getTop())) { in handleTouchDown()
131 mCurrentResizeFrame = child; in handleTouchDown()
226 public boolean onRequestSendAccessibilityEvent(View child, AccessibilityEvent event) { in onRequestSendAccessibilityEvent() argument
229 if (child == currentFolder) { in onRequestSendAccessibilityEvent()
230 return super.onRequestSendAccessibilityEvent(child, event); in onRequestSendAccessibilityEvent()
236 return super.onRequestSendAccessibilityEvent(child, event); in onRequestSendAccessibilityEvent()
306 public float getLocationInDragLayer(View child, int[] loc) { in getLocationInDragLayer() argument
309 return getDescendantCoordRelativeToSelf(child, loc); in getLocationInDragLayer()
411 View child = getChildAt(i); in onLayout() local
412 final FrameLayout.LayoutParams flp = (FrameLayout.LayoutParams) child.getLayoutParams(); in onLayout()
416 child.layout(lp.x, lp.y, lp.x + lp.width, lp.y + lp.height); in onLayout()
454 public void animateViewIntoPosition(DragView dragView, final View child) { in animateViewIntoPosition() argument
455 animateViewIntoPosition(dragView, child, null); in animateViewIntoPosition()
470 public void animateViewIntoPosition(DragView dragView, final View child, in animateViewIntoPosition() argument
472 animateViewIntoPosition(dragView, child, -1, onFinishAnimationRunnable, null); in animateViewIntoPosition()
475 public void animateViewIntoPosition(DragView dragView, final View child, int duration, in animateViewIntoPosition() argument
477 ShortcutAndWidgetContainer parentChildren = (ShortcutAndWidgetContainer) child.getParent(); in animateViewIntoPosition()
478 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in animateViewIntoPosition()
479 parentChildren.measureChild(child); in animateViewIntoPosition()
485 float childScale = child.getScaleX(); in animateViewIntoPosition()
486 coord[0] = lp.x + (int) (child.getMeasuredWidth() * (1 - childScale) / 2); in animateViewIntoPosition()
487 coord[1] = lp.y + (int) (child.getMeasuredHeight() * (1 - childScale) / 2); in animateViewIntoPosition()
491 float scale = getDescendantCoordRelativeToSelf((View) child.getParent(), coord); in animateViewIntoPosition()
497 if (child instanceof TextView) { in animateViewIntoPosition()
498 TextView tv = (TextView) child; in animateViewIntoPosition()
505 toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2; in animateViewIntoPosition()
506 } else if (child instanceof FolderIcon) { in animateViewIntoPosition()
511 toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2; in animateViewIntoPosition()
513 toY -= (Math.round(scale * (dragView.getHeight() - child.getMeasuredHeight()))) / 2; in animateViewIntoPosition()
515 - child.getMeasuredWidth()))) / 2; in animateViewIntoPosition()
520 child.setVisibility(INVISIBLE); in animateViewIntoPosition()
523 child.setVisibility(VISIBLE); in animateViewIntoPosition()
719 public void onChildViewAdded(View parent, View child) { in onChildViewAdded() argument
724 public void onChildViewRemoved(View parent, View child) { in onChildViewRemoved() argument