/packages/apps/Settings/src/com/android/settings/widget/ |
D | MatchParentShrinkingLinearLayout.java | 333 final View child = getVirtualChildAt(i); in drawDividersVertical() local 335 if (child != null && child.getVisibility() != GONE) { in drawDividersVertical() 337 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersVertical() 338 final int top = child.getTop() - lp.topMargin - mDividerHeight; in drawDividersVertical() 345 final View child = getVirtualChildAt(count - 1); in drawDividersVertical() local 347 if (child == null) { in drawDividersVertical() 350 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersVertical() 351 bottom = child.getBottom() + lp.bottomMargin; in drawDividersVertical() 361 final View child = getVirtualChildAt(i); in drawDividersHorizontal() local 363 if (child != null && child.getVisibility() != GONE) { in drawDividersHorizontal() [all …]
|
/packages/services/Car/car-support-lib/src/android/support/car/ui/ |
D | CarLayoutManager.java | 515 View child, View focused) { in onRequestChildFocus() argument 516 if (child == null) { in onRequestChildFocus() 522 Log.v(TAG, String.format(":: onRequestChildFocus child: %s, focused: %s", child, in onRequestChildFocus() 529 return onRequestChildFocusMarioStyle(parent, child); in onRequestChildFocus() 531 return onRequestChildFocusSuperMarioStyle(parent, state, child); in onRequestChildFocus() 624 View child = getChildAt(i); in getFirstFullyVisibleChildIndex() local 625 RecyclerView.LayoutParams params = getParams(child); in getFirstFullyVisibleChildIndex() 626 if (getDecoratedTop(child) - params.topMargin >= getPaddingTop()) { in getFirstFullyVisibleChildIndex() 650 View child = getChildAt(i); in getLastFullyVisibleChildIndex() local 651 RecyclerView.LayoutParams params = getParams(child); in getLastFullyVisibleChildIndex() [all …]
|
D | CarRecyclerView.java | 112 public boolean drawChild(@NonNull Canvas canvas, @NonNull View child, long drawingTime) { in drawChild() argument 115 if ((child.getTop() < getBottom() && child.getBottom() > getBottom())) { in drawChild() 116 onScreen = ((float) (getBottom() - child.getTop())) / (float) child.getHeight(); in drawChild() 117 } else if ((child.getTop() < getTop() && child.getBottom() > getTop())) { in drawChild() 118 onScreen = ((float) (child.getBottom() - getTop())) / (float) child.getHeight(); in drawChild() 121 fadeChild(child, alpha); in drawChild() 124 return super.drawChild(canvas, child, drawingTime); in drawChild() 186 private void fadeChild(@NonNull View child, float alpha) { in fadeChild() argument 187 if (child instanceof ViewGroup) { in fadeChild() 188 ViewGroup vg = (ViewGroup) child; in fadeChild() [all …]
|
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/ |
D | CardPanel.java | 55 public void addView(View child, int index) { in addView() argument 56 super.addView(child, index); in addView() 58 mOrderedChildren.add(child); in addView() 60 mOrderedChildren.add(index, child); in addView() 80 public boolean childViewExists(View child) { in childViewExists() argument 81 return indexOfChild(child) >= 0 && !mViewsToBeRemoved.contains(child); in childViewExists() 85 public void moveChildBehindTheTop(View child) { in moveChildBehindTheTop() argument 91 int oldIndex = mOrderedChildren.indexOf(child); in moveChildBehindTheTop() 93 Log.e(TAG, "Child: " + child + " not found in " in moveChildBehindTheTop() 103 mOrderedChildren.set(newIndex, child); in moveChildBehindTheTop() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | ShortcutAndWidgetContainer.java | 61 View child = getChildAt(i); in getChildAt() local 62 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in getChildAt() 66 return child; in getChildAt() 81 View child = getChildAt(i); in onMeasure() local 82 if (child.getVisibility() != GONE) { in onMeasure() 83 measureChild(child); in onMeasure() 88 public void setupLp(View child) { in setupLp() argument 89 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in setupLp() 90 if (child instanceof LauncherAppWidgetHostView) { in setupLp() 109 public void measureChild(View child) { in measureChild() argument [all …]
|
D | CellLayout.java | 546 View child = getChildAt(x, y); in setFolderLeaveBehindCell() local 549 child.getMeasuredWidth(), child.getPaddingTop()); in setFolderLeaveBehindCell() 586 final View child = getChildAt(i); in cancelLongPress() local 587 child.cancelLongPress(); in cancelLongPress() 607 public boolean addViewToCellLayout(View child, int index, int childId, LayoutParams params, in addViewToCellLayout() argument 612 if (child instanceof BubbleTextView) { in addViewToCellLayout() 613 BubbleTextView bubbleChild = (BubbleTextView) child; in addViewToCellLayout() 617 child.setScaleX(mChildScale); in addViewToCellLayout() 618 child.setScaleY(mChildScale); in addViewToCellLayout() 628 child.setId(childId); in addViewToCellLayout() [all …]
|
D | Workspace.java | 565 public void onChildViewAdded(View parent, View child) { in onChildViewAdded() argument 566 if (!(child instanceof CellLayout)) { in onChildViewAdded() 569 CellLayout cl = ((CellLayout) child); in onChildViewAdded() 573 super.onChildViewAdded(parent, child); in onChildViewAdded() 1072 public void addInScreenFromBind(View child, ItemInfo info) { in addInScreenFromBind() argument 1080 addInScreen(child, info.container, info.screenId, x, y, info.spanX, info.spanY); in addInScreenFromBind() 1087 public void addInScreen(View child, ItemInfo info) { in addInScreen() argument 1088 addInScreen(child, info.container, info.screenId, info.cellX, info.cellY, in addInScreen() 1103 private void addInScreen(View child, long container, long screenId, int x, int y, in addInScreen() argument 1121 child.setOnKeyListener(new HotseatIconKeyEventListener()); in addInScreen() [all …]
|
/packages/apps/Gallery/src/com/android/camera/ |
D | EvenlySpacedLayout.java | 54 View child = getChildAt(i); in onMeasure() local 55 if (child.getVisibility() == GONE) continue; in onMeasure() 56 measureChild(child, widthMeasureSpec, heightMeasureSpec); in onMeasure() 58 width += child.getMeasuredWidth(); in onMeasure() 59 height = Math.max(height, child.getMeasuredHeight()); in onMeasure() 61 height += child.getMeasuredHeight(); in onMeasure() 62 width = Math.max(width, child.getMeasuredWidth()); in onMeasure() 75 View child = getChildAt(i); in layoutHorizontal() local 76 if (child.getVisibility() == GONE) continue; in layoutHorizontal() 77 usedWidth += child.getMeasuredWidth(); in layoutHorizontal() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | ScrollAdapterView.java | 200 void recycleView(View child, int type) { in recycleView() argument 202 mAdapter.viewRemoved(child); in recycleView() 206 mViews[type].add(child); in recycleView() 559 View child = getChildAt(i); 560 removeViewInLayout(child); 561 recycleExpandableView(child); 810 View child = getChildAt(i); 811 mItemTransform.transform(child, getScrollCenter(child) 813 : getCenterInOffAxis(child) - mScroll.secondAxis().getScrollCenter()); 900 public void requestChildFocus(View child, View focused) { [all …]
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | DragLayer.java | 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() [all …]
|
D | FocusHelper.java | 154 View child = null; in handlePagedViewGridLayoutWidgetKeyEvent() local 166 child = newParent.getChildAt(newParent.getChildCount() - 1); in handlePagedViewGridLayoutWidgetKeyEvent() 167 if (child != null) child.requestFocus(); in handlePagedViewGridLayoutWidgetKeyEvent() 183 child = newParent.getChildAt(0); in handlePagedViewGridLayoutWidgetKeyEvent() 184 if (child != null) child.requestFocus(); in handlePagedViewGridLayoutWidgetKeyEvent() 196 child = parent.getChildAt(newWidgetIndex); in handlePagedViewGridLayoutWidgetKeyEvent() 197 if (child != null) child.requestFocus(); in handlePagedViewGridLayoutWidgetKeyEvent() 209 child = parent.getChildAt(newWidgetIndex); in handlePagedViewGridLayoutWidgetKeyEvent() 210 if (child != null) child.requestFocus(); in handlePagedViewGridLayoutWidgetKeyEvent() 231 child = newParent.getChildAt(0); in handlePagedViewGridLayoutWidgetKeyEvent() [all …]
|
D | ShortcutAndWidgetContainer.java | 63 View child = getChildAt(i); in getChildAt() local 64 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in getChildAt() 68 return child; in getChildAt() 83 final View child = getChildAt(i); in dispatchDraw() local 84 … final CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in dispatchDraw() 96 View child = getChildAt(i); in onMeasure() local 97 measureChild(child); in onMeasure() 114 public void measureChild(View child) { in measureChild() argument 117 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in measureChild() 123 child.measure(childWidthMeasureSpec, childheightMeasureSpec); in measureChild() [all …]
|
D | CellLayout.java | 594 final View child = getChildAt(i); in cancelLongPress() local 595 child.cancelLongPress(); in cancelLongPress() 615 public boolean addViewToCellLayout(View child, int index, int childId, LayoutParams params, in addViewToCellLayout() argument 620 if (child instanceof BubbleTextView) { in addViewToCellLayout() 621 BubbleTextView bubbleChild = (BubbleTextView) child; in addViewToCellLayout() 631 child.setScaleX(getChildrenScale()); in addViewToCellLayout() 632 child.setScaleY(getChildrenScale()); in addViewToCellLayout() 642 child.setId(childId); in addViewToCellLayout() 644 mShortcutsAndWidgets.addView(child, index, lp); in addViewToCellLayout() 646 if (markCells) markCellsAsOccupiedForView(child); in addViewToCellLayout() [all …]
|
D | PagedViewCellLayoutChildren.java | 50 final View child = getChildAt(i); in cancelLongPress() local 51 child.cancelLongPress(); in cancelLongPress() 68 public void requestChildFocus(View child, View focused) { in requestChildFocus() argument 69 super.requestChildFocus(child, focused); in requestChildFocus() 70 if (child != null) { in requestChildFocus() 72 child.getDrawingRect(r); in requestChildFocus() 91 View child = getChildAt(i); in onMeasure() local 93 (PagedViewCellLayout.LayoutParams) child.getLayoutParams(); in onMeasure() 103 child.measure(childWidthMeasureSpec, childheightMeasureSpec); in onMeasure() 119 View child = getChildAt(i); in onLayout() local [all …]
|
D | HideFromAccessibilityHelper.java | 50 View child = vg.getChildAt(i); in setImportantForAccessibilityToNoHelper() local 52 if (includeView(child)) { in setImportantForAccessibilityToNoHelper() 53 setImportantForAccessibilityToNoHelper(child); in setImportantForAccessibilityToNoHelper() 82 View child = vg.getChildAt(i); in restoreImportantForAccessibilityHelper() local 83 if (includeView(child)) { in restoreImportantForAccessibilityHelper() 84 restoreImportantForAccessibilityHelper(child); in restoreImportantForAccessibilityHelper() 90 public void onChildViewAdded(View parent, View child) { in onChildViewAdded() argument 91 if (mHide && includeView(child)) { in onChildViewAdded() 92 setImportantForAccessibilityToNoHelper(child); in onChildViewAdded() 96 public void onChildViewRemoved(View parent, View child) { in onChildViewRemoved() argument [all …]
|
D | Workspace.java | 439 public void onChildViewAdded(View parent, View child) { in onChildViewAdded() argument 440 if (!(child instanceof CellLayout)) { in onChildViewAdded() 443 CellLayout cl = ((CellLayout) child); in onChildViewAdded() 451 public void onChildViewRemoved(View parent, View child) { in onChildViewRemoved() argument 454 protected boolean shouldDrawChild(View child) { in shouldDrawChild() argument 455 final CellLayout cl = (CellLayout) child; in shouldDrawChild() 456 return super.shouldDrawChild(child) && in shouldDrawChild() 468 View child = dragLayer.getChildAt(i); in getOpenFolder() local 469 if (child instanceof Folder) { in getOpenFolder() 470 Folder folder = (Folder) child; in getOpenFolder() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | DragLayer.java | 316 public boolean onRequestSendAccessibilityEvent(View child, AccessibilityEvent event) { in onRequestSendAccessibilityEvent() argument 320 if (child == topView) { in onRequestSendAccessibilityEvent() 321 return super.onRequestSendAccessibilityEvent(child, event); in onRequestSendAccessibilityEvent() 323 if (isInAccessibleDrag() && child instanceof DropTargetBar) { in onRequestSendAccessibilityEvent() 324 return super.onRequestSendAccessibilityEvent(child, event); in onRequestSendAccessibilityEvent() 330 return super.onRequestSendAccessibilityEvent(child, event); in onRequestSendAccessibilityEvent() 394 public float getLocationInDragLayer(View child, int[] loc) { in getLocationInDragLayer() argument 397 return getDescendantCoordRelativeToSelf(child, loc); in getLocationInDragLayer() 531 View child = getChildAt(i); in onLayout() local 532 final FrameLayout.LayoutParams flp = (FrameLayout.LayoutParams) child.getLayoutParams(); in onLayout() [all …]
|
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
D | CalculatorPadViewPager.java | 40 final View child = getChildAt(position); 43 child.setOnClickListener(new OnClickListener() { 51 child.setOnTouchListener(new OnTouchListener() { 61 child.setOnHoverListener(new OnHoverListener() { 69 child.setFocusable(true); 71 child.setContentDescription(getPageTitle(position)); 73 return child; 103 final View child = getChildAt(i); 105 child.setClickable(i != position); 109 if (child instanceof ViewGroup) { [all …]
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | CustomContactListFilterActivity.java | 496 final GroupDelta child = oppositeChildren.next(); 497 setShouldSync(child, shouldSync, false); 502 public void setShouldSync(GroupDelta child, boolean shouldSync) { 503 setShouldSync(child, shouldSync, true); 510 public void setShouldSync(GroupDelta child, boolean shouldSync, boolean attemptRemove) { 511 child.putShouldSync(shouldSync); 514 mUnsyncedGroups.remove(child); 516 mSyncedGroups.add(child); 520 mSyncedGroups.remove(child); 522 mUnsyncedGroups.add(child); [all …]
|
/packages/apps/TV/src/com/android/tv/guide/ |
D | ProgramRow.java | 87 public void onViewAdded(View child) { in onViewAdded() argument 88 super.onViewAdded(child); in onViewAdded() 89 ProgramItemView itemView = (ProgramItemView) child; in onViewAdded() 195 public void onChildDetachedFromWindow(View child) { in onChildDetachedFromWindow() argument 196 if (child.hasFocus()) { in onChildDetachedFromWindow() 198 TableEntry entry = ((ProgramItemView) child).getTableEntry(); in onChildDetachedFromWindow() 218 super.onChildDetachedFromWindow(child); in onChildDetachedFromWindow() 222 public void onChildAttachedToWindow(View child) { in onChildAttachedToWindow() argument 223 super.onChildAttachedToWindow(child); in onChildAttachedToWindow() 225 TableEntry entry = ((ProgramItemView) child).getTableEntry(); in onChildAttachedToWindow() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
D | SimpleDayPickerFragment.java | 233 SimpleWeekView child = (SimpleWeekView) mListView.getChildAt(0); in onActivityCreated() local 234 if (child == null) { in onActivityCreated() 237 int julianDay = child.getFirstJulianDay(); in onActivityCreated() 406 View child; in goTo() local 411 child = mListView.getChildAt(i++); in goTo() 412 if (child == null) { in goTo() 415 top = child.getTop(); in goTo() 423 if (child != null) { in goTo() 424 firstPosition = mListView.getPositionForView(child); in goTo() 474 SimpleWeekView child = (SimpleWeekView)view.getChildAt(0); in onScroll() local [all …]
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
D | InterpolatingLayout.java | 214 View child = getChildAt(i); in onMeasure() local 215 if (child.getVisibility() == View.GONE) { in onMeasure() 219 LayoutParams params = (LayoutParams) child.getLayoutParams(); in onMeasure() 226 fillChild = child; in onMeasure() 256 child.measure(childWidthMeasureSpec, childHeightMeasureSpec); in onMeasure() 257 width += child.getMeasuredWidth(); in onMeasure() 258 height = Math.max(child.getMeasuredHeight(), height); in onMeasure() 284 View child = getChildAt(i); in onLayout() local 286 if (child.getVisibility() == View.GONE) { in onLayout() 290 LayoutParams params = (LayoutParams) child.getLayoutParams(); in onLayout() [all …]
|
/packages/services/Car/car-ui-provider/src/android/car/ui/provider/ |
D | CarDrawerLayout.java | 615 final View child = getChildAt(i); in findDrawerView() local 616 final int childAbsGravity = getDrawerViewAbsoluteGravity(child); in findDrawerView() 618 mDrawerView = child; in findDrawerView() 619 return child; in findDrawerView() 635 final View child = getChildAt(i); in findContentView() local 636 if (isDrawerView(child)) { in findContentView() 639 mContentView = child; in findContentView() 640 return child; in findContentView() 819 protected boolean drawChild(Canvas canvas, View child, long drawingTime) { in drawChild() argument 821 final boolean drawingContent = isContentView(child); in drawChild() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | RawContactDelta.java | 267 for (ValuesDelta child : mimeEntries) { in getMimeEntriesCount() 269 if (onlyVisible && !child.isVisible()) continue; in getMimeEntriesCount() 337 for (ValuesDelta child : mimeEntries) { in equals() 339 if (!other.containsEntry(child)) return false; in equals() 351 for (ValuesDelta child : mimeEntries) { in containsEntry() 353 if (child.equals(entry)) return true; in containsEntry() 365 for (ValuesDelta child : mimeEntries) { in markDeleted() 366 child.markDeleted(); in markDeleted() 381 for (ValuesDelta child : mimeEntries) { in toString() 383 child.toString(builder); in toString() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/toast/ |
D | SnackbarSlidingBehavior.java | 36 public boolean layoutDependsOn(CoordinatorLayout parent, View child, View dependency) { in layoutDependsOn() argument 41 public boolean onDependentViewChanged(CoordinatorLayout parent, View child, View dependency) { in onDependentViewChanged() argument 42 updateTranslationY(parent, child); in onDependentViewChanged() 47 public void onDependentViewRemoved(CoordinatorLayout parent, View child, View dependency) { in onDependentViewRemoved() argument 48 updateTranslationY(parent, child); in onDependentViewRemoved() 52 public boolean onLayoutChild(CoordinatorLayout parent, View child, int layoutDirection) { in onLayoutChild() argument 53 updateTranslationY(parent, child); in onLayoutChild() 57 private void updateTranslationY(CoordinatorLayout parent, View child) { in updateTranslationY() argument 59 for (View dependency : parent.getDependencies(child)) { in updateTranslationY() 60 translationY = Math.min(translationY, dependency.getY() - child.getBottom()); in updateTranslationY() [all …]
|