Home
last modified time | relevance | path

Searched refs:child (Results 1 – 25 of 159) sorted by relevance

1234567

/packages/apps/Settings/src/com/android/settings/widget/
DMatchParentShrinkingLinearLayout.java333 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/
DMatchParentShrinkingLinearLayout.java333 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/Launcher3/src/com/android/launcher3/dragndrop/
DDragLayer.java202 public boolean onRequestSendAccessibilityEvent(View child, AccessibilityEvent event) { in onRequestSendAccessibilityEvent() argument
203 if (isInAccessibleDrag() && child instanceof DropTargetBar) { in onRequestSendAccessibilityEvent()
206 return super.onRequestSendAccessibilityEvent(child, event); in onRequestSendAccessibilityEvent()
251 public void animateViewIntoPosition(DragView dragView, final View child, View anchorView) { in animateViewIntoPosition() argument
252 animateViewIntoPosition(dragView, child, -1, anchorView); in animateViewIntoPosition()
255 public void animateViewIntoPosition(DragView dragView, final View child, int duration, in animateViewIntoPosition() argument
257 ShortcutAndWidgetContainer parentChildren = (ShortcutAndWidgetContainer) child.getParent(); in animateViewIntoPosition()
258 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in animateViewIntoPosition()
259 parentChildren.measureChild(child); in animateViewIntoPosition()
265 float childScale = child.getScaleX(); in animateViewIntoPosition()
[all …]
/packages/apps/Gallery/src/com/android/camera/
DEvenlySpacedLayout.java54 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/
DShortcutAndWidgetContainer.java66 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 …]
DWorkspaceLayoutManager.java39 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 …]
DInsettableFrameLayout.java25 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 …]
DCellLayout.java515 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/
DScrollAdapterView.java200 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/
DSimpleDayPickerFragment.java230 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/
DInterpolatingLayout.java214 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/
DProgramRow.java86 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/
DSnackbarSlidingBehavior.java36 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 …]
DSnackbarSlidingBehavior.kt39 child: View, in layoutDependsOn()
47 child: View, in onDependentViewChanged()
50 updateTranslationY(parent, child) in onDependentViewChanged()
54 override fun onDependentViewRemoved(parent: CoordinatorLayout, child: View, dependency: View) { in onDependentViewRemoved()
55 updateTranslationY(parent, child) in onDependentViewRemoved()
60 child: View, in onLayoutChild()
63 updateTranslationY(parent, child) in onLayoutChild()
67 private fun updateTranslationY(parent: CoordinatorLayout, child: View) { in updateTranslationY()
69 for (dependency in parent.getDependencies(child)) { in updateTranslationY()
70 translationY = min(translationY, dependency.y - child.bottom) in updateTranslationY()
[all …]
/packages/apps/MusicFX/src/com/android/musicfx/
DSeekBarRotator.java52 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/
DCustomContactListFilterActivity.java503 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/
DRawContactDelta.java267 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/
DWorkspaceAccessibilityHelper.java101 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/
DAllAppsStore.java127 updateAllIcons((child) -> { in updateNotificationDots() argument
128 if (child.getTag() instanceof ItemInfo) { in updateNotificationDots()
129 ItemInfo info = (ItemInfo) child.getTag(); in updateNotificationDots()
131 child.applyDotState(info, true /* animate */); in updateNotificationDots()
138 updateAllIcons((child) -> { in updatePromiseAppProgress() argument
139 if (child.getTag() == app) { in updatePromiseAppProgress()
140 child.applyProgressLevel(app.level); in updatePromiseAppProgress()
151 View child = parent.getChildAt(j); in updateAllIcons() local
152 if (child instanceof BubbleTextView) { in updateAllIcons()
153 action.accept((BubbleTextView) child); in updateAllIcons()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DDocumentsProviderHelper.java191 for (DocumentInfo child : children) { in assertHasFile()
192 if (name.equals(child.displayName) && !child.isDirectory()) { in assertHasFile()
210 for (DocumentInfo child : children) { in assertHasDirectory()
211 if (name.equals(child.displayName) && child.isDirectory()) { in assertHasDirectory()
229 for (DocumentInfo child : children) { in assertDoesNotExist()
230 if (name.equals(child.displayName)) { in assertDoesNotExist()
248 for (DocumentInfo child : children) { in findFile()
249 if (name.equals(child.displayName)) { in findFile()
250 return child; in findFile()
258 for (DocumentInfo child : children) { in findDocument()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapSettingsAdapter.java119 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/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/
DDefaultScrollBar.java403 View child = getRecyclerView().getChildAt(i); in pageUp() local
404 if (child.getHeight() > screenSize) { in pageUp()
405 if (orientationHelper.getDecoratedEnd(child) < screenSize) { in pageUp()
407 scrollDistance = screenSize - orientationHelper.getDecoratedEnd(child); in pageUp()
408 } else if (-screenSize < orientationHelper.getDecoratedStart(child) in pageUp()
409 && orientationHelper.getDecoratedStart(child) < 0) { in pageUp()
412 scrollDistance = Math.abs(orientationHelper.getDecoratedStart(child)); in pageUp()
463 View child = getRecyclerView().getChildAt(i); in pageDown() local
464 if (child.getHeight() > screenSize) { in pageDown()
465 if (orientationHelper.getDecoratedStart(child) > 0) { in pageDown()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestDocumentsAccess.java64 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/apps/Launcher3/src/com/android/launcher3/views/
DBaseDragLayer.java200 public boolean onRequestSendAccessibilityEvent(View child, AccessibilityEvent event) { in onRequestSendAccessibilityEvent() argument
205 if (child == topView) { in onRequestSendAccessibilityEvent()
206 return super.onRequestSendAccessibilityEvent(child, event); in onRequestSendAccessibilityEvent()
212 return super.onRequestSendAccessibilityEvent(child, event); in onRequestSendAccessibilityEvent()
227 protected void addAccessibleChildToList(View child, ArrayList<View> outList) { in addAccessibleChildToList() argument
228 if (child.isImportantForAccessibility()) { in addAccessibleChildToList()
229 outList.add(child); in addAccessibleChildToList()
231 child.addChildrenForAccessibility(outList); in addAccessibleChildToList()
236 public void onViewRemoved(View child) { in onViewRemoved() argument
237 super.onViewRemoved(child); in onViewRemoved()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/
DDataExporter.java129 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()

1234567