/frameworks/support/design/src/android/support/design/widget/ |
H A D | Snackbar.java | 828 public boolean canSwipeDismissView(View child) { argument 829 return child instanceof SnackbarLayout; 833 public boolean onInterceptTouchEvent(CoordinatorLayout parent, SnackbarLayout child, argument 837 if (parent.isPointInChildBounds(child, (int) event.getX(), (int) event.getY())) { 849 return super.onInterceptTouchEvent(parent, child, event);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ScrollingTabContainerView.java | 182 final View child = mTabLayout.getChildAt(i); 184 child.setSelected(isSelected); 577 final View child = mTabLayout.getChildAt(i); 578 child.setSelected(child == view);
|
H A D | ActionMenuPresenter.java | 329 final View child = parent.getChildAt(i); 330 if (child instanceof MenuView.ItemView && 331 ((MenuView.ItemView) child).getItemData() == item) { 332 return child;
|
H A D | ActivityChooserView.java | 439 View child = mActivityChooserContent; 447 measureChild(child, widthMeasureSpec, heightMeasureSpec); 448 setMeasuredDimension(child.getMeasuredWidth(), child.getMeasuredHeight());
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | FrameBuilderTests.cpp | 755 auto child = TestUtils::createNode(10, 10, 110, 110, local 763 [&child](RenderProperties& props, RecordingCanvas& canvas) { 770 canvas.drawRenderNode(child.get()); 1297 * - startRepaintLayer(child), rect(grey), endLayer 1298 * - startTemporaryLayer, drawLayer(child), endLayer 1358 auto child = TestUtils::createNode(50, 50, 150, 150, local 1366 *(child->getLayerHandle()) = &childLayer; 1368 RenderNode* childPtr = child.get(); 1386 layerUpdateQueue.enqueueLayerWithDamage(child.get(), Rect(100, 100)); 1399 *(child 1572 auto child = TestUtils::createNode(0, 50, 100, 100, local 1649 auto child = TestUtils::createNode(100, 100, 300, 300, local 1723 auto child = TestUtils::createNode(0, 0, 400, 400, local [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | VectorDrawable.java | 576 // Remove child nodes' reference to tree 1067 public void addChild(VObject child) { argument 1068 nAddChild(mNativePtr, child.getNativePtr()); 1069 mChildren.add(child); 1070 mIsStateful |= child.isStateful(); 1139 final VObject child = children.get(i); 1140 if (child.isStateful()) { 1141 changed |= child.onStateChange(stateSet); 1171 final VObject child = children.get(i); 1172 if (child [all...] |
H A D | DrawableContainer.java | 43 * You can subclass it to create your own DrawableContainers or directly use one its child classes. 852 private Drawable prepareDrawable(Drawable child) { argument 853 child.setLayoutDirection(mLayoutDirection); 854 child.setCallback(mOwner); 855 child = child.mutate(); 856 return child; 951 // Update cached mask of child changing configurations.
|
/frameworks/base/core/java/android/widget/ |
H A D | GridLayout.java | 78 * If a child does not specify the row and column indices of the cell it 112 * {@link LayoutParams#setGravity(int) gravity} property of the child's layout parameters. 444 * based on the child's visual characteristics. Each of the 695 private int getTotalMargin(View child, boolean horizontal) { argument 696 return getMargin(child, horizontal, true) + getMargin(child, horizontal, false); 808 protected void onSetLayoutParams(View child, ViewGroup.LayoutParams layoutParams) { argument 809 super.onSetLayoutParams(child, layoutParams); 945 public void onViewAdded(View child) { argument 946 super.onViewAdded(child); 951 onViewRemoved(View child) argument 963 onChildVisibilityChanged(View child, int oldVisibility, int newVisibility) argument 996 measureChildWithMargins2(View child, int parentWidthSpec, int parentHeightSpec, int childWidth, int childHeight) argument [all...] |
H A D | PopupWindow.java | 2322 final View child = getChildAt(i); 2323 enterTransition.addTarget(child); 2324 child.setVisibility(View.INVISIBLE); 2330 final View child = getChildAt(i); 2331 child.setVisibility(View.VISIBLE); 2371 final View child = getChildAt(i); 2372 exitTransition.addTarget(child); 2378 final View child = getChildAt(i); 2379 child.setVisibility(View.INVISIBLE);
|
H A D | ActivityChooserView.java | 463 View child = mActivityChooserContent; 471 measureChild(child, widthMeasureSpec, heightMeasureSpec); 472 setMeasuredDimension(child.getMeasuredWidth(), child.getMeasuredHeight());
|
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | ListScenario.java | 569 * Have a child of the list view call {@link View#requestRectangleOnScreen(android.graphics.Rect)}. 572 * @param rect The rectangle, in the child's coordinates. 575 final View child = getListView().getChildAt(childIndex); 577 child.post(new Runnable() { 579 child.requestRectangleOnScreen(rect);
|
/frameworks/base/media/java/android/media/ |
H A D | Cea708CaptionRenderer.java | 1155 View child = getChildAt(i); 1156 ViewGroup.LayoutParams params = child.getLayoutParams(); 1160 "A child of ScaledLayout cannot have the UNSPECIFIED scale factors"); 1167 throw new RuntimeException("A child of ScaledLayout should have a range of " 1171 throw new RuntimeException("A child of ScaledLayout should have a range of " 1175 throw new RuntimeException("A child of ScaledLayout should have a range of " 1179 throw new RuntimeException("A child of ScaledLayout should have a range of " 1183 Log.d(TAG, String.format("onMeasure child scaleStartRow: %f scaleEndRow: %f " 1192 child.measure(childWidthSpec, childHeightSpec); 1194 // If the height of the measured child vie [all...] |
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | UiSelector.java | 524 * Adds a child UiSelector criteria to this selector. 527 * child widgets under a specific parent widget. 546 * Adds a child UiSelector criteria to this selector which is used to 550 * sibling widgets as well all child widgets under a parent. 598 * Selectors may have a hierarchy defined by specifying child nodes to be matched. 603 * @return a child selector if one exists. Else null if this selector does not 604 * reference child node. 834 * Leaf selector indicates no more child or parent selectors 883 UiSelector child = (UiSelector)mSelectorAttributes.get(UiSelector.SELECTOR_CHILD); 884 if (child [all...] |
/frameworks/base/core/java/android/provider/ |
H A D | DocumentsProvider.java | 181 * Test if a document is descendant (child, grandchild, etc) from the given 187 * @param documentId child to verify. 199 final String child = getDocumentId(documentUri); 200 if (Objects.equals(parent, child)) { 203 if (!isChildDocument(parent, child)) { 205 "Document " + child + " is not a descendant of " + parent); 269 * Copies a document including all child documents to another location within 275 * @param targetParentDocumentId the target document to be copied into as a child. 286 * <p>Moves a document including all child documents to another location within
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | StatusBarIconController.java | 586 View child = mStatusIcons.getChildAt(i); 590 child.setLayoutParams(lp); 593 View child = mStatusIconsKeyguard.getChildAt(i); 596 child.setLayoutParams(lp);
|
H A D | StatusBarWindowView.java | 132 View child = getChildAt(i); 133 if (child.getLayoutParams() instanceof LayoutParams) { 134 LayoutParams lp = (LayoutParams) child.getLayoutParams(); 137 child.requestLayout();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | HeadsUpManager.java | 568 public static void setIsClickedNotification(View child, boolean clicked) { argument 569 child.setTag(TAG_CLICKED_NOTIFICATION, clicked ? true : null); 572 public static boolean isClickedHeadsUpNotification(View child) { argument 573 Boolean clicked = (Boolean) child.getTag(TAG_CLICKED_NOTIFICATION);
|
/frameworks/support/design/tests/src/android/support/design/widget/ |
H A D | BottomSheetBehaviorTest.java | 207 View child = LayoutInflater.from(view.getContext()).inflate(mLayout, parent, false); 208 parent.addView(child); 535 View child = parent.getChildAt(0); 536 assertThat(ViewCompat.isLaidOut(child), is(true));
|
/frameworks/support/v4/java/android/support/v4/view/accessibility/ |
H A D | AccessibilityNodeInfoCompat.java | 501 public void addChild(Object info, View child); argument 502 public void addChild(Object info, View child, int virtualDescendantId); argument 503 public boolean removeChild(Object info, View child); argument 675 public void addChild(Object info, View child) { argument 680 public void addChild(Object info, View child, int virtualDescendantId) { argument 685 public boolean removeChild(Object info, View child) { argument 1276 public void addChild(Object info, View child) { argument 1277 AccessibilityNodeInfoCompatIcs.addChild(info, child); 1508 public void addChild(Object info, View child, int virtualDescendantId) { argument 1509 AccessibilityNodeInfoCompatJellyBean.addChild(info, child, virtualDescendantI 1878 removeChild(Object info, View child) argument 2488 addChild(View child) argument 2524 removeChild(View child) argument [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | LinearLayoutManagerTest.java | 163 View child = mLayoutManager.getChildAt(i); 164 RecyclerView.ViewHolder holder = mRecyclerView.getChildViewHolder(child); 181 assertTrue("removed child should receive remove animation", 189 View child = mLayoutManager.getChildAt(i); 190 RecyclerView.ViewHolder holder = mRecyclerView.getChildViewHolder(child); 224 assertNotNull("focused child should stay in layout", postVH); 225 assertSame("same view holder should be kept for unchanged child", vh, postVH); 226 assertEquals("focused child's screen position should stay unchanged", top, 272 // scroll enough to offset the child 280 // scroll enough to offset the child [all...] |
H A D | GridLayoutManagerTest.java | 105 View child = mGlm.getChildAt(i); 106 GridLayoutManager.LayoutParams params = (GridLayoutManager.LayoutParams) child 108 assertThat("span index for child at " + i + " with position " + params 114 // this should be the scrolled child 489 assertEquals("reference child non existent", -1, ssl.findReferenceIndexFromCache(2)); 491 assertEquals("reference child non existent", -1, ssl.findReferenceIndexFromCache(3)); 493 assertEquals("reference child itself", -1, ssl.findReferenceIndexFromCache(4)); 494 assertEquals("reference child before", 4, ssl.findReferenceIndexFromCache(5)); 495 assertEquals("reference child before", 4, ssl.findReferenceIndexFromCache(100)); 497 assertEquals("reference child befor [all...] |
/frameworks/base/tools/aapt/ |
H A D | XMLNode.cpp | 792 sp<XMLNode> child = mChildren.itemAt(i); 793 if (child->getType() == XMLNode::TYPE_ELEMENT 794 && child->mNamespaceUri == tagNamespace 795 && child->mElementName == tagName) { 796 return child; 803 status_t XMLNode::addChild(const sp<XMLNode>& child) 806 SourcePos(mFilename, child->getStartLineNumber()).error("Child to CDATA node."); 809 //printf("Adding child %p to parent %p\n", child.get(), this); 810 mChildren.add(child); [all...] |
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/ |
H A D | AssistVisualizer.java | 172 AssistStructure.ViewNode child = root.getChildAt(i); 173 buildTextRects(child, matrixStackIndex, left, top);
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | GridLayoutManager.java | 574 // Unless the child has MATCH_PARENT, measure it from its specs before adding insets. 677 Log.d(TAG, "laid out child at position " + getPosition(view) + ", with l:" 707 private void measureChildWithDecorationsAndMargin(View child, int widthSpec, int heightSpec, argument 709 calculateItemDecorationsForChild(child, mDecorInsets); 710 RecyclerView.LayoutParams lp = (RecyclerView.LayoutParams) child.getLayoutParams(); 721 measure = shouldReMeasureChild(child, widthSpec, heightSpec, lp); 723 measure = shouldMeasureChild(child, widthSpec, heightSpec, lp); 726 child.measure(widthSpec, heightSpec); 992 // LinearLayoutManager finds the last child. What we want is the child whic [all...] |
/frameworks/base/core/java/android/app/assist/ |
H A D | AssistStructure.java | 181 void writeView(ViewNode child, Parcel out, PooledStringWriter pwriter, int levelAdj) { argument 187 int flags = child.writeSelfToParcel(out, pwriter, mTmpMatrix); 189 // If the child has children, push it on the stack to write them next. 192 "Preparing to write " + child.mChildren.length 195 out.writeInt(child.mChildren.length); 197 pushViewStackEntry(child, pos); 205 // Write the next child in the current view. 206 if (DEBUG_PARCEL_TREE) Log.d(TAG, "Writing child #" 208 ViewNode child = mCurViewStackEntry.node.mChildren[mCurViewStackEntry.curChild]; 210 writeView(child, ou [all...] |