To add new marker to support long edge cutout
Currently, the cutout only exists in short edge of a display. It means that the cutout only locates in short edge of the display in portrait mode. The method to parse the cutout only supports top boundary or bottom boundary cutout. To modify the parser of cutout specification supports the long edge cutout feature. CutoutSpecification handles the parsing rulers extracted from DisplayCutout. In order to make parsing faster, it doesn't use regular expression to parse specification and String.split. Test: atest \ FrameworksCoreTests:android.view.DisplayCutoutTest \ FrameworksCoreTests:android.view.CutoutSpecificationTest \ SystemUITests:com.android.systemui.ScreenDecorationsTest \ CorePerfTests:android.view.CutoutSpecificationBenchmark Bug: 146875639 Change-Id: Ice3ad28ef29a6f11875c4946cf4a60ee792f1270
Loading
Please register or sign in to comment