Searched refs:windowContext (Results 1 – 5 of 5) sorted by relevance
69 final Context windowContext = createWindowContext(display.mId); in testWindowContextConfigChanges() local71 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() local113 windowContext.bindService(new Intent(windowContext, TestLogService.class), in testWindowContextBindService()116 windowContext.unbindService(serviceConnection); in testWindowContextBindService()129 final Context windowContext = createWindowContext(display.mId); in testWindowContextRegisterComponentCallbacks() local133 windowContext.registerComponentCallbacks(callbacks); in testWindowContextRegisterComponentCallbacks()[all …]
109 final Context windowContext = createWindowContext(); in testGetDisplayFromWindowContext() local110 assertEquals(display, windowContext.getDisplay()); in testGetDisplayFromWindowContext()116 final Context windowContext = mApplicationContext.createWindowContext(display, in testGetDisplayFromWindowContextWithDefaultDisplay() local118 assertEquals(display, windowContext.getDisplay()); in testGetDisplayFromWindowContextWithDefaultDisplay()124 final Context windowContext = mApplicationContext.createWindowContext(display, in testGetDisplayFromWindowContextWithSecondaryDisplay() local126 assertEquals(display, windowContext.getDisplay()); in testGetDisplayFromWindowContextWithSecondaryDisplay()
82 final Context windowContext = mApplicationContext.createWindowContext(getDefaultDisplay(), in testIsUiContextOnWindowContextWithDisplay() local84 assertThat(windowContext.isUiContext()).isTrue(); in testIsUiContextOnWindowContextWithDisplay()
96 final Context windowContext = createWindowContext(DEFAULT_DISPLAY); in createPopupTextView() local97 final WindowManager wm = windowContext.getSystemService(WindowManager.class); in createPopupTextView()98 final EditText editText = new EditText(windowContext) { in createPopupTextView()
720 final Context windowContext = createWindowContext(); in testIncorrectContextUse_WindowContext_NoViolation() local722 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()