Searched refs:child (Results 26 - 50 of 159) sorted by relevance

1234567

/packages/apps/Launcher3/quickstep/src/com/android/quickstep/fallback/
H A DFallbackRecentsView.java47 public void onViewAdded(View child) { argument
48 super.onViewAdded(child);
53 public void onViewRemoved(View child) { argument
54 super.onViewRemoved(child);
/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/apps/Launcher3/src/com/android/launcher3/allapps/
H A DAllAppsStore.java125 updateAllIcons((child) -> {
126 if (child.getTag() instanceof ItemInfo) {
127 ItemInfo info = (ItemInfo) child.getTag();
129 child.applyBadgeState(info, true /* animate */);
136 updateAllIcons((child) -> {
137 if (child.getTag() == app) {
138 child.applyProgressLevel(app.level);
149 View child = parent.getChildAt(j);
150 if (child instanceof BubbleTextView) {
151 action.apply((BubbleTextView) child);
[all...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/
H A DDataExporter.java129 for (File child : file.listFiles()) {
130 removeFileOrDirectory(child);
142 for (File child : current.listFiles()) {
143 final String childStoredPath = storedPath + "/" + child.getName();
145 if (child.isDirectory()) {
147 if (child.equals(context.getCacheDir())) {
152 if (child.getName().equals(DUMP_FILE_DIRECTORY_NAME)) {
155 addDirectory(context, os, child, childStoredPath);
156 } else if (child.isFile()) {
157 addFile(os, child, childStoredPat
[all...]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DStorageUtils.java55 for (File child : children) {
56 if (child.isDirectory()) {
57 dirs.add(child);
58 } else if (child.isFile()) {
60 final ConcreteFile file = new ConcreteFile(child);
/packages/apps/Launcher3/src/com/android/launcher3/widget/
H A DWidgetsRecyclerView.java110 // Skip early if, there no child laid out in the container.
127 View child = getChildAt(0);
128 int rowIndex = getChildPosition(child);
129 int y = (child.getMeasuredHeight() * rowIndex);
130 int offset = getLayoutManager().getDecoratedTop(child);
141 View child = getChildAt(0);
142 return child.getMeasuredHeight() * mAdapter.getItemCount() - getScrollbarTrackHeight()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
H A DSimpleScrollAdapterTransform.java48 public void transform(View child, int distanceFromCenter, int distanceFromCenter2ndAxis) { argument
54 applyTransformationRecursive(absDistance, mLowItemTransform, child);
56 applyTransformationRecursive(absDistance, mHighItemTransform, child);
61 int distanceFromCenter, Animator animator, View child) {
65 applyTransformationRecursive(distanceFromCenter, children.get(i), child);
69 valueAnim.setTarget(child);
60 applyTransformationRecursive( int distanceFromCenter, Animator animator, View child) argument
H A DScrollAdapterView.java123 * on each child view.
163 /** saved measuredSpec to pass to child views */
200 void recycleView(View child, int type) { argument
202 mAdapter.viewRemoved(child);
206 mViews[type].add(child);
292 /** saves all expandable child states */
295 /** saves all expanded child states */
559 View child = getChildAt(i);
560 removeViewInLayout(child);
561 recycleExpandableView(child);
900 requestChildFocus(View child, View focused) argument
909 recycleExpandableView(View child) argument
1116 measureScrapChild(View child, int widthMeasureSpec, int heightMeasureSpec) argument
1529 measureChild(View child) argument
[all...]
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
H A DDiscovery.java205 for (Discovery child : getChildren()) {
206 if (child != this) {
207 printers.addAll(child.getSavedPrinters());
218 for (Discovery child : getChildren()) {
219 if (child != this) {
220 child.removeSavedPrinter(printerPath);
/packages/apps/Launcher3/src/com/android/launcher3/views/
H A DBaseDragLayer.java101 public boolean onRequestSendAccessibilityEvent(View child, AccessibilityEvent event) { argument
106 if (child == topView) {
107 return super.onRequestSendAccessibilityEvent(child, event);
113 return super.onRequestSendAccessibilityEvent(child, event);
121 // Only add the top view as a child for accessibility when it is open
128 protected void addAccessibleChildToList(View child, ArrayList<View> outList) { argument
129 if (child.isImportantForAccessibility()) {
130 outList.add(child);
132 child.addChildrenForAccessibility(outList);
137 public void onViewRemoved(View child) { argument
187 getLocationInDragLayer(View child, int[] loc) argument
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
H A DDragLayer.java128 protected boolean drawChild(Canvas canvas, View child, long drawingTime) { argument
129 ViewScrim scrim = ViewScrim.get(child);
133 return super.drawChild(canvas, child, drawingTime);
212 public boolean onRequestSendAccessibilityEvent(View child, AccessibilityEvent event) { argument
213 if (isInAccessibleDrag() && child instanceof DropTargetBar) {
216 return super.onRequestSendAccessibilityEvent(child, event);
261 public void animateViewIntoPosition(DragView dragView, final View child, View anchorView) { argument
262 animateViewIntoPosition(dragView, child, -1, anchorView);
265 public void animateViewIntoPosition(DragView dragView, final View child, int duration, argument
267 ShortcutAndWidgetContainer parentChildren = (ShortcutAndWidgetContainer) child
486 onViewAdded(View child) argument
493 onViewRemoved(View child) argument
500 bringChildToFront(View child) argument
[all...]
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
H A DP2pCategoryPreferenceController.java54 public void addChild(Preference child) { argument
56 mCategory.addPreference(child);
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
H A DFileUtils.java32 for (final File child : files) {
33 deleteRecursively(child);
/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/Launcher3/src/com/android/launcher3/accessibility/
H A DWorkspaceAccessibilityHelper.java100 View child = mView.getChildAt(x, y);
101 if (child == null || child == dragInfo.item) {
106 ItemInfo info = (ItemInfo) child.getTag();
122 View child = mView.getChildAt(x, y);
123 if (child == null || child == dragInfo.item) {
126 ItemInfo info = (ItemInfo) child.getTag();
162 View child = mView.getChildAt(x, y);
163 if (child
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DCheckableLinearLayout.java65 View child = getChildAt(i);
66 if (child instanceof Checkable) {
67 ((Checkable) child).setChecked(mChecked);
/packages/apps/Messaging/tests/src/com/android/messaging/ui/
H A DMultiAttachmentLayoutTest.java62 final View child = view.getChildAt(i);
63 if (child instanceof AsyncImageView) {
65 } else if (child instanceof TextView) {
67 assertTrue(((TextView) child).getText().toString().contains("" + plusCount));
71 fail("unexpected view in layout. view = " + child);
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapSettingsAdapter.java119 final BluetoothMapAccountItem child = getChild(groupPosition, childPosition);
126 boolean oldIsChecked = child.mIsChecked; // needed to prevent updates on UI redraw
127 child.mIsChecked = isChecked;
130 int childIndex = childList.indexOf(child);
140 child.getName(), parentGroup.getName());
150 child.mIsChecked = false;
155 child.getName()))) {
156 BluetoothMapSettingsDataHolder.sCheckedChilds.put(child.getName(),
167 BluetoothMapSettingsDataHolder.sCheckedChilds.remove(child.getName());
170 BluetoothMapSettingsDataHolder.sCheckedChilds.remove(child
[all...]
/packages/apps/Dialer/java/com/android/dialer/app/list/
H A DPhoneFavoriteListView.java87 // child's left coordinate. This is used to aid in the drawing of the drag shadow.
190 View child;
192 child = getChildAt(childIdx);
193 if (y >= child.getTop()
194 && y <= child.getBottom()
195 && x >= child.getLeft()
196 && x <= child.getRight()) {
197 return child;
304 final View child = getViewAtPosition(viewX, viewY);
306 if (!(child instanceo
[all...]
/packages/apps/Settings/src/com/android/settings/widget/
H A DChartView.java110 final View child = getChildAt(i);
111 final LayoutParams params = (LayoutParams) child.getLayoutParams();
115 if (child instanceof ChartNetworkSeriesView) {
119 child.layout(childRect.left, childRect.top, childRect.right, childRect.bottom);
121 } else if (child instanceof ChartGridView) {
124 child.layout(childRect.left, childRect.top, childRect.right,
125 childRect.bottom + child.getPaddingBottom());
127 } else if (child instanceof ChartSweepView) {
128 layoutSweep((ChartSweepView) child, parentRect, childRect);
129 child
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DMiniDrawerView.java132 View child;
134 while ((child=getChildAt(1)) != mSpacer) {
135 removeView(child);
182 final View child = getChildAt(i);
183 child.setVisibility(View.VISIBLE);
198 final View child = getChildAt(i);
199 if (child.equals(mSpacer) || child.getVisibility() == View.GONE) {
202 final LayoutParams params = (LayoutParams) child.getLayoutParams();
203 childHeight += params.topMargin + params.bottomMargin + child
[all...]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
H A DDocumentsProviderHelper.java185 for (DocumentInfo child : children) {
186 if (name.equals(child.displayName) && !child.isDirectory()) {
204 for (DocumentInfo child : children) {
205 if (name.equals(child.displayName) && child.isDirectory()) {
223 for (DocumentInfo child : children) {
224 if (name.equals(child.displayName)) {
242 for (DocumentInfo child : children) {
243 if (name.equals(child
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
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...]

Completed in 1755 milliseconds

1234567