/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/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/providers/MediaProvider/jni/ |
D | node_test.cpp | 55 unique_node_ptr child = CreateNode(parent.get(), "subdir"); in TEST_F() local 59 ASSERT_EQ(child.get(), parent->LookupChildByName("subdir", false /* acquire */)); in TEST_F() 60 ASSERT_EQ(1, GetRefCount(child.get())); in TEST_F() 83 unique_node_ptr child = CreateNode(parent.get(), "subdir"); in TEST_F() local 85 ASSERT_EQ(child.get(), parent->LookupChildByName("subdir", false /* acquire */)); in TEST_F() 87 child->Rename("subdir_new", parent.get()); in TEST_F() 91 ASSERT_EQ(child.get(), parent->LookupChildByName("subdir_new", false /* acquire */)); in TEST_F() 93 ASSERT_EQ("/path/subdir_new", child->BuildPath()); in TEST_F() 94 ASSERT_EQ(1, GetRefCount(child.get())); in TEST_F() 101 unique_node_ptr child = CreateNode(parent1.get(), "subdir"); in TEST_F() local [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 | 40 default void addInScreenFromBind(View child, ItemInfo info) { in addInScreenFromBind() argument 49 addInScreen(child, info.container, info.screenId, x, y, info.spanX, info.spanY); in addInScreenFromBind() 56 default void addInScreen(View child, ItemInfo info) { in addInScreen() argument 57 addInScreen(child, info.container, info.screenId, info.cellX, info.cellY, in addInScreen() 72 default void addInScreen(View child, int container, int screenId, int x, int y, in addInScreen() argument 93 if (child instanceof FolderIcon) { in addInScreen() 94 ((FolderIcon) child).setTextVisible(false); in addInScreen() 98 if (child instanceof FolderIcon) { in addInScreen() 99 ((FolderIcon) child).setTextVisible(true); in addInScreen() 104 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() 97 setFrameLayoutChildInsets(child, mInsets, new Rect()); in onViewAdded() [all …]
|
D | CellLayout.java | 520 View child = getChildAt(x, y); in setFolderLeaveBehindCell() local 522 child.getMeasuredWidth(), child.getPaddingTop()); in setFolderLeaveBehindCell() 559 final View child = getChildAt(i); in cancelLongPress() local 560 child.cancelLongPress(); in cancelLongPress() 580 public boolean addViewToCellLayout(View child, int index, int childId, LayoutParams params, in addViewToCellLayout() argument 585 if (child instanceof BubbleTextView) { in addViewToCellLayout() 586 BubbleTextView bubbleChild = (BubbleTextView) child; in addViewToCellLayout() 590 child.setScaleX(mChildScale); in addViewToCellLayout() 591 child.setScaleY(mChildScale); in addViewToCellLayout() 601 child.setId(childId); in addViewToCellLayout() [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/Launcher3/src/com/android/launcher3/dragndrop/ |
D | DragLayer.java | 196 public boolean onRequestSendAccessibilityEvent(View child, AccessibilityEvent event) { in onRequestSendAccessibilityEvent() argument 197 if (isInAccessibleDrag() && child instanceof DropTargetBar) { in onRequestSendAccessibilityEvent() 200 return super.onRequestSendAccessibilityEvent(child, event); in onRequestSendAccessibilityEvent() 245 public void animateViewIntoPosition(DragView dragView, final View child, View anchorView) { in animateViewIntoPosition() argument 246 animateViewIntoPosition(dragView, child, -1, anchorView); in animateViewIntoPosition() 249 public void animateViewIntoPosition(DragView dragView, final View child, int duration, in animateViewIntoPosition() argument 252 ShortcutAndWidgetContainer parentChildren = (ShortcutAndWidgetContainer) child.getParent(); in animateViewIntoPosition() 253 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in animateViewIntoPosition() 254 parentChildren.measureChild(child); in animateViewIntoPosition() 255 parentChildren.layoutChild(child); in animateViewIntoPosition() [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/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/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/Car/RotaryController/src/com/android/car/rotary/ |
D | TreeTraverser.java | 104 AccessibilityNodeInfo child = node.getChild(i); in depthFirstSearch() local 105 if (child == null) { in depthFirstSearch() 108 AccessibilityNodeInfo result = depthFirstSearch(child, skipPredicate, targetPredicate); in depthFirstSearch() 109 child.recycle(); in depthFirstSearch() 127 AccessibilityNodeInfo child = node.getChild(i); in reverseDepthFirstSearch() local 128 if (child == null) { in reverseDepthFirstSearch() 132 reverseDepthFirstSearch(child, targetPredicate); in reverseDepthFirstSearch() 133 child.recycle(); in reverseDepthFirstSearch() 158 AccessibilityNodeInfo child = node.getChild(i); in depthFirstSelect() local 159 if (child == null) { in depthFirstSelect() [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/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/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/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestDocumentsAccess.java | 65 final DocumentInfo child = new DocumentInfo(); in createDocument() local 66 child.authority = parentDoc.authority; in createDocument() 67 child.mimeType = mimeType; in createDocument() 68 child.displayName = displayName; in createDocument() 69 child.documentId = displayName; in createDocument() 70 child.derivedUri = DocumentsContract.buildDocumentUri(child.authority, displayName); in createDocument() 72 mLastCreatedDoc = Pair.create(parentDoc, child); in createDocument() 74 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/DocumentsUI/tests/common/com/android/documentsui/ |
D | DocumentsProviderHelper.java | 195 for (DocumentInfo child : children) { in assertHasFile() 196 if (name.equals(child.displayName) && !child.isDirectory()) { in assertHasFile() 214 for (DocumentInfo child : children) { in assertHasDirectory() 215 if (name.equals(child.displayName) && child.isDirectory()) { in assertHasDirectory() 233 for (DocumentInfo child : children) { in assertDoesNotExist() 234 if (name.equals(child.displayName)) { in assertDoesNotExist() 252 for (DocumentInfo child : children) { in findFile() 253 if (name.equals(child.displayName)) { in findFile() 254 return child; in findFile() 262 for (DocumentInfo child : children) { in findDocument() [all …]
|
/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 …]
|