/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowManager_LayoutParamsTest.java | 58 private WindowManager.LayoutParams mLayoutParams; 62 new WindowManager.LayoutParams(); in testConstructor() 64 new WindowManager.LayoutParams( in testConstructor() 65 WindowManager.LayoutParams.TYPE_APPLICATION); in testConstructor() 67 new WindowManager.LayoutParams( in testConstructor() 68 WindowManager.LayoutParams.TYPE_APPLICATION, in testConstructor() 69 WindowManager.LayoutParams.FLAG_DITHER); in testConstructor() 71 new WindowManager.LayoutParams( in testConstructor() 72 WindowManager.LayoutParams.TYPE_APPLICATION, in testConstructor() 73 WindowManager.LayoutParams.FLAG_DITHER, PixelFormat.JPEG); in testConstructor() [all …]
|
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; 40 import android.view.WindowManager.LayoutParams; 69 private LayoutParams mLayoutParams; 73 mLayoutParams = new LayoutParams(MATCH_PARENT, MATCH_PARENT, LayoutParams.TYPE_APPLICATION, in setUp() 74 LayoutParams.FLAG_LAYOUT_IN_SCREEN | LayoutParams.FLAG_LAYOUT_INSET_DECOR, in setUp() 85 mLayoutParams.flags |= LayoutParams.FLAG_FULLSCREEN; in testLocationInWindow_appWindow_fullscreen() [all …]
|
D | WindowTest.java | 150 final WindowManager.LayoutParams attrs = mWindow.getAttributes(); in testOpFlags() 153 mWindow.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); in testOpFlags() 154 assertEquals(WindowManager.LayoutParams.FLAG_FULLSCREEN, attrs.flags); in testOpFlags() 156 mWindow.addFlags(WindowManager.LayoutParams.FLAG_DITHER); in testOpFlags() 157 assertEquals(WindowManager.LayoutParams.FLAG_FULLSCREEN in testOpFlags() 158 | WindowManager.LayoutParams.FLAG_DITHER, attrs.flags); in testOpFlags() 160 mWindow.clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); in testOpFlags() 161 assertEquals(WindowManager.LayoutParams.FLAG_DITHER, attrs.flags); in testOpFlags() 162 mWindow.clearFlags(WindowManager.LayoutParams.FLAG_DITHER); in testOpFlags() 168 mWindow.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, in testOpFlags() [all …]
|
D | LocationOnScreenTests.java | 23 import static android.view.ViewGroup.LayoutParams.MATCH_PARENT; 24 import static android.view.WindowManager.LayoutParams.FLAG_LAYOUT_INSET_DECOR; 25 import static android.view.WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN; 26 import static android.view.WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER; 27 import static android.view.WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES; 48 import android.view.WindowManager.LayoutParams; 80 private LayoutParams mLayoutParams; 86 mLayoutParams = new LayoutParams(MATCH_PARENT, MATCH_PARENT, LayoutParams.TYPE_APPLICATION, in setUp() 87 LayoutParams.FLAG_LAYOUT_IN_SCREEN | LayoutParams.FLAG_LAYOUT_INSET_DECOR, in setUp() 98 mLayoutParams.flags |= LayoutParams.FLAG_FULLSCREEN; in testLocationOnDisplay_appWindow_fullscreen() [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 | 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 | 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 | AbsoluteLayoutTest.java | 30 import android.widget.AbsoluteLayout.LayoutParams; 59 private LayoutParams mAbsoluteLayoutParams; 70 mAbsoluteLayoutParams = new LayoutParams(DEFAULT_WIDTH, DEFAULT_HEIGHT, in setup() 96 ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(1, 2); in testCheckLayoutParams() 104 LayoutParams params = (LayoutParams) mAbsoluteLayout.generateLayoutParams( in testGenerateLayoutParamsFromAttributeSet() 108 assertEquals(LayoutParams.MATCH_PARENT, params.width); in testGenerateLayoutParamsFromAttributeSet() 109 assertEquals(LayoutParams.MATCH_PARENT, params.height); in testGenerateLayoutParamsFromAttributeSet() 117 LayoutParams params = in testGenerateLayoutParamsFromLayoutParams() 118 (LayoutParams) mMyAbsoluteLayout.generateLayoutParams(mAbsoluteLayoutParams); in testGenerateLayoutParamsFromLayoutParams() 128 mMyAbsoluteLayout.generateLayoutParams((LayoutParams) null); in testGenerateLayoutParamsFromNull() [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 | 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 | 37 import android.widget.RadioGroup.LayoutParams; 114 mRadioGroup.addView(newButton, new RadioGroup.LayoutParams( in testInternalPassThroughHierarchyChangeListener() 115 RadioGroup.LayoutParams.WRAP_CONTENT, RadioGroup.LayoutParams.WRAP_CONTENT)); in testInternalPassThroughHierarchyChangeListener() 127 mRadioGroup.addView(newButton, new RadioGroup.LayoutParams( in testInternalCheckedStateTracker() 128 RadioGroup.LayoutParams.WRAP_CONTENT, RadioGroup.LayoutParams.WRAP_CONTENT)); in testInternalCheckedStateTracker() 302 RadioGroup.LayoutParams layoutParams = in testGenerateLayoutParams() 312 assertEquals(LayoutParams.WRAP_CONTENT, layoutParams.width); in testGenerateLayoutParams() 313 assertEquals(LayoutParams.WRAP_CONTENT, layoutParams.height); in testGenerateLayoutParams() 325 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width); in testGenerateLayoutParams() 326 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.height); in testGenerateLayoutParams() [all …]
|
D | RelativeLayout_LayoutParamsTest.java | 63 RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(200, 300); in testConstructor() 67 RelativeLayout.LayoutParams tempLayoutParams = layoutParams; in testConstructor() 68 layoutParams = new RelativeLayout.LayoutParams(tempLayoutParams); in testConstructor() 72 ViewGroup.LayoutParams tempViewGroupLayoutParams = new ViewGroup.LayoutParams(300, 400); in testConstructor() 73 layoutParams = new RelativeLayout.LayoutParams(tempViewGroupLayoutParams); in testConstructor() 78 layoutParams = new RelativeLayout.LayoutParams(tempMarginLayoutParams); in testConstructor() 84 layoutParams = new RelativeLayout.LayoutParams(mActivity, p); in testConstructor() 85 assertEquals(ViewGroup.LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructor() 86 assertEquals(ViewGroup.LayoutParams.MATCH_PARENT, layoutParams.height); in testConstructor() 100 layoutParams = (RelativeLayout.LayoutParams) (view1.getLayoutParams()); in testConstructor() [all …]
|
D | TableRow_LayoutParamsTest.java | 65 new TableRow.LayoutParams(mActivity, null); in testConstructor() 67 TableRow.LayoutParams layoutParams = new TableRow.LayoutParams(200, 300); in testConstructor() 72 ViewGroup.LayoutParams oldParams = layoutParams; in testConstructor() 74 layoutParams = new TableRow.LayoutParams(200, 300, 1.2f); in testConstructor() 82 layoutParams = new TableRow.LayoutParams(); in testConstructor() 86 layoutParams = new TableRow.LayoutParams(5); in testConstructor() 90 layoutParams = new TableRow.LayoutParams(oldParams); in testConstructor() 96 layoutParams = new TableRow.LayoutParams(oldMarginParams); in testConstructor() 106 layoutParams = (TableRow.LayoutParams) vVirtual1.getLayoutParams(); in testConstructor() 109 layoutParams = (TableRow.LayoutParams) vVirtual2.getLayoutParams(); in testConstructor() [all …]
|
D | FrameLayoutTest.java | 50 import android.widget.FrameLayout.LayoutParams; 198 ViewGroup.LayoutParams p = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, in testGenerateLayoutParams1() 199 ViewGroup.LayoutParams.WRAP_CONTENT); in testGenerateLayoutParams1() 201 ViewGroup.LayoutParams params = myFrameLayout.generateLayoutParams(p); in testGenerateLayoutParams1() 203 assertTrue(params instanceof FrameLayout.LayoutParams); in testGenerateLayoutParams1() 204 assertEquals(ViewGroup.LayoutParams.MATCH_PARENT, params.width); in testGenerateLayoutParams1() 205 assertEquals(ViewGroup.LayoutParams.WRAP_CONTENT, params.height); in testGenerateLayoutParams1() 212 FrameLayout.LayoutParams params = mFrameLayout.generateLayoutParams(attrs); in testGenerateLayoutParams2() 214 assertEquals(ViewGroup.LayoutParams.MATCH_PARENT, params.width); in testGenerateLayoutParams2() 215 assertEquals(ViewGroup.LayoutParams.MATCH_PARENT, params.height); in testGenerateLayoutParams2() [all …]
|
D | RelativeLayoutTest.java | 34 import android.view.ViewGroup.LayoutParams; 263 LayoutParams layoutParams = relativeLayout.generateLayoutParams(parser); in testGenerateLayoutParams1() 264 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width); in testGenerateLayoutParams1() 265 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.height); in testGenerateLayoutParams1() 270 RelativeLayout.LayoutParams p = new RelativeLayout.LayoutParams(200, 300); in testGenerateLayoutParams2() 275 RelativeLayout.LayoutParams layoutParams = in testGenerateLayoutParams2() 276 (RelativeLayout.LayoutParams) myRelativeLayout.generateLayoutParams(p); in testGenerateLayoutParams2() 284 myRelativeLayout.generateLayoutParams((ViewGroup.LayoutParams) null); in testGenerateLayoutParamsFromNull() 291 ViewGroup.LayoutParams layoutParams = myRelativeLayout.generateDefaultLayoutParams(); in testGenerateDefaultLayoutParams() 292 assertTrue(layoutParams instanceof RelativeLayout.LayoutParams); in testGenerateDefaultLayoutParams() [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 | GalleryTest.java | 37 import android.view.ViewGroup.LayoutParams; 164 LayoutParams lp = new LayoutParams(width, height); in testGenerateLayoutParams() 166 LayoutParams layoutParams = gallery.generateLayoutParams(lp); in testGenerateLayoutParams() 176 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width); in testGenerateLayoutParams() 177 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.height); in testGenerateLayoutParams() 216 ViewGroup.LayoutParams p1 = new ViewGroup.LayoutParams(320, 480); in testCheckLayoutParams() 219 Gallery.LayoutParams p2 = new Gallery.LayoutParams(320, 480); in testCheckLayoutParams() 271 ViewGroup.LayoutParams p = gallery.generateDefaultLayoutParams(); in testGenerateDefaultLayoutParams() 273 assertTrue(p instanceof Gallery.LayoutParams); in testGenerateDefaultLayoutParams() 274 assertEquals(ViewGroup.LayoutParams.WRAP_CONTENT, p.width); in testGenerateDefaultLayoutParams() [all …]
|
D | GridLayoutTest.java | 164 new AbsoluteLayout.LayoutParams(0, 0, 0, 0)); in testCheckLayoutParams() 167 new GridLayout.LayoutParams(GridLayout.spec(0), GridLayout.spec(0))); in testCheckLayoutParams() 173 ViewGroup.LayoutParams lp = mGridLayout.generateLayoutParams(null); in testGenerateDefaultLayoutParams() 175 assertTrue(lp instanceof GridLayout.LayoutParams); in testGenerateDefaultLayoutParams() 176 assertEquals(ViewGroup.LayoutParams.WRAP_CONTENT, lp.width); in testGenerateDefaultLayoutParams() 177 assertEquals(ViewGroup.LayoutParams.WRAP_CONTENT, lp.height); in testGenerateDefaultLayoutParams() 188 GridLayout.LayoutParams generated = gridLayout.generateLayoutParams(lp); in testGenerateLayoutParamsFromMarginParams() 208 GridLayout.LayoutParams lp = new GridLayout.LayoutParams(spec(0), spec(0)); in populate() 216 GridLayout.LayoutParams lp = new GridLayout.LayoutParams(spec(row), spec(0)); in populate() 227 GridLayout.LayoutParams lp = new GridLayout.LayoutParams(spec(0), spec(col)); in populate() [all …]
|
D | TableLayoutTest.java | 458 mTableEmpty.addView(child1, new ViewGroup.LayoutParams(100, 200)); in testAddViewWithLayoutParams() 460 assertEquals(ViewGroup.LayoutParams.MATCH_PARENT, in testAddViewWithLayoutParams() 469 mTableEmpty.addView(child2, new TableRow.LayoutParams(200, 300, 1)); in testAddViewWithLayoutParams() 472 assertEquals(ViewGroup.LayoutParams.MATCH_PARENT, in testAddViewWithLayoutParams() 475 assertEquals(ViewGroup.LayoutParams.MATCH_PARENT, in testAddViewWithLayoutParams() 485 mTableEmpty.addView(null, new TableLayout.LayoutParams(200, 300)); in testAddViewWithLayoutParamsNullView() 499 mTableEmpty.addView(child1, 0, new ViewGroup.LayoutParams(100, 200)); in testAddViewAtIndexWithLayoutParams() 501 assertEquals(ViewGroup.LayoutParams.MATCH_PARENT, in testAddViewAtIndexWithLayoutParams() 510 mTableEmpty.addView(child2, 0, new TableRow.LayoutParams(200, 300, 1)); in testAddViewAtIndexWithLayoutParams() 513 assertEquals(ViewGroup.LayoutParams.MATCH_PARENT, in testAddViewAtIndexWithLayoutParams() [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 …]
|
D | ListScenario.java | 302 mListView.setLayoutParams(new ViewGroup.LayoutParams( in onCreate() 303 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate() 304 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate() 364 mHeaderTextView.setLayoutParams(new LinearLayout.LayoutParams( in onCreate() 365 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate() 366 ViewGroup.LayoutParams.WRAP_CONTENT)); in onCreate() 370 mLinearLayout.setLayoutParams(new ViewGroup.LayoutParams( in onCreate() 371 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate() 372 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate() 373 mListView.setLayoutParams((new LinearLayout.LayoutParams( in onCreate() [all …]
|
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/ |
D | StatsdCtsForegroundActivity.java | 112 WindowManager.LayoutParams wmlp = new WindowManager.LayoutParams( in doShowApplicationOverlay() 113 WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY, in doShowApplicationOverlay() 114 WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE in doShowApplicationOverlay() 115 | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON in doShowApplicationOverlay() 116 | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE); in doShowApplicationOverlay() 122 ViewGroup.LayoutParams vglp = new ViewGroup.LayoutParams( in doShowApplicationOverlay() 123 ViewGroup.LayoutParams.MATCH_PARENT, in doShowApplicationOverlay() 124 ViewGroup.LayoutParams.MATCH_PARENT); in doShowApplicationOverlay()
|
/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/tests/toast/src/android/widget/toast/cts/ |
D | BaseToastTest.java | 78 WindowManager.LayoutParams params = new WindowManager.LayoutParams(); in showToastsViaAddingWindow() 79 params.height = WindowManager.LayoutParams.WRAP_CONTENT; in showToastsViaAddingWindow() 80 params.width = WindowManager.LayoutParams.WRAP_CONTENT; in showToastsViaAddingWindow() 82 params.type = WindowManager.LayoutParams.TYPE_TOAST; in showToastsViaAddingWindow() 83 params.flags = WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON; in showToastsViaAddingWindow() 85 params.flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE; in showToastsViaAddingWindow()
|