Home
last modified time | relevance | path

Searched refs:displayManager (Results 1 – 25 of 32) sorted by relevance

12

/cts/tests/tests/car/src/android/car/cts/utils/
DDisplayUtils.java66 DisplayManager displayManager = context.getSystemService(DisplayManager.class); in createDisplay() local
67 mVirtualDisplay = displayManager.createVirtualDisplay(CONTEXT_HELPER_CTS_DISPLAY_NAME, in createDisplay()
95 DisplayManager displayManager = context.getSystemService(DisplayManager.class); in createDisplayWithDefaultDisplayMetricsAndWait() local
97 displayManager.getDisplay(DEFAULT_DISPLAY).getRealMetrics(metrics); in createDisplayWithDefaultDisplayMetricsAndWait()
120 displayManager.registerDisplayListener(listener, null); in createDisplayWithDefaultDisplayMetricsAndWait()
125 mVirtualDisplay = displayManager.createVirtualDisplay(CONTEXT_HELPER_CTS_DISPLAY_NAME, in createDisplayWithDefaultDisplayMetricsAndWait()
132 () -> displayManager.getDisplay(theNewDisplayId) != null, in createDisplayWithDefaultDisplayMetricsAndWait()
136 displayManager.unregisterDisplayListener(listener); in createDisplayWithDefaultDisplayMetricsAndWait()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/app/
DDisplayUtils.java68 DisplayManager displayManager = context.getSystemService(DisplayManager.class); in createDisplayWithDefaultDisplayMetricsAndWait() local
70 displayManager.getDisplay(DEFAULT_DISPLAY).getRealMetrics(metrics); in createDisplayWithDefaultDisplayMetricsAndWait()
93 displayManager.registerDisplayListener(listener, null); in createDisplayWithDefaultDisplayMetricsAndWait()
98 mVirtualDisplay = displayManager.createVirtualDisplay(CONTEXT_HELPER_CTS_DISPLAY_NAME, in createDisplayWithDefaultDisplayMetricsAndWait()
105 () -> displayManager.getDisplay(theNewDisplayId) != null, in createDisplayWithDefaultDisplayMetricsAndWait()
109 displayManager.unregisterDisplayListener(listener); in createDisplayWithDefaultDisplayMetricsAndWait()
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DDisplaySizeTest.java114 final DisplayManager displayManager = mDm; in testSizeRangesAfterSettingDisplaySize() local
115 virtualDisplay = displayManager.createVirtualDisplay("CtsDisplay", initialLength, in testSizeRangesAfterSettingDisplaySize()
124 displayManager.registerDisplayListener(new DisplayManager.DisplayListener() { in testSizeRangesAfterSettingDisplaySize()
134 synchronized (displayManager) { in testSizeRangesAfterSettingDisplaySize()
136 displayManager.notify(); in testSizeRangesAfterSettingDisplaySize()
138 displayManager.unregisterDisplayListener(this); in testSizeRangesAfterSettingDisplaySize()
146 synchronized (displayManager) { in testSizeRangesAfterSettingDisplaySize()
148 displayManager.wait(3000 /* milliseconds */); in testSizeRangesAfterSettingDisplaySize()
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DHdrCapabilitiesAtomTests.java50 DisplayManager displayManager = InstrumentationRegistry.getTargetContext().getSystemService( in cacheOriginalHdrConversionMode() local
53 HdrConversionMode hdrConversionModeSetting = displayManager.getHdrConversionModeSetting(); in cacheOriginalHdrConversionMode()
81 DisplayManager displayManager = InstrumentationRegistry.getTargetContext().getSystemService( in getDeviceHdrOutCapabilities() local
84 int[] supportedHdrOutputTypes = displayManager.getSupportedHdrOutputTypes(); in getDeviceHdrOutCapabilities()
96 DisplayManager displayManager = InstrumentationRegistry.getTargetContext().getSystemService( in has4k30Issue() local
98 Display display = displayManager.getDisplay(Display.DEFAULT_DISPLAY); in has4k30Issue()
147 DisplayManager displayManager = InstrumentationRegistry.getTargetContext().getSystemService(
151 () -> displayManager.setHdrConversionMode(new HdrConversionMode(
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DDisplayStateManager.java61 public DisplayState(@NonNull DisplayManager displayManager) { in DisplayState() argument
62 mAreUserDisabledHdrTypesAllowed = displayManager.areUserDisabledHdrTypesAllowed(); in DisplayState()
63 int[] disabledHdrTypes = displayManager.getUserDisabledHdrTypes(); in DisplayState()
DDisplayUtil.java82 public static int getRefreshRateSwitchingType(DisplayManager displayManager) { in getRefreshRateSwitchingType() argument
83 return toSwitchingType(displayManager.getMatchContentFrameRateUserPreference()); in getRefreshRateSwitchingType()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/view/
DDisplayHelperTest.java94 DisplayManager displayManager = mContext.getSystemService(DisplayManager.class); in testDisplayType() local
95 Display defaultDisplay = displayManager.getDisplay(Display.DEFAULT_DISPLAY); in testDisplayType()
111 DisplayManager displayManager = mContext.getSystemService(DisplayManager.class); in getAllLocalDisplays() local
112 Display[] allDisplays = displayManager.getDisplays(); in getAllLocalDisplays()
/cts/tests/tests/car/src/android/car/view/cts/
DDisplayHelperTest.java39 DisplayManager displayManager = mContext.getSystemService(DisplayManager.class); in testGetUniqueId() local
40 Display defaultDisplay = displayManager.getDisplay(Display.DEFAULT_DISPLAY); in testGetUniqueId()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DDisplayUtils.java152 final DisplayManager displayManager = (DisplayManager) context.getSystemService( in createDisplayWithDefaultDisplayMetricsAndWait() local
154 displayManager.registerDisplayListener(listener, null); in createDisplayWithDefaultDisplayMetricsAndWait()
157 displayManager.getDisplay(DEFAULT_DISPLAY).getRealMetrics(metrics); in createDisplayWithDefaultDisplayMetricsAndWait()
163 () -> displayManager.getDisplay(display.getDisplayId()) != null, in createDisplayWithDefaultDisplayMetricsAndWait()
167 displayManager.unregisterDisplayListener(listener); in createDisplayWithDefaultDisplayMetricsAndWait()
/cts/tests/input/src/android/input/cts/
DVirtualDisplayActivityScenarioRule.kt141 val displayManager = in createDisplay() constant
145 displayManager.registerDisplayListener(object : DisplayManager.DisplayListener { in createDisplay()
150 displayManager.unregisterDisplayListener(this) in createDisplay()
154 virtualDisplay = displayManager.createVirtualDisplay( in createDisplay()
DTouchModeTest.kt78 private lateinit var displayManager: DisplayManager in <lambda>() variable in android.input.cts.TouchModeTest
90 displayManager = targetContext.getSystemService(DisplayManager::class.java) in <lambda>()
277 val display = Arrays.stream(displayManager.displays).filter { d -> in <lambda>()
356 displayManager.registerDisplayListener(object : DisplayManager.DisplayListener { in <lambda>()
361 displayManager.unregisterDisplayListener(this) in <lambda>()
366 virtualDisplay = displayManager.createVirtualDisplay( in <lambda>()
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
DDisplayDeviceInfo.java40 DisplayManager displayManager = (DisplayManager) in collectDeviceInfo() local
44 List<Display> internalDisplays = Arrays.stream(displayManager.getDisplays()) in collectDeviceInfo()
/cts/tests/tests/car/apps/overlaywindowappsdk22/src/android/car/app/cts/overlaywindowappsdk22/
DOverlayWindowTestActivitySdk22.java68 DisplayManager displayManager = getSystemService(DisplayManager.class); in createOverlayWindowOnDisplay() local
69 Display display = displayManager.getDisplay(displayId); in createOverlayWindowOnDisplay()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DSimpleKeyguardService.java51 DisplayManager displayManager = context.getSystemService(DisplayManager.class); in onCreateKeyguardSurface() local
52 Display display = displayManager.getDisplay(Display.DEFAULT_DISPLAY); in onCreateKeyguardSurface()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/power/
DPowerManagerHelperTest.java77 DisplayManager displayManager = mContext.getSystemService(DisplayManager.class); in testNewWakeLock() local
78 Display[] displays = displayManager.getDisplays(); in testNewWakeLock()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DVirtualDisplayHelper.java106 final DisplayManager displayManager = getInstrumentation() in createVirtualDisplay() local
126 mVirtualDisplay = displayManager.createVirtualDisplay( in createVirtualDisplay()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DRenderService.java81 final DisplayManager displayManager = getSystemService(DisplayManager.class); in getDisplayContext() local
82 final Display targetDisplay = displayManager.getDisplay(hostDisplayId); in getDisplayContext()
/cts/tests/mediapc/common/src/android/mediapc/cts/common/
DUtils.java105 DisplayManager displayManager = context.getSystemService(DisplayManager.class);
106 Display defaultDisplay = displayManager.getDisplay(Display.DEFAULT_DISPLAY);
108 Arrays.stream(displayManager.getDisplays())
/cts/tests/tests/content/src/android/content/wm/cts/
DContextTestBase.java80 final DisplayManager displayManager = mApplicationContext in createSecondaryDisplay() local
87 VirtualDisplay virtualDisplay = displayManager.createVirtualDisplay( in createSecondaryDisplay()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/
DSdkAvailabilityTest.java171 final DisplayManager displayManager = mContext.getSystemService(DisplayManager.class); in hasLargeScreenDisplay() local
172 return Arrays.stream(displayManager.getDisplays()) in hasLargeScreenDisplay()
/cts/tests/framework/base/windowmanager/overlayappbase/src/android/server/wm/overlay/
DUntrustedTouchTestService.java132 DisplayManager displayManager = context.getSystemService(DisplayManager.class); in getContextForSaw() local
133 Display display = displayManager.getDisplay(DEFAULT_DISPLAY); in getContextForSaw()
/cts/tests/framework/base/windowmanager/src/android/server/wm/input/
DWallpaperWindowInputTests.kt69 val displayManager = in setup() constant
71 val display = displayManager.getDisplay(DEFAULT_DISPLAY)!! in setup()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/display/
DHotplugTestActivity.java187 DisplayManager displayManager = mContext.getSystemService(DisplayManager.class); in onDisplayChanged() local
188 Display display = displayManager.getDisplay(Display.DEFAULT_DISPLAY); in onDisplayChanged()
DModeSwitchingTestActivity.java71 DisplayManager displayManager = getSystemService(DisplayManager.class); in onCreate() local
72 Display display = displayManager.getDisplay(Display.DEFAULT_DISPLAY); in onCreate()
/cts/tests/tests/multiuser/src/android/multiuser/cts/
DUserVisibilityTestCase.java197 DisplayManager displayManager = sContext.getSystemService(DisplayManager.class); in getSecondaryDisplayIdForStartingVisibleBackgroundUser() local
198 Display[] allDisplays = displayManager.getDisplays(); in getSecondaryDisplayIdForStartingVisibleBackgroundUser()

12