/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/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/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/Launcher3/src/com/android/launcher3/dragndrop/ |
D | DragLayer.java | 199 public boolean onRequestSendAccessibilityEvent(View child, AccessibilityEvent event) { in onRequestSendAccessibilityEvent() argument 200 if (isInAccessibleDrag() && child instanceof DropTargetBar) { in onRequestSendAccessibilityEvent() 203 return super.onRequestSendAccessibilityEvent(child, event); in onRequestSendAccessibilityEvent() 248 public void animateViewIntoPosition(DragView dragView, final View child, View anchorView) { in animateViewIntoPosition() argument 249 animateViewIntoPosition(dragView, child, -1, anchorView); in animateViewIntoPosition() 252 public void animateViewIntoPosition(DragView dragView, final View child, int duration, in animateViewIntoPosition() argument 254 ShortcutAndWidgetContainer parentChildren = (ShortcutAndWidgetContainer) child.getParent(); in animateViewIntoPosition() 255 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in animateViewIntoPosition() 256 parentChildren.measureChild(child); in animateViewIntoPosition() 262 float childScale = child.getScaleX(); in animateViewIntoPosition() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | ShortcutAndWidgetContainer.java | 66 View child = getChildAt(i); in getChildAt() local 67 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in getChildAt() 71 return child; in getChildAt() 86 View child = getChildAt(i); in onMeasure() local 87 if (child.getVisibility() != GONE) { in onMeasure() 88 measureChild(child); in onMeasure() 93 public void setupLp(View child) { in setupLp() argument 94 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in setupLp() 95 if (child instanceof LauncherAppWidgetHostView) { in setupLp() 114 public void measureChild(View child) { in measureChild() argument [all …]
|
D | WorkspaceLayoutManager.java | 39 default void addInScreenFromBind(View child, ItemInfo info) { in addInScreenFromBind() argument 47 addInScreen(child, info.container, info.screenId, x, y, info.spanX, info.spanY); in addInScreenFromBind() 54 default void addInScreen(View child, ItemInfo info) { in addInScreen() argument 55 addInScreen(child, info.container, info.screenId, info.cellX, info.cellY, in addInScreen() 70 default void addInScreen(View child, int container, int screenId, int x, int y, in addInScreen() argument 90 if (child instanceof FolderIcon) { in addInScreen() 91 ((FolderIcon) child).setTextVisible(false); in addInScreen() 95 if (child instanceof FolderIcon) { in addInScreen() 96 ((FolderIcon) child).setTextVisible(true); in addInScreen() 101 ViewGroup.LayoutParams genericLp = child.getLayoutParams(); in addInScreen() [all …]
|
D | InsettableFrameLayout.java | 25 public void setFrameLayoutChildInsets(View child, Rect newInsets, Rect oldInsets) { in setFrameLayoutChildInsets() argument 26 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in setFrameLayoutChildInsets() 28 if (child instanceof Insettable) { in setFrameLayoutChildInsets() 29 ((Insettable) child).setInsets(newInsets); in setFrameLayoutChildInsets() 36 child.setLayoutParams(lp); in setFrameLayoutChildInsets() 43 final View child = getChildAt(i); in setInsets() local 44 setFrameLayoutChildInsets(child, insets, mInsets); in setInsets() 92 public void onViewAdded(View child) { in onViewAdded() argument 93 super.onViewAdded(child); in onViewAdded() 94 setFrameLayoutChildInsets(child, mInsets, new Rect()); in onViewAdded() [all …]
|
D | CellLayout.java | 515 View child = getChildAt(x, y); in setFolderLeaveBehindCell() local 517 child.getMeasuredWidth(), child.getPaddingTop()); in setFolderLeaveBehindCell() 554 final View child = getChildAt(i); in cancelLongPress() local 555 child.cancelLongPress(); in cancelLongPress() 575 public boolean addViewToCellLayout(View child, int index, int childId, LayoutParams params, in addViewToCellLayout() argument 580 if (child instanceof BubbleTextView) { in addViewToCellLayout() 581 BubbleTextView bubbleChild = (BubbleTextView) child; in addViewToCellLayout() 585 child.setScaleX(mChildScale); in addViewToCellLayout() 586 child.setScaleY(mChildScale); in addViewToCellLayout() 596 child.setId(childId); in addViewToCellLayout() [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/Calendar/src/com/android/calendar/month/ |
D | SimpleDayPickerFragment.java | 230 SimpleWeekView child = (SimpleWeekView) mListView.getChildAt(0); in onActivityCreated() local 231 if (child == null) { in onActivityCreated() 234 int julianDay = child.getFirstJulianDay(); in onActivityCreated() 403 View child; in goTo() local 408 child = mListView.getChildAt(i++); in goTo() 409 if (child == null) { in goTo() 412 top = child.getTop(); in goTo() 420 if (child != null) { in goTo() 421 firstPosition = mListView.getPositionForView(child); in goTo() 471 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/apps/TV/src/com/android/tv/guide/ |
D | ProgramRow.java | 86 public void onViewAdded(View child) { in onViewAdded() argument 87 super.onViewAdded(child); in onViewAdded() 88 ProgramItemView itemView = (ProgramItemView) child; in onViewAdded() 214 public void onChildDetachedFromWindow(View child) { in onChildDetachedFromWindow() argument 215 if (child.hasFocus()) { in onChildDetachedFromWindow() 217 TableEntry entry = ((ProgramItemView) child).getTableEntry(); in onChildDetachedFromWindow() 237 super.onChildDetachedFromWindow(child); in onChildDetachedFromWindow() 241 public void onChildAttachedToWindow(View child) { in onChildAttachedToWindow() argument 242 super.onChildAttachedToWindow(child); in onChildAttachedToWindow() 244 TableEntry entry = ((ProgramItemView) child).getTableEntry(); in onChildAttachedToWindow() [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 …]
|
/packages/apps/MusicFX/src/com/android/musicfx/ |
D | SeekBarRotator.java | 52 final View child = getChildAt(0); in onMeasure() local 54 if (child.getVisibility() != GONE) { in onMeasure() 56 measureChild(child, heightMeasureSpec, widthMeasureSpec); in onMeasure() 58 child.getMeasuredHeightAndState(), in onMeasure() 59 child.getMeasuredWidthAndState()); in onMeasure() 69 final View child = getChildAt(0); in onLayout() local 71 if (child.getVisibility() != GONE) { in onLayout() 73 child.setPivotX(0); in onLayout() 74 child.setPivotY(0); in onLayout() 75 child.setRotation(-90); in onLayout() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | CustomContactListFilterActivity.java | 503 final GroupDelta child = oppositeChildren.next(); 504 setShouldSync(child, shouldSync, false); 509 public void setShouldSync(GroupDelta child, boolean shouldSync) { 510 setShouldSync(child, shouldSync, true); 517 public void setShouldSync(GroupDelta child, boolean shouldSync, boolean attemptRemove) { 518 child.putShouldSync(shouldSync); 521 mUnsyncedGroups.remove(child); 523 mSyncedGroups.add(child); 527 mSyncedGroups.remove(child); 529 mUnsyncedGroups.add(child); [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/Launcher3/src/com/android/launcher3/accessibility/ |
D | WorkspaceAccessibilityHelper.java | 101 View child = mView.getChildAt(x, y); in intersectsValidDropTarget() local 102 if (child == null || child == dragInfo.item) { in intersectsValidDropTarget() 107 ItemInfo info = (ItemInfo) child.getTag(); in intersectsValidDropTarget() 123 View child = mView.getChildAt(x, y); in getConfirmationForIconDrop() local 124 if (child == null || child == dragInfo.item) { in getConfirmationForIconDrop() 127 ItemInfo info = (ItemInfo) child.getTag(); in getConfirmationForIconDrop() 163 View child = mView.getChildAt(x, y); in getLocationDescriptionForIconDrop() local 164 if (child == null || child == dragInfo.item) { in getLocationDescriptionForIconDrop() 167 return getDescriptionForDropOver(child, mContext); in getLocationDescriptionForIconDrop()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
D | DocumentsProviderHelper.java | 188 for (DocumentInfo child : children) { in assertHasFile() 189 if (name.equals(child.displayName) && !child.isDirectory()) { in assertHasFile() 207 for (DocumentInfo child : children) { in assertHasDirectory() 208 if (name.equals(child.displayName) && child.isDirectory()) { in assertHasDirectory() 226 for (DocumentInfo child : children) { in assertDoesNotExist() 227 if (name.equals(child.displayName)) { in assertDoesNotExist() 245 for (DocumentInfo child : children) { in findFile() 246 if (name.equals(child.displayName)) { in findFile() 247 return child; in findFile() 255 for (DocumentInfo child : children) { in findDocument() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/views/ |
D | BaseDragLayer.java | 183 public boolean onRequestSendAccessibilityEvent(View child, AccessibilityEvent event) { in onRequestSendAccessibilityEvent() argument 188 if (child == topView) { in onRequestSendAccessibilityEvent() 189 return super.onRequestSendAccessibilityEvent(child, event); in onRequestSendAccessibilityEvent() 195 return super.onRequestSendAccessibilityEvent(child, event); in onRequestSendAccessibilityEvent() 210 protected void addAccessibleChildToList(View child, ArrayList<View> outList) { in addAccessibleChildToList() argument 211 if (child.isImportantForAccessibility()) { in addAccessibleChildToList() 212 outList.add(child); in addAccessibleChildToList() 214 child.addChildrenForAccessibility(outList); in addAccessibleChildToList() 219 public void onViewRemoved(View child) { in onViewRemoved() argument 220 super.onViewRemoved(child); in onViewRemoved() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapSettingsAdapter.java | 119 final BluetoothMapAccountItem child = getChild(groupPosition, childPosition); in getChildView() local 126 boolean oldIsChecked = child.mIsChecked; // needed to prevent updates on UI redraw in getChildView() 127 child.mIsChecked = isChecked; in getChildView() 130 int childIndex = childList.indexOf(child); in getChildView() 140 child.getName(), parentGroup.getName()); in getChildView() 150 child.mIsChecked = false; in getChildView() 155 child.getName()))) { in getChildView() 156 BluetoothMapSettingsDataHolder.sCheckedChilds.put(child.getName(), in getChildView() 167 BluetoothMapSettingsDataHolder.sCheckedChilds.remove(child.getName()); in getChildView() 170 BluetoothMapSettingsDataHolder.sCheckedChilds.remove(child.getName()); in getChildView() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | AllAppsStore.java | 138 updateAllIcons((child) -> { in updateNotificationDots() argument 139 if (child.getTag() instanceof ItemInfo) { in updateNotificationDots() 140 ItemInfo info = (ItemInfo) child.getTag(); in updateNotificationDots() 142 child.applyDotState(info, true /* animate */); in updateNotificationDots() 149 updateAllIcons((child) -> { in updatePromiseAppProgress() argument 150 if (child.getTag() == app) { in updatePromiseAppProgress() 151 child.applyProgressLevel(app.level); in updatePromiseAppProgress() 162 View child = parent.getChildAt(j); in updateAllIcons() local 163 if (child instanceof BubbleTextView) { in updateAllIcons() 164 action.accept((BubbleTextView) child); in updateAllIcons()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestDocumentsAccess.java | 64 final DocumentInfo child = new DocumentInfo(); in createDocument() local 65 child.authority = parentDoc.authority; in createDocument() 66 child.mimeType = mimeType; in createDocument() 67 child.displayName = displayName; in createDocument() 68 child.documentId = displayName; in createDocument() 69 child.derivedUri = DocumentsContract.buildDocumentUri(child.authority, displayName); in createDocument() 71 mLastCreatedDoc = Pair.create(parentDoc, child); in createDocument() 73 return child.derivedUri; in createDocument()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/ |
D | DataExporter.java | 129 for (File child : file.listFiles()) { in removeFileOrDirectory() 130 removeFileOrDirectory(child); in removeFileOrDirectory() 142 for (File child : current.listFiles()) { in addDirectory() 143 final String childStoredPath = storedPath + "/" + child.getName(); in addDirectory() 145 if (child.isDirectory()) { in addDirectory() 147 if (child.equals(context.getCacheDir())) { in addDirectory() 152 if (child.getName().equals(DUMP_FILE_DIRECTORY_NAME)) { in addDirectory() 155 addDirectory(context, os, child, childStoredPath); in addDirectory() 156 } else if (child.isFile()) { in addDirectory() 157 addFile(os, child, childStoredPath); in addDirectory()
|
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/ |
D | FadeAndShortSlide.java | 171 View child = parent.getChildAt(i); in getTransitionTargets() local 172 if (child instanceof ViewGroup && !((ViewGroup) child).isTransitionGroup()) { in getTransitionTargets() 173 getTransitionTargets((ViewGroup) child, transitionTargets); in getTransitionTargets() 175 transitionTargets.add(child); in getTransitionTargets() 355 private int getRelativeLeft(View child, View ancestor) { in getRelativeLeft() argument 356 ViewParent parent = child.getParent(); in getRelativeLeft() 357 int left = child.getLeft(); in getRelativeLeft() 368 private int getRelativeRight(View child, View ancestor) { in getRelativeRight() argument 369 ViewParent parent = child.getParent(); in getRelativeRight() 370 int right = child.getRight(); in getRelativeRight() [all …]
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
D | GalleryThumbnailView.java | 258 View child = obtainView(position, null); in makeAndAddColumn() local 259 if (child.getParent() != this) { in makeAndAddColumn() 261 addViewInLayout(child, forward ? -1 : 0, child.getLayoutParams()); in makeAndAddColumn() 263 addView(child, forward ? -1 : 0); in makeAndAddColumn() 271 child.measure(widthSpec, heightSpec); in makeAndAddColumn() 273 child.layout(childLeft, nextTop, childLeft + columnWidth, nextTop + heightSize); in makeAndAddColumn() 442 final View child = getChildAt(i); in recycleOffscreenViews() local 443 if (child.getTop() <= clearBelow) { in recycleOffscreenViews() 455 mRecycler.addScrap(child); in recycleOffscreenViews() 459 final View child = getChildAt(0); in recycleOffscreenViews() local [all …]
|