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

1234567

/packages/apps/DeskClock/src/com/android/deskclock/widget/toast/
H A DSnackbarSlidingBehavior.java36 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 DSeekBarRotator.java52 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 DStackLayout.java24 // 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 DRightAlignedHorizontalScrollView.java38 // 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 DCardPanel.java55 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 DEvenlySpacedLayout.java54 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 DFiles.java30 for (File child : file.listFiles()) {
31 deleteRecursively(child);
/packages/experimental/TestBack/src/foo/bar/testback/
H A DAccessibilityNodeInfoUtils.java41 AccessibilityNodeInfo child = start.getChild(i);
42 if (child != null) {
43 if (condition.test(child)) {
44 return child;
46 AccessibilityNodeInfo childResult = findChildDfs(child, condition);
/packages/apps/Launcher3/src/com/android/launcher3/
H A DInsettableFrameLayout.java25 public void setFrameLayoutChildInsets(View child, Rect newInsets, Rect oldInsets) { argument
26 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
28 if (child instanceof Insettable) {
29 ((Insettable) child).setInsets(newInsets);
36 child.setLayoutParams(lp);
43 final View child = getChildAt(i);
44 setFrameLayoutChildInsets(child, insets, mInsets);
92 public void onViewAdded(View child) { argument
93 super.onViewAdded(child);
94 setFrameLayoutChildInsets(child, mInset
[all...]
H A DShortcutAndWidgetContainer.java65 View child = getChildAt(i);
66 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
70 return child;
85 View child = getChildAt(i);
86 if (child.getVisibility() != GONE) {
87 measureChild(child);
92 public void setupLp(View child) { argument
93 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
94 if (child instanceof LauncherAppWidgetHostView) {
113 public void measureChild(View child) { argument
194 requestChildFocus(View child, View focused) argument
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DHideFromAccessibilityHelper.java50 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 DPagedViewCellLayoutChildren.java50 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 DShortcutAndWidgetContainer.java63 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/TV/src/com/android/tv/ui/
H A DAppLayerTvView.java53 public void onViewAdded(View child) { argument
54 if (child instanceof SurfaceView) {
56 ((SurfaceView) child).setSecure(!CommonUtils.isDeveloper());
58 super.onViewAdded(child);
/packages/apps/DeskClock/src/com/android/deskclock/widget/
H A DEllipsizeLayout.java10 * 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/Settings/tests/robotests/src/com/android/settings/widget/
H A DPreferenceCategoryControllerTest.java57 final AbstractPreferenceController child = mock(AbstractPreferenceController.class);
58 when(child.isAvailable()).thenReturn(true);
59 mChildren.add(child);
67 final AbstractPreferenceController child = mock(AbstractPreferenceController.class);
68 when(child.isAvailable()).thenReturn(false);
69 mChildren.add(child);
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
H A DTestDocumentsAccess.java64 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 DViewGroupFocusHelper.java52 private void computeLocationRelativeToContainer(View child, Rect outRect) { argument
53 View parent = (View) child.getParent();
54 outRect.left += child.getX();
55 outRect.top += child.getY();
60 outRect.left -= page.getScrollForPage(page.indexOfChild(child));
/packages/apps/Settings/src/com/android/settings/widget/
H A DMatchParentShrinkingLinearLayout.java91 * 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 DViewSelectedFilter.java47 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 DContentChangedFilter.java48 ViewGroup host, View child, AccessibilityEvent event) {
49 if (child == view) {
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 DEntityDiff.java59 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 DCalculatorScrollView.java53 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);
H A DCalculatorPadViewPager.java40 final View child = getChildAt(position);
43 child.setOnClickListener(new OnClickListener() {
51 child.setOnTouchListener(new OnTouchListener() {
61 child.setOnHoverListener(new OnHoverListener() {
69 child.setFocusable(true);
71 child.setContentDescription(getPageTitle(position));
73 return child;
103 final View child = getChildAt(i);
105 child.setClickable(i != position);
109 if (child instanceo
[all...]
/packages/apps/TV/src/com/android/tv/guide/
H A DProgramRow.java83 public void onViewAdded(View child) { argument
84 super.onViewAdded(child);
85 ProgramItemView itemView = (ProgramItemView) child;
196 public void onChildDetachedFromWindow(View child) { argument
197 if (child.hasFocus()) {
199 TableEntry entry = ((ProgramItemView) child).getTableEntry();
219 super.onChildDetachedFromWindow(child);
223 public void onChildAttachedToWindow(View child) { argument
224 super.onChildAttachedToWindow(child);
226 TableEntry entry = ((ProgramItemView) child)
[all...]

Completed in 505 milliseconds

1234567