• Lei Zhang's avatar
    Revert "arc: Add wake lock based logic to re-suspend after dark resume" · c7c5e82b
    Lei Zhang authored
    This reverts commit a0b9be91.
    
    Reason for revert: Broke linux-chromeos-dbg
    
    https://ci.chromium.org/p/chromium/builders/luci.chromium.ci/linux-chromeos-dbg/8515
    
    Original change's description:
    > arc: Add wake lock based logic to re-suspend after dark resume
    > 
    > This change adds functionality to support lock screen notifications for
    > Android. The wake lock module now listens to dark resume notifications
    > from the power manager. It -
    > 
    > 1. Starts a timer to check for partial wake locks acquired by Android.
    > 
    > 2. After the timer in 1 expires, if no partial wake lock is acquired the
    > power manager is requested to re-suspend the system. If a partial wake
    > lock is acquired, then another hard timeout timer is set and also an
    > observer to wake lock release is set.
    > 
    > 3. If wake lock is released, the system is re-suspended immediately.
    > 
    > 4. If a wake lock is still acquired but the hard timeout expires then
    > the system is re-suspended immediately.
    > 
    > 5. If the system transitions to a full resume all dark resume related
    > state and timers are cleared.
    > 
    > BUG=chromium:898297
    > TEST=Unit tests and end to end test with Android applications.
    > 
    > Change-Id: I6dbae0c5f63af67637032b62d0c56cae27d08bad
    > Reviewed-on: https://chromium-review.googlesource.com/c/1297474
    > Commit-Queue: Abhishek Bhardwaj <abhishekbh@chromium.org>
    > Reviewed-by: Yusuke Sato <yusukes@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#602980}
    
    TBR=derat@chromium.org,yusukes@chromium.org,abhishekbh@chromium.org,ravisadineni@chromium.org
    
    Change-Id: If613721a75cf2341b12310622649dfb17da1308f
    No-Presubmit: true
    No-Tree-Checks: true
    No-Try: true
    Bug: chromium:898297
    Reviewed-on: https://chromium-review.googlesource.com/c/1301074Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
    Commit-Queue: Lei Zhang <thestig@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#602992}
    c7c5e82b
BUILD.gn 9.22 KB