Loading core/java/android/hardware/display/DisplayTopology.java +7 −1 Original line number Diff line number Diff line Loading @@ -813,7 +813,13 @@ public final class DisplayTopology implements Parcelable { return a == b || (Float.isNaN(a) && Float.isNaN(b)) || Math.abs(a - b) < EPSILON; } private Map<Integer, TreeNode> allNodesIdMap() { /** * Returns a map of all TreeNodes indexed by the display ID. * * @hide */ @NonNull public Map<Integer, TreeNode> allNodesIdMap() { var pend = new ArrayDeque<TreeNode>(); var found = new HashMap<Integer, TreeNode>(); Loading libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/MultiDisplayVeiledResizeTaskPositioner.kt +1 −2 Original line number Diff line number Diff line Loading @@ -382,8 +382,7 @@ class MultiDisplayVeiledResizeTaskPositioner( displayIds.clear() if (topology == null) return val displayBounds = topology.getAbsoluteBounds() displayIds.addAll(List(displayBounds.size()) { displayBounds.keyAt(it) }) displayIds.addAll(topology.allNodesIdMap().keys) } companion object { Loading Loading
core/java/android/hardware/display/DisplayTopology.java +7 −1 Original line number Diff line number Diff line Loading @@ -813,7 +813,13 @@ public final class DisplayTopology implements Parcelable { return a == b || (Float.isNaN(a) && Float.isNaN(b)) || Math.abs(a - b) < EPSILON; } private Map<Integer, TreeNode> allNodesIdMap() { /** * Returns a map of all TreeNodes indexed by the display ID. * * @hide */ @NonNull public Map<Integer, TreeNode> allNodesIdMap() { var pend = new ArrayDeque<TreeNode>(); var found = new HashMap<Integer, TreeNode>(); Loading
libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/MultiDisplayVeiledResizeTaskPositioner.kt +1 −2 Original line number Diff line number Diff line Loading @@ -382,8 +382,7 @@ class MultiDisplayVeiledResizeTaskPositioner( displayIds.clear() if (topology == null) return val displayBounds = topology.getAbsoluteBounds() displayIds.addAll(List(displayBounds.size()) { displayBounds.keyAt(it) }) displayIds.addAll(topology.allNodesIdMap().keys) } companion object { Loading