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

12345

/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.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...]
H A DDragLayer.java127 for (AppWidgetResizeFrame child: mResizeFrames) {
128 child.getHitRect(hitRect);
130 if (child.beginResizeIfPointInRegion(x - child.getLeft(), y - child.getTop())) {
131 mCurrentResizeFrame = child;
226 public boolean onRequestSendAccessibilityEvent(View child, AccessibilityEvent event) { argument
229 if (child == currentFolder) {
230 return super.onRequestSendAccessibilityEvent(child, event);
236 return super.onRequestSendAccessibilityEvent(child, even
306 getLocationInDragLayer(View child, int[] loc) argument
454 animateViewIntoPosition(DragView dragView, final View child) argument
470 animateViewIntoPosition(DragView dragView, final View child, final Runnable onFinishAnimationRunnable) argument
475 animateViewIntoPosition(DragView dragView, final View child, int duration, final Runnable onFinishAnimationRunnable, View anchorView) argument
719 onChildViewAdded(View parent, View child) argument
724 onChildViewRemoved(View parent, View child) argument
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/
H A DHideFromAccessibilityHelper.java50 View child = vg.getChildAt(i);
52 if (includeView(child)) {
53 setImportantForAccessibilityToNoHelper(child);
83 View child = vg.getChildAt(i);
84 if (includeView(child)) {
85 restoreImportantForAccessibilityHelper(child);
91 public void onChildViewAdded(View parent, View child) { argument
92 if (mHide && includeView(child)) {
93 setImportantForAccessibilityToNoHelper(child);
97 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();
104 child.measure(childWidthMeasureSpec, childheightMeasureSpec);
120 View child
[all...]
H A DShortcutAndWidgetContainer.java67 View child = getChildAt(i);
68 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
72 return child;
87 final View child = getChildAt(i);
88 final CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
105 View child = getChildAt(i);
106 if (child.getVisibility() != GONE) {
107 measureChild(child);
140 public void measureChild(View child) { argument
145 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child
210 requestChildFocus(View child, View focused) argument
[all...]
H A DDragLayer.java110 final View child = getChildAt(i);
111 setInsets(child, insets, mInsets);
118 public void addView(View child, int index, android.view.ViewGroup.LayoutParams params) { argument
119 super.addView(child, index, params);
120 setInsets(child, mInsets, new Rect());
123 private void setInsets(View child, Rect newInsets, Rect oldInsets) { argument
124 final FrameLayout.LayoutParams flp = (FrameLayout.LayoutParams) child.getLayoutParams();
125 if (child instanceof Insettable) {
126 ((Insettable) child).setInsets(newInsets);
133 child
261 onRequestSendAccessibilityEvent(View child, AccessibilityEvent event) argument
346 getLocationInDragLayer(View child, int[] loc) argument
492 animateViewIntoPosition(DragView dragView, final View child) argument
508 animateViewIntoPosition(DragView dragView, final View child, final Runnable onFinishAnimationRunnable, View anchorView) argument
513 animateViewIntoPosition(DragView dragView, final View child, int duration, final Runnable onFinishAnimationRunnable, View anchorView) argument
764 onChildViewAdded(View parent, View child) argument
769 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 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/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/ContactsCommon/src/com/android/contacts/common/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...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/
H A DDataExporter.java132 for (File child : file.listFiles()) {
133 removeFileOrDirectory(child);
145 for (File child : current.listFiles()) {
146 final String childStoredPath = storedPath + "/" + child.getName();
148 if (child.isDirectory()) {
150 if (child.equals(context.getCacheDir())) {
155 if (child.getName().equals(DUMP_FILE_DIRECTORY_NAME)) {
158 addDirectory(context, os, child, childStoredPath);
159 } else if (child.isFile()) {
160 addFile(os, child, childStoredPat
[all...]
/packages/apps/Contacts/src/com/android/contacts/widget/
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/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/ContactsCommon/src/com/android/contacts/common/model/
H A DRawContactDelta.java152 * Get the {@link ValuesDelta} child marked as {@link Data#IS_PRIMARY},
243 * Return the list of child {@link ValuesDelta} from our optimized map,
264 for (ValuesDelta child : mimeEntries) {
266 if (onlyVisible && !child.isVisible()) continue;
334 for (ValuesDelta child : mimeEntries) {
336 if (!other.containsEntry(child)) return false;
348 for (ValuesDelta child : mimeEntries) {
349 // Contained if we find any child that matches
350 if (child.equals(entry)) return true;
362 for (ValuesDelta child
[all...]

Completed in 850 milliseconds

12345