Home
last modified time | relevance | path

Searched refs:displayContext (Results 1 – 9 of 9) sorted by relevance

/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DRenderService.java68 final Context displayContext = getDisplayContext(hostDisplayId); in getSurfaceControlViewHost() local
70 new SurfaceControlViewHost(displayContext, displayContext.getDisplay(), hostToken); in getSurfaceControlViewHost()
75 displayContext.getDisplay().getMetrics(metrics); in getSurfaceControlViewHost()
DLiveWallpaper.java37 final Context displayContext = getDisplayContext(); in onCreateEngine() local
38 final int displayId = displayContext.getDisplayId(); in onCreateEngine()
/cts/tests/tests/content/src/android/content/wm/cts/
DContextGetDisplayTest.java84 Context displayContext = mApplicationContext.createDisplayContext(display); in testGetDisplayFromDisplayContext() local
86 assertEquals(display, displayContext.getDisplay()); in testGetDisplayFromDisplayContext()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowContextPolicyTests.java66 final Context displayContext = createDisplayContext(Display.DEFAULT_DISPLAY); in testWindowContextWithNullDisplay() local
67 displayContext.createWindowContext(null /* display */, TYPE_APPLICATION_OVERLAY, in testWindowContextWithNullDisplay()
DMultiDisplayActivityLaunchTests.java945 final Context displayContext = in testLaunchPendingIntentActivity() local
947 getPendingIntentActivity(TOP_ACTIVITY).send(displayContext, resultCode, null /* intent */); in testLaunchPendingIntentActivity()
952 getPendingIntentActivity(TEST_ACTIVITY).send(displayContext, resultCode, null /* intent */); in testLaunchPendingIntentActivity()
/cts/tests/framework/base/windowmanager/overlayappbase/src/android/server/wm/overlay/
DUntrustedTouchTestService.java132 Context displayContext = context.createDisplayContext(display); in getContextForSaw() local
133 return displayContext.createWindowContext(LayoutParams.TYPE_APPLICATION_OVERLAY, null); in getContextForSaw()
/cts/tests/tests/os/src/android/os/cts/
DStrictModeTest.java686 final Context displayContext = getContext().createDisplayContext(display); in testIncorrectContextUse_DisplayContext_ThrowViolation() local
689 () -> displayContext.getSystemService(WindowManager.class)); in testIncorrectContextUse_DisplayContext_ThrowViolation()
693 () -> ViewConfiguration.get(displayContext)); in testIncorrectContextUse_DisplayContext_ThrowViolation()
698 () -> new GestureDetector(displayContext, mGestureListener)); in testIncorrectContextUse_DisplayContext_ThrowViolation()
706 displayContext.getSystemService(WallpaperManager.class) in testIncorrectContextUse_DisplayContext_ThrowViolation()
/cts/tests/app/src/android/app/cts/
DCloseSystemDialogsTest.java470 Context displayContext = context.createDisplayContext(display); in getContextForSaw() local
471 return displayContext.createWindowContext(TYPE_APPLICATION_OVERLAY, null); in getContextForSaw()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DMockIme.java177 final Context displayContext = createDisplayContext(getDisplay()); in onHandleCommand()
400 final WindowManager wm = displayContext in onHandleCommand()
409 ViewConfiguration.get(displayContext); in onHandleCommand()
419 new GestureDetector(displayContext, listener); in onHandleCommand()