Home
last modified time | relevance | path

Searched refs:mWindowContext (Results 1 – 8 of 8) sorted by relevance

/aosp12/frameworks/base/core/tests/coretests/src/android/window/
H A DWindowContextTest.java79 private final WindowContext mWindowContext = createWindowContext(); field in WindowContextTest
85 .createWindowContextWindowManager(mWindowContext); in testCreateWindowContextWindowManagerAttachClientToken()
89 final View view = new View(mWindowContext); in testCreateWindowContextWindowManagerAttachClientToken()
93 assertEquals(mWindowContext.getWindowContextToken(), params.mWindowContextToken); in testCreateWindowContextWindowManagerAttachClientToken()
106 final IBinder token = mWindowContext.getWindowContextToken(); in testCreateWindowContextNewTokenFromClient()
114 final View testView = new View(mWindowContext); in testCreateWindowContextNewTokenFromClient()
128 mWindowContext.getSystemService(WindowManager.class).addView(testView, params); in testCreateWindowContextNewTokenFromClient()
141 mWindowContext.release(); in testCreateWindowContextNewTokenFromClient()
250 assertNotNull(mWindowContext.getResources().getDrawable(R.drawable.custom_drawable, in testGetCustomDrawable()
/aosp12/frameworks/base/core/tests/coretests/src/android/view/
H A DWindowMetricsTest.java52 private Context mWindowContext; field in WindowMetricsTest
61 mWindowContext = instContext.createDisplayContext(display) in setUp()
63 mWm = mWindowContext.getSystemService(WindowManager.class); in setUp()
68 final View view = new View(mWindowContext); in testAddViewAndRemoveView_GetMetrics_DoNotCrash()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/util/
H A DDisplayController.java81 private final Context mWindowContext; field in DisplayController
95 mWindowContext = mContext.createWindowContext(display, TYPE_APPLICATION, null); in DisplayController()
96 mWindowContext.registerComponentCallbacks(this); in DisplayController()
98 mWindowContext = null; in DisplayController()
127 if (mWindowContext != null) { in close()
128 mWindowContext.unregisterComponentCallbacks(this); in close()
199 Display display = mWindowContext.getDisplay(); in onConfigurationChanged()
229 return Utilities.ATLEAST_S ? mWindowContext : mContext.createDisplayContext(display); in getDisplayInfoContext()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/
H A DTaskbarDelegate.java118 private Context mWindowContext; field in TaskbarDelegate
212 mWindowContext = mContext.createWindowContext(display, TYPE_APPLICATION, null);
213 mWindowContext.registerComponentCallbacks(this);
214 mScreenPinningNotify = new ScreenPinningNotify(mWindowContext);
234 if (mWindowContext != null) {
235 mWindowContext.unregisterComponentCallbacks(this);
236 mWindowContext = null;
/aosp12/frameworks/base/core/java/android/hardware/display/
H A DVirtualDisplay.java45 @Nullable private final Context mWindowContext; field in VirtualDisplay
53 mWindowContext = windowContext; in VirtualDisplay()
/aosp12/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
H A DBugReportService.java150 private Context mWindowContext; field in BugReportService
203 mWindowContext = createDisplayContext(primaryDisplay) in onCreate()
234 Toast.makeText(mWindowContext, in onStartCommand()
259 Toast.makeText(mWindowContext, in onStartCommand()
339 () -> Toast.makeText(mWindowContext, getText(resId), Toast.LENGTH_LONG).show()); in showToast()
443 mHandler.post(() -> Toast.makeText(mWindowContext, in requestBugReport()
/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A DImmersiveModeConfirmation.java98 private Context mWindowContext; field in ImmersiveModeConfirmation
390 if (mWindowManager == null || mWindowContext == null) { in getWindowManager()
393 mWindowContext = mContext.createWindowContext( in getWindowManager()
395 mWindowManager = mWindowContext.getSystemService(WindowManager.class); in getWindowManager()
403 wms.attachWindowContextToDisplayArea(mWindowContext.getWindowContextToken(), in getWindowManager()
/aosp12/packages/apps/Car/RotaryController/src/com/android/car/rotary/
H A DRotaryService.java464 @Nullable private Context mWindowContext; field in RotaryService
888 if (mWindowContext == null && sWindowContext != null) { in getWindowContext()
889 mWindowContext = sWindowContext.get(); in getWindowContext()
890 if (mWindowContext != null) { in getWindowContext()
894 if (mWindowContext == null) { in getWindowContext()
900 mWindowContext = createWindowContext(TYPE_APPLICATION_OVERLAY, null); in getWindowContext()
901 sWindowContext = new WeakReference<>(mWindowContext); in getWindowContext()
903 return mWindowContext; in getWindowContext()