/cts/tests/framework/base/windowmanager/src/android/server/wm/other/ |
D | WindowManager_LayoutParamsTest.java | 60 private WindowManager.LayoutParams mLayoutParams; 64 new WindowManager.LayoutParams(); in testConstructor() 66 new WindowManager.LayoutParams( in testConstructor() 67 WindowManager.LayoutParams.TYPE_APPLICATION); in testConstructor() 69 new WindowManager.LayoutParams( in testConstructor() 70 WindowManager.LayoutParams.TYPE_APPLICATION, in testConstructor() 71 WindowManager.LayoutParams.FLAG_DITHER); in testConstructor() 73 new WindowManager.LayoutParams( in testConstructor() 74 WindowManager.LayoutParams.TYPE_APPLICATION, in testConstructor() 75 WindowManager.LayoutParams.FLAG_DITHER, PixelFormat.JPEG); in testConstructor() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | FrameLayout_LayoutParamsTest.java | 28 import android.widget.FrameLayout.LayoutParams; 64 new LayoutParams(mContext, attrs); in testConstructor() 65 new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); in testConstructor() 66 new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, 0); in testConstructor() 67 new LayoutParams(new ViewGroup.LayoutParams(mContext, attrs)); in testConstructor() 68 new LayoutParams(new LayoutParams(mContext, attrs)); in testConstructor() 69 new LayoutParams(new MarginLayoutParams(mContext, attrs)); in testConstructor() 71 new LayoutParams(-1, -1); in testConstructor() 72 new LayoutParams(-1, -1, -1); in testConstructor() 77 new LayoutParams(null, null); in testConstructorNullContext() [all …]
|
D | AbsListView_LayoutParamsTest.java | 25 import android.widget.AbsListView.LayoutParams; 57 AbsListView.LayoutParams layoutParams; in testConstructors() 59 layoutParams = new AbsListView.LayoutParams(mContext, mAttributeSet); in testConstructors() 63 layoutParams = new AbsListView.LayoutParams(LayoutParams.MATCH_PARENT, in testConstructors() 64 LayoutParams.MATCH_PARENT); in testConstructors() 65 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructors() 66 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.height); in testConstructors() 68 layoutParams = new AbsListView.LayoutParams(LayoutParams.MATCH_PARENT, in testConstructors() 69 LayoutParams.MATCH_PARENT, 0); in testConstructors() 70 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructors() [all …]
|
D | TableLayout_LayoutParamsTest.java | 56 TableLayout.LayoutParams layoutParams = new TableLayout.LayoutParams(); in testConstructor() 57 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructor() 58 assertEquals(TableLayout.LayoutParams.WRAP_CONTENT, layoutParams.height); in testConstructor() 61 layoutParams = new TableLayout.LayoutParams(mContext, null); in testConstructor() 62 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructor() 63 assertEquals(TableLayout.LayoutParams.WRAP_CONTENT, layoutParams.height); in testConstructor() 66 layoutParams = new TableLayout.LayoutParams(200, 300); in testConstructor() 67 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructor() 71 layoutParams = new TableLayout.LayoutParams(250, 350, 1.2f); in testConstructor() 72 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructor() [all …]
|
D | LinearLayout_LayoutParamsTest.java | 25 import android.view.ViewGroup.LayoutParams; 49 LinearLayout.LayoutParams linearLayoutParams = in testConstructor() 50 new LinearLayout.LayoutParams(context, p); in testConstructor() 51 assertEquals(LayoutParams.MATCH_PARENT, linearLayoutParams.width); in testConstructor() 52 assertEquals(LayoutParams.WRAP_CONTENT, linearLayoutParams.height); in testConstructor() 56 linearLayoutParams = new LinearLayout.LayoutParams(320, 240); in testConstructor() 62 linearLayoutParams = new LinearLayout.LayoutParams(360, 320, 0.4f); in testConstructor() 68 LayoutParams layoutParams = new LayoutParams(200, 480); in testConstructor() 69 linearLayoutParams = new LinearLayout.LayoutParams(layoutParams); in testConstructor() 76 linearLayoutParams = new LinearLayout.LayoutParams(marginLayoutParams); in testConstructor() [all …]
|
D | AbsoluteLayoutTest.java | 31 import android.widget.AbsoluteLayout.LayoutParams; 62 private LayoutParams mAbsoluteLayoutParams; 78 mAbsoluteLayoutParams = new LayoutParams(DEFAULT_WIDTH, DEFAULT_HEIGHT, in setup() 104 ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(1, 2); in testCheckLayoutParams() 112 LayoutParams params = (LayoutParams) mAbsoluteLayout.generateLayoutParams( in testGenerateLayoutParamsFromAttributeSet() 116 assertEquals(LayoutParams.MATCH_PARENT, params.width); in testGenerateLayoutParamsFromAttributeSet() 117 assertEquals(LayoutParams.MATCH_PARENT, params.height); in testGenerateLayoutParamsFromAttributeSet() 125 LayoutParams params = in testGenerateLayoutParamsFromLayoutParams() 126 (LayoutParams) mMyAbsoluteLayout.generateLayoutParams(mAbsoluteLayoutParams); in testGenerateLayoutParamsFromLayoutParams() 136 mMyAbsoluteLayout.generateLayoutParams((LayoutParams) null); in testGenerateLayoutParamsFromNull() [all …]
|
D | RadioGroup_LayoutParamsTest.java | 58 RadioGroup.LayoutParams mLayoutParams = in testConstructor() 59 new RadioGroup.LayoutParams(Integer.MIN_VALUE, Integer.MAX_VALUE); in testConstructor() 64 mLayoutParams = new RadioGroup.LayoutParams(Integer.MAX_VALUE, Integer.MIN_VALUE); in testConstructor() 69 mLayoutParams = new RadioGroup.LayoutParams(Integer.MIN_VALUE, Integer.MAX_VALUE, in testConstructor() 75 mLayoutParams = new RadioGroup.LayoutParams(Integer.MIN_VALUE, Integer.MAX_VALUE, in testConstructor() 81 mLayoutParams = new RadioGroup.LayoutParams(new ViewGroup.LayoutParams(40, 60)); in testConstructor() 86 mLayoutParams = new RadioGroup.LayoutParams(new ViewGroup.MarginLayoutParams(100, 200)); in testConstructor() 101 mLayoutParams = new RadioGroup.LayoutParams(source); in testConstructor() 110 mLayoutParams = new RadioGroup.LayoutParams(mContext, in testConstructor() 119 assertEquals(RadioGroup.LayoutParams.MATCH_PARENT, mLayoutParams.width); in testConstructor() [all …]
|
D | RadioGroupTest.java | 39 import android.widget.RadioGroup.LayoutParams; 124 mRadioGroup.addView(newButton, new RadioGroup.LayoutParams( in testInternalPassThroughHierarchyChangeListener() 125 RadioGroup.LayoutParams.WRAP_CONTENT, RadioGroup.LayoutParams.WRAP_CONTENT)); in testInternalPassThroughHierarchyChangeListener() 137 mRadioGroup.addView(newButton, new RadioGroup.LayoutParams( in testInternalCheckedStateTracker() 138 RadioGroup.LayoutParams.WRAP_CONTENT, RadioGroup.LayoutParams.WRAP_CONTENT)); in testInternalCheckedStateTracker() 312 RadioGroup.LayoutParams layoutParams = in testGenerateLayoutParams() 322 assertEquals(LayoutParams.WRAP_CONTENT, layoutParams.width); in testGenerateLayoutParams() 323 assertEquals(LayoutParams.WRAP_CONTENT, layoutParams.height); in testGenerateLayoutParams() 335 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width); in testGenerateLayoutParams() 336 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.height); in testGenerateLayoutParams() [all …]
|
D | AbsoluteLayout_LayoutParamsTest.java | 26 import android.widget.AbsoluteLayout.LayoutParams; 60 LayoutParams layoutParams; in testConstructor() 62 layoutParams = new AbsoluteLayout.LayoutParams(1, 2, 3, 4); in testConstructor() 68 LayoutParams params = new AbsoluteLayout.LayoutParams(layoutParams); in testConstructor() 74 new AbsoluteLayout.LayoutParams(mContext, getAttributeSet()); in testConstructor() 79 LayoutParams layoutParams = new AbsoluteLayout.LayoutParams(1, 2, 3, 4); in testDebug()
|
D | RelativeLayout_LayoutParamsTest.java | 72 RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(200, 300); in testConstructor() 76 RelativeLayout.LayoutParams tempLayoutParams = layoutParams; in testConstructor() 77 layoutParams = new RelativeLayout.LayoutParams(tempLayoutParams); in testConstructor() 81 ViewGroup.LayoutParams tempViewGroupLayoutParams = new ViewGroup.LayoutParams(300, 400); in testConstructor() 82 layoutParams = new RelativeLayout.LayoutParams(tempViewGroupLayoutParams); in testConstructor() 87 layoutParams = new RelativeLayout.LayoutParams(tempMarginLayoutParams); in testConstructor() 93 layoutParams = new RelativeLayout.LayoutParams(mActivity, p); in testConstructor() 94 assertEquals(ViewGroup.LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructor() 95 assertEquals(ViewGroup.LayoutParams.MATCH_PARENT, layoutParams.height); in testConstructor() 109 layoutParams = (RelativeLayout.LayoutParams) (view1.getLayoutParams()); in testConstructor() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/ |
D | WindowContextPolicyTests.java | 19 import static android.view.WindowManager.LayoutParams.TYPE_ACCESSIBILITY_OVERLAY; 20 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION; 21 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_ATTACHED_DIALOG; 22 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA; 23 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; 24 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_PANEL; 25 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_STARTING; 26 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_SUB_PANEL; 27 import static android.view.WindowManager.LayoutParams.TYPE_BASE_APPLICATION; 28 import static android.view.WindowManager.LayoutParams.TYPE_DRAWN_APPLICATION; [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | BoxInsetLayout.java | 117 LayoutParams lp = (BoxInsetLayout.LayoutParams) child.getLayoutParams(); in onMeasure() 124 if ((lp.boxedEdges & LayoutParams.BOX_LEFT) == 0) { in onMeasure() 127 if ((lp.boxedEdges & LayoutParams.BOX_RIGHT) == 0) { in onMeasure() 130 if ((lp.boxedEdges & LayoutParams.BOX_TOP) == 0) { in onMeasure() 133 if ((lp.boxedEdges & LayoutParams.BOX_BOTTOM) == 0) { in onMeasure() 178 final LayoutParams lp = (BoxInsetLayout.LayoutParams) child.getLayoutParams(); in onMeasure() 190 if (mLastKnownRound && ((lp.boxedEdges & LayoutParams.BOX_LEFT) != 0)) { in onMeasure() 195 if (mLastKnownRound && ((lp.boxedEdges & LayoutParams.BOX_RIGHT) != 0)) { in onMeasure() 200 if (lp.width == LayoutParams.MATCH_PARENT) { in onMeasure() 212 if (mLastKnownRound && ((lp.boxedEdges & LayoutParams.BOX_TOP) != 0)) { in onMeasure() [all …]
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | WindowCreationUtils.java | 49 public static WindowManager.LayoutParams layoutParamsForWindowOnTop( in layoutParamsForWindowOnTop() 52 WindowManager.LayoutParams.MATCH_PARENT, in layoutParamsForWindowOnTop() 53 WindowManager.LayoutParams.WRAP_CONTENT); in layoutParamsForWindowOnTop() 64 public static WindowManager.LayoutParams layoutParamsForWindowOnTop( in layoutParamsForWindowOnTop() 67 final WindowManager.LayoutParams params = in layoutParamsForWindowOnTop() 83 public static WindowManager.LayoutParams layoutParamsForTestWindow( in layoutParamsForTestWindow() 86 WindowManager.LayoutParams.MATCH_PARENT, in layoutParamsForTestWindow() 87 WindowManager.LayoutParams.WRAP_CONTENT); in layoutParamsForTestWindow() 98 public static WindowManager.LayoutParams layoutParamsForTestWindow( in layoutParamsForTestWindow() 100 final WindowManager.LayoutParams params = new WindowManager.LayoutParams(); in layoutParamsForTestWindow() [all …]
|
/cts/tests/tests/sensorprivacy/test-apps/CtsUseMicOrCameraAndOverlayForSensorPrivacy/src/android/sensorprivacy/cts/usemiccamera/overlay/ |
D | OverlayActivity.kt | 7 import android.view.WindowManager.LayoutParams 15 val params = LayoutParams( in onCreate() 16 ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT) in onCreate() 17 params.type = LayoutParams.TYPE_APPLICATION_OVERLAY in onCreate() 18 params.flags = LayoutParams.FLAG_LAYOUT_NO_LIMITS or in onCreate() 19 LayoutParams.FLAG_NOT_TOUCH_MODAL or in onCreate() 20 LayoutParams.FLAG_NOT_TOUCHABLE or in onCreate() 21 LayoutParams.FLAG_KEEP_SCREEN_ON in onCreate()
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | ListItemFactory.java | 51 final LinearLayout.LayoutParams buttonLp = in twoButtonsSeparatedByFiller() 52 new LinearLayout.LayoutParams( in twoButtonsSeparatedByFiller() 53 ViewGroup.LayoutParams.MATCH_PARENT, in twoButtonsSeparatedByFiller() 63 middleFiller.setLayoutParams(new LinearLayout.LayoutParams( in twoButtonsSeparatedByFiller() 64 ViewGroup.LayoutParams.MATCH_PARENT, in twoButtonsSeparatedByFiller() 96 final LinearLayout.LayoutParams lp in horizontalButtonSlots() 97 = new LinearLayout.LayoutParams(0, desiredHeight); in horizontalButtonSlots() 158 final ViewGroup.LayoutParams lp = new AbsListView.LayoutParams( in button() 159 ViewGroup.LayoutParams.MATCH_PARENT, in button() 160 ViewGroup.LayoutParams.WRAP_CONTENT); in button() [all …]
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/ |
D | NotTouchableWindowTestActivity.java | 36 WindowManager.LayoutParams params; in onReceive() 101 private static WindowManager.LayoutParams createDefaultWindowParams() { in createDefaultWindowParams() 102 WindowManager.LayoutParams params = new WindowManager.LayoutParams(); in createDefaultWindowParams() 103 params.width = WindowManager.LayoutParams.MATCH_PARENT; in createDefaultWindowParams() 104 params.height = WindowManager.LayoutParams.MATCH_PARENT; in createDefaultWindowParams() 105 params.flags = WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN in createDefaultWindowParams() 106 | WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL in createDefaultWindowParams() 107 | WindowManager.LayoutParams.FLAG_LAYOUT_INSET_DECOR in createDefaultWindowParams() 108 | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE; in createDefaultWindowParams() 109 params.type = WindowManager.LayoutParams.TYPE_APPLICATION_PANEL; in createDefaultWindowParams()
|
/cts/tests/framework/base/windowmanager/alertwindowapp/src/android/server/wm/alertwindowapp/ |
D | AlertWindowTestActivity.java | 22 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; 23 import static android.view.WindowManager.LayoutParams.TYPE_PHONE; 24 import static android.view.WindowManager.LayoutParams.TYPE_PRIORITY_PHONE; 25 import static android.view.WindowManager.LayoutParams.TYPE_SYSTEM_ALERT; 26 import static android.view.WindowManager.LayoutParams.TYPE_SYSTEM_ERROR; 27 import static android.view.WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY;
|
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/ |
D | TestActivity.java | 21 import static android.view.WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS; 42 FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams( in onCreate() 43 FrameLayout.LayoutParams.MATCH_PARENT, in onCreate() 44 FrameLayout.LayoutParams.MATCH_PARENT); in onCreate() 49 WindowManager.LayoutParams params = getWindow().getAttributes(); in onCreate() 51 params.flags |= WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS; in onCreate()
|
/cts/tests/framework/base/windowmanager/overlayappbase/src/android/server/wm/overlay/ |
D | UntrustedTouchTestService.java | 35 import android.view.WindowManager.LayoutParams; 93 LayoutParams params = newOverlayLayoutParams(name, in showSystemAlertWindow() 94 LayoutParams.TYPE_APPLICATION_OVERLAY); in showSystemAlertWindow() 106 LayoutParams params = newOverlayLayoutParams(name, LayoutParams.TYPE_APPLICATION); in showActivityChildWindow() 135 return displayContext.createWindowContext(LayoutParams.TYPE_APPLICATION_OVERLAY, null); in getContextForSaw() 144 private static LayoutParams newOverlayLayoutParams(String windowName, int type) { in newOverlayLayoutParams() 145 LayoutParams params = new LayoutParams( in newOverlayLayoutParams() 146 LayoutParams.MATCH_PARENT, in newOverlayLayoutParams() 147 LayoutParams.MATCH_PARENT, in newOverlayLayoutParams() 149 LayoutParams.FLAG_NOT_TOUCHABLE | LayoutParams.FLAG_NOT_FOCUSABLE, in newOverlayLayoutParams()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/ |
D | LocationInWindowTests.java | 21 import static android.view.ViewGroup.LayoutParams.MATCH_PARENT; 22 import static android.view.WindowManager.LayoutParams.FLAG_LAYOUT_INSET_DECOR; 23 import static android.view.WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN; 24 import static android.view.WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER; 25 import static android.view.WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES; 43 import android.view.WindowManager.LayoutParams; 73 private LayoutParams mLayoutParams; 77 mLayoutParams = new LayoutParams(MATCH_PARENT, MATCH_PARENT, LayoutParams.TYPE_APPLICATION, in setUp() 78 LayoutParams.FLAG_LAYOUT_IN_SCREEN | LayoutParams.FLAG_LAYOUT_INSET_DECOR, in setUp() 91 mLayoutParams.flags |= LayoutParams.FLAG_FULLSCREEN; in testLocationInWindow_appWindow_fullscreen() [all …]
|
/cts/tests/tests/sdksandbox/webkit/sdk/src/com/android/cts/sdk/ |
D | WebViewSandboxTestSdk.java | 25 import android.view.ViewGroup.LayoutParams; 103 new FrameLayout.LayoutParams( in wrapWebViewInLayout() 104 LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); in wrapWebViewInLayout() 110 new LinearLayout.LayoutParams( in wrapWebViewInLayout() 111 LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); in wrapWebViewInLayout() 115 new LinearLayout.LayoutParams( in wrapWebViewInLayout() 116 LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); in wrapWebViewInLayout()
|
/cts/tests/framework/base/windowmanager/alertwindowappsdk25/src/android/server/wm/alertwindowappsdk25/ |
D | AlertWindowTestActivitySdk25.java | 21 import static android.view.WindowManager.LayoutParams.TYPE_PHONE; 22 import static android.view.WindowManager.LayoutParams.TYPE_PRIORITY_PHONE; 23 import static android.view.WindowManager.LayoutParams.TYPE_SYSTEM_ALERT; 24 import static android.view.WindowManager.LayoutParams.TYPE_SYSTEM_ERROR; 25 import static android.view.WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY;
|
/cts/tests/tests/car/src/android/car/view/cts/ |
D | WindowManagerHelperTest.java | 22 import android.view.WindowManager.LayoutParams; 33 LayoutParams params = new LayoutParams(); in testSetTrustedOverlay() 42 LayoutParams params = new LayoutParams(); in testSetInputFeatureSpy()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/ |
D | AlertWindowsAppOpsTestsActivity.java | 19 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; 29 WindowManager.LayoutParams params = new WindowManager.LayoutParams( in showSystemAlertWindow() 31 params.width = WindowManager.LayoutParams.MATCH_PARENT; in showSystemAlertWindow() 32 params.height = WindowManager.LayoutParams.MATCH_PARENT; in showSystemAlertWindow()
|
/cts/tests/tests/packageinstaller/tapjacking/src/android/packageinstaller/tapjacking/cts/ |
D | OverlayingActivity.java | 19 import static android.view.WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON; 20 import static android.view.WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS; 21 import static android.view.WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE; 22 import static android.view.WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL; 34 WindowManager.LayoutParams params = getWindow().getAttributes(); in onCreate()
|