/cts/tests/framework/base/windowmanager/src/android/server/wm/other/ |
D | WindowManager_LayoutParamsTest.java | 60 private WindowManager.LayoutParams mLayoutParams; field in WindowManager_LayoutParamsTest 86 mLayoutParams = new WindowManager.LayoutParams(); in testConstructor() 87 mLayoutParams.token = binder; in testConstructor() 88 mLayoutParams.packageName = PACKAGE_NAME; in testConstructor() 89 mLayoutParams.setTitle(TITLE); in testConstructor() 91 mLayoutParams.writeToParcel(parcel, 0); in testConstructor() 107 mLayoutParams = new WindowManager.LayoutParams(); in testCopyFrom() 113 mLayoutParams.copyFrom(params)); in testCopyFrom() 114 assertEquals(WindowManager.LayoutParams.TYPE_BASE_APPLICATION, mLayoutParams.type); in testCopyFrom() 115 assertEquals(WindowManager.LayoutParams.FLAG_DITHER, mLayoutParams.flags); in testCopyFrom() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | RadioGroup_LayoutParamsTest.java | 58 RadioGroup.LayoutParams mLayoutParams = in testConstructor() local 60 assertEquals(Integer.MIN_VALUE, mLayoutParams.width); in testConstructor() 61 assertEquals(Integer.MAX_VALUE, mLayoutParams.height); in testConstructor() 62 assertEquals(0.0f, mLayoutParams.weight, 0.0f); in testConstructor() 64 mLayoutParams = new RadioGroup.LayoutParams(Integer.MAX_VALUE, Integer.MIN_VALUE); in testConstructor() 65 assertEquals(Integer.MAX_VALUE, mLayoutParams.width); in testConstructor() 66 assertEquals(Integer.MIN_VALUE, mLayoutParams.height); in testConstructor() 67 assertEquals(0.0f, mLayoutParams.weight, 0.0f); in testConstructor() 69 mLayoutParams = new RadioGroup.LayoutParams(Integer.MIN_VALUE, Integer.MAX_VALUE, in testConstructor() 71 assertEquals(Integer.MIN_VALUE, mLayoutParams.width); in testConstructor() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0315/src/android/security/cts/CVE_2021_0315/ |
D | PocService.java | 35 LayoutParams mLayoutParams; field in PocService 49 mLayoutParams = new LayoutParams(); in onCreate() 50 mLayoutParams.type = LayoutParams.TYPE_APPLICATION_OVERLAY; in onCreate() 51 mLayoutParams.flags = LayoutParams.FLAG_NOT_TOUCH_MODAL | LayoutParams.FLAG_NOT_FOCUSABLE; in onCreate() 52 mLayoutParams.format = PixelFormat.OPAQUE; in onCreate() 53 mLayoutParams.gravity = Gravity.LEFT | Gravity.TOP; in onCreate() 54 mLayoutParams.width = getScreenWidth(); in onCreate() 55 mLayoutParams.height = getScreenHeight(); in onCreate() 56 mLayoutParams.x = getScreenWidth() / 2; in onCreate() 57 mLayoutParams.y = getScreenHeight() / 2; in onCreate() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39796/src/android/security/cts/CVE_2021_39796/ |
D | PocService.java | 34 private WindowManager.LayoutParams mLayoutParams; field in PocService 48 mLayoutParams = new WindowManager.LayoutParams(); in onCreate() 49 mLayoutParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; in onCreate() 50 mLayoutParams.flags = WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL in onCreate() 52 mLayoutParams.format = PixelFormat.OPAQUE; in onCreate() 53 mLayoutParams.gravity = Gravity.LEFT | Gravity.TOP; in onCreate() 54 mLayoutParams.width = getScreenWidth(); in onCreate() 55 mLayoutParams.height = getScreenHeight(); in onCreate() 56 mLayoutParams.x = getScreenWidth() / 2; in onCreate() 57 mLayoutParams.y = getScreenHeight() / 2; in onCreate() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39692/src/android/security/cts/CVE_2021_39692/ |
D | PocService.java | 36 private WindowManager.LayoutParams mLayoutParams; field in PocService 50 mLayoutParams = new WindowManager.LayoutParams(); in onCreate() 51 mLayoutParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; in onCreate() 52 mLayoutParams.flags = WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL in onCreate() 54 mLayoutParams.format = PixelFormat.OPAQUE; in onCreate() 55 mLayoutParams.gravity = Gravity.LEFT | Gravity.TOP; in onCreate() 56 mLayoutParams.width = getScreenWidth(); in onCreate() 57 mLayoutParams.height = getScreenHeight(); in onCreate() 58 mLayoutParams.x = getScreenWidth() / 2; in onCreate() 59 mLayoutParams.y = getScreenHeight() / 2; in onCreate() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0523/src/android/security/cts/CVE_2021_0523/ |
D | PocService.java | 33 private WindowManager.LayoutParams mLayoutParams; field in PocService 47 mLayoutParams = new WindowManager.LayoutParams(); in onCreate() 48 mLayoutParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; in onCreate() 49 mLayoutParams.flags = WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL in onCreate() 51 mLayoutParams.format = PixelFormat.OPAQUE; in onCreate() 52 mLayoutParams.gravity = Gravity.LEFT | Gravity.TOP; in onCreate() 53 mLayoutParams.width = getScreenWidth(); in onCreate() 54 mLayoutParams.height = getScreenHeight(); in onCreate() 55 mLayoutParams.x = getScreenWidth() / 2; in onCreate() 56 mLayoutParams.y = getScreenHeight() / 2; in onCreate() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2020-0015/src/android/security/cts/CVE_2020_0015/ |
D | PocService.java | 36 private WindowManager.LayoutParams mLayoutParams; field in PocService 50 mLayoutParams = new WindowManager.LayoutParams(); in onCreate() 51 mLayoutParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; in onCreate() 52 mLayoutParams.flags = WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL in onCreate() 54 mLayoutParams.format = PixelFormat.OPAQUE; in onCreate() 55 mLayoutParams.gravity = Gravity.LEFT | Gravity.TOP; in onCreate() 56 mLayoutParams.width = getScreenWidth(); in onCreate() 57 mLayoutParams.height = getScreenHeight(); in onCreate() 58 mLayoutParams.x = getScreenWidth() / 2; in onCreate() 59 mLayoutParams.y = getScreenHeight() / 2; in onCreate() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/BUG-183411279/src/android/security/cts/BUG_183411279/ |
D | OverlayService.java | 37 private WindowManager.LayoutParams mLayoutParams; field in OverlayService 49 mLayoutParams = new WindowManager.LayoutParams(); in onCreate() 50 mLayoutParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; in onCreate() 51 mLayoutParams.flags = WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL in onCreate() 53 mLayoutParams.format = PixelFormat.OPAQUE; in onCreate() 54 mLayoutParams.gravity = Gravity.CENTER; in onCreate() 55 mLayoutParams.width = scaledWidth; in onCreate() 56 mLayoutParams.height = scaledHeight; in onCreate() 57 mLayoutParams.x = scaledWidth / 2; in onCreate() 58 mLayoutParams.y = scaledHeight / 2; in onCreate() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/BUG-183963253/src/android/security/cts/BUG_183963253/ |
D | OverlayService.java | 37 private WindowManager.LayoutParams mLayoutParams; field in OverlayService 49 mLayoutParams = new WindowManager.LayoutParams(); in onCreate() 50 mLayoutParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; in onCreate() 51 mLayoutParams.flags = WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL in onCreate() 53 mLayoutParams.format = PixelFormat.OPAQUE; in onCreate() 54 mLayoutParams.gravity = Gravity.CENTER; in onCreate() 55 mLayoutParams.width = scaledWidth; in onCreate() 56 mLayoutParams.height = scaledHeight; in onCreate() 57 mLayoutParams.x = scaledWidth / 2; in onCreate() 58 mLayoutParams.y = scaledHeight / 2; in onCreate() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/BUG-183794206/src/android/security/cts/BUG_183794206/ |
D | OverlayService.java | 37 private WindowManager.LayoutParams mLayoutParams; field in OverlayService 49 mLayoutParams = new WindowManager.LayoutParams(); in onCreate() 50 mLayoutParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; in onCreate() 51 mLayoutParams.flags = WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL in onCreate() 53 mLayoutParams.format = PixelFormat.OPAQUE; in onCreate() 54 mLayoutParams.gravity = Gravity.CENTER; in onCreate() 55 mLayoutParams.width = scaledWidth; in onCreate() 56 mLayoutParams.height = scaledHeight; in onCreate() 57 mLayoutParams.x = scaledWidth / 2; in onCreate() 58 mLayoutParams.y = scaledHeight / 2; in onCreate() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/BUG-182810085/src/android/security/cts/BUG_182810085/ |
D | OverlayService.java | 37 private WindowManager.LayoutParams mLayoutParams; field in OverlayService 49 mLayoutParams = new WindowManager.LayoutParams(); in onCreate() 50 mLayoutParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; in onCreate() 51 mLayoutParams.flags = WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL in onCreate() 53 mLayoutParams.format = PixelFormat.OPAQUE; in onCreate() 54 mLayoutParams.gravity = Gravity.CENTER; in onCreate() 55 mLayoutParams.width = scaledWidth; in onCreate() 56 mLayoutParams.height = scaledHeight; in onCreate() 57 mLayoutParams.x = scaledWidth / 2; in onCreate() 58 mLayoutParams.y = scaledHeight / 2; in onCreate() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/BUG-182808318/src/android/security/cts/BUG_182808318/ |
D | OverlayService.java | 37 private WindowManager.LayoutParams mLayoutParams; field in OverlayService 49 mLayoutParams = new WindowManager.LayoutParams(); in onCreate() 50 mLayoutParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; in onCreate() 51 mLayoutParams.flags = WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL in onCreate() 53 mLayoutParams.format = PixelFormat.OPAQUE; in onCreate() 54 mLayoutParams.gravity = Gravity.CENTER; in onCreate() 55 mLayoutParams.width = scaledWidth; in onCreate() 56 mLayoutParams.height = scaledHeight; in onCreate() 57 mLayoutParams.x = scaledWidth / 2; in onCreate() 58 mLayoutParams.y = scaledHeight / 2; in onCreate() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/BUG-182282630/src/android/security/cts/BUG_182282630/ |
D | OverlayService.java | 37 private WindowManager.LayoutParams mLayoutParams; field in OverlayService 49 mLayoutParams = new WindowManager.LayoutParams(); in onCreate() 50 mLayoutParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; in onCreate() 51 mLayoutParams.flags = WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL in onCreate() 53 mLayoutParams.format = PixelFormat.OPAQUE; in onCreate() 54 mLayoutParams.gravity = Gravity.CENTER; in onCreate() 55 mLayoutParams.width = scaledWidth; in onCreate() 56 mLayoutParams.height = scaledHeight; in onCreate() 57 mLayoutParams.x = scaledWidth / 2; in onCreate() 58 mLayoutParams.y = scaledHeight / 2; in onCreate() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/BUG-183613671/src/android/security/cts/BUG_183613671/ |
D | OverlayService.java | 37 private WindowManager.LayoutParams mLayoutParams; field in OverlayService 49 mLayoutParams = new WindowManager.LayoutParams(); in onCreate() 50 mLayoutParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; in onCreate() 51 mLayoutParams.flags = WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL in onCreate() 53 mLayoutParams.format = PixelFormat.OPAQUE; in onCreate() 54 mLayoutParams.gravity = Gravity.CENTER; in onCreate() 55 mLayoutParams.width = scaledWidth; in onCreate() 56 mLayoutParams.height = scaledHeight; in onCreate() 57 mLayoutParams.x = scaledWidth / 2; in onCreate() 58 mLayoutParams.y = scaledHeight / 2; in onCreate() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/BUG-183411210/src/android/security/cts/BUG_183411210/ |
D | OverlayService.java | 37 private WindowManager.LayoutParams mLayoutParams; field in OverlayService 49 mLayoutParams = new WindowManager.LayoutParams(); in onCreate() 50 mLayoutParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; in onCreate() 51 mLayoutParams.flags = WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL in onCreate() 53 mLayoutParams.format = PixelFormat.OPAQUE; in onCreate() 54 mLayoutParams.gravity = Gravity.CENTER; in onCreate() 55 mLayoutParams.width = scaledWidth; in onCreate() 56 mLayoutParams.height = scaledHeight; in onCreate() 57 mLayoutParams.x = scaledWidth / 2; in onCreate() 58 mLayoutParams.y = scaledHeight / 2; in onCreate() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0586/src/android/security/cts/CVE_2021_0586/ |
D | PocService.java | 38 private WindowManager.LayoutParams mLayoutParams; field in PocService 53 mLayoutParams = new WindowManager.LayoutParams(); in onCreate() 54 mLayoutParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; in onCreate() 55 mLayoutParams.flags = WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL in onCreate() 57 mLayoutParams.format = PixelFormat.OPAQUE; in onCreate() 58 mLayoutParams.gravity = Gravity.LEFT | Gravity.TOP; in onCreate() 59 mLayoutParams.width = getScreenWidth(); in onCreate() 60 mLayoutParams.height = getScreenHeight(); in onCreate() 61 mLayoutParams.x = getScreenWidth() / 2; in onCreate() 62 mLayoutParams.y = getScreenHeight() / 2; in onCreate() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/BUG-183410508/src/android/security/cts/BUG_183410508/ |
D | OverlayService.java | 37 private WindowManager.LayoutParams mLayoutParams; field in OverlayService 49 mLayoutParams = new WindowManager.LayoutParams(); in onCreate() 50 mLayoutParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; in onCreate() 51 mLayoutParams.flags = WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL in onCreate() 53 mLayoutParams.format = PixelFormat.OPAQUE; in onCreate() 54 mLayoutParams.gravity = Gravity.CENTER; in onCreate() 55 mLayoutParams.width = scaledWidth; in onCreate() 56 mLayoutParams.height = scaledHeight; in onCreate() 57 mLayoutParams.x = scaledWidth / 2; in onCreate() 58 mLayoutParams.y = scaledHeight / 2; in onCreate() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0487/src/android/security/cts/CVE_2021_0487/ |
D | PocService.java | 35 private WindowManager.LayoutParams mLayoutParams; field in PocService 54 mLayoutParams = new WindowManager.LayoutParams(); in onCreate() 55 mLayoutParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; in onCreate() 56 mLayoutParams.flags = WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL in onCreate() 58 mLayoutParams.format = PixelFormat.OPAQUE; in onCreate() 59 mLayoutParams.gravity = Gravity.LEFT | Gravity.TOP; in onCreate() 60 mLayoutParams.width = getScreenWidth(); in onCreate() 61 mLayoutParams.height = getScreenHeight(); in onCreate() 62 mLayoutParams.x = getScreenWidth() / 2; in onCreate() 63 mLayoutParams.y = getScreenHeight() / 2; in onCreate() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0963/src/android/security/cts/CVE_2021_0963/ |
D | PocService.java | 35 LayoutParams mLayoutParams; field in PocService 56 mLayoutParams = new LayoutParams(); in onStartCommand() 57 mLayoutParams.type = LayoutParams.TYPE_APPLICATION_OVERLAY; in onStartCommand() 58 mLayoutParams.flags = in onStartCommand() 60 mLayoutParams.format = PixelFormat.OPAQUE; in onStartCommand() 61 mLayoutParams.gravity = Gravity.LEFT | Gravity.TOP; in onStartCommand() 62 mLayoutParams.width = getScreenWidth(); in onStartCommand() 63 mLayoutParams.height = getScreenHeight(); in onStartCommand() 64 mLayoutParams.x = getScreenWidth() / 2; in onStartCommand() 65 mLayoutParams.y = getScreenHeight() / 2; in onStartCommand() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/ |
D | LocationInWindowTests.java | 73 private LayoutParams mLayoutParams; field in LocationInWindowTests 77 mLayoutParams = new LayoutParams(MATCH_PARENT, MATCH_PARENT, LayoutParams.TYPE_APPLICATION, in setUp() 86 runTest(mLayoutParams); in testLocationInWindow_appWindow() 91 mLayoutParams.flags |= LayoutParams.FLAG_FULLSCREEN; in testLocationInWindow_appWindow_fullscreen() 92 runTest(mLayoutParams); in testLocationInWindow_appWindow_fullscreen() 97 mLayoutParams.height = 100; in testLocationInWindow_floatingWindow() 98 mLayoutParams.width = 100; in testLocationInWindow_floatingWindow() 99 mLayoutParams.gravity = Gravity.CENTER; in testLocationInWindow_floatingWindow() 100 mLayoutParams.flags &= ~(FLAG_LAYOUT_IN_SCREEN | FLAG_LAYOUT_INSET_DECOR); in testLocationInWindow_floatingWindow() 101 runTest(mLayoutParams); in testLocationInWindow_floatingWindow() [all …]
|
D | LocationOnScreenTests.java | 83 private LayoutParams mLayoutParams; field in LocationOnScreenTests 89 mLayoutParams = new LayoutParams(MATCH_PARENT, MATCH_PARENT, LayoutParams.TYPE_APPLICATION, in setUp() 98 runTest(mLayoutParams); in testLocationOnDisplay_appWindow() 103 mLayoutParams.flags |= LayoutParams.FLAG_FULLSCREEN; in testLocationOnDisplay_appWindow_fullscreen() 104 runTest(mLayoutParams); in testLocationOnDisplay_appWindow_fullscreen() 109 mLayoutParams.height = 50; in testLocationOnDisplay_floatingWindow() 110 mLayoutParams.width = 50; in testLocationOnDisplay_floatingWindow() 111 mLayoutParams.gravity = Gravity.CENTER; in testLocationOnDisplay_floatingWindow() 112 mLayoutParams.flags &= ~(FLAG_LAYOUT_IN_SCREEN | FLAG_LAYOUT_INSET_DECOR); in testLocationOnDisplay_floatingWindow() 113 runTest(mLayoutParams); in testLocationOnDisplay_floatingWindow() [all …]
|
/cts/tests/surfacecontrol/surfacevalidator/src/android/view/cts/surfacevalidator/ |
D | AnimationTestCase.java | 25 private final FrameLayout.LayoutParams mLayoutParams; field in AnimationTestCase 37 mLayoutParams = layoutParams; in AnimationTestCase() 50 mParent.addView(view, mLayoutParams); in start()
|
D | SurfaceControlTestCase.java | 28 private final FrameLayout.LayoutParams mLayoutParams; field in SurfaceControlTestCase 39 mLayoutParams = in SurfaceControlTestCase() 54 mParent.addView(view, mLayoutParams); in start()
|
D | ASurfaceControlTestActivity.java | 74 private FrameLayout.LayoutParams mLayoutParams; field in ASurfaceControlTestActivity 103 mLayoutParams = new FrameLayout.LayoutParams(DEFAULT_LAYOUT_WIDTH, DEFAULT_LAYOUT_HEIGHT, in onCreate() 106 mLayoutParams.topMargin = OFFSET_Y; in onCreate() 107 mLayoutParams.leftMargin = OFFSET_X; in onCreate() 162 mParent.addView(mSurfaceView, mLayoutParams); in createSurface()
|
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/ |
D | SurfacePackageFlickerTest.java | 61 private final FrameLayout.LayoutParams mLayoutParams; field in SurfacePackageFlickerTest.SurfacePackageTestCase 77 mParent.addView(mSurfaceView, mLayoutParams); 85 mLayoutParams = new FrameLayout.LayoutParams(layoutWidth, layoutHeight, in SurfacePackageTestCase() 95 mParent.addView(mSurfaceView, mLayoutParams); in start()
|