/frameworks/native/services/surfaceflinger/ |
D | DisplayDevice.cpp | 61 DisplayDevice::DisplayDevice(DisplayDeviceCreationArgs& args) in DisplayDevice() function in android::DisplayDevice 112 DisplayDevice::~DisplayDevice() = default; 114 void DisplayDevice::disconnect() { in disconnect() 118 int DisplayDevice::getWidth() const { in getWidth() 122 int DisplayDevice::getHeight() const { in getHeight() 126 void DisplayDevice::setDisplayName(const std::string& displayName) { in setDisplayName() 134 auto DisplayDevice::getFrontEndInfo() const -> frontend::DisplayInfo { in getFrontEndInfo() 170 void DisplayDevice::setPowerMode(hal::PowerMode mode) { in setPowerMode() 186 void DisplayDevice::tracePowerMode() { in tracePowerMode() 191 void DisplayDevice::enableLayerCaching(bool enable) { in enableLayerCaching() [all …]
|
D | DisplayRenderArea.h | 26 class DisplayDevice; variable 30 static std::unique_ptr<RenderArea> create(wp<const DisplayDevice>, const Rect& sourceCrop, 36 sp<const DisplayDevice> getDisplayDevice() const override; 40 DisplayRenderArea(sp<const DisplayDevice>, const Rect& sourceCrop, ui::Size reqSize, 43 const sp<const DisplayDevice> mDisplay;
|
D | DisplayRenderArea.cpp | 22 std::unique_ptr<RenderArea> DisplayRenderArea::create(wp<const DisplayDevice> displayWeak, in create() 35 DisplayRenderArea::DisplayRenderArea(sp<const DisplayDevice> display, const Rect& sourceCrop, in DisplayRenderArea() 50 sp<const DisplayDevice> DisplayRenderArea::getDisplayDevice() const { in getDisplayDevice()
|
D | LayerRenderArea.h | 29 class DisplayDevice; variable 42 sp<const DisplayDevice> getDisplayDevice() const override;
|
D | RenderArea.h | 13 class DisplayDevice; variable 88 virtual sp<const DisplayDevice> getDisplayDevice() const = 0;
|
D | SurfaceFlingerFactory.h | 34 class DisplayDevice; variable 73 virtual sp<DisplayDevice> createDisplayDevice(DisplayDeviceCreationArgs&) = 0;
|
D | RenderAreaBuilder.h | 51 wp<const DisplayDevice> displayWeak, in DisplayRenderAreaBuilder() 56 wp<const DisplayDevice> displayWeak;
|
D | Layer.h | 68 class DisplayDevice; variable 363 Region getVisibleRegion(const DisplayDevice*) const; 421 bool needsFiltering(const DisplayDevice*) const; 432 bool needsFilteringForScreenshots(const DisplayDevice*, const ui::Transform&) const; 439 void onCompositionPresented(const DisplayDevice*, 593 void updateTrustedPresentationState(const DisplayDevice* display, 704 void miniDumpLegacy(std::string& result, const DisplayDevice&) const; 705 void miniDump(std::string& result, const frontend::LayerSnapshot&, const DisplayDevice&) const; 1010 compositionengine::OutputLayer* findOutputLayerForDisplay(const DisplayDevice*) const; 1012 const DisplayDevice*, const frontend::LayerHierarchy::TraversalPath& path) const; [all …]
|
D | SurfaceFlinger.h | 339 const DisplayDevice* getDisplayFromLayerStack(ui::LayerStack) 588 void getDynamicDisplayInfoInternal(ui::DynamicDisplayInfo*&, const sp<DisplayDevice>&, 749 void setPowerModeInternal(const sp<DisplayDevice>& display, hal::PowerMode mode) 758 const sp<DisplayDevice>&, const scheduler::RefreshRateSelector::PolicyVariant&) 800 void initScheduler(const sp<const DisplayDevice>&) REQUIRES(kMainThreadContext, mStateLock); 955 sp<const DisplayDevice> getDisplayDeviceLocked(const wp<IBinder>& displayToken) const in getDisplayDeviceLocked() 960 sp<DisplayDevice> getDisplayDeviceLocked(const wp<IBinder>& displayToken) REQUIRES(mStateLock) { in getDisplayDeviceLocked() 962 .or_else(ftl::static_ref<sp<DisplayDevice>>([] { return nullptr; })) in getDisplayDeviceLocked() 966 sp<const DisplayDevice> getDisplayDeviceLocked(PhysicalDisplayId id) const in getDisplayDeviceLocked() 971 sp<DisplayDevice> getDisplayDeviceLocked(PhysicalDisplayId id) REQUIRES(mStateLock) { in getDisplayDeviceLocked() [all …]
|
D | SurfaceFlingerDefaultFactory.cpp | 55 sp<DisplayDevice> DefaultFactory::createDisplayDevice(DisplayDeviceCreationArgs& creationArgs) { in createDisplayDevice() 56 return sp<DisplayDevice>::make(creationArgs); in createDisplayDevice()
|
D | DisplayDevice.h | 74 class DisplayDevice : public RefBase { 80 explicit DisplayDevice(DisplayDeviceCreationArgs& args); 83 virtual ~DisplayDevice();
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayDeviceRepository.java | 57 private final List<DisplayDevice> mDisplayDevices = new ArrayList<>(); 83 public void onDisplayDeviceEvent(DisplayDevice device, int event) { in onDisplayDeviceEvent() 115 public boolean containsLocked(DisplayDevice d) { in containsLocked() 123 public void forEachLocked(Consumer<DisplayDevice> consumer) { in forEachLocked() 130 public DisplayDevice getByAddressLocked(@NonNull DisplayAddress address) { in getByAddressLocked() 132 final DisplayDevice device = mDisplayDevices.get(i); in getByAddressLocked() 143 public DisplayDevice getByUniqueIdLocked(@NonNull String uniqueId) { in getByUniqueIdLocked() 145 final DisplayDevice displayDevice = mDisplayDevices.get(i); in getByUniqueIdLocked() 153 private void handleDisplayDeviceAdded(DisplayDevice device) { in handleDisplayDeviceAdded() 168 private void handleDisplayDeviceChanged(DisplayDevice device) { in handleDisplayDeviceChanged() [all …]
|
D | LogicalDisplay.java | 108 private DisplayDevice mPrimaryDisplayDevice; 230 LogicalDisplay(int displayId, int layerStack, DisplayDevice primaryDisplayDevice) { in LogicalDisplay() 234 LogicalDisplay(int displayId, int layerStack, DisplayDevice primaryDisplayDevice, in LogicalDisplay() 274 public DisplayDevice getPrimaryDisplayDeviceLocked() { in getPrimaryDisplayDeviceLocked() 490 if (deviceInfo.xDpi > deviceInfo.yDpi * DisplayDevice.MAX_ANISOTROPY) { in updateLocked() 492 } else if (deviceInfo.xDpi * DisplayDevice.MAX_ANISOTROPY < deviceInfo.yDpi) { in updateLocked() 651 DisplayDevice device, in configureDisplayLocked() 723 if (displayDeviceInfo.xDpi > displayDeviceInfo.yDpi * DisplayDevice.MAX_ANISOTROPY) { in configureDisplayLocked() 731 } else if (displayDeviceInfo.xDpi * DisplayDevice.MAX_ANISOTROPY in configureDisplayLocked() 908 final DisplayDevice oldTargetDevice = in swapDisplaysLocked() [all …]
|
D | LogicalDisplayMapper.java | 251 public void onDisplayDeviceEventLocked(DisplayDevice device, int event) { in onDisplayDeviceEventLocked() 271 public void onDisplayDeviceChangedLocked(DisplayDevice device, int diff) { in onDisplayDeviceChangedLocked() 300 public LogicalDisplay getDisplayLocked(DisplayDevice device) { in getDisplayLocked() 304 public LogicalDisplay getDisplayLocked(DisplayDevice device, boolean includeDisabled) { in getDisplayLocked() 404 final DisplayDevice device = mDisplayDeviceRepo.getByAddressLocked(display.getAddress()); in getDisplayInfoForStateLocked() 462 DisplayDevice displayDevice, int virtualDeviceUniqueId) { in associateDisplayDeviceWithVirtualDevice() 609 final DisplayDevice device = display.getPrimaryDisplayDeviceLocked(); in areAllTransitioningDisplaysOffLocked() 657 private void handleDisplayDeviceAddedLocked(DisplayDevice device) { in handleDisplayDeviceAddedLocked() 675 private void handleDisplayDeviceRemovedLocked(DisplayDevice device) { in handleDisplayDeviceRemovedLocked() 692 DisplayDevice nextDevice = nextDisplay.getPrimaryDisplayDeviceLocked(); in handleDisplayDeviceRemovedLocked() [all …]
|
D | DisplayAdapter.java | 119 final DisplayDevice device, final int event) { in sendDisplayDeviceEventLocked() 142 void onDisplayDeviceEvent(DisplayDevice device, int event); in onDisplayDeviceEvent()
|
D | PersistentDataStore.java | 275 public int getColorMode(DisplayDevice device) { in getColorMode() 286 public boolean setColorMode(DisplayDevice device, int colorMode) { in setColorMode() 298 public float getBrightness(DisplayDevice device, int userSerial) { in getBrightness() 309 public boolean setBrightness(DisplayDevice displayDevice, float brightness, int userSerial) { in setBrightness() 338 public boolean setUserPreferredRefreshRate(DisplayDevice displayDevice, float refreshRate) { in setUserPreferredRefreshRate() 351 public float getUserPreferredRefreshRate(DisplayDevice device) { in getUserPreferredRefreshRate() 362 public boolean setUserPreferredResolution(DisplayDevice displayDevice, int width, int height) { in setUserPreferredResolution() 375 public Point getUserPreferredResolution(DisplayDevice displayDevice) { in getUserPreferredResolution() 410 DisplayDevice device, int userSerial, String packageName) { in setBrightnessConfigurationForDisplayLocked()
|
D | DisplayDevice.java | 48 abstract class DisplayDevice { class 85 DisplayDevice(DisplayAdapter displayAdapter, IBinder displayToken, String uniqueId, in DisplayDevice() method in DisplayDevice 90 DisplayDevice(DisplayAdapter displayAdapter, IBinder displayToken, String uniqueId, in DisplayDevice() method in DisplayDevice
|
D | DisplayManagerService.java | 554 final DisplayDevice device = getDeviceForDisplayLocked(displayId); 740 final DisplayDevice device = logicalDisplay.getPrimaryDisplayDeviceLocked(); in onUserSwitching() 1086 DisplayDevice device = display == null ? null : display.getPrimaryDisplayDeviceLocked(); in restoreResolutionFromBackup() 1166 mDisplayDeviceRepo.forEachLocked((DisplayDevice device) -> { in updateUserPreferredDisplayModeSettingsLocked() 1833 DisplayDevice device = mVirtualDisplayAdapter.createVirtualDisplayLocked( in createVirtualDisplayLocked() 1917 DisplayDevice device = in releaseVirtualDisplayInternal() 2008 final DisplayDevice device = display.getPrimaryDisplayDeviceLocked(); in setupLogicalDisplay() 2252 private Runnable updateDisplayStateLocked(DisplayDevice device) { in updateDisplayStateLocked() 2277 private void configureColorModeLocked(LogicalDisplay display, DisplayDevice device) { in configureColorModeLocked() 2292 final DisplayDevice device = display.getPrimaryDisplayDeviceLocked(); in configurePreferredDisplayModeLocked() [all …]
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | DisplayDeviceTest.java | 79 DisplayDevice displayDevice = new FakeDisplayDevice(mDisplayDeviceInfo, in testGetDisplaySurfaceDefaultSizeLocked_notRotated_anisotropyCorrection() 90 DisplayDevice displayDevice = new FakeDisplayDevice(mDisplayDeviceInfo, in testGetDisplaySurfaceDefaultSizeLocked_notRotated_noAnisotropyCorrection() 97 DisplayDevice displayDevice = new FakeDisplayDevice(mDisplayDeviceInfo, in testGetDisplaySurfaceDefaultSizeLocked_notRotated() 104 DisplayDevice displayDevice = new FakeDisplayDevice(mDisplayDeviceInfo, in testGetDisplaySurfaceDefaultSizeLocked_rotation0() 115 DisplayDevice displayDevice = new FakeDisplayDevice(mDisplayDeviceInfo, in testGetDisplaySurfaceDefaultSizeLocked_rotation90_anisotropyCorrection() 127 DisplayDevice displayDevice = new FakeDisplayDevice(mDisplayDeviceInfo, in testGetDisplaySurfaceDefaultSizeLocked_rotation90_noAnisotropyCorrection() 135 DisplayDevice displayDevice = new FakeDisplayDevice(mDisplayDeviceInfo, in testGetDisplaySurfaceDefaultSizeLocked_rotation90() 143 DisplayDevice displayDevice = new FakeDisplayDevice(mDisplayDeviceInfo, in testGetDisplaySurfaceDefaultSizeLocked_rotation180() 151 DisplayDevice displayDevice = new FakeDisplayDevice(mDisplayDeviceInfo, in testGetDisplaySurfaceDefaultSizeLocked_rotation270() 157 private static class FakeDisplayDevice extends DisplayDevice {
|
D | PersistentDataStoreTest.java | 72 final DisplayDevice testDisplayDevice = new DisplayDevice(mDisplayAdapter, in testLoadBrightness() 109 final DisplayDevice testDisplayDevice = in testSetBrightness_brightnessTagWithNoUserId_updatesToBrightnessTagWithUserId() 110 new DisplayDevice(mDisplayAdapter, /* displayToken= */ null, uniqueDisplayId, in testSetBrightness_brightnessTagWithNoUserId_updatesToBrightnessTagWithUserId() 284 DisplayDevice testDisplayDevice = new DisplayDevice(mDisplayAdapter, in testStoreAndReloadOfDisplayBrightnessConfigurations() 331 DisplayDevice testDisplayDevice = new DisplayDevice(mDisplayAdapter, in testSetBrightnessConfigurationFailsWithUnstableId() 399 DisplayDevice testDisplayDevice = new DisplayDevice(mDisplayAdapter, in testStoreAndRestoreResolution() 436 DisplayDevice testDisplayDevice = new DisplayDevice(mDisplayAdapter, in testStoreAndRestoreRefreshRate() 470 DisplayDevice testDisplayDevice = new DisplayDevice(mDisplayAdapter, in testBrightnessInitialisesWithInvalidFloat()
|
D | LogicalDisplayMapperTest.java | 224 DisplayDevice device = createDisplayDevice(TYPE_INTERNAL, 600, 800, in testDisplayDeviceAddAndRemove_Internal() 256 DisplayDevice device1 = createDisplayDevice(TYPE_INTERNAL, 600, 800, 0); in testDisplayDeviceAdd_TwoInternalOneDefault() 257 DisplayDevice device2 = createDisplayDevice(TYPE_INTERNAL, 600, 800, in testDisplayDeviceAdd_TwoInternalOneDefault() 271 DisplayDevice device1 = createDisplayDevice(TYPE_INTERNAL, 600, 800, in testDisplayDeviceAdd_TwoInternalBothDefault() 273 DisplayDevice device2 = createDisplayDevice(TYPE_INTERNAL, 600, 800, in testDisplayDeviceAdd_TwoInternalBothDefault() 288 DisplayDevice device = createDisplayDevice(TYPE_EXTERNAL, 600, 800, in testDisplayDeviceAddAndRemove_OneExternalDefault() 307 DisplayDevice device1 = createDisplayDevice(TYPE_INTERNAL, 600, 800, in testDisplayDeviceAddAndRemove_SwitchDefault() 309 DisplayDevice device2 = createDisplayDevice(TYPE_INTERNAL, 600, 800, in testDisplayDeviceAddAndRemove_SwitchDefault() 337 DisplayDevice device = createDisplayDevice(TYPE_INTERNAL, 600, 800, in testDisplayDeviceAddAndRemove_withDisplayManagement() 376 DisplayDevice device = createDisplayDevice(TYPE_INTERNAL, 600, 800, in testDisplayDisableEnable_withDisplayManagement() [all …]
|
D | VirtualDisplayAdapterTest.java | 85 DisplayDevice result = mVirtualDisplayAdapter.createVirtualDisplayLocked(mMockCallback, in testCreatesVirtualDisplay() 101 DisplayDevice result = mVirtualDisplayAdapter.createVirtualDisplayLocked( in testCreatesVirtualDisplay_checkGeneratedDisplayUniqueIdPrefix() 121 DisplayDevice result = mVirtualDisplayAdapter.createVirtualDisplayLocked(mMockCallback, in testDoesNotCreateVirtualDisplayForSameCallback()
|
D | LocalDisplayAdapterTest.java | 267 DisplayDevice displayDevice = mListener.addedDisplays.get(0); in testSupportedDisplayModesGetOverriddenWhenDisplayIsUpdated() 371 DisplayDevice displayDevice = in testAlternativeRefreshRatesCommon() 481 DisplayDevice displayDevice = mListener.changedDisplays.get(0); in testAfterDisplayChange_DefaultDisplayModeIsUpdated() 532 DisplayDevice displayDevice = mListener.changedDisplays.get(0); in testAfterDisplayChange_DisplayModesAreUpdated() 578 DisplayDevice displayDevice = mListener.changedDisplays.get(0); in testAfterDisplayChange_ActiveModeIsUpdated() 619 DisplayDevice displayDevice = mListener.changedDisplays.get(0); in testAfterDisplayChange_RenderFrameRateIsUpdated() 660 DisplayDevice displayDevice = mListener.changedDisplays.get(0); in testAfterDisplayChange_HdrCapabilitiesAreUpdated() 694 DisplayDevice displayDevice = mListener.changedDisplays.get(0); in testAfterDisplayChange_AllmSupportIsUpdated() 709 DisplayDevice displayDevice = mListener.addedDisplays.get(0); in testAfterDisplayStateChanges_committedSetAfterState() 765 DisplayDevice displayDevice = mListener.changedDisplays.get(0); in testAfterDisplayChange_GameContentTypeSupportIsUpdated() [all …]
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | DisplayDevice_SetDisplayBrightnessTest.cpp | 35 sp<DisplayDevice> getDisplayDevice() { return injectDefaultInternalDisplay({}); } in getDisplayDevice() 40 sp<DisplayDevice> displayDevice = getDisplayDevice(); in TEST_F() 57 sp<DisplayDevice> displayDevice = getDisplayDevice(); in TEST_F() 75 sp<DisplayDevice> displayDevice = getDisplayDevice(); in TEST_F() 101 sp<DisplayDevice> displayDevice = getDisplayDevice(); in TEST_F()
|
D | TestableSurfaceFlinger.h | 100 sp<DisplayDevice> createDisplayDevice(DisplayDeviceCreationArgs& creationArgs) override { in createDisplayDevice() 101 return sp<DisplayDevice>::make(creationArgs); in createDisplayDevice() 330 const sp<const DisplayDevice>& display) { in findOutputLayerForDisplay() 485 auto setPowerModeInternal(const sp<DisplayDevice>& display, in setPowerModeInternal() 490 auto renderScreenImpl(const sp<DisplayDevice> display, in renderScreenImpl() 569 void onActiveDisplayChanged(const DisplayDevice* inactiveDisplayPtr, in onActiveDisplayChanged() 570 const DisplayDevice& activeDisplay) { in onActiveDisplayChanged() 594 sp<DisplayDevice> createVirtualDisplayDevice(const sp<IBinder> displayToken, in createVirtualDisplayDevice() 609 return sp<DisplayDevice>::make(creationArgs); in createVirtualDisplayDevice() 986 const sp<DisplayDevice>& mutableDisplayDevice() { in mutableDisplayDevice() [all …]
|