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

1234

/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/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 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.java57 View child = getChildAt(i);
58 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
62 return child;
77 final View child = getChildAt(i);
78 final CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
90 View child = getChildAt(i);
91 measureChild(child);
102 public void measureChild(View child) { argument
105 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
111 child
146 requestChildFocus(View child, View focused) argument
[all...]
H A DFocusHelper.java153 // child siblings willy-nilly
154 View child = null;
166 child = newParent.getChildAt(newParent.getChildCount() - 1);
167 if (child != null) child.requestFocus();
183 child = newParent.getChildAt(0);
184 if (child != null) child.requestFocus();
196 child = parent.getChildAt(newWidgetIndex);
197 if (child !
[all...]
H A DDragLayer.java126 for (AppWidgetResizeFrame child: mResizeFrames) {
127 child.getHitRect(hitRect);
129 if (child.beginResizeIfPointInRegion(x - child.getLeft(), y - child.getTop())) {
130 mCurrentResizeFrame = child;
280 public float getLocationInDragLayer(View child, int[] loc) { argument
283 return getDescendantCoordRelativeToSelf(child, loc);
385 View child = getChildAt(i);
386 final FrameLayout.LayoutParams flp = (FrameLayout.LayoutParams) child
428 animateViewIntoPosition(DragView dragView, final View child) argument
444 animateViewIntoPosition(DragView dragView, final View child, final Runnable onFinishAnimationRunnable) argument
449 animateViewIntoPosition(DragView dragView, final View child, int duration, final Runnable onFinishAnimationRunnable, View anchorView) argument
693 onChildViewAdded(View parent, View child) argument
698 onChildViewRemoved(View parent, View child) argument
[all...]
/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
35 final View child = getChildAt(ii);
36 if (child != null && child.getVisibility() != GONE) {
37 if (child instanceof TextView) {
38 final TextView tv = (TextView) child;
50 final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) child
53 measureChildWithMargins(child, widthMeasureSpec, 0, heightMeasureSpec, 0);
54 totalLength += child.getMeasuredWidth() + lp.leftMargin + lp.rightMargin;
/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...]
H A DFrameLayoutWithOverlay.java43 public void addView(View child, int index, ViewGroup.LayoutParams params) { argument
44 super.addView(child, index, params);
51 * necessary to set this if some child views need to appear above the
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/
H A DDataExporter.java117 for (File child : file.listFiles()) {
118 removeFileOrDirectory(child);
130 for (File child : current.listFiles()) {
131 final String childStoredPath = storedPath + "/" + child.getName();
133 if (child.isDirectory()) {
135 if (child.equals(context.getCacheDir())) {
140 if (child.getName().equals(DUMP_FILE_DIRECTORY_NAME)) {
143 addDirectory(context, os, child, childStoredPath);
144 } else if (child.isFile()) {
145 addFile(os, child, childStoredPat
[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.java233 SimpleWeekView child = (SimpleWeekView) mListView.getChildAt(0);
234 if (child == null) {
237 int julianDay = child.getFirstJulianDay();
406 View child;
409 // Find a child that's completely in the view
411 child = mListView.getChildAt(i++);
412 if (child == null) {
415 top = child.getTop();
417 Log.d(TAG, "child at " + (i-1) + " has top " + top);
423 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/apps/VideoEditor/src/com/android/videoeditor/widgets/
H A DHorizontalScrollView.java47 * is a {@link FrameLayout}, meaning you should place one child in it
48 * containing the entire contents to scroll; this child may itself be a layout
49 * manager with a complex hierarchy of objects. A child that is often used
93 * The child to give focus to in the event that a child has requested focus while the
94 * layout is dirty. This prevents the scroll from being wrong if the child has not been
112 * When set to true, the scroll view measure its child to make it fill the currently
203 public void addView(View child) { argument
205 throw new IllegalStateException("HorizontalScrollView can host only one direct child");
208 super.addView(child);
212 addView(View child, int index) argument
221 addView(View child, ViewGroup.LayoutParams params) argument
230 addView(View child, int index, ViewGroup.LayoutParams params) argument
1189 measureChild(View child, int parentWidthMeasureSpec, int parentHeightMeasureSpec) argument
1204 measureChildWithMargins(View child, int parentWidthMeasureSpec, int widthUsed, int parentHeightMeasureSpec, int heightUsed) argument
1271 scrollToChild(View child) argument
1372 requestChildFocus(View child, View focused) argument
1419 requestChildRectangleOnScreen(View child, Rect rectangle, boolean immediate) argument
1469 isViewDescendantOf(View child, View parent) argument
1579 clamp(int n, int my, int child) argument
[all...]
/packages/apps/Email/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/quickcontact/
H A DFloatingChildLayout.java40 * Layout containing single child {@link View} which it attempts to center
43 * Updates drawable state to be {@link android.R.attr#state_first} when child is
44 * above target, and {@link android.R.attr#state_last} when child is below
45 * target. Also updates {@link Drawable#setLevel(int)} on child
143 final View child = mChild;
146 final int childWidth = child.getMeasuredWidth();
147 final int childHeight = child.getMeasuredHeight();
153 layoutChild(child, childLeft, childTop);
160 // when child is outside bounds, nudge back inside
164 layoutChild(child, clampedChildLef
178 layoutChild(View child, int left, int top) argument
[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...]

Completed in 483 milliseconds

1234