/packages/apps/DeskClock/src/com/android/deskclock/widget/toast/ |
H A D | SnackbarSlidingBehavior.java | 36 public boolean layoutDependsOn(CoordinatorLayout parent, View child, View dependency) { argument 41 public boolean onDependentViewChanged(CoordinatorLayout parent, View child, View dependency) { argument 42 updateTranslationY(parent, child); 47 public void onDependentViewRemoved(CoordinatorLayout parent, View child, View dependency) { argument 48 updateTranslationY(parent, child); 52 public boolean onLayoutChild(CoordinatorLayout parent, View child, int layoutDirection) { argument 53 updateTranslationY(parent, child); 57 private void updateTranslationY(CoordinatorLayout parent, View child) { argument 59 for (View dependency : parent.getDependencies(child)) { 60 translationY = Math.min(translationY, dependency.getY() - child [all...] |
/packages/apps/MusicFX/src/com/android/musicfx/ |
H A D | SeekBarRotator.java | 52 final View child = getChildAt(0); 54 if (child.getVisibility() != GONE) { 55 // swap width and height for child 56 measureChild(child, heightMeasureSpec, widthMeasureSpec); 58 child.getMeasuredHeightAndState(), 59 child.getMeasuredWidthAndState()); 69 final View child = getChildAt(0); 71 if (child.getVisibility() != GONE) { 72 // rotate the child 90 degrees counterclockwise around its upper-left 73 child [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
H A D | StackLayout.java | 24 // A layout designed to make the children same size as the first child. 36 // Measure only the first child. 37 final View child = getChildAt(0); 38 measureChild(child, widthMeasureSpec, heightMeasureSpec); 41 int width = child.getMeasuredWidth(); 42 int height = child.getMeasuredHeight(); 53 final View child = getChildAt(i); 54 if (child.getVisibility() != View.GONE) { 55 child.layout(0, 0, r - l, b - t);
|
H A D | RightAlignedHorizontalScrollView.java | 38 // Get the width of the child, i.e. the LinearLayout, and scroll to 40 View child = getChildAt(0); 41 if (child != null) scrollTo(child.getWidth(), 0);
|
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/ |
H A D | CardPanel.java | 55 public void addView(View child, int index) { argument 56 super.addView(child, index); 58 mOrderedChildren.add(child); 60 mOrderedChildren.add(index, child); 80 public boolean childViewExists(View child) { argument 81 return indexOfChild(child) >= 0 && !mViewsToBeRemoved.contains(child); 84 /** Moves given child behind the top card */ 85 public void moveChildBehindTheTop(View child) { argument 91 int oldIndex = mOrderedChildren.indexOf(child); [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
H A D | EvenlySpacedLayout.java | 54 View child = getChildAt(i); 55 if (child.getVisibility() == GONE) continue; 56 measureChild(child, widthMeasureSpec, heightMeasureSpec); 58 width += child.getMeasuredWidth(); 59 height = Math.max(height, child.getMeasuredHeight()); 61 height += child.getMeasuredHeight(); 62 width = Math.max(width, child.getMeasuredWidth()); 75 View child = getChildAt(i); 76 if (child.getVisibility() == GONE) continue; 77 usedWidth += child [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
H A D | Files.java | 30 for (File child : file.listFiles()) { 31 deleteRecursively(child);
|
/packages/apps/Settings/src/com/android/settings/dashboard/ |
H A D | DashboardDecorator.java | 44 final View child = parent.getChildAt(i); 45 final ViewHolder holder = parent.getChildViewHolder(child); 55 int top = getChildTop(child); 56 mDivider.setBounds(child.getLeft(), top, child.getRight(), 62 private int getChildTop(View child) { argument 63 final RecyclerView.LayoutParams params = (RecyclerView.LayoutParams) child 65 return child.getTop() + params.topMargin + Math.round(ViewCompat.getTranslationY(child));
|
/packages/services/Car/car-support-lib/src/android/support/car/ui/ |
H A D | MaxWidthLayout.java | 65 * Re-measure the child width if it is greater than max width. 76 final View child = getChildAt(i); 77 if (child.getVisibility() != GONE) { 78 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 80 matchParentChildren.add(child); 85 final View child = matchParentChildren.get(i); 86 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams(); 87 if (child.getMeasuredWidth() > mMaxChildrenWidth) { 91 child.getMeasuredHeight(), MeasureSpec.EXACTLY); 92 child [all...] |
H A D | CarRecyclerView.java | 112 public boolean drawChild(@NonNull Canvas canvas, @NonNull View child, long drawingTime) { argument 115 if ((child.getTop() < getBottom() && child.getBottom() > getBottom())) { 116 onScreen = ((float) (getBottom() - child.getTop())) / (float) child.getHeight(); 117 } else if ((child.getTop() < getTop() && child.getBottom() > getTop())) { 118 onScreen = ((float) (child.getBottom() - getTop())) / (float) child.getHeight(); 121 fadeChild(child, alph 186 fadeChild(@onNull View child, float alpha) argument [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | HideFromAccessibilityHelper.java | 50 View child = vg.getChildAt(i); 52 if (includeView(child)) { 53 setImportantForAccessibilityToNoHelper(child); 82 View child = vg.getChildAt(i); 83 if (includeView(child)) { 84 restoreImportantForAccessibilityHelper(child); 90 public void onChildViewAdded(View parent, View child) { argument 91 if (mHide && includeView(child)) { 92 setImportantForAccessibilityToNoHelper(child); 96 public void onChildViewRemoved(View parent, View child) { argument [all...] |
H A D | PagedViewCellLayoutChildren.java | 50 final View child = getChildAt(i); 51 child.cancelLongPress(); 68 public void requestChildFocus(View child, View focused) { argument 69 super.requestChildFocus(child, focused); 70 if (child != null) { 72 child.getDrawingRect(r); 91 View child = getChildAt(i); 93 (PagedViewCellLayout.LayoutParams) child.getLayoutParams(); 103 child.measure(childWidthMeasureSpec, childheightMeasureSpec); 119 View child [all...] |
H A D | ShortcutAndWidgetContainer.java | 63 View child = getChildAt(i); 64 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); 68 return child; 83 final View child = getChildAt(i); 84 final CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); 96 View child = getChildAt(i); 97 measureChild(child); 114 public void measureChild(View child) { argument 117 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); 123 child 166 requestChildFocus(View child, View focused) argument [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | ShortcutAndWidgetContainer.java | 61 View child = getChildAt(i); 62 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); 66 return child; 81 View child = getChildAt(i); 82 if (child.getVisibility() != GONE) { 83 measureChild(child); 88 public void setupLp(View child) { argument 89 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); 90 if (child instanceof LauncherAppWidgetHostView) { 109 public void measureChild(View child) { argument 186 requestChildFocus(View child, View focused) argument [all...] |
H A D | InsettableFrameLayout.java | 30 public void setFrameLayoutChildInsets(View child, Rect newInsets, Rect oldInsets) { argument 31 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 33 if (child instanceof Insettable) { 34 ((Insettable) child).setInsets(newInsets); 41 child.setLayoutParams(lp); 47 // modifying child layout params. 52 final View child = getChildAt(i); 53 setFrameLayoutChildInsets(child, insets, mInsets); 101 public void onChildViewAdded(View parent, View child) { argument 102 setFrameLayoutChildInsets(child, mInset 106 onChildViewRemoved(View parent, View child) argument [all...] |
/packages/apps/TV/src/com/android/tv/ui/ |
H A D | AppLayerTvView.java | 55 public void onViewAdded(View child) { argument 56 if (child instanceof SurfaceView) { 58 ((SurfaceView) child).setSecure(!Experiments.ENABLE_DEVELOPER_FEATURES.get()); 60 super.onViewAdded(child);
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/ |
H A D | EllipsizeLayout.java | 10 * When this layout is in the Horizontal orientation and one and only one child is a TextView with a 16 * <li>any child has weights.</li> 17 * <li>more than one child has a non-null android:ellipsize.</li> 49 * <li>Identifies the one TextView child with the non-null android:ellipsize.</li> 54 * the maximum width of the one TextView child with the non-null android:ellipsize is 76 final View child = getChildAt(ii); 77 if (child != null && child.getVisibility() != GONE) { 79 if (child instanceof TextView) { 80 final TextView tv = (TextView) child; [all...] |
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
H A D | TestDocumentsAccess.java | 64 final DocumentInfo child = new DocumentInfo(); 65 child.authority = parentDoc.authority; 66 child.mimeType = mimeType; 67 child.displayName = displayName; 68 child.documentId = displayName; 69 child.derivedUri = DocumentsContract.buildDocumentUri(child.authority, displayName); 71 mLastCreatedDoc = Pair.create(parentDoc, child); 73 return child.derivedUri;
|
/packages/apps/Launcher3/src/com/android/launcher3/keyboard/ |
H A D | ViewGroupFocusHelper.java | 53 private void computeLocationRelativeToContainer(View child, Rect outRect) { argument 54 View parent = (View) child.getParent(); 55 outRect.left += child.getLeft(); 56 outRect.top += child.getTop(); 61 outRect.left -= page.getScrollForPage(page.indexOfChild(child));
|
/packages/apps/Settings/src/com/android/settings/widget/ |
H A D | MatchParentShrinkingLinearLayout.java | 91 * use the child at this index as the baseline. 100 * The additional offset to the child's baseline. 333 final View child = getVirtualChildAt(i); 335 if (child != null && child.getVisibility() != GONE) { 337 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 338 final int top = child.getTop() - lp.topMargin - mDividerHeight; 345 final View child = getVirtualChildAt(count - 1); 347 if (child == null) { 350 final LayoutParams lp = (LayoutParams) child 1031 getChildrenSkipCount(View child, int index) argument 1059 measureChildBeforeLayout(View child, int childIndex, int widthMeasureSpec, int totalWidth, int heightMeasureSpec, int totalHeight) argument 1073 getLocationOffset(View child) argument 1085 getNextLocationOffset(View child) argument 1339 setChildFrame(View child, int left, int top, int width, int height) argument [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
H A D | ViewSelectedFilter.java | 47 ViewGroup host, View child,AccessibilityEvent event) { 48 if (child == mView && event.getEventType() == AccessibilityEvent.TYPE_VIEW_SELECTED) { 51 return super.onRequestSendAccessibilityEvent(host, child, event); 46 onRequestSendAccessibilityEvent( ViewGroup host, View child,AccessibilityEvent event) argument
|
/packages/apps/Dialer/java/com/android/dialer/app/list/ |
H A D | ContentChangedFilter.java | 48 ViewGroup host, View child, AccessibilityEvent event) { 49 if (child == mView) { 54 return super.onRequestSendAccessibilityEvent(host, child, event); 47 onRequestSendAccessibilityEvent( ViewGroup host, View child, AccessibilityEvent event) argument
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
H A D | EntityDiff.java | 59 for (NamedContentValues child : after.getSubValues()) { 61 builder = ContentProviderOperation.newInsert(child.uri); 62 builder.withValues(child.values); 71 for (NamedContentValues child : before.getSubValues()) { 72 builder = ContentProviderOperation.newDelete(child.uri); 73 builder.withSelection(getSelectIdClause(child.values), null); 102 // After child doesn't exist, so delete "before" child 107 // After child still exists, and is different, so update 115 // Remove the now-handled "after" child 130 buildChildKey(NamedContentValues child) argument [all...] |
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
H A D | CalculatorScrollView.java | 53 protected void measureChild(View child, int parentWidthMeasureSpec, argument 55 // Allow child to be as wide as they want. 59 final ViewGroup.LayoutParams lp = child.getLayoutParams(); 65 child.measure(childWidthMeasureSpec, childHeightMeasureSpec); 69 protected void measureChildWithMargins(View child, int parentWidthMeasureSpec, int widthUsed, argument 71 // Allow child to be as wide as they want. 75 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams(); 81 child.measure(childWidthMeasureSpec, childHeightMeasureSpec);
|
/packages/apps/TV/src/com/android/tv/guide/ |
H A D | ProgramRow.java | 87 public void onViewAdded(View child) { argument 88 super.onViewAdded(child); 89 ProgramItemView itemView = (ProgramItemView) child; 195 public void onChildDetachedFromWindow(View child) { argument 196 if (child.hasFocus()) { 198 TableEntry entry = ((ProgramItemView) child).getTableEntry(); 218 super.onChildDetachedFromWindow(child); 222 public void onChildAttachedToWindow(View child) { argument 223 super.onChildAttachedToWindow(child); 225 TableEntry entry = ((ProgramItemView) child) [all...] |