/cts/tests/tests/view/src/android/view/cts/ |
D | WindowManager_LayoutParamsTest.java | 57 private WindowManager.LayoutParams mLayoutParams; 61 new WindowManager.LayoutParams(); in testConstructor() 63 new WindowManager.LayoutParams( in testConstructor() 64 WindowManager.LayoutParams.TYPE_APPLICATION); in testConstructor() 66 new WindowManager.LayoutParams( in testConstructor() 67 WindowManager.LayoutParams.TYPE_APPLICATION, in testConstructor() 68 WindowManager.LayoutParams.FLAG_DITHER); in testConstructor() 70 new WindowManager.LayoutParams( in testConstructor() 71 WindowManager.LayoutParams.TYPE_APPLICATION, in testConstructor() 72 WindowManager.LayoutParams.FLAG_DITHER, PixelFormat.JPEG); in testConstructor() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | FrameLayout_LayoutParamsTest.java | 31 import android.widget.FrameLayout.LayoutParams; 63 new LayoutParams(mContext, attrs); in testConstructor() 64 new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); in testConstructor() 65 new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, 0); in testConstructor() 66 new LayoutParams(new ViewGroup.LayoutParams(mContext, attrs)); in testConstructor() 67 new LayoutParams(new LayoutParams(mContext, attrs)); in testConstructor() 68 new LayoutParams(new MarginLayoutParams(mContext, attrs)); in testConstructor() 70 new LayoutParams(-1, -1); in testConstructor() 71 new LayoutParams(-1, -1, -1); in testConstructor() 76 new LayoutParams(null, null); in testConstructorNullContext() [all …]
|
D | AbsListView_LayoutParamsTest.java | 28 import android.widget.AbsListView.LayoutParams; 56 AbsListView.LayoutParams layoutParams; in testConstructors() 58 layoutParams = new AbsListView.LayoutParams(mContext, mAttributeSet); in testConstructors() 62 layoutParams = new AbsListView.LayoutParams(LayoutParams.MATCH_PARENT, in testConstructors() 63 LayoutParams.MATCH_PARENT); in testConstructors() 64 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructors() 65 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.height); in testConstructors() 67 layoutParams = new AbsListView.LayoutParams(LayoutParams.MATCH_PARENT, in testConstructors() 68 LayoutParams.MATCH_PARENT, 0); in testConstructors() 69 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructors() [all …]
|
D | TableLayout_LayoutParamsTest.java | 55 TableLayout.LayoutParams layoutParams = new TableLayout.LayoutParams(); in testConstructor() 56 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructor() 57 assertEquals(TableLayout.LayoutParams.WRAP_CONTENT, layoutParams.height); in testConstructor() 60 layoutParams = new TableLayout.LayoutParams(mContext, null); in testConstructor() 61 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructor() 62 assertEquals(TableLayout.LayoutParams.WRAP_CONTENT, layoutParams.height); in testConstructor() 65 layoutParams = new TableLayout.LayoutParams(200, 300); in testConstructor() 66 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructor() 70 layoutParams = new TableLayout.LayoutParams(250, 350, 1.2f); in testConstructor() 71 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructor() [all …]
|
D | LinearLayout_LayoutParamsTest.java | 28 import android.view.ViewGroup.LayoutParams; 48 LinearLayout.LayoutParams linearLayoutParams = in testConstructor() 49 new LinearLayout.LayoutParams(context, p); in testConstructor() 50 assertEquals(LayoutParams.MATCH_PARENT, linearLayoutParams.width); in testConstructor() 51 assertEquals(LayoutParams.WRAP_CONTENT, linearLayoutParams.height); in testConstructor() 55 linearLayoutParams = new LinearLayout.LayoutParams(320, 240); in testConstructor() 61 linearLayoutParams = new LinearLayout.LayoutParams(360, 320, 0.4f); in testConstructor() 67 LayoutParams layoutParams = new LayoutParams(200, 480); in testConstructor() 68 linearLayoutParams = new LinearLayout.LayoutParams(layoutParams); in testConstructor() 75 linearLayoutParams = new LinearLayout.LayoutParams(marginLayoutParams); in testConstructor() [all …]
|
D | AbsoluteLayoutTest.java | 34 import android.widget.AbsoluteLayout.LayoutParams; 58 private LayoutParams mAbsoluteLayoutParams; 69 mAbsoluteLayoutParams = new LayoutParams(DEFAULT_WIDTH, DEFAULT_HEIGHT, in setup() 95 ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(1, 2); in testCheckLayoutParams() 103 LayoutParams params = (LayoutParams) mAbsoluteLayout.generateLayoutParams( in testGenerateLayoutParamsFromAttributeSet() 107 assertEquals(LayoutParams.MATCH_PARENT, params.width); in testGenerateLayoutParamsFromAttributeSet() 108 assertEquals(LayoutParams.MATCH_PARENT, params.height); in testGenerateLayoutParamsFromAttributeSet() 116 LayoutParams params = in testGenerateLayoutParamsFromLayoutParams() 117 (LayoutParams) mMyAbsoluteLayout.generateLayoutParams(mAbsoluteLayoutParams); in testGenerateLayoutParamsFromLayoutParams() 127 mMyAbsoluteLayout.generateLayoutParams((LayoutParams) null); in testGenerateLayoutParamsFromNull() [all …]
|
D | RadioGroup_LayoutParamsTest.java | 57 RadioGroup.LayoutParams mLayoutParams = in testConstructor() 58 new RadioGroup.LayoutParams(Integer.MIN_VALUE, Integer.MAX_VALUE); in testConstructor() 63 mLayoutParams = new RadioGroup.LayoutParams(Integer.MAX_VALUE, Integer.MIN_VALUE); in testConstructor() 68 mLayoutParams = new RadioGroup.LayoutParams(Integer.MIN_VALUE, Integer.MAX_VALUE, in testConstructor() 74 mLayoutParams = new RadioGroup.LayoutParams(Integer.MIN_VALUE, Integer.MAX_VALUE, in testConstructor() 80 mLayoutParams = new RadioGroup.LayoutParams(new ViewGroup.LayoutParams(40, 60)); in testConstructor() 85 mLayoutParams = new RadioGroup.LayoutParams(new ViewGroup.MarginLayoutParams(100, 200)); in testConstructor() 100 mLayoutParams = new RadioGroup.LayoutParams(source); in testConstructor() 109 mLayoutParams = new RadioGroup.LayoutParams(mContext, in testConstructor() 118 assertEquals(RadioGroup.LayoutParams.MATCH_PARENT, mLayoutParams.width); in testConstructor() [all …]
|
D | RadioGroupTest.java | 41 import android.widget.RadioGroup.LayoutParams; 113 mRadioGroup.addView(newButton, new RadioGroup.LayoutParams( in testInternalPassThroughHierarchyChangeListener() 114 RadioGroup.LayoutParams.WRAP_CONTENT, RadioGroup.LayoutParams.WRAP_CONTENT)); in testInternalPassThroughHierarchyChangeListener() 126 mRadioGroup.addView(newButton, new RadioGroup.LayoutParams( in testInternalCheckedStateTracker() 127 RadioGroup.LayoutParams.WRAP_CONTENT, RadioGroup.LayoutParams.WRAP_CONTENT)); in testInternalCheckedStateTracker() 301 RadioGroup.LayoutParams layoutParams = in testGenerateLayoutParams() 311 assertEquals(LayoutParams.WRAP_CONTENT, layoutParams.width); in testGenerateLayoutParams() 312 assertEquals(LayoutParams.WRAP_CONTENT, layoutParams.height); in testGenerateLayoutParams() 324 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width); in testGenerateLayoutParams() 325 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.height); in testGenerateLayoutParams() [all …]
|
D | AbsoluteLayout_LayoutParamsTest.java | 29 import android.widget.AbsoluteLayout.LayoutParams; 59 LayoutParams layoutParams; in testConstructor() 61 layoutParams = new AbsoluteLayout.LayoutParams(1, 2, 3, 4); in testConstructor() 67 LayoutParams params = new AbsoluteLayout.LayoutParams(layoutParams); in testConstructor() 73 new AbsoluteLayout.LayoutParams(mContext, getAttributeSet()); in testConstructor() 78 LayoutParams layoutParams = new AbsoluteLayout.LayoutParams(1, 2, 3, 4); in testDebug()
|
D | RelativeLayout_LayoutParamsTest.java | 62 RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(200, 300); in testConstructor() 66 RelativeLayout.LayoutParams tempLayoutParams = layoutParams; in testConstructor() 67 layoutParams = new RelativeLayout.LayoutParams(tempLayoutParams); in testConstructor() 71 ViewGroup.LayoutParams tempViewGroupLayoutParams = new ViewGroup.LayoutParams(300, 400); in testConstructor() 72 layoutParams = new RelativeLayout.LayoutParams(tempViewGroupLayoutParams); in testConstructor() 77 layoutParams = new RelativeLayout.LayoutParams(tempMarginLayoutParams); in testConstructor() 83 layoutParams = new RelativeLayout.LayoutParams(mActivity, p); in testConstructor() 84 assertEquals(ViewGroup.LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructor() 85 assertEquals(ViewGroup.LayoutParams.MATCH_PARENT, layoutParams.height); in testConstructor() 99 layoutParams = (RelativeLayout.LayoutParams) (view1.getLayoutParams()); in testConstructor() [all …]
|
D | TableRow_LayoutParamsTest.java | 64 new TableRow.LayoutParams(mActivity, null); in testConstructor() 66 TableRow.LayoutParams layoutParams = new TableRow.LayoutParams(200, 300); in testConstructor() 71 ViewGroup.LayoutParams oldParams = layoutParams; in testConstructor() 73 layoutParams = new TableRow.LayoutParams(200, 300, 1.2f); in testConstructor() 81 layoutParams = new TableRow.LayoutParams(); in testConstructor() 85 layoutParams = new TableRow.LayoutParams(5); in testConstructor() 89 layoutParams = new TableRow.LayoutParams(oldParams); in testConstructor() 95 layoutParams = new TableRow.LayoutParams(oldMarginParams); in testConstructor() 105 layoutParams = (TableRow.LayoutParams) vVirtual1.getLayoutParams(); in testConstructor() 108 layoutParams = (TableRow.LayoutParams) vVirtual2.getLayoutParams(); in testConstructor() [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/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/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/framework/base/windowmanager/src/android/server/wm/ |
D | AlertWindowsAppOpsTestsActivity.java | 23 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()
|
D | LocationInWindowTests.java | 20 import static android.view.ViewGroup.LayoutParams.MATCH_PARENT; 21 import static android.view.WindowManager.LayoutParams.FLAG_LAYOUT_INSET_DECOR; 22 import static android.view.WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN; 23 import static android.view.WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER; 24 import static android.view.WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES; 43 import android.view.WindowManager.LayoutParams; 71 private LayoutParams mLayoutParams; 75 mLayoutParams = new LayoutParams(MATCH_PARENT, MATCH_PARENT, LayoutParams.TYPE_APPLICATION, in setUp() 76 LayoutParams.FLAG_LAYOUT_IN_SCREEN | LayoutParams.FLAG_LAYOUT_INSET_DECOR, in setUp() 87 mLayoutParams.flags |= LayoutParams.FLAG_FULLSCREEN; in testLocationInWindow_appWindow_fullscreen() [all …]
|
/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/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/ |
D | StatsdCtsForegroundActivity.java | 100 WindowManager.LayoutParams wmlp = new WindowManager.LayoutParams( in doShowApplicationOverlay() 101 WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY, in doShowApplicationOverlay() 102 WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE in doShowApplicationOverlay() 103 | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON in doShowApplicationOverlay() 104 | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE); in doShowApplicationOverlay() 110 ViewGroup.LayoutParams vglp = new ViewGroup.LayoutParams( in doShowApplicationOverlay() 111 ViewGroup.LayoutParams.MATCH_PARENT, in doShowApplicationOverlay() 112 ViewGroup.LayoutParams.MATCH_PARENT); in doShowApplicationOverlay()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/tapjacking/ |
D | UsbTest.java | 75 WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams( in showOverlay() 76 WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY, in showOverlay() 77 WindowManager.LayoutParams.FLAG_FULLSCREEN in showOverlay() 78 | WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL in showOverlay() 79 | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE in showOverlay() 80 | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE in showOverlay() 81 | WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED in showOverlay() 84 layoutParams.width = ViewGroup.LayoutParams.MATCH_PARENT; in showOverlay() 85 layoutParams.height = ViewGroup.LayoutParams.WRAP_CONTENT; in showOverlay()
|
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; 40 WindowManager.LayoutParams params = getWindow().getAttributes(); in onCreate()
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
D | TextureTestActivity.java | 31 getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD in onCreate() 32 | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON in onCreate() 33 | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON in onCreate() 34 | WindowManager.LayoutParams.FLAG_FULLSCREEN in onCreate() 35 | WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED); in onCreate()
|
/cts/tests/framework/base/activitymanager/app/src/android/server/am/ |
D | TurnScreenOnActivity.java | 26 getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON in onCreate() 27 | WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED in onCreate() 28 | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD in onCreate() 29 | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON); in onCreate()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | PermissionStubActivity.java | 23 import android.view.ViewGroup.LayoutParams; 37 mListView.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, in onCreate() 38 LayoutParams.WRAP_CONTENT)); in onCreate()
|
/cts/tests/tests/toast/src/android/widget/toast/cts/ |
D | BaseToastTest.java | 76 WindowManager.LayoutParams params = new WindowManager.LayoutParams(); in showToastsViaAddingWindow() 77 params.height = WindowManager.LayoutParams.WRAP_CONTENT; in showToastsViaAddingWindow() 78 params.width = WindowManager.LayoutParams.WRAP_CONTENT; in showToastsViaAddingWindow() 80 params.type = WindowManager.LayoutParams.TYPE_TOAST; in showToastsViaAddingWindow() 81 params.flags = WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON; in showToastsViaAddingWindow() 83 params.flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE; in showToastsViaAddingWindow()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | LightBarBaseActivity.java | 22 import android.view.ViewGroup.LayoutParams; 32 mContent.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, in onCreate() 33 LayoutParams.MATCH_PARENT)); in onCreate()
|