/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/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/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 | 64 * Re-measure the child width if it is greater than max width. 75 final View child = getChildAt(i); 76 if (child.getVisibility() != GONE) { 77 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 79 matchParentChildren.add(child); 84 final View child = matchParentChildren.get(i); 85 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams(); 86 if (child.getMeasuredWidth() > mMaxChildrenWidth) { 90 child.getMeasuredHeight(), MeasureSpec.EXACTLY); 91 child [all...] |
H A D | CarRecyclerView.java | 111 public boolean drawChild(@NonNull Canvas canvas, @NonNull View child, long drawingTime) { argument 114 if ((child.getTop() < getBottom() && child.getBottom() > getBottom())) { 115 onScreen = ((float) (getBottom() - child.getTop())) / (float) child.getHeight(); 116 } else if ((child.getTop() < getTop() && child.getBottom() > getTop())) { 117 onScreen = ((float) (child.getBottom() - getTop())) / (float) child.getHeight(); 120 fadeChild(child, alph 185 fadeChild(@onNull View child, float alpha) argument [all...] |
H A D | CarLayoutManager.java | 456 Log.w(TAG, "There is a focused child but no first fully visible child."); 494 * You can get the position of the currently focused child through the child parameter. 499 * @param child Direct child of the RecyclerView containing the newly focused view 500 * @param focused The newly focused view. This may be the same view as child or it may be null 505 View child, View focused) { 506 if (child == null) { 507 Log.w(TAG, "onRequestChildFocus with a null child!"); 504 onRequestChildFocus(RecyclerView parent, RecyclerView.State state, View child, View focused) argument 1271 onRequestChildFocusMarioStyle(RecyclerView parent, View child) argument 1325 onRequestChildFocusSuperMarioStyle(RecyclerView parent, RecyclerView.State state, View child) 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/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/Launcher3/src/com/android/launcher3/ |
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...] |
H A D | ShortcutAndWidgetContainer.java | 67 View child = getChildAt(i); 68 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); 72 return child; 87 View child = getChildAt(i); 88 if (child.getVisibility() != GONE) { 89 measureChild(child); 120 public void measureChild(View child) { argument 124 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); 129 if (child instanceof LauncherAppWidgetHostView) { 136 child 184 requestChildFocus(View child, View focused) argument [all...] |
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
H A D | CalculatorPadViewPager.java | 61 final View child = getChildAt(i); 64 child.setClickable(i == position); 65 child.setImportantForAccessibility(i == position 124 final View child = getChildAt(childIndex); 125 if (child.getVisibility() == View.VISIBLE 126 && x >= child.getLeft() && x < child.getRight() 127 && y >= child.getTop() && y < child.getBottom()) {
|
/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/DeskClock/src/com/android/deskclock/widget/toast/ |
H A D | LinearLayoutWithSnackbarBehavior.java | 35 public boolean layoutDependsOn(CoordinatorLayout parent, LinearLayout child, View dependency) { argument 40 public boolean onDependentViewChanged(CoordinatorLayout parent, LinearLayout child, argument 44 child.setTranslationY(translationY);
|
/packages/apps/Dialer/src/com/android/dialer/ |
H A D | FloatingActionButtonBehavior.java | 36 public boolean layoutDependsOn(CoordinatorLayout parent, FrameLayout child, View dependency) { argument 41 public boolean onDependentViewChanged(CoordinatorLayout parent, FrameLayout child, argument 44 child.setTranslationY(translationY);
|
/packages/apps/Dialer/src/com/android/dialer/list/ |
H A D | ContentChangedFilter.java | 31 public boolean onRequestSendAccessibilityEvent (ViewGroup host, View child, AccessibilityEvent event){ argument 32 if(child == mView){ 37 return super.onRequestSendAccessibilityEvent(host,child,event);
|
/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/TV/src/com/android/tv/guide/ |
H A D | ProgramRow.java | 96 ProgramItemView child = (ProgramItemView) getChildAt(i); 97 if (getLeft() <= child.getRight() && child.getLeft() <= getRight()) { 98 child.layoutVisibleArea(getLayoutDirection() == LAYOUT_DIRECTION_LTR 99 ? getLeft() - child.getLeft() : child.getRight() - getRight()); 223 public void onChildDetachedFromWindow(View child) { argument 224 if (child.hasFocus()) { 226 TableEntry entry = ((ProgramItemView) child).getTableEntry(); 236 super.onChildDetachedFromWindow(child); 240 onChildAttachedToWindow(View child) argument [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/widget/ |
H A D | ProportionalLayout.java | 32 * <p>Only one child is allowed; if more are required, another ViewGroup can be used as the direct 33 * child of this layout.</p> 92 throw new IllegalStateException("ProportionalLayout requires exactly one child"); 95 final View child = getChildAt(0); 98 measureChild(child, widthMeasureSpec, heightMeasureSpec); 99 final int childWidth = child.getMeasuredWidth(); 100 final int childHeight = child.getMeasuredHeight(); 113 measureChild(child, 124 throw new IllegalStateException("ProportionalLayout requires exactly one child"); 127 final View child [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/ |
H A D | DataExporter.java | 129 for (File child : file.listFiles()) { 130 removeFileOrDirectory(child); 142 for (File child : current.listFiles()) { 143 final String childStoredPath = storedPath + "/" + child.getName(); 145 if (child.isDirectory()) { 147 if (child.equals(context.getCacheDir())) { 152 if (child.getName().equals(DUMP_FILE_DIRECTORY_NAME)) { 155 addDirectory(context, os, child, childStoredPath); 156 } else if (child.isFile()) { 157 addFile(os, child, childStoredPat [all...] |