Home
last modified time | relevance | path

Searched refs:mDisplayManager (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/hardware/display/
DVirtualDisplayTest.java70 private DisplayManager mDisplayManager; field in VirtualDisplayTest
81 mDisplayManager = (DisplayManager)mContext.getSystemService(Context.DISPLAY_SERVICE); in setUp()
114 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testPrivateVirtualDisplay()
137 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testPrivatePresentationVirtualDisplay()
165 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testPublicPresentationVirtualDisplay()
178 Display defaultDisplay = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in testPublicPresentationVirtualDisplay()
218 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testSecurePublicPresentationVirtualDisplay()
232 Display defaultDisplay = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in testSecurePublicPresentationVirtualDisplay()
264 findDisplay(mDisplayManager.getDisplays(), NAME)); in assertDisplayRegistered()
268 findDisplay(mDisplayManager.getDisplays( in assertDisplayRegistered()
[all …]
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/car/sideloaded/
DSideLoadedAppListener.java40 private DisplayManager mDisplayManager; field in SideLoadedAppListener
51 mDisplayManager = displayManager; in SideLoadedAppListener()
67 Display display = mDisplayManager.getDisplay(stackInfo.displayId); in onTaskCreated()
76 Display[] displays = mDisplayManager.getDisplays(); in onTaskStackChanged()
/frameworks/base/core/java/android/app/
DPresentation.java159 private final DisplayManager mDisplayManager; field in Presentation
193 mDisplayManager = (DisplayManager)getContext().getSystemService(DISPLAY_SERVICE); in Presentation()
231 mDisplayManager.registerDisplayListener(mDisplayListener, mHandler); in onStart()
246 mDisplayManager.unregisterDisplayListener(mDisplayListener); in onStop()
/frameworks/base/packages/CarSystemUI/tests/src/com/android/systemui/car/sideloaded/
DSideLoadedAppListenerTest.java62 private DisplayManager mDisplayManager; field in SideLoadedAppListenerTest
73 mActivityTaskManager, mDisplayManager, mSideLoadedAppStateController); in setUp()
121 when(mDisplayManager.getDisplay(displayId)).thenReturn(display); in onTaskCreated_unsafeTask_callsUnsafeTaskCreated()
144 when(mDisplayManager.getDisplays()).thenReturn(new Display[] { display }); in onTaskStackChanged_safeTask_callsSafeTaskDisplayed()
168 when(mDisplayManager.getDisplays()).thenReturn(new Display[] { display }); in onTaskStackChanged_unsafeTask_callsUnsafeTaskDisplayed()
208 when(mDisplayManager.getDisplays()) in onTaskStackChanged_multiDisplay_callsTasksDisplayed()
/frameworks/base/services/core/java/com/android/server/vr/
DVr2dDisplay.java75 private final DisplayManager mDisplayManager; field in Vr2dDisplay
106 mDisplayManager = displayManager; in Vr2dDisplay()
278 Log.d(TAG, "Request to start VD, DM:" + mDisplayManager); in startVirtualDisplay()
281 if (mDisplayManager == null) { in startVirtualDisplay()
303 mVirtualDisplay = mDisplayManager.createVirtualDisplay(null /* projection */, in startVirtualDisplay()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNavigationBarController.java62 private final DisplayManager mDisplayManager; field in NavigationBarController
73 mDisplayManager = (DisplayManager) mContext.getSystemService(Context.DISPLAY_SERVICE); in NavigationBarController()
84 Display display = mDisplayManager.getDisplay(displayId); in onDisplayReady()
97 Display[] displays = mDisplayManager.getDisplays(); in createNavigationBars()
/frameworks/base/services/core/java/com/android/server/display/
DOverlayDisplayWindow.java72 private final DisplayManager mDisplayManager; field in OverlayDisplayWindow
107 mDisplayManager = (DisplayManager)context.getSystemService( in OverlayDisplayWindow()
123 mDisplayManager.registerDisplayListener(mDisplayListener, null); in show()
125 mDisplayManager.unregisterDisplayListener(mDisplayListener); in show()
138 mDisplayManager.unregisterDisplayListener(mDisplayListener); in dismiss()
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
DDisplaySourceService.java49 private final DisplayManager mDisplayManager; field in DisplaySourceService
62 mDisplayManager = (DisplayManager)context.getSystemService(Context.DISPLAY_SERVICE); in DisplaySourceService()
206 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay( in run()
/frameworks/opt/car/services/src/com/android/server/wm/
DCarLaunchParamsModifier.java59 private DisplayManager mDisplayManager; // set only from init() field in CarLaunchParamsModifier
137 mDisplayManager = mContext.getSystemService(DisplayManager.class); in init()
138 mDisplayManager.registerDisplayListener(mDisplayListener, in init()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/
DWallpaperManagerServiceTests.java111 private DisplayManager mDisplayManager; field in WallpaperManagerServiceTests
175 sContext.addMockSystemService(DisplayManager.class, mDisplayManager); in setUp()
179 doReturn(mockDisplay).when(mDisplayManager).getDisplay(anyInt()); in setUp()
182 doReturn(displays).when(mDisplayManager).getDisplays(); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DBrightnessController.java82 private final DisplayManager mDisplayManager; field in BrightnessController
327 mDisplayManager = context.getSystemService(DisplayManager.class); in BrightnessController()
425 mDisplayManager.setTemporaryBrightness(brightness); in setBrightness()
/frameworks/opt/car/services/tests/src/com/android/server/wm/
DCarLaunchParamsModifierTest.java72 private DisplayManager mDisplayManager; field in CarLaunchParamsModifierTest
124 when(mDisplayManager.getDisplay(displayId)).thenReturn(display); in mockDisplay()
144 when(mContext.getSystemService(DisplayManager.class)).thenReturn(mDisplayManager); in setUp()
/frameworks/base/core/java/android/service/wallpaper/
DWallpaperService.java1093 mIWallpaperEngine.mDisplayManager.registerDisplayListener(mDisplayListener, in attach()
1282 if (mIWallpaperEngine.mDisplayManager != null) { in detach()
1283 mIWallpaperEngine.mDisplayManager.unregisterDisplayListener(mDisplayListener); in detach()
1346 final DisplayManager mDisplayManager; field in WallpaperService.IWallpaperEngineWrapper
1367 mDisplayManager = getSystemService(DisplayManager.class); in IWallpaperEngineWrapper()
1368 mDisplay = mDisplayManager.getDisplay(mDisplayId); in IWallpaperEngineWrapper()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DScreenDecorationsTest.java84 private DisplayManager mDisplayManager; field in ScreenDecorationsTest
104 mDisplayManager = mock(DisplayManager.class); in setup()
107 when(mDisplayManager.getDisplay(anyInt())).thenReturn(display); in setup()
108 mContext.addMockSystemService(DisplayManager.class, mDisplayManager); in setup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DScreenDecorations.java111 private DisplayManager mDisplayManager; field in ScreenDecorations
216 mDisplayManager = mContext.getSystemService(DisplayManager.class); in startOnScreenDecorationsThread()
262 mDisplayManager.registerDisplayListener(mDisplayListener, mHandler); in startOnScreenDecorationsThread()
289 mDisplayManager.getDisplay(DEFAULT_DISPLAY).getMetrics(metrics); in setupDecorations()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAbstractAccessibilityServiceConnection.java112 private final DisplayManager mDisplayManager; field in AbstractAccessibilityServiceConnection
259 mDisplayManager = (DisplayManager) context.getSystemService(Context.DISPLAY_SERVICE); in AbstractAccessibilityServiceConnection()
1090 final Display[] displays = mDisplayManager.getDisplays(); in onAdded()
1118 final Display[] displays = mDisplayManager.getDisplays(); in onRemoved()
DAccessibilityManagerService.java3078 private final DisplayManager mDisplayManager; field in AccessibilityManagerService.AccessibilityDisplayListener
3083 mDisplayManager = (DisplayManager) context.getSystemService(Context.DISPLAY_SERVICE); in AccessibilityDisplayListener()
3084 mDisplayManager.registerDisplayListener(this, handler); in AccessibilityDisplayListener()
3102 final Display[] displays = mDisplayManager.getDisplays(); in initializeDisplayList()
3119 final Display display = mDisplayManager.getDisplay(displayId); in onDisplayAdded()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java583 mDisplayManager.getDisplay(DEFAULT_DISPLAY).getDisplayInfo(displayInfo); in generateCrop()
799 private final DisplayManager mDisplayManager; field in WallpaperManagerService
1008 Display display = mDisplayManager.getDisplay(displayId); in getMaximumSizeDimension()
1011 display = mDisplayManager.getDisplay(DEFAULT_DISPLAY); in getMaximumSizeDimension()
1205 final Display[] displays = mDisplayManager.getDisplays(); in appendConnectorWithCondition()
1255 final Display display = mDisplayManager.getDisplay(displayId); in getDisplayConnectorOrCreate()
1650 mDisplayManager = mContext.getSystemService(DisplayManager.class); in WallpaperManagerService()
1651 mDisplayManager.registerDisplayListener(mDisplayListener, null /* handler */); in WallpaperManagerService()
2054 return mDisplayManager.getDisplay(displayId) != null; in isValidDisplay()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/
DAppStandbyController.java1918 private DisplayManager mDisplayManager; field in AppStandbyController.Injector
1954 mDisplayManager = (DisplayManager) mContext.getSystemService( in onBootPhase()
2068 return mDisplayManager in isDefaultDisplayOn()
2073 mDisplayManager.registerDisplayListener(listener, handler); in registerDisplayListener()
/frameworks/base/services/core/java/com/android/server/wm/
DRootWindowContainer.java244 DisplayManager mDisplayManager; field in RootWindowContainer
1355 mDisplayManager = mService.mContext.getSystemService(DisplayManager.class); in setWindowManager()
1356 mDisplayManager.registerDisplayListener(this, mService.mUiHandler); in setWindowManager()
1359 final Display[] displays = mDisplayManager.getDisplays(); in setWindowManager()
1431 if (mDisplayManager == null) { in getDisplayContentOrCreate()
1435 final Display display = mDisplayManager.getDisplay(displayId); in getDisplayContentOrCreate()
DWindowManagerService.java947 final DisplayManager mDisplayManager; field in WindowManagerService
1198 mDisplayManager = (DisplayManager)context.getSystemService(Context.DISPLAY_SERVICE); in WindowManagerService()
6831 final Display display = mDisplayManager.getDisplay(displayId); in checkCallerOwnsDisplay()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContext.java166 private final DisplayManager mDisplayManager; field in BridgeContext
253 mDisplayManager = new DisplayManager(this); in BridgeContext()
637 return mDisplayManager; in getSystemService()
/frameworks/base/services/core/java/com/android/server/policy/
DPhoneWindowManager.java366 DisplayManager mDisplayManager; field in PhoneWindowManager
1734 mDisplayManager = mContext.getSystemService(DisplayManager.class); in init()
2456 final Display targetDisplay = mDisplayManager.getDisplay(displayId); in getDisplayContext()
4165 : mDisplayManager.getDisplay(displayId); in shouldDispatchInputWhenNonInteractive()
/frameworks/base/core/java/android/view/
DViewRootImpl.java356 final DisplayManager mDisplayManager; field in ViewRootImpl
764 mDisplayManager = (DisplayManager)context.getSystemService(Context.DISPLAY_SERVICE); in ViewRootImpl()
926 mDisplayManager.registerDisplayListener(mDisplayListener, mHandler);
4687 mDisplayManager.unregisterDisplayListener(mDisplayListener); in dispatchDetachedFromWindow()