Add validation before logging ScreenInteractiveSessionReported

The value of reducedInteractiveStateOnDurationMs should be in [0, screen_off_timeout]. Don't send the log if the value is invalid.

Flag: EXEMPT bugfix
Test: atest WakefulnessSessionObserverTest
Bug: 359355557
Change-Id: I9f8a9a0b1992e0e66f111ae9ee4c53f56563f28e
2 files changed