DO NOT MERGE Adding proper wait checking until display is fully turned on.

Current waitForDefaultDisplayState(true) check only state item in the DisplayDeviceInfo from DeviceDump.
TC uses isDisplayOn() function which checks Display power state from Power dump directly so it can be failed depends on chipset performance.
TC performs the call twice, First call will be passed after activity starts with time but second try as activity resuming can be failed because isDisplayOn() is called prior than display is fully turned on with setting the flag.

Bug: 124804471
Test: run CTS -m CtsActivityManagerDeviceTestCases -t android.server.am.ActivityManagerActivityVisibilityTests#testTurnScreenOnSingleTask

Change-Id: If0f6c8ce3c0031c679efa0d3cae5af07a54c7a09
Signed-off-by: Mark Hong <sungmin.h@samsung.com>
1 file changed