Add UiDevice.hasBlackScreen util This is useful to detect when the screen is black. Tests on emulator showed that it takes around 300ms to be executed. Bug: 261555205 Test: Run some tests locally Change-Id: Ia97547392666fd3109484e73bb40525c4d860340