Skip to content

Commit

Permalink
Enabling display timeout on IVI.
Browse files Browse the repository at this point in the history
Changing SCREEN_DIM_WAKE_LOCK to PARTIAL_WAKE_LOCK
since SCREEN_DIM_WAKE_LOCK never allows to timeout
display.

Tracked-On: OAM-86883
Signed-off-by: xichen12 <xi.a.chen@intel.com>
  • Loading branch information
xichen12 committed Sep 29, 2019
1 parent 4204051 commit 0131ae7
Showing 1 changed file with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
From e1d1c1beb17edfd963c6404499dbd1bc037a8f7b Mon Sep 17 00:00:00 2001
From: Madhusudhan S <madhusudhan.s@intel.com>
Date: Wed, 14 Nov 2018 16:28:15 +0530
Subject: [PATCH] Enabling display timeout on IVI.

Changing SCREEN_DIM_WAKE_LOCK to PARTIAL_WAKE_LOCK
since SCREEN_DIM_WAKE_LOCK never allows to timeout
display.

Change-Id: I1093054cdcc55f20502ddcd78afe2f4b3ddfd250
Tracked-on:
Signed-off-by: Madhusudhan S <madhusudhan.s@intel.com>
Signed-off-by: xichen12 <xi.a.chen@intel.com>
---
service/src/com/android/car/systeminterface/WakeLockInterface.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/service/src/com/android/car/systeminterface/WakeLockInterface.java b/service/src/com/android/car/systeminterface/WakeLockInterface.java
index cde6e5b..771d625 100644
--- a/service/src/com/android/car/systeminterface/WakeLockInterface.java
+++ b/service/src/com/android/car/systeminterface/WakeLockInterface.java
@@ -36,7 +36,7 @@ public interface WakeLockInterface {
DefaultImpl(Context context) {
PowerManager powerManager =
(PowerManager) context.getSystemService(Context.POWER_SERVICE);
- mFullWakeLock = powerManager.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK,
+ mFullWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,
CarLog.TAG_POWER);
mPartialWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,
CarLog.TAG_POWER);
--
2.7.4

0 comments on commit 0131ae7

Please sign in to comment.