/frameworks/support/wear/src/android/support/wear/widget/ |
H A D | WearableLinearLayoutManager.java | 26 * offsetting logic for updating child layout. For round devices it offsets the children 42 * Override this method to implement custom child layout behavior on scroll. It is called 44 * modify any property of the child view. Examples include scaling the children based on 48 * @param child the current child to be affected. 51 public abstract void onLayoutFinished(View child, RecyclerView parent); argument 118 View child = getChildAt(count); 119 mLayoutCallback.onLayoutFinished(child, (WearableRecyclerView) child.getParent());
|
/frameworks/base/core/java/android/preference/ |
H A D | PreferenceFrameLayout.java | 88 public void addView(View child) { argument 94 android.view.ViewGroup.LayoutParams params = child.getLayoutParams(); 96 ? (PreferenceFrameLayout.LayoutParams) child.getLayoutParams() : null; 97 // Check on the id of the child before adding it. 127 super.addView(child);
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | AlertDialogLayout.java | 82 final View child = getChildAt(i); 83 if (child.getVisibility() == View.GONE) { 87 final int id = child.getId(); 90 topPanel = child; 93 buttonPanel = child; 101 middlePanel = child; 104 // Unknown top-level child. Abort! 193 // Compute desired width as maximum child width. 196 final View child = getChildAt(i); 197 if (child 355 setChildFrame(View child, int left, int top, int width, int height) argument [all...] |
H A D | TextProgressBar.java | 82 public void addView(View child, int index, ViewGroup.LayoutParams params) { argument 83 super.addView(child, index, params); 85 int childId = child.getId(); 86 if (childId == CHRONOMETER_ID && child instanceof Chronometer) { 87 mChronometer = (Chronometer) child; 95 } else if (childId == PROGRESSBAR_ID && child instanceof ProgressBar) { 96 mProgressBar = (ProgressBar) child; 116 throw new RuntimeException("Expecting child ProgressBar with id " + 135 "Expecting child ProgressBar with id 'android.R.id.progress'");
|
H A D | MessagingLinearLayout.java | 53 * Id of the child that's also visible in the contracted layout. 105 final View child = getChildAt(i); 106 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 120 final View child = getChildAt(i); 123 if (child instanceof ImageFloatingTextView) { 127 textChild = (ImageFloatingTextView) child; 132 measureChildWithMargins(child, widthMeasureSpec, 0, heightMeasureSpec, totalHeight 135 final int childHeight = child.getMeasuredHeight(); 161 final View child = getChildAt(i); 162 final LayoutParams lp = (LayoutParams) child 258 drawChild(Canvas canvas, View child, long drawingTime) argument [all...] |
H A D | NotificationActionListLayout.java | 103 // Optimization: Don't do this if there's only one child. 121 // Make sure that this child doesn't consume more than its share of the remaining 138 // Make sure to measure the last child full-width if we didn't use up the entire width, 139 // or we didn't measure yet because there's just one child. 185 public void onViewAdded(View child) { argument 186 super.onViewAdded(child); 191 public void onViewRemoved(View child) { argument 192 super.onViewRemoved(child); 208 // Where bottom of child should go 211 // Space available for child [all...] |
H A D | WatchListDecorLayout.java | 36 * Use with one ListView child. The top and bottom panels will track the ListView's scrolling. 37 * If there is no ListView child, it will act like a normal FrameLayout. 77 View child = getChildAt(i); 78 if (child instanceof ListView) { 80 throw new IllegalArgumentException("only one ListView child allowed"); 82 mListView = (ListView) child; 88 int gravity = (((LayoutParams) child.getLayoutParams()).gravity 91 mTopPanel = child; 93 mBottomPanel = child; 112 private void applyMeasureToChild(View child, in argument 146 measureAndGetHeight(View child, int widthMeasureSpec, int heightMeasureSpec) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | AppWidgetHostViewTest.java | 135 public void onChildViewAdded(View parent, View child) { argument 140 public void onChildViewRemoved(View parent, View child) { argument
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | RecordingCanvasTests.cpp | 580 auto child = TestUtils::createNode(50, 50, 150, 150, local 587 auto dl = TestUtils::createDisplayList<RecordingCanvas>(200, 200, [&child](RecordingCanvas& canvas) { 589 canvas.drawRenderNode(child.get()); // shouldn't crash when rejecting node...
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
H A D | AnimationProperties.java | 56 public Interpolator getCustomInterpolator(View child, Property property) { argument
|
/frameworks/base/test-runner/src/android/test/ |
H A D | ViewAsserts.java | 327 * child should be non-null. 333 assertTrue("child count should be >= 0", count >= 0); 342 * Assert that the specified group contains a specific child once and only once. 345 * @param child The child that should belong to group 347 static public void assertGroupContains(ViewGroup parent, View child) { argument 353 if (parent.getChildAt(i) == child) { 357 assertTrue("child " + child + " is duplicated in parent", false); 362 assertTrue("group does not contain " + child, foun 371 assertGroupNotContains(ViewGroup parent, View child) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/ |
H A D | AdapterItem.java | 43 void addChild(AdapterItem child) { argument 48 mChildren.add(child);
|
/frameworks/base/tools/layoutlib/studio-custom-widgets/src/com/android/tools/idea/editors/theme/widgets/ |
H A D | ErrorCatcher.java | 29 * {@link ViewGroup} that wraps another view and catches any possible exceptions that the child view 54 assert getChildCount() == 1 : "ErrorCatcher can only have one child"; 56 View child = getChildAt(0); 58 measureChild(child, widthMeasureSpec, heightMeasureSpec); 60 setMeasuredDimension(resolveSize(child.getMeasuredWidth(), widthMeasureSpec), 61 resolveSize(child.getMeasuredHeight(), heightMeasureSpec)); 64 child.getClass().getCanonicalName(), t); 71 protected boolean drawChild(Canvas canvas, View child, long drawingTime) { argument 73 return super.drawChild(canvas, child, drawingTime); 76 child [all...] |
/frameworks/base/wifi/java/android/net/wifi/hotspot2/omadm/ |
H A D | XMLNode.java | 56 * Adding a child node to this node. Invoked by {@link XMLParser#startElement}. 58 * @param child XMLNode to be added 60 public void addChild(XMLNode child) { argument 61 mChildren.add(child);
|
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
H A D | ViewGroupBindingAdapter.java | 56 public void onChildViewAdded(View parent, View child) { 58 added.onChildViewAdded(parent, child); 63 public void onChildViewRemoved(View parent, View child) { 65 removed.onChildViewRemoved(parent, child); 105 void onChildViewAdded(View parent, View child); argument 109 void onChildViewRemoved(View parent, View child); argument
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ |
H A D | ButtonBarItem.java | 106 public void addChild(ItemHierarchy child) { argument 107 if (child instanceof ButtonItem) { 108 mButtons.add((ButtonItem) child);
|
H A D | SimpleInflater.java | 35 * and {@link #onAddChildItem(Object, Object)} to attach a child tag to the parent tag. 37 * @param <T> The class where all instances (including child elements) belong to. If parent and 38 * child elements belong to different class hierarchies, it's OK to set this to {@link Object}. 176 * at the given position together with all of its child tags. 191 protected abstract void onAddChildItem(T parent, T child); argument
|
/frameworks/support/compat/java/android/support/v4/view/ |
H A D | NestedScrollingParent.java | 29 * that wish to support scrolling operations delegated by a nested child view. 57 * @param child Direct child of this ViewParent containing target 63 boolean onStartNestedScroll(@NonNull View child, @NonNull View target, @ScrollAxis int axes); argument 74 * @param child Direct child of this ViewParent containing target 81 void onNestedScrollAccepted(@NonNull View child, @NonNull View target, @ScrollAxis int axes); argument 99 * <p>This method will be called when the ViewParent's current nested scrolling child view 106 * position of multiple child elements, for example. The unconsumed portion may be used to 124 * to consume the scroll before the nested scrolling child doe [all...] |
H A D | NestedScrollingParent2.java | 29 * that wish to support scrolling operations delegated by a nested child view. 57 * @param child Direct child of this ViewParent containing target 64 boolean onStartNestedScroll(@NonNull View child, @NonNull View target, @ScrollAxis int axes, argument 76 * @param child Direct child of this ViewParent containing target 84 void onNestedScrollAccepted(@NonNull View child, @NonNull View target, @ScrollAxis int axes, argument 104 * <p>This method will be called when the ViewParent's current nested scrolling child view 111 * position of multiple child elements, for example. The unconsumed portion may be used to 130 * to consume the scroll before the nested scrolling child doe [all...] |
H A D | ViewGroupCompat.java | 121 * Called when a child has requested sending an {@link AccessibilityEvent} and 131 * @param child The child which requests sending the event. 139 public static boolean onRequestSendAccessibilityEvent(ViewGroup group, View child, argument 141 return group.onRequestSendAccessibilityEvent(child, event); 150 * <p>When this option is enabled MotionEvents may be split and dispatched to different child 157 * child views. <code>false</code> to only allow one child view to be the target of 210 * when executing an Activity transition. If this is false, child elements will move
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | AlertDialogLayout.java | 76 final View child = getChildAt(i); 77 if (child.getVisibility() == View.GONE) { 81 final int id = child.getId(); 83 topPanel = child; 85 buttonPanel = child; 91 middlePanel = child; 93 // Unknown top-level child. Abort! 182 // Compute desired width as maximum child width. 185 final View child = getChildAt(i); 186 if (child 346 setChildFrame(View child, int left, int top, int width, int height) argument [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/test/ |
H A D | NestedScrollingParent2Adapter.java | 28 public boolean onStartNestedScroll(@NonNull View child, @NonNull View target, argument 34 public void onNestedScrollAccepted(@NonNull View child, @NonNull View target, argument 53 public boolean onStartNestedScroll(View child, View target, int nestedScrollAxes) { argument 54 return onStartNestedScroll(child, target, nestedScrollAxes, ViewCompat.TYPE_TOUCH); 58 public void onNestedScrollAccepted(View child, View target, int axes) { argument 59 onNestedScrollAccepted(child, target, axes, ViewCompat.TYPE_TOUCH);
|
/frameworks/base/apct-tests/perftests/core/src/android/view/ |
H A D | ViewShowHidePerfTest.java | 85 LinearLayout child = new LinearLayout(context); 87 parent.addView(child, new LinearLayout.LayoutParams( 92 createNestedLinearLayoutTree(context, child, remainingDepth - 1); 139 void run(BenchmarkState state, int width, int height, ViewGroup parent, View child); argument 171 testParentWithChild((state, width, height, parent, child) -> { 175 parent.addView(child); 176 layout(width, height, child); 187 testParentWithChild((state, width, height, parent, child) -> { 190 layout(width, height, child); // Note, done to be safe, likely not needed 196 parent.addView(child); [all...] |
/frameworks/base/core/java/android/view/ |
H A D | ViewOverlay.java | 115 * redirect is necessary because the overlay is not a child of the host view 177 public void add(@NonNull View child) { argument 178 if (child == null) { 182 if (child.getParent() instanceof ViewGroup) { 183 ViewGroup parent = (ViewGroup) child.getParent(); 186 // Moving to different container; figure out how to position child such that 192 child.offsetLeftAndRight(parentLocation[0] - hostViewLocation[0]); 193 child.offsetTopAndBottom(parentLocation[1] - hostViewLocation[1]); 195 parent.removeView(child); 197 // LayoutTransition will cause the child t 332 onDescendantInvalidated(@onNull View child, @NonNull View target) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | DropDownListView.java | 200 final View child = getChildAt(position - getFirstVisiblePosition()); 201 setPressedItem(child, position, x, y); 206 performItemClick(child, position, id); 252 private void setPressedItem(@NonNull View child, int position, float x, float y) { argument 261 // Next, run layout if we need to stabilize child positions. 269 if (motionView != null && motionView != child && motionView.isPressed()) { 274 // Offset for child coordinates. 275 final float childX = x - child.getLeft(); 276 final float childY = y - child.getTop(); 277 child [all...] |