.. | .. |
---|
2100 | 2100 | nextTimeout = Math.min(nextTimeout, nextProfileTimeout); |
---|
2101 | 2101 | } |
---|
2102 | 2102 | |
---|
2103 | | - if (mUserActivitySummary != 0 && nextTimeout >= 0) { |
---|
| 2103 | + if (Integer.MAX_VALUE == screenOffTimeout) { |
---|
| 2104 | + mUserActivitySummary = USER_ACTIVITY_SCREEN_BRIGHT; |
---|
| 2105 | + //Slog.d(TAG, "set mUserActivitySummary USER_ACTIVITY_SCREEN_BRIGHT never sleep"); |
---|
| 2106 | + } |
---|
| 2107 | + |
---|
| 2108 | + if (mUserActivitySummary != 0 && nextTimeout >= 0) { |
---|
2104 | 2109 | scheduleUserInactivityTimeout(nextTimeout); |
---|
2105 | 2110 | } |
---|
2106 | 2111 | } else { |
---|
.. | .. |
---|
2696 | 2701 | } |
---|
2697 | 2702 | } |
---|
2698 | 2703 | |
---|
| 2704 | + if (SystemProperties.getBoolean("persist.sys.kickpi_holding_wakelock", false)){ |
---|
| 2705 | + Slog.d(TAG, "Holding wake lock suspend blocker"); |
---|
| 2706 | + return; |
---|
| 2707 | + } |
---|
| 2708 | + |
---|
2699 | 2709 | // Then release suspend blockers if needed. |
---|
2700 | 2710 | if (!needWakeLockSuspendBlocker && mHoldingWakeLockSuspendBlocker) { |
---|
2701 | 2711 | mWakeLockSuspendBlocker.release(); |
---|