Home
last modified time | relevance | path

Searched refs:windowContext (Results 1 – 5 of 5) sorted by relevance

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowContextTests.java69 final Context windowContext = createWindowContext(display.mId); in testWindowContextConfigChanges() local
71 final View view = new View(windowContext); in testWindowContextConfigChanges()
72 WindowManager wm = windowContext.getSystemService(WindowManager.class); in testWindowContextConfigChanges()
80 Rect bounds = windowContext.getSystemService(WindowManager.class).getCurrentWindowMetrics() in testWindowContextConfigChanges()
88 bounds = windowContext.getSystemService(WindowManager.class).getCurrentWindowMetrics() in testWindowContextConfigChanges()
103 final Context windowContext = createWindowContext(DEFAULT_DISPLAY); in testWindowContextBindService() local
113 windowContext.bindService(new Intent(windowContext, TestLogService.class), in testWindowContextBindService()
116 windowContext.unbindService(serviceConnection); in testWindowContextBindService()
129 final Context windowContext = createWindowContext(display.mId); in testWindowContextRegisterComponentCallbacks() local
133 windowContext.registerComponentCallbacks(callbacks); in testWindowContextRegisterComponentCallbacks()
[all …]
/cts/tests/tests/content/src/android/content/wm/cts/
DContextGetDisplayTest.java109 final Context windowContext = createWindowContext(); in testGetDisplayFromWindowContext() local
110 assertEquals(display, windowContext.getDisplay()); in testGetDisplayFromWindowContext()
116 final Context windowContext = mApplicationContext.createWindowContext(display, in testGetDisplayFromWindowContextWithDefaultDisplay() local
118 assertEquals(display, windowContext.getDisplay()); in testGetDisplayFromWindowContextWithDefaultDisplay()
124 final Context windowContext = mApplicationContext.createWindowContext(display, in testGetDisplayFromWindowContextWithSecondaryDisplay() local
126 assertEquals(display, windowContext.getDisplay()); in testGetDisplayFromWindowContextWithSecondaryDisplay()
DContextIsUiContextTest.java82 final Context windowContext = mApplicationContext.createWindowContext(getDefaultDisplay(), in testIsUiContextOnWindowContextWithDisplay() local
84 assertThat(windowContext.isUiContext()).isTrue(); in testIsUiContextOnWindowContextWithDisplay()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/
DWindowFocusHandleService.java96 final Context windowContext = createWindowContext(DEFAULT_DISPLAY); in createPopupTextView() local
97 final WindowManager wm = windowContext.getSystemService(WindowManager.class); in createPopupTextView()
98 final EditText editText = new EditText(windowContext) { in createPopupTextView()
/cts/tests/tests/os/src/android/os/cts/
DStrictModeTest.java720 final Context windowContext = createWindowContext(); in testIncorrectContextUse_WindowContext_NoViolation() local
722 assertNoViolation(() -> windowContext.getSystemService(WINDOW_SERVICE)); in testIncorrectContextUse_WindowContext_NoViolation()
724 assertNoViolation(() -> ViewConfiguration.get(windowContext)); in testIncorrectContextUse_WindowContext_NoViolation()
728 assertNoViolation(() -> new GestureDetector(windowContext, mGestureListener)); in testIncorrectContextUse_WindowContext_NoViolation()
735 assertNoViolation(() -> windowContext.getSystemService(WallpaperManager.class) in testIncorrectContextUse_WindowContext_NoViolation()