Searched defs:child (Results 1 - 21 of 21) sorted by relevance

/packages/apps/Camera/src/com/android/camera/
H A DPreferenceGroup.java36 public void addChild(CameraPreference child) { argument
37 list.add(child);
/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/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/apps/Contacts/src/com/android/contacts/
H A DTabStripView.java85 public void childDrawableStateChanged(View child) { argument
86 if (child == getChildAt(mSelectedTabIndex)) {
90 super.childDrawableStateChanged(child);
/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/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);
H A DSnapshotTab.java83 void addChildTab(Tab child) { argument
85 super.addChildTab(child);
87 throw new IllegalStateException("Snapshot tabs cannot have child tabs!");
H A DTabScrollView.java144 private void ensureChildVisible(View child) { argument
145 if (child != null) {
146 int childl = child.getLeft();
147 int childr = childl + child.getWidth();
H A DTab.java1666 throw new IllegalStateException("Parent has same ID as child!");
1682 * @param child the Tab that was created from this Tab
1684 void addChildTab(Tab child) { argument
1688 mChildren.add(child);
1689 child.setParent(this);
/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/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/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 DPagedViewCellLayout.java112 final View child = getChildAt(i);
113 child.cancelLongPress();
117 public boolean addViewToCellLayout(View child, int index, int childId, argument
130 child.setId(childId);
131 mChildren.addView(child, index, lp);
227 View child = getChildAt(i);
234 child.measure(childWidthMeasureSpec, childheightMeasureSpec);
262 View child = getChildAt(i);
263 child.layout(mPaddingLeft, mPaddingTop,
274 View child
324 onDragChild(View child) argument
[all...]
H A DCellLayout.java540 final View child = getChildAt(i);
541 child.cancelLongPress();
558 View child, int index, int childId, LayoutParams params, boolean markCells) {
569 child.setId(childId);
571 mChildren.addView(child, index, lp);
573 if (markCells) markCellsAsOccupiedForView(child);
655 final View child = mChildren.getChildAt(i);
656 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
658 if ((child.getVisibility() == VISIBLE || child
557 addViewToCellLayout( View child, int index, int childId, LayoutParams params, boolean markCells) argument
959 animateChildToPosition(final View child, int cellX, int cellY, int duration, int delay) argument
1421 onDropChild(View child) argument
[all...]
H A DPagedView.java468 final View child = getPageAt(i);
469 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
490 child.measure(childWidthMeasureSpec, childHeightMeasureSpec);
491 maxChildHeight = Math.max(maxChildHeight, child.getMeasuredHeight());
492 if (DEBUG) Log.d(TAG, "\tmeasure-child" + i + ": " + child.getMeasuredWidth() + ", "
493 + child.getMeasuredHeight());
539 final View child = getPageAt(i);
540 childrenX[i] = child.getX();
541 childrenY[i] = child
636 onViewAdded(View child) argument
707 getScaledMeasuredWidth(View child) argument
776 requestChildRectangleOnScreen(View child, Rect rectangle, boolean immediate) argument
1353 requestChildFocus(View child, View focused) argument
[all...]
H A DWorkspace.java427 protected void onViewAdded(View child) { argument
428 super.onViewAdded(child);
429 if (!(child instanceof CellLayout)) {
432 CellLayout cl = ((CellLayout) child);
445 View child = dragLayer.getChildAt(i);
446 if (child instanceof Folder) {
447 Folder folder = (Folder) child;
460 * Adds the specified child in the specified screen. The position and dimension of
461 * the child are defined by x, y, spanX and spanY.
463 * @param child Th
470 addInScreen(View child, long container, int screen, int x, int y, int spanX, int spanY) argument
486 addInScreen(View child, long container, int screen, int x, int y, int spanX, int spanY, boolean insert) argument
1944 beginDragShared(View child, DragSource source) argument
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DUtils.java399 ViewGroup parent, View child, ListView list, boolean ignoreSidePadding) {
402 ((PreferenceFrameLayout.LayoutParams) child.getLayoutParams()).removeBorders = true;
398 prepareCustomPreferencesList( ViewGroup parent, View child, ListView list, boolean ignoreSidePadding) argument
/packages/apps/Browser/src/com/android/browser/view/
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/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 402 milliseconds