From 0131ae7c6eaaac5b933457480cedce581bd5643f Mon Sep 17 00:00:00 2001 From: xichen12 Date: Sun, 29 Sep 2019 11:03:36 +0800 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. Tracked-On: OAM-86883 Signed-off-by: xichen12 --- ...43_1-Enabling-display-timeout-on-IVI.patch | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 aosp_diff/celadon_ivi/packages/services/Car/681243_1-Enabling-display-timeout-on-IVI.patch diff --git a/aosp_diff/celadon_ivi/packages/services/Car/681243_1-Enabling-display-timeout-on-IVI.patch b/aosp_diff/celadon_ivi/packages/services/Car/681243_1-Enabling-display-timeout-on-IVI.patch new file mode 100644 index 0000000000..f05ec82f5e --- /dev/null +++ b/aosp_diff/celadon_ivi/packages/services/Car/681243_1-Enabling-display-timeout-on-IVI.patch @@ -0,0 +1,33 @@ +From e1d1c1beb17edfd963c6404499dbd1bc037a8f7b Mon Sep 17 00:00:00 2001 +From: Madhusudhan S +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 +Signed-off-by: xichen12 +--- + 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 +