Fix latency tracking for fold to screenoff case
Currently when the device goes to sleep on fold, the latency tracking implementation waits for forever for the screen to turn ON. The ideal behavior should be to not wait at all and knowing in advance/instantaneously that the screen will not turn ON on fold. This CL implemets a logic where we wait for 10 seconds for either screen-turned-on or device-is-asleep event. Test: atest DisplaySwitchLatencyTrackerTest Bug: 286539409 Flag: ACONFIG fold_lock_setting_enabled TRUNKFOOD Change-Id: I231276f1d87e91d45c29be807f3cb998c4bbcb5d
Loading
Please register or sign in to comment