Reduce unnecessary overhead of for-each input flags
This avoids creating ImmutableCollections.ListItr when performing InputMonitor#populateInputWindowHandle for each window. The iteration on a pure array is usually 3x faster than collection. Bug: 163976519 Test: CtsWindowManagerDeviceActivity Change-Id: I5513d6098d3c370f1dd1500f53af942269babd62
Loading
Please register or sign in to comment