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

123

/packages/apps/Camera/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/apps/Browser/src/com/android/browser/view/
H A DEventRedirectingFrameLayout.java52 View child = getChildAt(mTargetChild);
53 if (child != null)
54 return child.dispatchTouchEvent(ev);
60 View child = getChildAt(mTargetChild);
61 if (child != null)
62 return child.dispatchKeyEvent(event);
68 View child = getChildAt(mTargetChild);
69 if (child != null)
70 return child.dispatchKeyEventPreIme(event);
H A DScrollerView.java50 * is a {@link FrameLayout}, meaning you should place one child in it
51 * containing the entire contents to scroll; this child may itself be a layout
52 * manager with a complex hierarchy of objects. A child that is often used
87 * The child to give focus to in the event that a child has requested focus while the
88 * layout is dirty. This prevents the scroll from being wrong if the child has not been
106 * When set to true, the scroll view measure its child to make it fill the currently
253 public void addView(View child) { argument
255 throw new IllegalStateException("ScrollView can host only one direct child");
258 super.addView(child);
262 addView(View child, int index) argument
271 addView(View child, ViewGroup.LayoutParams params) argument
280 addView(View child, int index, ViewGroup.LayoutParams params) argument
1385 measureChild(View child, int parentWidthMeasureSpec, int parentHeightMeasureSpec) argument
1407 measureChildWithMargins(View child, int parentWidthMeasureSpec, int widthUsed, int parentHeightMeasureSpec, int heightUsed) argument
1480 scrollToChild(View child) argument
1651 requestChildFocus(View child, View focused) argument
1706 requestChildRectangleOnScreen(View child, Rect rectangle, boolean immediate) argument
1771 isViewDescendantOf(View child, View parent) argument
1839 clamp(int n, int my, int child) argument
[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/Launcher2/src/com/android/launcher2/
H A DCellLayoutChildren.java59 View child = getChildAt(i);
60 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
64 return child;
74 View child = getChildAt(i);
75 measureChild(child);
86 public void measureChild(View child) { argument
89 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
95 child.measure(childWidthMeasureSpec, childheightMeasureSpec);
102 final View child = getChildAt(i);
103 if (child
130 requestChildFocus(View child, View focused) 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 DDragLayer.java120 for (AppWidgetResizeFrame child: mResizeFrames) {
121 child.getHitRect(hitRect);
123 if (child.beginResizeIfPointInRegion(x - child.getLeft(), y - child.getTop())) {
124 mCurrentResizeFrame = child;
266 public void getLocationInDragLayer(View child, int[] loc) { argument
269 getDescendantCoordRelativeToSelf(child, loc);
369 View child = getChildAt(i);
370 final FrameLayout.LayoutParams flp = (FrameLayout.LayoutParams) child
411 animateViewIntoPosition(DragView dragView, final View child) argument
426 animateViewIntoPosition(DragView dragView, final View child, final Runnable onFinishAnimationRunnable) argument
431 animateViewIntoPosition(DragView dragView, final View child, int duration, final Runnable onFinishAnimationRunnable) argument
615 onViewAdded(View child) argument
621 onViewRemoved(View child) argument
[all...]
H A DFocusHelper.java154 // child siblings willy-nilly
155 View child = null;
167 child = newParent.getChildAt(newParent.getChildCount() - 1);
168 if (child != null) child.requestFocus();
184 child = newParent.getChildAt(0);
185 if (child != null) child.requestFocus();
197 child = parent.getChildAt(newWidgetIndex);
198 if (child !
[all...]
H A DAppsCustomizeTabHost.java230 View child = visiblePages.get(i);
231 if (child instanceof PagedViewCellLayout) {
232 ((PagedViewCellLayout) child).resetChildrenOnKeyListeners();
233 } else if (child instanceof PagedViewGridLayout) {
234 ((PagedViewGridLayout) child).resetChildrenOnKeyListeners();
237 mAppsCustomizePane.removeView(child);
241 LayoutParams p = new FrameLayout.LayoutParams(child.getWidth(),
242 child.getHeight());
243 p.setMargins((int) child.getLeft(), (int) child
[all...]
/packages/apps/Email/src/com/android/email/view/
H A DNonLockingScrollView.java69 // An up event after a drag should be intercepted so that child views don't handle
110 final View child = viewGroup.getChildAt(i);
111 excludeChildrenFromInterceptions(child);
122 for (View child : children) {
123 if (!canViewReceivePointerEvents(child)) {
126 child.getHitRect(sHitFrame);
128 // child can receive the motion event.
136 private static boolean canViewReceivePointerEvents(View child) { argument
137 return child.getVisibility() == VISIBLE || (child
[all...]
/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/Contacts/src/com/android/contacts/widget/
H A DProportionalLayout.java32 * <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...]
H A DInterpolatingLayout.java31 * Layout similar to LinearLayout that allows a child to specify examples of
35 * You can also specify minWidth for each child. You can have at most one
36 * child with layout_width="match_parent" - it will take the entire remaining
214 View child = getChildAt(i);
215 if (child.getVisibility() == View.GONE) {
219 LayoutParams params = (LayoutParams) child.getLayoutParams();
223 "Interpolating layout allows at most one child"
226 fillChild = child;
256 child.measure(childWidthMeasureSpec, childHeightMeasureSpec);
257 width += child
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/
H A DToolbar.java100 public void onChildViewAdded(View parent, View child) { argument
101 // All child views, except photo-view, will fade out on inactivity timeout.
102 if (child.getId() != R.id.photo_view) {
103 childViews.add(child);
108 public void onChildViewRemoved(View parent, View child) { argument
109 childViews.remove(child);
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
H A DFloatingChildLayout.java36 * Layout containing single child {@link View} which it attempts to center
39 * Updates drawable state to be {@link android.R.attr#state_first} when child is
40 * above target, and {@link android.R.attr#state_last} when child is below
41 * target. Also updates {@link Drawable#setLevel(int)} on child
103 final View child = mChild;
106 final int childWidth = child.getMeasuredWidth();
107 final int childHeight = child.getMeasuredHeight();
113 layoutChild(child, childLeft, childTop);
120 // when child is outside bounds, nudge back inside
124 layoutChild(child, clampedChildLef
138 layoutChild(View child, int left, int top) argument
[all...]
/packages/apps/Browser/src/com/android/browser/
H A DBookmarkItem.java157 protected void measureChild(View child, int parentWidthMeasureSpec, argument
160 super.measureChild(child, parentWidthMeasureSpec, parentHeightMeasureSpec);
164 final ViewGroup.LayoutParams lp = child.getLayoutParams();
171 child.measure(childWidthMeasureSpec, childHeightMeasureSpec);
175 protected void measureChildWithMargins(View child, argument
179 super.measureChildWithMargins(child, parentWidthMeasureSpec,
184 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams();
193 child.measure(childWidthMeasureSpec, childHeightMeasureSpec);
/packages/apps/Calendar/src/com/android/calendar/month/
H A DSimpleDayPickerFragment.java234 SimpleWeekView child = (SimpleWeekView) mListView.getChildAt(0);
235 if (child == null) {
238 int julianDay = child.getFirstJulianDay();
408 View child;
411 // Find a child that's completely in the view
413 child = mListView.getChildAt(i++);
414 if (child == null) {
417 top = child.getTop();
419 Log.d(TAG, "child at " + (i-1) + " has top " + top);
425 if (child !
[all...]
/packages/apps/Mms/src/com/android/mms/dom/smil/
H A DElementSequentialTimeContainerImpl.java63 ElementTime child = (ElementTime) children.item(i);
64 if (child.getDur() < 0) {
65 // Return "indefinite" since containing a child whose duration is indefinite.
68 dur += child.getDur();
H A DElementParallelTimeContainerImpl.java90 ElementTime child = (ElementTime) children.item(i);
91 TimeList endTimeList = child.getEnd();
121 ElementTime child = (ElementTime) children.item(i);
123 TimeList beginList = child.getBegin();
136 TimeList endList = child.getEnd();
150 activeChildren.add((Node) child);
/packages/experimental/UiAutomation/service/src/com/android/testing/uiautomation/
H A DAccessibilityNodeInfoHelper.java79 AccessibilityNodeInfo child = node.getChild(i);
80 if (child != null) {
81 dumpNodeRec(child, serializer, i);
82 child.recycle();
106 AccessibilityNodeInfo child = current.getChild(i);
107 if (child != null) {
108 mFringe.add(child);
127 AccessibilityNodeInfo child = node.getChild(i);
128 dumpNode(child);
129 child
[all...]
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/
H A DContentTypeField.java100 * Gets the MIME type defined in the child's
102 * if child is <code>null</code> or hasn't got a MIME type value set.
103 * If child's MIME type is multipart but no boundary
104 * has been set the MIME type of child will be derived from
107 * @param child the child.
111 public static String getMimeType(ContentTypeField child, argument
114 if (child == null || child.getMimeType().length() == 0
115 || child
[all...]
/packages/apps/Contacts/src/com/android/contacts/list/
H A DCustomContactListFilterActivity.java492 final GroupDelta child = oppositeChildren.next();
493 setShouldSync(child, shouldSync, false);
498 public void setShouldSync(GroupDelta child, boolean shouldSync) { argument
499 setShouldSync(child, shouldSync, true);
506 public void setShouldSync(GroupDelta child, boolean shouldSync, boolean attemptRemove) { argument
507 child.putShouldSync(shouldSync);
510 mUnsyncedGroups.remove(child);
512 mSyncedGroups.add(child);
516 mSyncedGroups.remove(child);
518 mUnsyncedGroups.add(child);
765 showRemoveSync(ContextMenu menu, final AccountDisplay account, final GroupDelta child, final int syncMode) argument
779 handleRemoveSync(final AccountDisplay account, final GroupDelta child, final int syncMode, CharSequence title) argument
[all...]
/packages/apps/Camera/src/com/android/camera/
H A DPreferenceGroup.java36 public void addChild(CameraPreference child) { argument
37 list.add(child);
/packages/apps/Settings/src/com/android/settings/widget/
H A DChartView.java111 final View child = getChildAt(i);
112 final LayoutParams params = (LayoutParams) child.getLayoutParams();
116 if (child instanceof ChartNetworkSeriesView || child instanceof ChartGridView) {
120 child.layout(childRect.left, childRect.top, childRect.right, childRect.bottom);
122 } else if (child instanceof ChartSweepView) {
123 layoutSweep((ChartSweepView) child, parentRect, childRect);
124 child.layout(childRect.left, childRect.top, childRect.right, childRect.bottom);

Completed in 3684 milliseconds

123