SF: Extract virtual display allocation from CE am: 1394860b5d

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/14687436

Change-Id: Ibfee14227904f459733d3401660a17f4cead729c