Home
last modified time | relevance | path

Searched refs:displayDevice (Results 1 – 14 of 14) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/unittests/
DDisplayDevice_SetDisplayBrightnessTest.cpp40 sp<DisplayDevice> displayDevice = getDisplayDevice(); in TEST_F() local
42 EXPECT_EQ(std::nullopt, displayDevice->getStagedBrightness()); in TEST_F()
45 displayDevice->stageBrightness(kDisplayBrightness); in TEST_F()
47 EXPECT_EQ(0.5f, displayDevice->getStagedBrightness()); in TEST_F()
49 displayDevice->persistBrightness(false); in TEST_F()
51 EXPECT_EQ(std::nullopt, displayDevice->getStagedBrightness()); in TEST_F()
52 EXPECT_EQ(std::nullopt, displayDevice->getCompositionDisplay()->getState().displayBrightness); in TEST_F()
57 sp<DisplayDevice> displayDevice = getDisplayDevice(); in TEST_F() local
59 EXPECT_EQ(std::nullopt, displayDevice->getStagedBrightness()); in TEST_F()
62 displayDevice->stageBrightness(kDisplayBrightness); in TEST_F()
[all …]
DFakeDisplayInjector.h84 auto displayDevice = injector.inject();
88 return displayDevice;
DDisplayDevice_GetBestColorModeTest.cpp46 auto displayDevice = in getBestColorMode() local
53 displayDevice->getCompositionDisplay() in getBestColorMode()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayDeviceTest.java79 DisplayDevice displayDevice = new FakeDisplayDevice(mDisplayDeviceInfo, in testGetDisplaySurfaceDefaultSizeLocked_notRotated_anisotropyCorrection() local
81 assertThat(displayDevice.getDisplaySurfaceDefaultSizeLocked()).isEqualTo( in testGetDisplaySurfaceDefaultSizeLocked_notRotated_anisotropyCorrection()
90 DisplayDevice displayDevice = new FakeDisplayDevice(mDisplayDeviceInfo, in testGetDisplaySurfaceDefaultSizeLocked_notRotated_noAnisotropyCorrection() local
92 assertThat(displayDevice.getDisplaySurfaceDefaultSizeLocked()).isEqualTo(PORTRAIT_SIZE); in testGetDisplaySurfaceDefaultSizeLocked_notRotated_noAnisotropyCorrection()
97 DisplayDevice displayDevice = new FakeDisplayDevice(mDisplayDeviceInfo, in testGetDisplaySurfaceDefaultSizeLocked_notRotated() local
99 assertThat(displayDevice.getDisplaySurfaceDefaultSizeLocked()).isEqualTo(PORTRAIT_SIZE); in testGetDisplaySurfaceDefaultSizeLocked_notRotated()
104 DisplayDevice displayDevice = new FakeDisplayDevice(mDisplayDeviceInfo, in testGetDisplaySurfaceDefaultSizeLocked_rotation0() local
106 displayDevice.setProjectionLocked(mMockTransaction, ROTATION_0, new Rect(), new Rect()); in testGetDisplaySurfaceDefaultSizeLocked_rotation0()
107 assertThat(displayDevice.getDisplaySurfaceDefaultSizeLocked()).isEqualTo(PORTRAIT_SIZE); in testGetDisplaySurfaceDefaultSizeLocked_rotation0()
115 DisplayDevice displayDevice = new FakeDisplayDevice(mDisplayDeviceInfo, in testGetDisplaySurfaceDefaultSizeLocked_rotation90_anisotropyCorrection() local
[all …]
DLocalDisplayAdapterTest.java267 DisplayDevice displayDevice = mListener.addedDisplays.get(0); in testSupportedDisplayModesGetOverriddenWhenDisplayIsUpdated() local
268 displayDevice.applyPendingDisplayDeviceInfoChangesLocked(); in testSupportedDisplayModesGetOverriddenWhenDisplayIsUpdated()
269 Display.Mode[] supportedModes = displayDevice.getDisplayDeviceInfoLocked().supportedModes; in testSupportedDisplayModesGetOverriddenWhenDisplayIsUpdated()
279 displayDevice = mListener.changedDisplays.get(0); in testSupportedDisplayModesGetOverriddenWhenDisplayIsUpdated()
280 displayDevice.applyPendingDisplayDeviceInfoChangesLocked(); in testSupportedDisplayModesGetOverriddenWhenDisplayIsUpdated()
281 supportedModes = displayDevice.getDisplayDeviceInfoLocked().supportedModes; in testSupportedDisplayModesGetOverriddenWhenDisplayIsUpdated()
371 DisplayDevice displayDevice = in testAlternativeRefreshRatesCommon() local
373 displayDevice.applyPendingDisplayDeviceInfoChangesLocked(); in testAlternativeRefreshRatesCommon()
374 Display.Mode[] supportedModes = displayDevice.getDisplayDeviceInfoLocked().supportedModes; in testAlternativeRefreshRatesCommon()
481 DisplayDevice displayDevice = mListener.changedDisplays.get(0); in testAfterDisplayChange_DefaultDisplayModeIsUpdated() local
[all …]
DDisplayManagerServiceTest.java819 FakeDisplayDevice displayDevice = new FakeDisplayDevice();
832 displayDevice.setDisplayDeviceInfo(displayDeviceInfo);
834 .onDisplayDeviceEvent(displayDevice, DisplayAdapter.DISPLAY_DEVICE_EVENT_ADDED);
838 int displayId = getDisplayIdForDisplayDevice(displayManager, bs, displayDevice);
844 displayManager, bs, displayDevice);
850 displayDevice.setDisplayDeviceInfo(displayDeviceInfo2);
852 .onDisplayDeviceEvent(displayDevice, DisplayAdapter.DISPLAY_DEVICE_EVENT_CHANGED);
1915 FakeDisplayDevice displayDevice = createFakeDisplayDevice(displayManager, new float[]{60f});
1917 displayManagerBinderService, displayDevice);
1920 updateFrameRateOverride(displayManager, displayDevice,
[all …]
DLogicalDisplayTest.java405 DisplayDevice displayDevice = new DisplayDevice(mDisplayAdapter, mDisplayToken, in testDisplayInputFlags() local
418 mLogicalDisplay.configureDisplayLocked(t, displayDevice, false); in testDisplayInputFlags()
423 mLogicalDisplay.configureDisplayLocked(t, displayDevice, false); in testDisplayInputFlags()
428 mLogicalDisplay.configureDisplayLocked(t, displayDevice, false); in testDisplayInputFlags()
433 mLogicalDisplay.configureDisplayLocked(t, displayDevice, false); in testDisplayInputFlags()
439 mLogicalDisplay.configureDisplayLocked(t, displayDevice, false); in testDisplayInputFlags()
DLogicalDisplayMapperTest.java1207 private void notifyDisplayChanges(TestDisplayDevice displayDevice) { in notifyDisplayChanges() argument
1208 mLogicalDisplayMapper.onDisplayDeviceChangedLocked(displayDevice, DIFF_EVERYTHING); in notifyDisplayChanges()
1211 private void assertDisplayEnabled(DisplayDevice displayDevice) { in assertDisplayEnabled() argument
1213 mLogicalDisplayMapper.getDisplayLocked(displayDevice).isEnabledLocked()).isTrue(); in assertDisplayEnabled()
1216 private void assertDisplayDisabled(DisplayDevice displayDevice) { in assertDisplayDisabled() argument
1218 mLogicalDisplayMapper.getDisplayLocked(displayDevice).isEnabledLocked()).isFalse(); in assertDisplayDisabled()
/frameworks/base/services/core/java/com/android/server/display/
DPersistentDataStore.java309 public boolean setBrightness(DisplayDevice displayDevice, float brightness, int userSerial) { in setBrightness() argument
310 if (displayDevice == null || !displayDevice.hasStableUniqueId()) { in setBrightness()
313 final String displayDeviceUniqueId = displayDevice.getUniqueId(); in setBrightness()
338 public boolean setUserPreferredRefreshRate(DisplayDevice displayDevice, float refreshRate) { in setUserPreferredRefreshRate() argument
339 final String displayDeviceUniqueId = displayDevice.getUniqueId(); in setUserPreferredRefreshRate()
340 if (!displayDevice.hasStableUniqueId() || displayDeviceUniqueId == null) { in setUserPreferredRefreshRate()
343 DisplayState state = getDisplayState(displayDevice.getUniqueId(), true); in setUserPreferredRefreshRate()
362 public boolean setUserPreferredResolution(DisplayDevice displayDevice, int width, int height) { in setUserPreferredResolution() argument
363 final String displayDeviceUniqueId = displayDevice.getUniqueId(); in setUserPreferredResolution()
364 if (!displayDevice.hasStableUniqueId() || displayDeviceUniqueId == null) { in setUserPreferredResolution()
[all …]
DDisplayDeviceRepository.java145 final DisplayDevice displayDevice = mDisplayDevices.get(i); in getByUniqueIdLocked() local
146 if (displayDevice.getUniqueId().equals(uniqueId)) { in getByUniqueIdLocked()
147 return displayDevice; in getByUniqueIdLocked()
DDisplayManagerService.java2410 DisplayDevice displayDevice = getDeviceForDisplayLocked(displayId); in storeModeInPersistentDataStoreLocked() local
2411 if (displayDevice == null) { in storeModeInPersistentDataStoreLocked()
2416 displayDevice, resolutionWidth, resolutionHeight); in storeModeInPersistentDataStoreLocked()
2417 mPersistentDataStore.setUserPreferredRefreshRate(displayDevice, refreshRate); in storeModeInPersistentDataStoreLocked()
2424 DisplayDevice displayDevice = getDeviceForDisplayLocked(displayId); in setUserPreferredModeForDisplayLocked() local
2425 if (displayDevice == null) { in setUserPreferredModeForDisplayLocked()
2438 Point[] resolutions = displayDevice.getSupportedResolutionsLocked(); in setUserPreferredModeForDisplayLocked()
2450 displayDevice.setUserPreferredDisplayModeLocked(mode); in setUserPreferredModeForDisplayLocked()
2502 DisplayDevice displayDevice = getDeviceForDisplayLocked(displayId); in getUserPreferredDisplayModeInternal() local
2503 if (displayDevice == null) { in getUserPreferredDisplayModeInternal()
[all …]
DLogicalDisplayMapper.java462 DisplayDevice displayDevice, int virtualDeviceUniqueId) { in associateDisplayDeviceWithVirtualDevice() argument
463 mVirtualDeviceDisplayMapping.put(displayDevice.getUniqueId(), virtualDeviceUniqueId); in associateDisplayDeviceWithVirtualDevice()
968 final DisplayDevice displayDevice = display.getPrimaryDisplayDeviceLocked(); in assignDisplayGroupLocked() local
971 final String primaryDisplayUniqueId = displayDevice.getUniqueId(); in assignDisplayGroupLocked()
987 final DisplayDeviceInfo displayDeviceInfo = displayDevice.getDisplayDeviceInfoLocked(); in assignDisplayGroupLocked()
/frameworks/native/services/surfaceflinger/
DScreenCaptureOutput.cpp56 if (auto displayDevice = args.renderArea.getDisplayDevice()) { in createScreenCaptureOutput() local
57 base::StringAppendF(&name, " for %" PRIu64, displayDevice->getId().value); in createScreenCaptureOutput()
DSurfaceFlinger.cpp4627 for (const auto& [token, displayDevice] : FTL_FAKE_GUARD(mStateLock, mDisplays)) { in invalidateLayerStack()
4628 auto display = displayDevice->getCompositionDisplay(); in invalidateLayerStack()