Compute nearest frames after layout

- The computation fetches the locations of the buttons which are not
  updated until after layout

Bug: 180881900
Test: atest NearestTouchFrameTest
Test: Rotate a few times and verify the deferred bounds are within
      the current display bounds
Change-Id: I8b40e6461c8c6c27198f20843c6d8fe73769f339
2 files changed