/cts/tests/tests/widget/src/android/widget/cts/ |
D | RelativeLayout_LayoutParamsTest.java | 72 RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(200, 300); in testConstructor() local 73 assertEquals(200, layoutParams.width); in testConstructor() 74 assertEquals(300, layoutParams.height); in testConstructor() 76 RelativeLayout.LayoutParams tempLayoutParams = layoutParams; in testConstructor() 77 layoutParams = new RelativeLayout.LayoutParams(tempLayoutParams); in testConstructor() 78 assertEquals(200, layoutParams.width); in testConstructor() 79 assertEquals(300, layoutParams.height); in testConstructor() 82 layoutParams = new RelativeLayout.LayoutParams(tempViewGroupLayoutParams); in testConstructor() 83 assertEquals(300, layoutParams.width); in testConstructor() 84 assertEquals(400, layoutParams.height); in testConstructor() [all …]
|
D | TableRow_LayoutParamsTest.java | 76 TableRow.LayoutParams layoutParams = new TableRow.LayoutParams(200, 300); in testConstructor() local 77 assertEquals(200, layoutParams.width); in testConstructor() 78 assertEquals(300, layoutParams.height); in testConstructor() 79 assertEquals(-1, layoutParams.column); in testConstructor() 80 assertEquals(1, layoutParams.span); in testConstructor() 81 ViewGroup.LayoutParams oldParams = layoutParams; in testConstructor() 83 layoutParams = new TableRow.LayoutParams(200, 300, 1.2f); in testConstructor() 84 assertEquals(200, layoutParams.width); in testConstructor() 85 assertEquals(300, layoutParams.height); in testConstructor() 86 assertEquals(1.2f, layoutParams.weight, 0.0f); in testConstructor() [all …]
|
D | AbsListView_LayoutParamsTest.java | 57 AbsListView.LayoutParams layoutParams; in testConstructors() local 59 layoutParams = new AbsListView.LayoutParams(mContext, mAttributeSet); in testConstructors() 60 assertEquals(TEST_WIDTH, layoutParams.width); in testConstructors() 61 assertEquals(TEST_HEIGHT, layoutParams.height); in testConstructors() 63 layoutParams = new AbsListView.LayoutParams(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() 70 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructors() 71 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.height); in testConstructors() [all …]
|
D | TableLayout_LayoutParamsTest.java | 56 TableLayout.LayoutParams layoutParams = new TableLayout.LayoutParams(); in testConstructor() local 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() 68 assertEquals(300, layoutParams.height); in testConstructor() 71 layoutParams = new TableLayout.LayoutParams(250, 350, 1.2f); in testConstructor() [all …]
|
D | AbsoluteLayout_LayoutParamsTest.java | 60 LayoutParams layoutParams; in testConstructor() local 62 layoutParams = new AbsoluteLayout.LayoutParams(1, 2, 3, 4); in testConstructor() 63 assertEquals(1, layoutParams.width); in testConstructor() 64 assertEquals(2, layoutParams.height); in testConstructor() 65 assertEquals(3, layoutParams.x); in testConstructor() 66 assertEquals(4, layoutParams.y); in testConstructor() 68 LayoutParams params = new AbsoluteLayout.LayoutParams(layoutParams); in testConstructor() 79 LayoutParams layoutParams = new AbsoluteLayout.LayoutParams(1, 2, 3, 4); in testDebug() local 80 assertNotNull(layoutParams.debug("test: ")); in testDebug()
|
D | RadioGroupTest.java | 312 RadioGroup.LayoutParams layoutParams = in testGenerateLayoutParams() local 314 assertNotNull(layoutParams); in testGenerateLayoutParams() 316 assertEquals(0.0, layoutParams.weight, 0); in testGenerateLayoutParams() 317 assertEquals(-1, layoutParams.gravity); in testGenerateLayoutParams() 318 assertEquals(0, layoutParams.leftMargin); in testGenerateLayoutParams() 319 assertEquals(0, layoutParams.topMargin); in testGenerateLayoutParams() 320 assertEquals(0, layoutParams.rightMargin); in testGenerateLayoutParams() 321 assertEquals(0, layoutParams.bottomMargin); in testGenerateLayoutParams() 322 assertEquals(LayoutParams.WRAP_CONTENT, layoutParams.width); in testGenerateLayoutParams() 323 assertEquals(LayoutParams.WRAP_CONTENT, layoutParams.height); in testGenerateLayoutParams() [all …]
|
D | LinearLayout_LayoutParamsTest.java | 68 LayoutParams layoutParams = new LayoutParams(200, 480); in testConstructor() local 69 linearLayoutParams = new LinearLayout.LayoutParams(layoutParams); in testConstructor() 94 LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(320, 240); in testDebug() local 95 assertNotNull(layoutParams.debug("test: ")); in testDebug()
|
D | TableRowTest.java | 187 LinearLayout.LayoutParams layoutParams = mockTableRow.generateDefaultLayoutParams(); in testGenerateDefaultLayoutParams() local 188 assertNotNull(layoutParams); in testGenerateDefaultLayoutParams() 189 assertTrue(layoutParams instanceof TableRow.LayoutParams); in testGenerateDefaultLayoutParams() 196 LinearLayout.LayoutParams layoutParams = mockTableRow.generateLayoutParams( in testGenerateLayoutParamsFromLayoutParams() local 198 assertNotNull(layoutParams); in testGenerateLayoutParamsFromLayoutParams() 199 assertEquals(200, layoutParams.width); in testGenerateLayoutParamsFromLayoutParams() 200 assertEquals(300, layoutParams.height); in testGenerateLayoutParamsFromLayoutParams() 201 assertTrue(layoutParams instanceof TableRow.LayoutParams); in testGenerateLayoutParamsFromLayoutParams()
|
D | RadioGroup_LayoutParamsTest.java | 144 MockLayoutParams layoutParams = new MockLayoutParams(mContext, null); in testSetBaseAttributes() local 146 assertEquals(RadioGroup.LayoutParams.WRAP_CONTENT, layoutParams.width); in testSetBaseAttributes() 147 assertEquals(RadioGroup.LayoutParams.WRAP_CONTENT, layoutParams.height); in testSetBaseAttributes() 152 layoutParams.setBaseAttributes(a, in testSetBaseAttributes() 156 assertEquals(RadioGroup.LayoutParams.MATCH_PARENT, layoutParams.width); in testSetBaseAttributes() 157 assertEquals(RadioGroup.LayoutParams.MATCH_PARENT, layoutParams.height); in testSetBaseAttributes()
|
D | RelativeLayoutTest.java | 271 LayoutParams layoutParams = relativeLayout.generateLayoutParams(parser); in testGenerateLayoutParams1() local 272 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width); in testGenerateLayoutParams1() 273 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.height); in testGenerateLayoutParams1() 283 RelativeLayout.LayoutParams layoutParams = in testGenerateLayoutParams2() local 285 assertEquals(200, layoutParams.width); in testGenerateLayoutParams2() 286 assertEquals(300, layoutParams.height); in testGenerateLayoutParams2() 299 ViewGroup.LayoutParams layoutParams = myRelativeLayout.generateDefaultLayoutParams(); in testGenerateDefaultLayoutParams() local 300 assertTrue(layoutParams instanceof RelativeLayout.LayoutParams); in testGenerateDefaultLayoutParams() 301 assertEquals(ViewGroup.LayoutParams.WRAP_CONTENT, layoutParams.width); in testGenerateDefaultLayoutParams() 302 assertEquals(ViewGroup.LayoutParams.WRAP_CONTENT, layoutParams.height); in testGenerateDefaultLayoutParams()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-20913/src/android/security/cts/CVE_2023_20913/ |
D | PocService.java | 41 LayoutParams layoutParams = new LayoutParams(); in onCreate() local 42 layoutParams.type = LayoutParams.TYPE_APPLICATION_OVERLAY; in onCreate() 43 layoutParams.flags = in onCreate() 45 layoutParams.format = PixelFormat.OPAQUE; in onCreate() 46 layoutParams.gravity = Gravity.LEFT | Gravity.TOP; in onCreate() 48 layoutParams.width = displayMetrics.widthPixels; in onCreate() 49 layoutParams.height = displayMetrics.heightPixels; in onCreate() 50 layoutParams.x = displayMetrics.widthPixels / 2; in onCreate() 51 layoutParams.y = displayMetrics.heightPixels / 2; in onCreate() 54 layoutParams.screenOrientation = SCREEN_ORIENTATION_PORTRAIT; in onCreate() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20501/src/android/security/cts/CVE_2022_20501/ |
D | PocService.java | 39 LayoutParams layoutParams = new LayoutParams(); in onCreate() local 40 layoutParams.type = LayoutParams.TYPE_APPLICATION_OVERLAY; in onCreate() 41 layoutParams.flags = in onCreate() 43 layoutParams.format = PixelFormat.OPAQUE; in onCreate() 44 layoutParams.gravity = Gravity.LEFT | Gravity.TOP; in onCreate() 46 layoutParams.width = displayMetrics.widthPixels; in onCreate() 47 layoutParams.height = displayMetrics.heightPixels; in onCreate() 48 layoutParams.x = displayMetrics.widthPixels / 2; in onCreate() 49 layoutParams.y = displayMetrics.heightPixels / 2; in onCreate() 54 mWindowManager.addView(mButton, layoutParams); in onCreate()
|
/cts/hostsidetests/securitybulletin/test-apps/TestOverlayRequestManageCredentials/src/android/security/cts/overlay/RequestManageCredentials/ |
D | PocService.java | 42 LayoutParams layoutParams = new WindowManager.LayoutParams(); in onStartCommand() local 43 layoutParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; in onStartCommand() 44 layoutParams.flags = in onStartCommand() 47 layoutParams.format = PixelFormat.OPAQUE; in onStartCommand() 48 layoutParams.gravity = Gravity.LEFT | Gravity.TOP; in onStartCommand() 51 layoutParams.width = screenWidth; in onStartCommand() 52 layoutParams.height = screenHeight; in onStartCommand() 53 layoutParams.x = screenWidth / 2; in onStartCommand() 54 layoutParams.y = screenHeight / 2; in onStartCommand() 58 mWindowManager.addView(mButton, layoutParams); in onStartCommand()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0954/src/android/security/cts/CVE_2021_0954/ |
D | PocService.java | 56 LayoutParams layoutParams = new LayoutParams(); in onCreate() local 57 layoutParams.type = LayoutParams.TYPE_APPLICATION_OVERLAY; in onCreate() 58 layoutParams.flags = in onCreate() 60 layoutParams.format = PixelFormat.OPAQUE; in onCreate() 61 layoutParams.gravity = Gravity.LEFT | Gravity.TOP; in onCreate() 62 layoutParams.width = getScreenWidth(); in onCreate() 63 layoutParams.height = getScreenHeight(); in onCreate() 64 layoutParams.x = getScreenWidth() / 2; in onCreate() 65 layoutParams.y = getScreenHeight() / 2; in onCreate() 70 mWindowManager.addView(mButton, layoutParams); in onCreate()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVCameraPreview.java | 203 ViewGroup.LayoutParams layoutParams = getLayoutParams(); in adjustLayoutParamsIfNeeded() local 211 layoutParams.width = curWidth; in adjustLayoutParamsIfNeeded() 212 layoutParams.height = (int)(curWidth / cameraAspect); in adjustLayoutParamsIfNeeded() 215 layoutParams.width = (int)(curHeight * cameraAspect); in adjustLayoutParamsIfNeeded() 216 layoutParams.height = curHeight; in adjustLayoutParamsIfNeeded() 219 if (layoutParams.height != curHeight || layoutParams.width != curWidth) { in adjustLayoutParamsIfNeeded() 221 layoutParams.width, layoutParams.height)); in adjustLayoutParamsIfNeeded() 222 setLayoutParams(layoutParams); in adjustLayoutParamsIfNeeded()
|
/cts/tests/tests/dreams/CtsDreamOverlayTestApp/src/android/app/dream/cts/app/ |
D | DreamOverlayService.java | 45 public void onStartDream(@NonNull WindowManager.LayoutParams layoutParams) { in onStartDream() argument 51 addWindowOverlay(layoutParams); in onStartDream() 66 private void addWindowOverlay(WindowManager.LayoutParams layoutParams) { in addWindowOverlay() argument 93 wm.addView(mLayout, layoutParams); in addWindowOverlay()
|
/cts/tests/input/src/android/input/cts/ |
D | PointerCancelTest.kt | 131 val layoutParams = WindowManager.LayoutParams( in addFloatingWindow() constant 136 layoutParams.x = 0 in addFloatingWindow() 137 layoutParams.y = 0 in addFloatingWindow() 138 layoutParams.width = 100 in addFloatingWindow() 139 layoutParams.height = 100 in addFloatingWindow() 140 layoutParams.gravity = Gravity.LEFT or Gravity.CENTER_VERTICAL in addFloatingWindow() 144 activity.windowManager.addView(view, layoutParams) in addFloatingWindow()
|
/cts/tests/app/WallpaperTest/src/android/app/cts/wallpapers/ |
D | WallpaperTestActivity.java | 33 FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams( in onCreate() local 37 setContentView(frameLayout, layoutParams); in onCreate()
|
D | WallpaperOverlayTestActivity.java | 44 FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams( in onCreate() local 48 setContentView(frameLayout, layoutParams); in onCreate()
|
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/ |
D | SurfaceSyncGroupActivity.java | 64 FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(sSize.getWidth(), in setupEmbeddedSCVH() local 66 layoutParams.gravity = Gravity.CENTER; in setupEmbeddedSCVH() 68 layoutParams)); in setupEmbeddedSCVH()
|
D | TestActivity.java | 42 FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams( in onCreate() local 45 setContentView(mParentLayout, layoutParams); in onCreate()
|
D | SurfaceViewSyncTest.java | 223 ViewGroup.LayoutParams layoutParams = view.getLayoutParams(); 224 layoutParams.width++; 225 if (layoutParams.height++ > 1500) { 226 layoutParams.height = 320; 227 layoutParams.width = 240; 229 view.setLayoutParams(layoutParams);
|
/cts/tests/surfacecontrol/surfacevalidator/src/android/view/cts/surfacevalidator/ |
D | AnimationTestCase.java | 33 FrameLayout.LayoutParams layoutParams, in AnimationTestCase() argument 37 mLayoutParams = layoutParams; in AnimationTestCase()
|
/cts/hostsidetests/hdmicec/app/src/android/hdmicec/app/ |
D | HdmiCecKeyEventCapture.java | 48 TableRow.LayoutParams layoutParams = in onCreate() local 54 text.setLayoutParams(layoutParams); in onCreate()
|
/cts/tests/tests/sensorprivacy/test-apps/CtsUseMicOrCameraForSensorPrivacy/src/android/sensorprivacy/cts/usemiccamera/ |
D | BlankActivity.kt | 13 layout.layoutParams = ViewGroup.LayoutParams( in onCreate()
|