/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | DisplayDevice_SetDisplayBrightnessTest.cpp | 40 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 …]
|
D | SurfaceFlinger_OnInitializeDisplaysTest.cpp | 78 auto displayDevice = primaryDisplay.mutableDisplayDevice(); in TEST_F() local 79 EXPECT_EQ(PowerMode::ON, displayDevice->getPowerMode()); in TEST_F()
|
D | FakeDisplayInjector.h | 84 auto displayDevice = injector.inject(); 88 return displayDevice;
|
D | DisplayDevice_GetBestColorModeTest.cpp | 46 auto displayDevice = in getBestColorMode() local 53 displayDevice->getCompositionDisplay() in getBestColorMode()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | DisplayManagerServiceTest.java | 386 FakeDisplayDevice displayDevice = new FakeDisplayDevice(); in testShouldNotifyChangeWhenNonOverrideDisplayInfoChanged() local 399 displayDevice.setDisplayDeviceInfo(displayDeviceInfo); in testShouldNotifyChangeWhenNonOverrideDisplayInfoChanged() 401 .onDisplayDeviceEvent(displayDevice, DisplayAdapter.DISPLAY_DEVICE_EVENT_ADDED); in testShouldNotifyChangeWhenNonOverrideDisplayInfoChanged() 405 int displayId = getDisplayIdForDisplayDevice(displayManager, bs, displayDevice); in testShouldNotifyChangeWhenNonOverrideDisplayInfoChanged() 411 displayManager, bs, displayDevice); in testShouldNotifyChangeWhenNonOverrideDisplayInfoChanged() 417 displayDevice.setDisplayDeviceInfo(displayDeviceInfo2); in testShouldNotifyChangeWhenNonOverrideDisplayInfoChanged() 419 .onDisplayDeviceEvent(displayDevice, DisplayAdapter.DISPLAY_DEVICE_EVENT_CHANGED); in testShouldNotifyChangeWhenNonOverrideDisplayInfoChanged() 437 FakeDisplayDevice displayDevice = new FakeDisplayDevice("unique_hbm_device"); in testHighBrightnessModeMetadataNonNull() local 440 displayDevice.setDisplayDeviceInfo(displayDeviceInfo); in testHighBrightnessModeMetadataNonNull() 442 LogicalDisplay logicalDisplay = new LogicalDisplay(1, 1, displayDevice); in testHighBrightnessModeMetadataNonNull() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/display/ |
D | LocalDisplayAdapterTest.java | 291 DisplayDevice displayDevice = in testAlternativeRefreshRatesCommon() local 293 displayDevice.applyPendingDisplayDeviceInfoChangesLocked(); in testAlternativeRefreshRatesCommon() 294 Display.Mode[] supportedModes = displayDevice.getDisplayDeviceInfoLocked().supportedModes; in testAlternativeRefreshRatesCommon() 401 DisplayDevice displayDevice = mListener.changedDisplays.get(0); in testAfterDisplayChange_DefaultDisplayModeIsUpdated() local 402 displayDevice.applyPendingDisplayDeviceInfoChangesLocked(); in testAfterDisplayChange_DefaultDisplayModeIsUpdated() 452 DisplayDevice displayDevice = mListener.changedDisplays.get(0); in testAfterDisplayChange_DisplayModesAreUpdated() local 453 displayDevice.applyPendingDisplayDeviceInfoChangesLocked(); in testAfterDisplayChange_DisplayModesAreUpdated() 454 displayDeviceInfo = displayDevice.getDisplayDeviceInfoLocked(); in testAfterDisplayChange_DisplayModesAreUpdated() 498 DisplayDevice displayDevice = mListener.changedDisplays.get(0); in testAfterDisplayChange_ActiveModeIsUpdated() local 499 displayDevice.applyPendingDisplayDeviceInfoChangesLocked(); in testAfterDisplayChange_ActiveModeIsUpdated() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | PersistentDataStore.java | 308 public boolean setBrightness(DisplayDevice displayDevice, float brightness) { in setBrightness() argument 309 final String displayDeviceUniqueId = displayDevice.getUniqueId(); in setBrightness() 310 if (!displayDevice.hasStableUniqueId() || displayDeviceUniqueId == null) { in setBrightness() 334 public boolean setUserPreferredRefreshRate(DisplayDevice displayDevice, float refreshRate) { in setUserPreferredRefreshRate() argument 335 final String displayDeviceUniqueId = displayDevice.getUniqueId(); in setUserPreferredRefreshRate() 336 if (!displayDevice.hasStableUniqueId() || displayDeviceUniqueId == null) { in setUserPreferredRefreshRate() 339 DisplayState state = getDisplayState(displayDevice.getUniqueId(), true); in setUserPreferredRefreshRate() 358 public boolean setUserPreferredResolution(DisplayDevice displayDevice, int width, int height) { in setUserPreferredResolution() argument 359 final String displayDeviceUniqueId = displayDevice.getUniqueId(); in setUserPreferredResolution() 360 if (!displayDevice.hasStableUniqueId() || displayDeviceUniqueId == null) { in setUserPreferredResolution() [all …]
|
D | DisplayDeviceRepository.java | 139 final DisplayDevice displayDevice = mDisplayDevices.get(i); in getByUniqueIdLocked() local 140 if (displayDevice.getUniqueId().equals(uniqueId)) { in getByUniqueIdLocked() 141 return displayDevice; in getByUniqueIdLocked()
|
D | DisplayManagerService.java | 1807 DisplayDevice displayDevice = getDeviceForDisplayLocked(displayId); 1808 if (displayDevice == null) { 1813 displayDevice, resolutionWidth, resolutionHeight); 1814 mPersistentDataStore.setUserPreferredRefreshRate(displayDevice, refreshRate); 1821 DisplayDevice displayDevice = getDeviceForDisplayLocked(displayId); 1822 if (displayDevice == null) { 1825 displayDevice.setUserPreferredDisplayModeLocked(mode); 1854 DisplayDevice displayDevice = getDeviceForDisplayLocked(displayId); 1855 if (displayDevice == null) { 1858 return displayDevice.getUserPreferredDisplayModeLocked(); [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | SurfaceFlinger.cpp | 3553 for (const auto& [token, displayDevice] : FTL_FAKE_GUARD(mStateLock, mDisplays)) { in invalidateLayerStack() 3554 auto display = displayDevice->getCompositionDisplay(); in invalidateLayerStack()
|