Home
last modified time | relevance | path

Searched refs:displayDevice (Results 1 – 10 of 10) 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 …]
DSurfaceFlinger_OnInitializeDisplaysTest.cpp78 auto displayDevice = primaryDisplay.mutableDisplayDevice(); in TEST_F() local
79 EXPECT_EQ(PowerMode::ON, displayDevice->getPowerMode()); in TEST_F()
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/servicestests/src/com/android/server/display/
DDisplayManagerServiceTest.java386 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/
DLocalDisplayAdapterTest.java291 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/
DPersistentDataStore.java308 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 …]
DDisplayDeviceRepository.java139 final DisplayDevice displayDevice = mDisplayDevices.get(i); in getByUniqueIdLocked() local
140 if (displayDevice.getUniqueId().equals(uniqueId)) { in getByUniqueIdLocked()
141 return displayDevice; in getByUniqueIdLocked()
DDisplayManagerService.java1807 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/
DSurfaceFlinger.cpp3553 for (const auto& [token, displayDevice] : FTL_FAKE_GUARD(mStateLock, mDisplays)) { in invalidateLayerStack()
3554 auto display = displayDevice->getCompositionDisplay(); in invalidateLayerStack()