/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/ |
D | ReverseLinearLayout.java | 51 public void addView(View child) { in addView() argument 52 reverseParams(child.getLayoutParams(), child, mIsLayoutReverse); in addView() local 54 super.addView(child, 0); in addView() 56 super.addView(child); in addView() 61 public void addView(View child, ViewGroup.LayoutParams params) { in addView() argument 62 reverseParams(params, child, mIsLayoutReverse); in addView() 64 super.addView(child, 0, params); in addView() 66 super.addView(child, params); in addView() 98 final View child = childList.get(i); in updateOrder() local 99 super.addView(child); in updateOrder() [all …]
|
/frameworks/base/core/java/android/inputmethodservice/navigationbar/ |
D | ReverseLinearLayout.java | 53 public void addView(View child) { in addView() argument 54 reverseParams(child.getLayoutParams(), child, mIsLayoutReverse); in addView() local 56 super.addView(child, 0); in addView() 58 super.addView(child); in addView() 63 public void addView(View child, ViewGroup.LayoutParams params) { in addView() argument 64 reverseParams(params, child, mIsLayoutReverse); in addView() 66 super.addView(child, 0, params); in addView() 68 super.addView(child, params); in addView() 100 final View child = childList.get(i); in updateOrder() local 101 super.addView(child); in updateOrder() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | ViewState.java | 376 public void animateTo(View child, AnimationProperties animationProperties) { in animateTo() argument 377 boolean wasVisible = child.getVisibility() == View.VISIBLE; in animateTo() 379 if (!wasVisible && (alpha != 0 || child.getAlpha() != 0) in animateTo() 381 child.setVisibility(View.VISIBLE); in animateTo() 383 float childAlpha = child.getAlpha(); in animateTo() 385 if (child instanceof ExpandableView) { in animateTo() 387 alphaChanging &= !((ExpandableView) child).willBeGone(); in animateTo() 391 if (child.getTranslationX() != this.mXTranslation) { in animateTo() 392 startXTranslationAnimation(child, animationProperties); in animateTo() 394 abortAnimation(child, TAG_ANIMATOR_TRANSLATION_X); in animateTo() [all …]
|
D | ExpandableViewState.java | 185 public void animateTo(View child, AnimationProperties properties) { in animateTo() argument 186 super.animateTo(child, properties); in animateTo() 187 if (!(child instanceof ExpandableView)) { in animateTo() 190 ExpandableView expandableView = (ExpandableView) child; in animateTo() 197 abortAnimation(child, TAG_ANIMATOR_HEIGHT); in animateTo() 204 abortAnimation(child, TAG_ANIMATOR_TOP_INSET); in animateTo() 211 abortAnimation(child, TAG_ANIMATOR_BOTTOM_INSET); in animateTo() 223 if (properties.wasAdded(child) && !hidden) { in animateTo() 238 private void startHeightAnimation(final ExpandableView child, AnimationProperties properties) { in startHeightAnimation() argument 239 Integer previousStartValue = getChildTag(child, TAG_START_HEIGHT); in startHeightAnimation() [all …]
|
/frameworks/base/libs/hwui/tests/unit/ |
D | RenderNodeTests.cpp | 42 auto child = TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { in TEST() local 46 [&child](RenderProperties& props, Canvas& canvas) { in TEST() 47 canvas.drawRenderNode(child.get()); in TEST() 52 EXPECT_TRUE(child->hasParents()) << "Child node has no parent"; in TEST() 59 EXPECT_TRUE(child->hasParents()) << "Child should still have a parent"; in TEST() 64 EXPECT_FALSE(child->hasParents()) << "Child should be removed"; in TEST() 69 auto child = TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { in TEST() local 73 [&child](RenderProperties& props, Canvas& canvas) { in TEST() 74 canvas.drawRenderNode(child.get()); in TEST() 77 EXPECT_TRUE(child->isValid()); in TEST() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/animation/ |
D | TransitionLayout.kt | 104 val child = getChildAt(i) in onFinishInflate() constant 105 if (child.id == View.NO_ID) { in onFinishInflate() 106 child.id = i in onFinishInflate() 108 if (child.visibility == GONE) { in onFinishInflate() 109 originalGoneChildrenSet.add(child.id) in onFinishInflate() 111 originalViewAlphas[child.id] = child.alpha in onFinishInflate() 131 val child = getChildAt(i) in applyCurrentState() constant 132 val widgetState = currentState.widgetStates.get(child.id) ?: continue in applyCurrentState() 140 if (child is TextView && widgetState.width < widgetState.measureWidth) { in applyCurrentState() 141 if (child.layout.getParagraphDirection(0) == Layout.DIR_RIGHT_TO_LEFT) { in applyCurrentState() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | LinearLayout.java | 438 final View child = getVirtualChildAt(i); in drawDividersVertical() local 439 if (child != null && child.getVisibility() != GONE) { in drawDividersVertical() 441 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersVertical() 442 final int top = child.getTop() - lp.topMargin - mDividerHeight; in drawDividersVertical() 449 final View child = getLastNonGoneChild(); in drawDividersVertical() local 451 if (child == null) { in drawDividersVertical() 454 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersVertical() 455 bottom = child.getBottom() + lp.bottomMargin; in drawDividersVertical() 467 final View child = getVirtualChildAt(i); in getLastNonGoneChild() local 468 if (child != null && child.getVisibility() != GONE) { in getLastNonGoneChild() [all …]
|
D | TableRow.java | 102 final View child = getVirtualChildAt(columnIndex); in setColumnCollapsed() local 103 if (child != null) { in setColumnCollapsed() 104 child.setVisibility(collapsed ? GONE : VISIBLE); in setColumnCollapsed() 163 final View child = getChildAt(i); in mapIndexAndColumns() local 164 final LayoutParams layoutParams = (LayoutParams) child.getLayoutParams(); in mapIndexAndColumns() 191 void measureChildBeforeLayout(View child, int childIndex, in measureChildBeforeLayout() argument 195 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in measureChildBeforeLayout() 223 child.measure(childWidthMeasureSpec, childHeightMeasureSpec); in measureChildBeforeLayout() 226 final int childWidth = child.getMeasuredWidth(); in measureChildBeforeLayout() 247 super.measureChildBeforeLayout(child, childIndex, widthMeasureSpec, in measureChildBeforeLayout() [all …]
|
D | DayPickerViewPager.java | 68 final View child = getChildAt(i); in onMeasure() local 69 if (child.getVisibility() != GONE) { in onMeasure() 70 measureChild(child, widthMeasureSpec, heightMeasureSpec); in onMeasure() 71 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasure() 72 maxWidth = Math.max(maxWidth, child.getMeasuredWidth()); in onMeasure() 73 maxHeight = Math.max(maxHeight, child.getMeasuredHeight()); in onMeasure() 74 childState = combineMeasuredStates(childState, child.getMeasuredState()); in onMeasure() 78 mMatchParentChildren.add(child); in onMeasure() 106 final View child = mMatchParentChildren.get(i); in onMeasure() local 108 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasure() [all …]
|
/frameworks/base/core/java/android/view/ |
D | ViewGroup.java | 847 public void requestChildFocus(View child, View focused) { in requestChildFocus() argument 859 if (mFocused != child) { in requestChildFocus() 864 mFocused = child; in requestChildFocus() 871 void setDefaultFocus(View child) { in setDefaultFocus() argument 877 mDefaultFocus = child; in setDefaultFocus() 890 void clearDefaultFocus(View child) { in clearDefaultFocus() argument 892 if (mDefaultFocus != child && mDefaultFocus != null in clearDefaultFocus() 927 void clearFocusedInCluster(View child) { in clearFocusedInCluster() argument 928 if (mFocusedInCluster != child) { in clearFocusedInCluster() 1053 View child = getChildAt(i); in dispatchActivityResult() local [all …]
|
D | ViewParent.java | 59 public void requestTransparentRegion(View child); in requestTransparentRegion() argument 75 default void onDescendantInvalidated(@NonNull View child, @NonNull View target) { in onDescendantInvalidated() argument 78 getParent().onDescendantInvalidated(child, target); in onDescendantInvalidated() 91 public void invalidateChild(View child, Rect r); in invalidateChild() argument 134 public void requestChildFocus(View child, View focused); in requestChildFocus() argument 142 public void recomputeViewAttributes(View child); in recomputeViewAttributes() argument 149 public void clearChildFocus(View child); in clearChildFocus() argument 171 public boolean getChildVisibleRect(View child, Rect r, android.graphics.Point offset); in getChildVisibleRect() argument 205 public void bringChildToFront(View child); in bringChildToFront() argument 304 public void childDrawableStateChanged(@NonNull View child); in childDrawableStateChanged() argument [all …]
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/ |
D | MockView.java | 71 public void addView(View child) { in addView() argument 72 if (child == mView) { in addView() 73 super.addView(child); in addView() 78 public void addView(View child, int index) { in addView() argument 79 if (child == mView) { in addView() 80 super.addView(child, index); in addView() 85 public void addView(View child, int width, int height) { in addView() argument 86 if (child == mView) { in addView() 87 super.addView(child, width, height); in addView() 92 public void addView(View child, ViewGroup.LayoutParams params) { in addView() argument [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusIconContainer.java | 126 View child = getChildAt(i); in onLayout() local 127 int width = child.getMeasuredWidth(); in onLayout() 128 int height = child.getMeasuredHeight(); in onLayout() 130 child.layout(0, top, width, top + height); in onLayout() 181 View child = mMeasureViews.get(visibleCount - i - 1); in onMeasure() local 182 measureChild(child, childWidthSpec, heightMeasureSpec); in onMeasure() 186 totalWidth += getViewTotalMeasuredWidth(child) + spacing; in onMeasure() 193 totalWidth += getViewTotalMeasuredWidth(child) + spacing; in onMeasure() 206 for (View child : measuredChildren) { in getMeasuredHeight() 207 highest = Math.max(child.getMeasuredHeight(), highest); in getMeasuredHeight() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ConfigurationContainerTests.java | 103 final TestConfigurationContainer child = root.addChild(); in testConfigurationChangeOnAddRemove() local 106 child.onRequestedOverrideConfigurationChanged(childOverrideConfig); in testConfigurationChangeOnAddRemove() 111 root.removeChild(child); in testConfigurationChangeOnAddRemove() 112 assertEquals(childOverrideConfig, child.getRequestedOverrideConfiguration()); in testConfigurationChangeOnAddRemove() 113 assertEquals(mergedOverrideConfig, child.getMergedOverrideConfiguration()); in testConfigurationChangeOnAddRemove() 114 assertEquals(mergedOverrideConfig, child.getConfiguration()); in testConfigurationChangeOnAddRemove() 130 root2.addChild(child); in testConfigurationChangeOnAddRemove() 131 assertEquals(childOverrideConfig, child.getRequestedOverrideConfiguration()); in testConfigurationChangeOnAddRemove() 132 assertEquals(mergedOverrideConfig, child.getMergedOverrideConfiguration()); in testConfigurationChangeOnAddRemove() 133 assertEquals(mergedOverrideConfig, child.getConfiguration()); in testConfigurationChangeOnAddRemove() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | MessagingLinearLayout.java | 94 final View child = getChildAt(i); in onMeasure() local 95 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasure() 99 child.requestLayout(); in onMeasure() 101 if (child instanceof MessagingChild) { in onMeasure() 102 MessagingChild messagingChild = (MessagingChild) child; in onMeasure() 122 final View child = getChildAt(i); in onMeasure() local 127 if (child instanceof MessagingChild) { in onMeasure() 136 messagingChild = (MessagingChild) child; in onMeasure() 141 measureChildWithMargins(child, widthMeasureSpec, 0, heightMeasureSpec, totalHeight in onMeasure() 144 final int childHeight = child.getMeasuredHeight(); in onMeasure() [all …]
|
D | WatchListDecorLayout.java | 77 View child = getChildAt(i); in onAttachedToWindow() local 78 if (child instanceof ListView) { in onAttachedToWindow() 82 mListView = (ListView) child; in onAttachedToWindow() 88 int gravity = (((LayoutParams) child.getLayoutParams()).gravity in onAttachedToWindow() 91 mTopPanel = child; in onAttachedToWindow() 93 mBottomPanel = child; in onAttachedToWindow() 112 private void applyMeasureToChild(View child, int widthMeasureSpec, int heightMeasureSpec) { in applyMeasureToChild() argument 113 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams(); in applyMeasureToChild() 143 child.measure(childWidthMeasureSpec, childHeightMeasureSpec); in applyMeasureToChild() 146 private int measureAndGetHeight(View child, int widthMeasureSpec, int heightMeasureSpec) { in measureAndGetHeight() argument [all …]
|
D | AlertDialogLayout.java | 84 final View child = getChildAt(i); in tryOnMeasure() local 85 if (child.getVisibility() == View.GONE) { in tryOnMeasure() 89 final int id = child.getId(); in tryOnMeasure() 92 topPanel = child; in tryOnMeasure() 95 buttonPanel = child; in tryOnMeasure() 103 middlePanel = child; in tryOnMeasure() 198 final View child = getChildAt(i); in tryOnMeasure() local 199 if (child.getVisibility() != View.GONE) { in tryOnMeasure() 200 maxWidth = Math.max(maxWidth, child.getMeasuredWidth()); in tryOnMeasure() 231 final View child = getChildAt(i); in forceUniformWidth() local [all …]
|
/frameworks/base/core/java/android/animation/ |
D | LayoutTransition.java | 775 final View child = parent.getChildAt(i); in runChangeTransition() local 778 if (child != newView) { in runChangeTransition() 779 setupChangeAnimation(parent, changeReason, baseAnimator, duration, child); in runChangeTransition() 831 Animator baseAnimator, final long duration, final View child) { in setupChangeAnimation() argument 837 if (layoutChangeListenerMap.get(child) != null) { in setupChangeAnimation() 845 if (child.getWidth() == 0 && child.getHeight() == 0) { in setupChangeAnimation() 853 anim.setTarget(child); in setupChangeAnimation() 860 Animator currentAnimation = pendingAnimations.get(child); in setupChangeAnimation() 863 pendingAnimations.remove(child); in setupChangeAnimation() 866 pendingAnimations.put(child, anim); in setupChangeAnimation() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | UdfpsDialogMeasureAdapter.java | 120 final View child = mView.getChildAt(i); in onMeasureInternalPortrait() local 121 if (child.getId() == R.id.biometric_icon_frame) { in onMeasureInternalPortrait() 122 final FrameLayout iconFrame = (FrameLayout) child; in onMeasureInternalPortrait() 127 child.getLayoutParams().width, MeasureSpec.EXACTLY), in onMeasureInternalPortrait() 134 } else if (child.getId() == R.id.space_above_icon in onMeasureInternalPortrait() 135 || child.getId() == R.id.space_above_content in onMeasureInternalPortrait() 136 || child.getId() == R.id.button_bar) { in onMeasureInternalPortrait() 137 child.measure( in onMeasureInternalPortrait() 140 child.getLayoutParams().height, MeasureSpec.EXACTLY)); in onMeasureInternalPortrait() 141 } else if (child.getId() == R.id.space_below_icon) { in onMeasureInternalPortrait() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/ |
D | DomainVerificationPersistence.java | 146 SettingsXml.ChildSection child = SettingsXml.parser(parentParser).children(); in readFromXml() local 147 while (child.moveToNext()) { in readFromXml() 148 switch (child.getName()) { in readFromXml() 150 readPackageStates(child, active); in readFromXml() 153 readPackageStates(child, restored); in readFromXml() 163 SettingsXml.ChildSection child = section.children(); in readPackageStates() local 164 while (child.moveToNext(TAG_PACKAGE_STATE)) { in readPackageStates() 165 DomainVerificationPkgState pkgState = createPkgStateFromXml(child); in readPackageStates() 193 SettingsXml.ChildSection child = section.children(); in createPkgStateFromXml() local 194 while (child.moveToNext()) { in createPkgStateFromXml() [all …]
|
/frameworks/base/tools/aapt2/ |
D | DominatorTree.cpp | 54 for (auto& child : children_) { in AddChild() local 55 if (new_child->Dominates(child.get())) { in AddChild() 56 child->parent_ = new_child.get(); in AddChild() 57 new_child->children_.push_back(std::move(child)); in AddChild() 58 child = {}; in AddChild() 66 [](const std::unique_ptr<Node>& child) -> bool { in AddChild() argument 67 return child == nullptr; in AddChild() 72 for (auto& child : children_) { in AddChild() local 73 if (child->Dominates(new_child.get())) { in AddChild() 74 child->AddChild(std::move(new_child)); in AddChild()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | MessagingLayoutTransformState.java | 156 View child = ownMessages.getChildAt(j); in appear() local 157 if (isGone(child)) { in appear() 160 appear(child, transformationAmount); in appear() 161 setClippingDeactivated(child, true); in appear() 189 View child = ownMessages.getChildAt(j); in disappear() local 190 if (isGone(child)) { in disappear() 193 disappear(child, transformationAmount); in disappear() 194 setClippingDeactivated(child, true); in disappear() 203 private void appear(View child, float transformationAmount) { in appear() argument 204 if (child == null || child.getVisibility() == View.GONE) { in appear() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/ |
D | BiometricPromptLayout.java | 101 final View child = getChildAt(i); in onMeasureInternal() local 103 if (child.getId() == R.id.space_above_icon in onMeasureInternal() 104 || child.getId() == R.id.space_above_content in onMeasureInternal() 105 || child.getId() == R.id.space_below_icon in onMeasureInternal() 106 || child.getId() == R.id.button_bar) { in onMeasureInternal() 107 child.measure( in onMeasureInternal() 109 MeasureSpec.makeMeasureSpec(child.getLayoutParams().height, in onMeasureInternal() 111 } else if (child.getId() == R.id.biometric_icon_frame) { in onMeasureInternal() 113 child.measure( in onMeasureInternal() 118 } else if (child.getId() == R.id.logo) { in onMeasureInternal() [all …]
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | AlertDialogLayout.java | 83 final View child = getChildAt(i); in tryOnMeasure() local 84 if (child.getVisibility() == View.GONE) { in tryOnMeasure() 88 final int id = child.getId(); in tryOnMeasure() 91 topPanel = child; in tryOnMeasure() 94 buttonPanel = child; in tryOnMeasure() 102 middlePanel = child; in tryOnMeasure() 197 final View child = getChildAt(i); in tryOnMeasure() local 198 if (child.getVisibility() != View.GONE) { in tryOnMeasure() 199 maxWidth = Math.max(maxWidth, child.getMeasuredWidth()); in tryOnMeasure() 230 final View child = getChildAt(i); in forceUniformWidth() local [all …]
|
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/ |
D | AsyncStructure.java | 37 final ViewStructure child = structure.asyncNewChild(0); in onProvideVirtualStructure() local 48 child.setClassName(AsyncStructure.class.getName()); in onProvideVirtualStructure() 49 child.setVisibility(View.VISIBLE); in onProvideVirtualStructure() 50 child.setDimens(width / 4, height / 4, 0, 0, width / 2, height / 2); in onProvideVirtualStructure() 51 child.setEnabled(true); in onProvideVirtualStructure() 52 child.setContentDescription("This is some async content"); in onProvideVirtualStructure() 53 child.setText("We could have lots and lots of async text!"); in onProvideVirtualStructure() 54 child.asyncCommit(); in onProvideVirtualStructure()
|