Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 11274521 authored by Piotr Wilczyński's avatar Piotr Wilczyński
Browse files

Implement topology normalization

The topology normalization algorithm will be used to remove overlaps between displays if there are any after updating a display. It is based on the ChromeOS implementation.

Additionally:
- use float instead of double as discussed in the design doc, then we can also use PointF and RectF
- use ArrayDeque instead of LinkedList as that's the recommended way
- handle the edge case when a display is added to the topology twice
- implement a test for removing the primary display

Bug: 364906359
Flag: com.android.server.display.feature.flags.display_topology
Test: DisplayTopologyCoordinatorTest, DisplayTopologyTest
Change-Id: I563c3a767b3144625edd0c11119c51b21f520454
parent eff7ffab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment