Improve the while-in-use logic change detection logic

This should reduce false alarms.

Bug: 276963716
Test: Code inspection (change affects the debug logging code only)
Test: Manual test looking at `adb shell dumpsys activity services`
    while playing with Youtube Music.
Change-Id: I1da30922787209a714a711a5996969da99ceccf1
2 files changed