Home
last modified time | relevance | path

Searched refs:RelativeLayout (Results 1 – 25 of 38) sorted by relevance

12

/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DSurfaceViewAlphaActivity.java29 import android.widget.RelativeLayout;
65 RelativeLayout overlapLayout = new RelativeLayout(this); in overlapViews()
67 RelativeLayout.LayoutParams leftViewLayoutParams = new RelativeLayout.LayoutParams( in overlapViews()
69 leftViewLayoutParams.addRule(RelativeLayout.ALIGN_PARENT_LEFT); in overlapViews()
75 RelativeLayout.LayoutParams sVLayoutParams = new RelativeLayout.LayoutParams( in overlapViews()
77 sVLayoutParams.addRule(RelativeLayout.CENTER_IN_PARENT); in overlapViews()
80 RelativeLayout.LayoutParams rightViewLayoutParams = new RelativeLayout.LayoutParams( in overlapViews()
82 rightViewLayoutParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT); in overlapViews()
/aosp14/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
H A DHitRectBug.java29 import android.widget.RelativeLayout;
40 public static class TestDrawingView extends RelativeLayout
73 RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(128, 128); in TestDrawingView()
74 params.addRule(RelativeLayout.CENTER_IN_PARENT); in TestDrawingView()
H A DInstanceTargets.java26 import static android.widget.RelativeLayout.ALIGN_PARENT_LEFT;
27 import static android.widget.RelativeLayout.ALIGN_PARENT_RIGHT;
28 import static android.widget.RelativeLayout.LayoutParams;
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DTextProgressBar.java28 import android.widget.RelativeLayout;
47 public class TextProgressBar extends RelativeLayout implements OnChronometerTickListener {
150 RelativeLayout.LayoutParams params; in onChronometerTick()
153 params = (RelativeLayout.LayoutParams) mProgressBar.getLayoutParams(); in onChronometerTick()
176 params = (RelativeLayout.LayoutParams) mChronometer.getLayoutParams(); in onChronometerTick()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DAlphaOptimizedRelativeLayout.java21 import android.widget.RelativeLayout;
27 public class AlphaOptimizedRelativeLayout extends RelativeLayout {
H A DKeyguardClockSwitch.java17 import android.widget.RelativeLayout;
39 public class KeyguardClockSwitch extends RelativeLayout {
/aosp14/frameworks/base/core/java/android/widget/
H A DTimePickerClockDelegate.java454 final RelativeLayout.LayoutParams params =
456 if (params.getRule(RelativeLayout.RIGHT_OF) != 0
457 || params.getRule(RelativeLayout.LEFT_OF) != 0) {
468 params.removeRule(RelativeLayout.RIGHT_OF);
471 params.removeRule(RelativeLayout.LEFT_OF);
483 } else if (params.getRule(RelativeLayout.BELOW) != 0
484 || params.getRule(RelativeLayout.ABOVE) != 0) {
494 params.removeRule(RelativeLayout.BELOW);
495 params.addRule(RelativeLayout.ABOVE, otherViewId);
498 params.removeRule(RelativeLayout.ABOVE);
[all …]
H A DRelativeLayout.java90 public class RelativeLayout extends ViewGroup { class
242 public RelativeLayout(Context context) { in RelativeLayout() method in RelativeLayout
246 public RelativeLayout(Context context, AttributeSet attrs) { in RelativeLayout() method in RelativeLayout
263 attrs, R.styleable.RelativeLayout, defStyleAttr, defStyleRes); in initFromAttributes()
264 saveAttributeDataForStyleable(context, R.styleable.RelativeLayout, in initFromAttributes()
908 RelativeLayout.LayoutParams anchorParams; in applyHorizontalSizeRules()
978 RelativeLayout.LayoutParams anchorParams; in applyVerticalSizeRules()
1101 RelativeLayout.LayoutParams st = in onLayout()
1110 return new RelativeLayout.LayoutParams(getContext(), attrs); in generateLayoutParams()
1126 return p instanceof RelativeLayout.LayoutParams; in checkLayoutParams()
[all …]
H A DTwoLineListItem.java43 public class TwoLineListItem extends RelativeLayout {
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DKeyguardStatusBarView.java40 import android.widget.RelativeLayout;
65 public class KeyguardStatusBarView extends RelativeLayout {
323 RelativeLayout.LayoutParams lp = (LayoutParams) mCarrierLabel.getLayoutParams(); in updateLayoutParamsNoCutout()
324 lp.addRule(RelativeLayout.START_OF, R.id.status_icon_area); in updateLayoutParamsNoCutout()
327 lp.removeRule(RelativeLayout.RIGHT_OF); in updateLayoutParamsNoCutout()
348 RelativeLayout.LayoutParams lp = (LayoutParams) mCutoutSpace.getLayoutParams(); in updateLayoutParamsForCutout()
353 lp.addRule(RelativeLayout.CENTER_IN_PARENT); in updateLayoutParamsForCutout()
356 lp.addRule(RelativeLayout.START_OF, R.id.cutout_space_view); in updateLayoutParamsForCutout()
359 lp.addRule(RelativeLayout.RIGHT_OF, R.id.cutout_space_view); in updateLayoutParamsForCutout()
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/
H A DRemoteViewsTest.java649 RelativeLayout rootParent = new RelativeLayout(themedContext); in nestedViews_themesPropagateCorrectly()
660 RelativeLayout root = (RelativeLayout) top.apply(themedContext, rootParent); in nestedViews_themesPropagateCorrectly()
662 RelativeLayout.LayoutParams rootParams = in nestedViews_themesPropagateCorrectly()
663 (RelativeLayout.LayoutParams) root.getLayoutParams(); in nestedViews_themesPropagateCorrectly()
664 assertEquals(RelativeLayout.TRUE, in nestedViews_themesPropagateCorrectly()
670 RelativeLayout inner1View = (RelativeLayout) root.getChildAt(0); in nestedViews_themesPropagateCorrectly()
673 RelativeLayout.LayoutParams inner1Params = in nestedViews_themesPropagateCorrectly()
675 assertEquals(RelativeLayout.TRUE, in nestedViews_themesPropagateCorrectly()
678 RelativeLayout inner2View = (RelativeLayout) inner1View.getChildAt(0); in nestedViews_themesPropagateCorrectly()
680 RelativeLayout.LayoutParams inner2Params = in nestedViews_themesPropagateCorrectly()
[all …]
/aosp14/frameworks/base/tests/GamePerformance/src/android/gameperformance/
H A DGamePerformanceActivity.java25 import android.widget.RelativeLayout;
37 private RelativeLayout mRootLayout;
135 mRootLayout = new RelativeLayout(this); in onCreate()
/aosp14/frameworks/base/packages/SoundPicker/src/com/android/soundpicker/
H A DCheckedListItem.java22 import android.widget.RelativeLayout;
30 public class CheckedListItem extends RelativeLayout implements Checkable {
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DDrawableBgMinSizeTest.java26 import android.widget.RelativeLayout;
46 private RelativeLayout mRelativeLayout;
65 mRelativeLayout = (RelativeLayout) a.findViewById(R.id.relative_layout); in setUp()
H A DDrawableBgMinSize.java27 import android.widget.RelativeLayout;
47 private RelativeLayout mRelativeLayout;
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DKeyboardShortcutAppItemLayout.java23 import android.widget.RelativeLayout;
32 public class KeyboardShortcutAppItemLayout extends RelativeLayout {
H A DKeyboardShortcuts.java62 import android.widget.RelativeLayout;
677 RelativeLayout.LayoutParams lp = in populateKeyboardShortcuts()
678 (RelativeLayout.LayoutParams) shortcutKeyword.getLayoutParams(); in populateKeyboardShortcuts()
679 lp.removeRule(RelativeLayout.ALIGN_PARENT_START); in populateKeyboardShortcuts()
/aosp14/frameworks/base/core/java/com/android/internal/app/
H A DBilingualSuggestedLocaleAdapter.java24 import android.widget.RelativeLayout;
135 RelativeLayout background = (RelativeLayout) itemView; in setItemState()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
H A DTvWindowMenuActionButton.java28 import android.widget.RelativeLayout;
35 public class TvWindowMenuActionButton extends RelativeLayout {
/aosp14/frameworks/base/core/java/android/inputmethodservice/navigationbar/
H A DReverseLinearLayout.java26 import android.widget.RelativeLayout;
129 public static class ReverseRelativeLayout extends RelativeLayout implements Reversible {
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
H A DReverseLinearLayout.java24 import android.widget.RelativeLayout;
127 public static class ReverseRelativeLayout extends RelativeLayout implements Reversable {
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/
H A DViewHierarchyAnimatorTest.kt9 import android.widget.RelativeLayout
1503 val firstChild = RelativeLayout(mContext)
1532 firstGrandChild.layoutParams = RelativeLayout.LayoutParams(40 /* width */, 40 /* height */)
1533 (firstGrandChild.layoutParams as RelativeLayout.LayoutParams)
1534 .addRule(RelativeLayout.ALIGN_PARENT_START)
1535 (firstGrandChild.layoutParams as RelativeLayout.LayoutParams)
1536 .addRule(RelativeLayout.ALIGN_PARENT_TOP)
1538 (secondGrandChild.layoutParams as RelativeLayout.LayoutParams)
1539 .addRule(RelativeLayout.ALIGN_PARENT_END)
1540 (secondGrandChild.layoutParams as RelativeLayout.LayoutParams)
[all …]
/aosp14/frameworks/base/core/java/android/view/
H A DNotificationHeaderView.java30 import android.widget.RelativeLayout;
46 public class NotificationHeaderView extends RelativeLayout {
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
H A DKeyguardClockSwitchControllerBaseTest.java35 import android.widget.RelativeLayout;
145 mock(RelativeLayout.LayoutParams.class)); in setup()
/aosp14/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
H A DSurfaceCompositionMeasuringActivity.java41 import android.widget.RelativeLayout;
259 RelativeLayout rootLayout = new RelativeLayout(this); in onCreate()

12