Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c08411bb authored by Pat Erley's avatar Pat Erley Committed by Gerrit Code Review
Browse files

PowerManagerService: Log when proximity blocks wake

There is currently no indication when the proximity sensor
is allowed to prevent the system from waking up.  This can
make it hard to debug weird failed wakes.  Add a log to
facilitate debugging wakup problems.

Change-Id: I7df34e13b1268a4e7211fb06ccd88f2053c0af0a
(cherry picked from commit 21ddba54)
parent 92a8a505
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3440,6 +3440,8 @@ public final class PowerManagerService extends SystemService
                        if (distance >= PROXIMITY_NEAR_THRESHOLD ||
                                distance >= mProximitySensor.getMaximumRange()) {
                            r.run();
                        } else {
                            Slog.w(TAG, "Not waking up.  Proximity sensor blocked.");
                        }
                    }