/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | ReverseLinearLayout.java | 50 public void addView(View child) { argument 51 reverseParams(child.getLayoutParams(), child); 53 super.addView(child, 0); 55 super.addView(child); 60 public void addView(View child, ViewGroup.LayoutParams params) { argument 61 reverseParams(params, child); 63 super.addView(child, 0, params); 65 super.addView(child, params); 103 private static void reverseParams(ViewGroup.LayoutParams params, View child) { argument [all...] |
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/ |
H A D | AsyncStructure.java | 37 final ViewStructure child = structure.asyncNewChild(0); 48 child.setClassName(AsyncStructure.class.getName()); 49 child.setVisibility(View.VISIBLE); 50 child.setDimens(width / 4, height / 4, 0, 0, width / 2, height / 2); 51 child.setEnabled(true); 52 child.setContentDescription("This is some async content"); 53 child.setText("We could have lots and lots of async text!"); 54 child.asyncCommit();
|
/frameworks/support/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/ |
H A D | ResourceCache.java | 29 View child = mCachedViews.get(resId, null); 30 if (child == null) { 31 child = view.findViewById(resId); 32 mCachedViews.put(resId, child); 34 return (ViewType) child;
|
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/ |
H A D | ResourceCache.java | 29 View child = mCachedViews.get(resId, null); 30 if (child == null) { 31 child = view.findViewById(resId); 32 mCachedViews.put(resId, child); 34 return (ViewType) child;
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | Util.java | 30 * Returns true if child == parent or is descendant of the parent. 32 public static boolean isDescendant(ViewGroup parent, View child) { argument 33 while (child != null) { 34 if (child == parent) { 37 ViewParent p = child.getParent(); 41 child = (View) p;
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | SnapshotTests.cpp | 28 auto child = TestUtils::makeSnapshot(Matrix4::identity(), Rect(50, 50, 90, 90)); local 30 child->previous = root.get(); 35 auto intersectWithChild = child->serializeIntersectedClip(allocator, 38 EXPECT_EQ(Rect(50, 50, 75, 75), intersectWithChild->rect) << "Expect intersect with child"; 43 auto intersectWithRoot = child->serializeIntersectedClip(allocator, 57 auto child = TestUtils::makeSnapshot(Matrix4::identity(), Rect(50, 50, 90, 90)); local 58 child->previous = root.get(); 59 child->applyClip(&rect, Matrix4::identity()); 61 EXPECT_TRUE(child->getClipArea().isSimple()); 62 EXPECT_EQ(Rect(50, 50, 75, 75), child 67 auto child = TestUtils::makeSnapshot(Matrix4::identity(), Rect(50, 50, 90, 90)); local [all...] |
H A D | RenderNodeTests.cpp | 42 auto child = TestUtils::createNode(0, 0, 200, 400, local 47 [&child](RenderProperties& props, Canvas& canvas) { 48 canvas.drawRenderNode(child.get()); 53 EXPECT_TRUE(child->hasParents()) << "Child node has no parent"; 60 EXPECT_TRUE(child->hasParents()) << "Child should still have a parent"; 65 EXPECT_FALSE(child->hasParents()) << "Child should be removed"; 70 auto child = TestUtils::createNode(0, 0, 200, 400, local 75 [&child](RenderProperties& props, Canvas& canvas) { 76 canvas.drawRenderNode(child.get()); 79 EXPECT_TRUE(child 134 auto child = TestUtils::createNode(0, 0, 200, 400, local [all...] |
/frameworks/base/wifi/java/android/net/wifi/hotspot2/omadm/ |
H A D | PpsMoParser.java | 361 for (XMLNode child : root.getChildren()) { 362 switch(child.getTag()) { 368 verDtd = child.getText(); 376 config = parsePpsNode(child); 383 Log.e(TAG, "Unknown node: " + child.getTag()); 417 for (XMLNode child : node.getChildren()) { 418 switch (child.getTag()) { 421 throw new ParsingException("Duplicate NodeName: " + child.getText()); 423 nodeName = child.getText(); 432 PPSNode ppsNodeRoot = buildPpsNode(child); [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
H A D | ViewState.java | 260 * @param child the view to animate 263 public void animateTo(View child, AnimationProperties animationProperties) { argument 264 boolean wasVisible = child.getVisibility() == View.VISIBLE; 266 if (!wasVisible && (alpha != 0 || child.getAlpha() != 0) 268 child.setVisibility(View.VISIBLE); 270 float childAlpha = child.getAlpha(); 272 if (child instanceof ExpandableView) { 274 alphaChanging &= !((ExpandableView) child).willBeGone(); 278 if (child.getTranslationX() != this.xTranslation) { 279 startXTranslationAnimation(child, animationPropertie 324 startAlphaAnimation(final View child, AnimationProperties properties) argument 411 startZTranslationAnimation(final View child, AnimationProperties properties) argument 471 startXTranslationAnimation(final View child, AnimationProperties properties) argument 536 startYTranslationAnimation(final View child, AnimationProperties properties) argument 613 getChildTag(View child, int tag) argument 617 abortAnimation(View child, int animatorTag) argument 676 isAnimatingY(View child) argument [all...] |
H A D | ExpandableViewState.java | 98 * How much the child overlaps with the previous child on top. This is used to 99 * show the background properly when the child on top is translating away. 182 public void animateTo(View child, AnimationProperties properties) { argument 183 super.animateTo(child, properties); 184 if (!(child instanceof ExpandableView)) { 187 ExpandableView expandableView = (ExpandableView) child; 194 abortAnimation(child, TAG_ANIMATOR_HEIGHT); 201 abortAnimation(child, TAG_ANIMATOR_SHADOW_ALPHA); 208 abortAnimation(child, TAG_ANIMATOR_TOP_INSE 234 startHeightAnimation(final ExpandableView child, AnimationProperties properties) argument 315 startShadowAlphaAnimation(final ExpandableView child, AnimationProperties properties) argument 378 startInsetAnimation(final ExpandableView child, AnimationProperties properties) argument [all...] |
/frameworks/base/tools/aapt2/ |
H A D | DominatorTree.cpp | 42 CHECK(new_child->value_) << "cannot add a root or empty node as a child"; 44 // This is not the root and the child dominates us. 53 for (auto& child : children_) { 54 if (new_child->Dominates(child.get())) { 55 child->parent_ = new_child.get(); 56 new_child->children_.push_back(std::move(child)); 57 child = {}; 65 [](const std::unique_ptr<Node>& child) -> bool { 66 return child == nullptr; 70 // Add the new config to a child i [all...] |
/frameworks/layoutlib/studio-custom-widgets/src/com/android/tools/idea/editors/theme/widgets/ |
H A D | ErrorCatcher.java | 29 * {@link ViewGroup} that wraps another view and catches any possible exceptions that the child view 54 assert getChildCount() == 1 : "ErrorCatcher can only have one child"; 56 View child = getChildAt(0); 58 measureChild(child, widthMeasureSpec, heightMeasureSpec); 60 setMeasuredDimension(resolveSize(child.getMeasuredWidth(), widthMeasureSpec), 61 resolveSize(child.getMeasuredHeight(), heightMeasureSpec)); 64 child.getClass().getCanonicalName(), t); 71 protected boolean drawChild(Canvas canvas, View child, long drawingTime) { argument 73 return super.drawChild(canvas, child, drawingTime); 76 child [all...] |
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ |
H A D | ItemInflater.java | 27 void addChild(ItemHierarchy child); argument 36 protected void onAddChildItem(ItemHierarchy parent, ItemHierarchy child) { argument 38 ((ItemParent) parent).addChild(child); 40 throw new IllegalArgumentException("Cannot add child item to " + parent);
|
/frameworks/base/core/java/android/view/ |
H A D | ViewParent.java | 32 * child of this view parent. This will schedule a layout pass of the view 45 * Called when a child wants the view hierarchy to gather and report 52 * @param child the view requesting the transparent region computation 55 public void requestTransparentRegion(View child); argument 68 * @param child Direct child of this ViewParent containing target 71 default void onDescendantInvalidated(@NonNull View child, @NonNull View target) { argument 74 getParent().onDescendantInvalidated(child, target); 79 * All or part of a child is dirty and needs to be redrawn. 81 * @param child Th 87 invalidateChild(View child, Rect r) argument 130 requestChildFocus(View child, View focused) argument 138 recomputeViewAttributes(View child) argument 145 clearChildFocus(View child) argument 167 getChildVisibleRect(View child, Rect r, android.graphics.Point offset) argument 201 bringChildToFront(View child) argument 300 childDrawableStateChanged(View child) argument 339 requestChildRectangleOnScreen(View child, Rect rectangle, boolean immediate) argument 358 requestSendAccessibilityEvent(View child, AccessibilityEvent event) argument 383 childHasTransientStateChanged(View child, boolean hasTransientState) argument 415 notifySubtreeAccessibilityStateChanged( View child, @NonNull View source, int changeType) argument 523 onStartNestedScroll(View child, View target, int nestedScrollAxes) argument 541 onNestedScrollAccepted(View child, View target, int nestedScrollAxes) argument [all...] |
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/ |
H A D | MockView.java | 71 public void addView(View child) { argument 72 if (child == mView) { 73 super.addView(child); 78 public void addView(View child, int index) { argument 79 if (child == mView) { 80 super.addView(child, index); 85 public void addView(View child, int width, int height) { argument 86 if (child == mView) { 87 super.addView(child, width, height); 92 public void addView(View child, ViewGrou argument 99 addView(View child, int index, ViewGroup.LayoutParams params) argument [all...] |
/frameworks/support/design/src/android/support/design/internal/ |
H A D | BaselineLayout.java | 55 final View child = getChildAt(i); 56 if (child.getVisibility() == GONE) { 60 measureChild(child, widthMeasureSpec, heightMeasureSpec); 61 final int baseline = child.getBaseline(); 64 maxChildDescent = Math.max(maxChildDescent, child.getMeasuredHeight() - baseline); 66 maxWidth = Math.max(maxWidth, child.getMeasuredWidth()); 67 maxHeight = Math.max(maxHeight, child.getMeasuredHeight()); 68 childState = View.combineMeasuredStates(childState, child.getMeasuredState()); 92 final View child = getChildAt(i); 93 if (child [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | BackgroundFallback.java | 65 final View child = root.getChildAt(i); 66 final Drawable childBg = child.getBackground(); 67 if (child == content) { 70 if (childBg == null && child instanceof ViewGroup && 71 ((ViewGroup) child).getChildCount() == 0) { 74 } else if (child.getVisibility() != View.VISIBLE || childBg == null || 81 left = Math.min(left, child.getLeft()); 82 top = Math.min(top, child.getTop()); 83 right = Math.max(right, child.getRight()); 84 bottom = Math.max(bottom, child [all...] |
H A D | MessagingLinearLayout.java | 53 * Id of the child that's also visible in the contracted layout. 105 final View child = getChildAt(i); 106 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 120 final View child = getChildAt(i); 123 if (child instanceof ImageFloatingTextView) { 127 textChild = (ImageFloatingTextView) child; 132 measureChildWithMargins(child, widthMeasureSpec, 0, heightMeasureSpec, totalHeight 135 final int childHeight = child.getMeasuredHeight(); 161 final View child = getChildAt(i); 162 final LayoutParams lp = (LayoutParams) child 258 drawChild(Canvas canvas, View child, long drawingTime) argument [all...] |
/frameworks/support/development/checkstyle/src/com/android/support/checkstyle/ |
H A D | TestSizeAnnotationCheck.java | 68 for (DetailAST child = objBlock.getFirstChild(); 69 child != null; child = child.getNextSibling()) { 70 if (child.getType() == TokenTypes.METHOD_DEF 71 && AnnotationUtility.containsAnnotation(child, TEST)) { 73 AnnotationUtility.containsAnnotation(child, SMALL_TEST) 74 || AnnotationUtility.containsAnnotation(child, MEDIUM_TEST) 75 || AnnotationUtility.containsAnnotation(child, LARGE_TEST); 77 log(child [all...] |
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
H A D | ResizeHWLayerActivity.java | 39 View child = new View(this); 40 child.setBackgroundColor(Color.BLUE); 41 child.setLayoutParams(new FrameLayout.LayoutParams(width, height)); 42 child.setLayerType(View.LAYER_TYPE_HARDWARE, null); 45 final LayoutParams params = child.getLayoutParams(); 54 child.requestLayout(); 58 setContentView(child);
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/ |
H A D | OSUCommand.java | 35 public OSUCommand(XMLNode child) throws OMAException { argument 36 mOSUCommand = sCommands.get(child.getStrippedTag()); 44 child = child.getSoleChild(); 45 mExecCommand = sExecs.get(child.getStrippedTag()); 47 throw new OMAException("Unrecognized exec command: " + child.getStrippedTag()); 56 mCommandData = new BrowserURI(child); 59 mCommandData = new GetCertData(child); 62 mCommandData = new MOURN(child); 70 mCommandData = new ClientCertInfo(child); [all...] |
/frameworks/support/design/src/android/support/design/widget/ |
H A D | SwipeDismissBehavior.java | 35 * An interaction behavior plugin for child views of {@link CoordinatorLayout} to provide support 173 public boolean onInterceptTouchEvent(CoordinatorLayout parent, V child, MotionEvent event) { argument 178 mInterceptingEvents = parent.isPointInChildBounds(child, 197 public boolean onTouchEvent(CoordinatorLayout parent, V child, MotionEvent event) { argument 222 public boolean tryCaptureView(View child, int pointerId) { 224 return mActivePointerId == INVALID_POINTER_ID && canSwipeDismissView(child); 248 public void onViewReleased(View child, float xvel, float yvel) { 252 final int childWidth = child.getWidth(); 256 if (shouldDismiss(child, xvel)) { 257 targetLeft = child [all...] |
H A D | HeaderScrollingViewBehavior.java | 52 public boolean onMeasureChild(CoordinatorLayout parent, View child, argument 55 final int childLpHeight = child.getLayoutParams().height; 61 final List<View> dependencies = parent.getDependencies(child); 65 && !ViewCompat.getFitsSystemWindows(child)) { 68 ViewCompat.setFitsSystemWindows(child, true); 70 if (ViewCompat.getFitsSystemWindows(child)) { 72 child.requestLayout(); 91 parent.onMeasureChild(child, parentWidthMeasureSpec, 101 protected void layoutChild(final CoordinatorLayout parent, final View child, argument 103 final List<View> dependencies = parent.getDependencies(child); [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | LinearLayoutCompat.java | 43 * You can also specify gravity, which specifies the alignment of all the child elements by 102 * use the child at this index as the baseline. 110 * The additional offset to the child's baseline. 295 final View child = getVirtualChildAt(i); 297 if (child != null && child.getVisibility() != GONE) { 299 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 300 final int top = child.getTop() - lp.topMargin - mDividerHeight; 307 final View child = getVirtualChildAt(count - 1); 309 if (child 1343 getChildrenSkipCount(View child, int index) argument 1371 measureChildBeforeLayout(View child, int childIndex, int widthMeasureSpec, int totalWidth, int heightMeasureSpec, int totalHeight) argument 1385 getLocationOffset(View child) argument 1397 getNextLocationOffset(View child) argument 1641 setChildFrame(View child, int left, int top, int width, int height) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
H A D | NotificationMessagingTemplateViewWrapper.java | 53 View child = messagingContainer.getChildAt(i); 55 if (child.getVisibility() == View.GONE 56 && child instanceof TextView 57 && !TextUtils.isEmpty(((TextView) child).getText())) { 58 mHistoricMessages.add(child); 61 // Only consider the first visible child - transforming to a position other than the 63 if (child.getId() == messagingContainer.getContractedChildId()) { 64 mContractedMessage = child; 65 } else if (child.getVisibility() == View.VISIBLE) {
|