/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | LinearLayoutManager.java | 394 final View child = getChildAt(viewPosition); 395 if (getPosition(child) == position) { 396 return child; // in pre-layout, this may not match 511 // if the child is visible and we are going to move it around, we should layout 739 * Finds an anchor child from existing Views. Most of the time, this is the view closest to 742 * If a child has focus, it is given priority. 762 // If all visible views are removed in 1 pass, reference child might be out of bounds. 765 // validate this child is at least partially visible. if not, offset it to start 800 // if child is visible, try to make it a reference child an 2207 isViewValidAsAnchor(View child, RecyclerView.State state) argument 2213 assignFromViewAndKeepVisibleRect(View child) argument 2260 assignFromView(View child) argument [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | NotificationActionListLayout.java | 94 // Optimization: Don't do this if there's only one child. 112 // Make sure that this child doesn't consume more than its share of the remaining 129 // Make sure to measure the last child full-width if we didn't use up the entire width, 130 // or we didn't measure yet because there's just one child. 176 public void onViewAdded(View child) { argument 177 super.onViewAdded(child); 182 public void onViewRemoved(View child) { argument 183 super.onViewRemoved(child); 195 // Where bottom of child should go 198 // Space available for child [all...] |
H A D | ViewPager.java | 346 * Used internally to tag special types of child views that should be added as 463 final View child = getChildAt(i); 464 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 904 final View child = getChildAt(i); 905 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 1077 final View child = getChildAt(i); 1078 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 1082 final ItemInfo ii = infoForChild(child); 1096 View child = getChildAt(i); 1097 ii = infoForChild(child); 1309 addView(View child, int index, ViewGroup.LayoutParams params) argument 1348 infoForChild(View child) argument 1358 infoForAnyChild(View child) argument 2556 getChildRectInPagerCoordinates(Rect outRect, View child) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | PseudoGridView.java | 84 View child = getChildAt(i); 85 child.measure(childWidthSpec, childHeightSpec); 86 maxHeight = Math.max(maxHeight, child.getMeasuredHeight()); 90 View child = getChildAt(i); 91 if (child.getMeasuredHeight() != maxHeight) { 92 child.measure(childWidthSpec, maxHeightSpec); 116 View child = getChildAt(i); 117 int width = child.getMeasuredWidth(); 118 int height = child.getMeasuredHeight(); 122 child [all...] |
/frameworks/support/design/src/android/support/design/widget/ |
H A D | HeaderBehavior.java | 55 public boolean onInterceptTouchEvent(CoordinatorLayout parent, V child, MotionEvent ev) { argument 72 if (canDragView(child) && parent.isPointInChildBounds(child, x, y)) { 120 public boolean onTouchEvent(CoordinatorLayout parent, V child, MotionEvent ev) { argument 130 if (parent.isPointInChildBounds(child, x, y) && canDragView(child)) { 162 scroll(parent, child, dy, getMaxDragOffset(child), 0); 173 fling(parent, child, -getScrollRangeForDragFling(child), [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | GridLayoutManagerBaseConfigSetTest.java | 74 View child = mRecyclerView.getChildAt(i); 75 final int pos = mRecyclerView.getChildLayoutPosition(child); 81 child.getLayoutParams(); 84 mGlm.mOrientationHelper.getDecoratedEnd(child); 87 mGlm.mOrientationHelper.getDecoratedStart(child); 121 assertTrue("child position should be in last page", expectedPositions.get(position)); 138 View child = mRecyclerView.getChildAt(i); 139 int pos = mRecyclerView.getChildLayoutPosition(child); 144 child.getLayoutParams(); 149 mGlm.mOrientationHelper.getDecoratedEnd(child); [all...] |
H A D | GridLayoutManagerCachedBordersTest.java | 60 View child = recyclerView.getChildAt(i * mConfig.mSpanCount + j); 61 childrenSizeSum += vertical ? child.getWidth() : child.getHeight();
|
/frameworks/base/core/java/android/widget/ |
H A D | ScrollView.java | 54 * is a {@link FrameLayout}, meaning you should place one child in it 55 * containing the entire contents to scroll; this child may itself be a layout 56 * manager with a complex hierarchy of objects. A child that is often used 100 * The child to give focus to in the event that a child has requested focus while the 101 * layout is dirty. This prevents the scroll from being wrong if the child has not been 119 * When set to true, the scroll view measure its child to make it fill the currently 249 public void addView(View child) { argument 251 throw new IllegalStateException("ScrollView can host only one direct child"); 254 super.addView(child); 258 addView(View child, int index) argument 267 addView(View child, ViewGroup.LayoutParams params) argument 276 addView(View child, int index, ViewGroup.LayoutParams params) argument 1262 measureChild(View child, int parentWidthMeasureSpec, int parentHeightMeasureSpec) argument 1280 measureChildWithMargins(View child, int parentWidthMeasureSpec, int widthUsed, int parentHeightMeasureSpec, int heightUsed) argument 1356 scrollToChild(View child) argument 1457 requestChildFocus(View child, View focused) argument 1504 requestChildRectangleOnScreen(View child, Rect rectangle, boolean immediate) argument 1587 isViewDescendantOf(View child, View parent) argument 1680 onStartNestedScroll(View child, View target, int nestedScrollAxes) argument 1685 onNestedScrollAccepted(View child, View target, int axes) argument 1779 clamp(int n, int my, int child) argument [all...] |
H A D | FrameLayout.java | 41 * a single item. Generally, FrameLayout should be used to hold a single child view, because it can 42 * be difficult to organize child views in a way that's scalable to different screen sizes without 44 * and control their position within the FrameLayout by assigning gravity to each child, using the 47 * <p>Child views are drawn in a stack, with the most recently added child on top. 48 * The size of the FrameLayout is the size of its largest child (plus padding), visible 183 final View child = getChildAt(i); 184 if (mMeasureAllChildren || child.getVisibility() != GONE) { 185 measureChildWithMargins(child, widthMeasureSpec, 0, heightMeasureSpec, 0); 186 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 188 child [all...] |
H A D | HorizontalScrollView.java | 52 * is a {@link FrameLayout}, meaning you should place one child in it 53 * containing the entire contents to scroll; this child may itself be a layout 54 * manager with a complex hierarchy of objects. A child that is often used 94 * The child to give focus to in the event that a child has requested focus while the 95 * layout is dirty. This prevents the scroll from being wrong if the child has not been 113 * When set to true, the scroll view measure its child to make it fill the currently 223 public void addView(View child) { argument 225 throw new IllegalStateException("HorizontalScrollView can host only one direct child"); 228 super.addView(child); 232 addView(View child, int index) argument 241 addView(View child, ViewGroup.LayoutParams params) argument 250 addView(View child, int index, ViewGroup.LayoutParams params) argument 1246 measureChild(View child, int parentWidthMeasureSpec, int parentHeightMeasureSpec) argument 1261 measureChildWithMargins(View child, int parentWidthMeasureSpec, int widthUsed, int parentHeightMeasureSpec, int heightUsed) argument 1331 scrollToChild(View child) argument 1432 requestChildFocus(View child, View focused) argument 1479 requestChildRectangleOnScreen(View child, Rect rectangle, boolean immediate) argument 1565 isViewDescendantOf(View child, View parent) argument 1675 clamp(int n, int my, int child) argument [all...] |
H A D | RelativeLayout.java | 53 * {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT WRAP_CONTENT} and a child set to 58 * a measurement bug that could cause child views to be measured with incorrect 88 * Rule that aligns a child's right edge with another child's left edge. 92 * Rule that aligns a child's left edge with another child's right edge. 96 * Rule that aligns a child's bottom edge with another child's top edge. 100 * Rule that aligns a child's top edge with another child' 665 measureChild(View child, LayoutParams params, int myWidth, int myHeight) argument 679 measureChildHorizontal( View child, LayoutParams params, int myWidth, int myHeight) argument 818 positionChildHorizontal(View child, LayoutParams params, int myWidth, boolean wrapContent) argument 855 positionChildVertical(View child, LayoutParams params, int myHeight, boolean wrapContent) argument 1052 centerHorizontal(View child, LayoutParams params, int myWidth) argument 1060 centerVertical(View child, LayoutParams params, int myHeight) argument [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | NestedScrollView.java | 60 * as both a nested scrolling parent and child on both new and old versions of Android. 113 * The child to give focus to in the event that a child has requested focus while the 114 * layout is dirty. This prevents the scroll from being wrong if the child has not been 132 * When set to true, the scroll view measure its child to make it fill the currently 260 public boolean onStartNestedScroll(View child, View target, int nestedScrollAxes) { argument 265 public void onNestedScrollAccepted(View child, View target, int nestedScrollAxes) { argument 266 mParentHelper.onNestedScrollAccepted(child, target, nestedScrollAxes); 367 public void addView(View child) { argument 369 throw new IllegalStateException("ScrollView can host only one direct child"); 376 addView(View child, int index) argument 385 addView(View child, ViewGroup.LayoutParams params) argument 394 addView(View child, int index, ViewGroup.LayoutParams params) argument 1390 measureChild(View child, int parentWidthMeasureSpec, int parentHeightMeasureSpec) argument 1405 measureChildWithMargins(View child, int parentWidthMeasureSpec, int widthUsed, int parentHeightMeasureSpec, int heightUsed) argument 1452 scrollToChild(View child) argument 1553 requestChildFocus(View child, View focused) argument 1600 requestChildRectangleOnScreen(View child, Rect rectangle, boolean immediate) argument 1677 isViewDescendantOf(View child, View parent) argument 1793 clamp(int n, int my, int child) argument [all...] |
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/ |
H A D | DocumentsProviderHelper.java | 170 for (DocumentInfo child : children) { 171 if (name.equals(child.displayName) && !child.isDirectory()) { 189 for (DocumentInfo child : children) { 190 if (name.equals(child.displayName) && child.isDirectory()) { 208 for (DocumentInfo child : children) { 209 if (name.equals(child.displayName)) { 227 for (DocumentInfo child : children) { 228 if (name.equals(child [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | NotificationsQuickSettingsContainer.java | 89 protected boolean drawChild(Canvas canvas, View child, long drawingTime) { argument 98 if (child == mQsContainer) { 103 } else if (child == mStackScroller) { 109 } else if (child == mUserSwitcher) { 114 } else if (child == mKeyguardStatusBar) { 119 return super.drawChild(canvas, child, drawingTime);
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
H A D | HalMockUtils.java | 121 JSONObject child = new JSONObject(); 123 child.put(TYPE_KEY, TYPE_INT); 124 child.put(VALUE_KEY, ((Integer) value).intValue()); 131 child.put(TYPE_KEY, TYPE_BYTE_ARRAY); 132 child.put(VALUE_KEY, jsonArray); 137 json.put(key, child);
|
/frameworks/support/v4/java/android/support/v4/view/ |
H A D | ViewGroupCompat.java | 47 boolean onRequestSendAccessibilityEvent(ViewGroup group, View child, argument 59 ViewGroup group, View child, AccessibilityEvent event) { 105 ViewGroup group, View child, AccessibilityEvent event) { 106 return ViewGroupCompatIcs.onRequestSendAccessibilityEvent(group, child, event); 161 * Called when a child has requested sending an {@link AccessibilityEvent} and 171 * @param child The child which requests sending the event. 175 public static boolean onRequestSendAccessibilityEvent(ViewGroup group, View child, argument 177 return IMPL.onRequestSendAccessibilityEvent(group, child, event); 186 * <p>When this option is enabled MotionEvents may be split and dispatched to different child 58 onRequestSendAccessibilityEvent( ViewGroup group, View child, AccessibilityEvent event) argument 104 onRequestSendAccessibilityEvent( ViewGroup group, View child, AccessibilityEvent event) argument [all...] |
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/ |
H A D | BottomScrollViewTest.java | 68 final View child = new TestChildView(getContext(), childHeight); 70 child.measure(0, 0); // TestChildView's measured dimensions doesn't depend on the arguments 71 bottomScrollView.addView(child);
|
/frameworks/base/core/java/android/view/ |
H A D | NotificationHeaderView.java | 140 final View child = getChildAt(i); 141 if (child.getVisibility() == GONE) { 145 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams(); 150 child.measure(childWidthSpec, childHeightSpec); 151 totalWidth += lp.leftMargin + lp.rightMargin + child.getMeasuredWidth(); 181 View child = getChildAt(i); 182 if (child.getVisibility() == GONE) { 185 int childHeight = child.getMeasuredHeight(); 186 MarginLayoutParams params = (MarginLayoutParams) child.getLayoutParams(); 188 int right = left + child [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | ExpandableView.java | 64 View child = getChildAt(i); 65 if (child.getVisibility() == GONE) { 69 ViewGroup.LayoutParams layoutParams = child.getLayoutParams(); 77 child.measure( 80 int childHeight = child.getMeasuredHeight(); 83 mMatchParentViews.add(child); 89 for (View child : mMatchParentViews) { 90 child.measure(getChildMeasureSpec( 91 widthMeasureSpec, 0 /* padding */, child.getLayoutParams().width), 255 * such that the child appear [all...] |
H A D | ViewTransformationHelper.java | 232 View child = stack.pop(); 233 if (child.getVisibility() == View.GONE) { 236 Boolean containsView = (Boolean) child.getTag(TAG_CONTAINS_TRANSFORMED_VIEW); 239 int id = child.getId(); 242 addTransformedView(id, child); 246 child.setTag(TAG_CONTAINS_TRANSFORMED_VIEW, null); 247 if (child instanceof ViewGroup && !mTransformedViews.containsValue(child)){ 248 ViewGroup group = (ViewGroup) child;
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | LockGuard.java | 90 // Check to see if we're already holding any child locks 94 final Object child = info.children.valueAt(i); 95 if (child == null) continue; 97 if (Thread.holdsLock(child)) { 99 + lockToString(child) + " while trying to acquire " 107 // child of all locks currently being held
|
/frameworks/base/tests/RenderThreadTest/src/com/example/renderthread/ |
H A D | MainActivity.java | 71 View child = adapterView.getChildAt(i); 77 if (child == clickedView) logTranslationY(clickedView); 78 animator.setTarget(child); 80 if (child == clickedView) logTranslationY(clickedView);
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
H A D | TemplateLayout.java | 41 * The container of the actual content. This will be a view in the template, which child views 79 public void addView(View child, int index, ViewGroup.LayoutParams params) { argument 80 mContainer.addView(child, index, params); 83 private void addViewInternal(View child) { argument 84 super.addView(child, -1, generateDefaultLayoutParams()); 129 * template instead of for child views.
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/ |
H A D | GridTouchSetSelectionTest.java | 74 View child = mGridView.getChildAt(i); 75 if (child.getId() == targetPosition) {
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/omadm/ |
H A D | MgmtTreeRoot.java | 27 for (OMANode child : getChildren()) { 28 child.toXml(sb);
|