Home
last modified time | relevance | path

Searched refs:MATCH_PARENT (Results 1 – 25 of 330) sorted by relevance

12345678910>>...14

/aosp12/frameworks/base/core/tests/coretests/src/android/view/
H A DCreateViewTest.java19 import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
49 new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout2()
57 vert.addView(one, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3()
60 vert.addView(two, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3()
63 vert.addView(three, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3()
66 vert.addView(four, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3()
69 vert.addView(five, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3()
72 vert.addView(six, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3()
96 vert.addView(one, new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT, 0)); in testLayout6()
100 vert.addView(two, new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT, 0)); in testLayout6()
[all …]
H A DBigCache.java39 ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)); in onCreate()
60 ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
/aosp12/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DMultiLayersActivity.java39 LinearLayout.LayoutParams.MATCH_PARENT, 0, 1.0f)); in onCreate()
44 LinearLayout.LayoutParams.MATCH_PARENT, 0, 1.0f)); in onCreate()
47 0, LinearLayout.LayoutParams.MATCH_PARENT, 1.0f)); in onCreate()
49 0, LinearLayout.LayoutParams.MATCH_PARENT, 1.0f)); in onCreate()
52 0, LinearLayout.LayoutParams.MATCH_PARENT, 1.0f)); in onCreate()
54 0, LinearLayout.LayoutParams.MATCH_PARENT, 1.0f)); in onCreate()
H A DVideoViewCaptureActivity.java79 layout.addView(button, LinearLayout.LayoutParams.MATCH_PARENT, in onCreate()
81 layout.addView(mVideoView, LinearLayout.LayoutParams.MATCH_PARENT, in onCreate()
82 LinearLayout.LayoutParams.MATCH_PARENT); in onCreate()
85 FrameLayout.LayoutParams.MATCH_PARENT, in onCreate()
86 FrameLayout.LayoutParams.MATCH_PARENT)); in onCreate()
H A DHardwareCanvasSurfaceViewActivity.java78 layout.addView(button, LinearLayout.LayoutParams.MATCH_PARENT, in onCreate()
80 layout.addView(mSurfaceView, LinearLayout.LayoutParams.MATCH_PARENT, in onCreate()
81 LinearLayout.LayoutParams.MATCH_PARENT); in onCreate()
84 FrameLayout.LayoutParams.MATCH_PARENT, in onCreate()
85 FrameLayout.LayoutParams.MATCH_PARENT)); in onCreate()
H A DScrollingStretchSurfaceViewActivity.java50 new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, in onCreate()
51 FrameLayout.LayoutParams.MATCH_PARENT)); in onCreate()
55 new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, in onCreate()
56 FrameLayout.LayoutParams.MATCH_PARENT)); in onCreate()
H A DLooperAcceleration.java57 layout.addView(new IsAcceleratedView(this), LayoutParams.MATCH_PARENT, 60); in makeView()
64 layout.addView(wv, LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); in makeView()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/
H A DDragLayout.java20 import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
100 addView(mDropZoneView1, new LinearLayout.LayoutParams(MATCH_PARENT, in DragLayout()
101 MATCH_PARENT)); in DragLayout()
102 addView(mDropZoneView2, new LinearLayout.LayoutParams(MATCH_PARENT, in DragLayout()
103 MATCH_PARENT)); in DragLayout()
233 dropZoneView1.width = MATCH_PARENT; in updateDropZoneSizes()
234 dropZoneView2.width = MATCH_PARENT; in updateDropZoneSizes()
238 dropZoneView1.width = bounds1 != null ? bounds1.width() + halfDivider : MATCH_PARENT; in updateDropZoneSizes()
239 dropZoneView2.width = bounds2 != null ? bounds2.width() + halfDivider : MATCH_PARENT; in updateDropZoneSizes()
240 dropZoneView1.height = MATCH_PARENT; in updateDropZoneSizes()
[all …]
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/
H A DDialogLaunchAnimatorTest.kt14 import android.view.ViewGroup.LayoutParams.MATCH_PARENT
69 assertEquals(MATCH_PARENT, window.attributes.width)
70 assertEquals(MATCH_PARENT, window.attributes.height)
71 assertEquals(MATCH_PARENT, decorView.layoutParams.width)
72 assertEquals(MATCH_PARENT, decorView.layoutParams.height)
78 assertEquals(MATCH_PARENT, transparentBackground.layoutParams.width)
79 assertEquals(MATCH_PARENT, transparentBackground.layoutParams.height)
/aosp12/frameworks/base/core/java/android/widget/
H A DListPopupWindow.java149 public static final int MATCH_PARENT = ViewGroup.LayoutParams.MATCH_PARENT; field in ListPopupWindow
561 && ViewGroup.LayoutParams.MATCH_PARENT != height) { in setHeight()
651 if (mDropDownWidth == ViewGroup.LayoutParams.MATCH_PARENT) { in show()
662 if (mDropDownHeight == ViewGroup.LayoutParams.MATCH_PARENT) { in show()
668 ViewGroup.LayoutParams.MATCH_PARENT : 0); in show()
689 if (mDropDownWidth == ViewGroup.LayoutParams.MATCH_PARENT) { in show()
690 widthSpec = ViewGroup.LayoutParams.MATCH_PARENT; in show()
700 if (mDropDownHeight == ViewGroup.LayoutParams.MATCH_PARENT) { in show()
701 heightSpec = ViewGroup.LayoutParams.MATCH_PARENT; in show()
1197 ViewGroup.LayoutParams.MATCH_PARENT, 0, 1.0f in buildDropDown()
[all …]
H A DDayPickerViewPager.java76 if (lp.width == LayoutParams.MATCH_PARENT || in onMeasure()
77 lp.height == LayoutParams.MATCH_PARENT) { in onMeasure()
112 if (lp.width == LayoutParams.MATCH_PARENT) { in onMeasure()
122 if (lp.height == LayoutParams.MATCH_PARENT) { in onMeasure()
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DGoneParentFocusedChild.java61 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
62 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
68 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
69 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
H A DHorizontalFocusSearch.java64 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
65 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
98 ViewGroup.LayoutParams.MATCH_PARENT)); in makeTall()
121 ViewGroup.LayoutParams.MATCH_PARENT)); in addShort()
H A DVerticalFocusSearch.java71 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
72 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
105 ViewGroup.LayoutParams.MATCH_PARENT, in makeWide()
136 ViewGroup.LayoutParams.MATCH_PARENT, in addSkinny()
H A DAdjacentVerticalRectLists.java68 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
69 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
72 ViewGroup.LayoutParams.MATCH_PARENT, 1); in onCreate()
/aosp12/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/
H A DCutoutAvoidingToolbar.kt22 import android.view.ViewGroup.LayoutParams.MATCH_PARENT
73 it.layoutParams = LayoutParams(cutoutLeft, MATCH_PARENT)
76 it.layoutParams = LayoutParams(cutoutCenter, MATCH_PARENT)
79 it.layoutParams = LayoutParams(cutoutRight, MATCH_PARENT)
/aosp12/frameworks/base/core/tests/coretests/src/android/util/
H A DListScenario.java319 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
320 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
380 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
386 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
387 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
389 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
399 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
400 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
402 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
H A DListItemFactory.java53 ViewGroup.LayoutParams.MATCH_PARENT, in twoButtonsSeparatedByFiller()
64 ViewGroup.LayoutParams.MATCH_PARENT, in twoButtonsSeparatedByFiller()
160 ViewGroup.LayoutParams.MATCH_PARENT, in button()
200 ViewGroup.LayoutParams.MATCH_PARENT, in text()
242 ViewGroup.LayoutParams.MATCH_PARENT, in doubleText()
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DDisplayPolicyTests.java24 import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
74 attrs.width = MATCH_PARENT; in createOpaqueFullscreen()
75 attrs.height = MATCH_PARENT; in createOpaqueFullscreen()
98 attrs.width = MATCH_PARENT; in createInputMethodWindow()
99 attrs.height = MATCH_PARENT; in createInputMethodWindow()
207 attrs.height = attrs.width = WindowManager.LayoutParams.MATCH_PARENT; in testComputeTopFullscreenOpaqueWindow()
229 attrs.width = MATCH_PARENT; in createApplicationWindow()
230 attrs.height = MATCH_PARENT; in createApplicationWindow()
240 attrs.width = MATCH_PARENT; in createBaseApplicationWindow()
241 attrs.height = MATCH_PARENT; in createBaseApplicationWindow()
/aosp12/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
H A DDialogLaunchAnimator.kt33 import android.view.ViewGroup.LayoutParams.MATCH_PARENT
250 window.attributes.width == MATCH_PARENT && window.attributes.height == MATCH_PARENT
286 FrameLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT)
326 window.setLayout(MATCH_PARENT, MATCH_PARENT)
329 if (window.attributes.width != MATCH_PARENT ||
330 window.attributes.height != MATCH_PARENT) {
337 window.setLayout(MATCH_PARENT, MATCH_PARENT)
/aosp12/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
H A DEffectsTest.java184 LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)); in set()
188 LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)); in set()
192 LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)); in set()
196 LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)); in set()
200 LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)); in set()
204 LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)); in set()
/aosp12/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DLayout.java54 import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
204 overlay.setLayoutParams(new FrameLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT)); in createSysUiOverlay()
211 RelativeLayout.LayoutParams params = createSysUiLayoutParams(MATCH_PARENT, MATCH_PARENT); in createContentFrame()
270 RelativeLayout.LayoutParams params = createSysUiLayoutParams(MATCH_PARENT, mBuilder in createStatusBar()
287 int heightRule = appCompatActionBar || !mBuilder.hasAppCompatActionBar() ? MATCH_PARENT : in createActionBar()
289 … RelativeLayout.LayoutParams layoutParams = createSysUiLayoutParams(MATCH_PARENT, heightRule); in createActionBar()
327 …RelativeLayout.LayoutParams params = createSysUiLayoutParams(MATCH_PARENT, mBuilder.mTitleBarSize); in createTitleBar()
356 int w = isVertical ? size : MATCH_PARENT; in createNavBar()
357 int h = isVertical ? MATCH_PARENT : size; in createNavBar()
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListItemISVAndButton.java50 ViewGroup.LayoutParams.MATCH_PARENT, in createView()
56 ViewGroup.LayoutParams.MATCH_PARENT, in createView()
66 ViewGroup.LayoutParams.MATCH_PARENT, in createView()
/aosp12/frameworks/base/core/java/com/android/internal/widget/
H A DDialogViewAnimator.java58 final boolean matchWidth = lp.width == LayoutParams.MATCH_PARENT; in onMeasure()
59 final boolean matchHeight = lp.height == LayoutParams.MATCH_PARENT; in onMeasure()
113 if (lp.width == LayoutParams.MATCH_PARENT) { in onMeasure()
125 if (lp.height == LayoutParams.MATCH_PARENT) { in onMeasure()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
H A DRecyclerViewActivity.java19 import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
46 recyclerView.setLayoutParams(new LayoutParams(MATCH_PARENT, MATCH_PARENT)); in onCreate()

12345678910>>...14