summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/SystemServer.java
diff options
context:
space:
mode:
authorHenrique Silva <jhenrique09.mcz@hotmail.com>2019-05-03 16:49:15 -0300
committerSemavi Ulusoy <doc.divxm@gmail.com>2022-09-12 23:46:04 +0300
commit229d1e6db6c9f52db670197afe2680994b91b543 (patch)
treeb788cb3728f1d69ab4a0916af941e1d25d1ef976 /services/java/com/android/server/SystemServer.java
parent03a2bc3b7b5b10b305ff849eaf535ea52bcd857d (diff)
Introduce LiveDisplay from Lineage
All credits to LineageOS and related authors on: https://github.com/LineageOS/android_lineage-sdk Included fwb commit: commit 5ef7a9bb0996cc0c141d054514744ceaa93ba036 Author: Dan Pasanen <dan.pasanen@gmail.com> Date: Tue Feb 20 07:51:43 2018 -0600 NightDisplayController: report unavailable if livedisplay feature is present Change-Id: Id677e76d452ced2e62373337d63593c7b85f2fba Syberia: forward port to 10, 11 squashed with: lineage-sdk: ServiceType.GPS -> ServiceType.LOCATION lineage-sdk: Update DisplayTransformManager class path commit 6a61685af1ba1144d59b59a3cbcd7394241af628 (HEAD -> eleven-plus) Author: dianlujitao <dianlujitao@lineageos.org> Date: Wed Aug 7 14:51:40 2019 +0800 LiveDisplayManager: Perform null check in getConfig() * LiveDisplayConfig isn't instanced until boot completed, thus if LiveDisplayManager is instanced earlier, null is always returned. commit 1b8a1c540e6c8e4d9e09a66200c65bf80eed6051 Author: dianlujitao <dianlujitao@lineageos.org> Date: Tue Aug 6 23:59:53 2019 +0800 OutdoorModeController: Unconditionally enable auto mode on HWC2 * On HWC2, setting "Display mode" to "Automatic" and disabling "Automatic outdoor mode" at the same time makes no difference with setting "Display mode" to "Off" alone. Obviously this is redundant and could confuse the user, so simply ignore the "Automatic outdoor mode" setting on HWC2 to reduce redundancy. commit 1766313da836fee60f9ef515ba5766f9eb51a719 Author: dianlujitao <dianlujitao@lineageos.org> Date: Tue Aug 6 23:23:42 2019 +0800 OutdoorModeController: Advertise MODE_AUTO * This capability is set by ColorTemperatureController on HWC1 which is not used on HWC2, but it controls whether to enable automatic outdoor mode, thus advertise it here. * Set the default mode back to MODE_AUTO. commit 3ec8c2b0759d59ef17ddc31a7e3dc38367d17a41 Author: dianlujitao <dianlujitao@lineageos.org> Date: Wed Aug 7 15:52:22 2019 +0800 LiveDisplayService: Properly disable ColorTemperature This reverts commit f781a9399aeb3a6c4db78a8848188781c7c0720a. * Twilight tracker and display mode are still used by ColorTemperatureController commit 0437a38513361574ac972c6b45e8828c92e712db Author: dianlujitao <dianlujitao@lineageos.org> Date: Thu Aug 8 16:32:50 2019 +0800 LiveDisplayService: Notify SystemUI after initialization finished commit c743fb0c6a652b8bea26844de4fbacf35af3d72b Author: Bruno Martins <bgcngm@gmail.com> Date: Tue Jun 4 22:14:10 2019 +0100 LiveDisplayService: Disable ColorTemperature when NightDisplay is available * Having decided to use AOSP's night display feature in favor of our equivalent implementation, then we should take care of getting the latter completely disabled. Not only it can happen that a user was likely using it and enabling night display will now cause color transformation matrices to be applied twice, but also because there are resources being used for nothing. commit 6b2cbb0bae88c9861d774e997b1437e2c134a456 Author: Paul Keith <javelinanddart@gmail.com> Date: Wed May 22 10:19:53 2019 +0300 LiveDisplay: Use Google's algorithm to convert color temperature to RGB * Google's works better than ours does commit c4062ef343e0352c06dce6efdc7a324adf02c37f Author: Paul Keith <javelinanddart@gmail.com> Date: Mon Feb 18 00:04:57 2019 +0100 LiveDisplay: Change night/day mode transition behavior * Update 2x a minute rather than 1x a minute as a result of dropping TWILIGHT_ADJUSTMENT_TIME from 1hr to 30min in an earlier change * Use an AccelerateDecelerateInterpolator for transitioning from day to night mode and back to make the transition smoother for the user * Update copyright while we're at it commit 82e4e5f3b3698efe4aa89a4ba356bd85a6ad5e9b Author: Henrique Silva <jhenrique09.mcz@hotmail.com> Date: Mon May 6 15:51:57 2019 -0300 LiveDisplay: don't start services if phone is encrypted commit e67ec644abf7f0169a88e6a0932981e6d96e00ff Author: Paul Keith <javelinanddart@gmail.com> Date: Tue Jan 14 02:41:13 2020 +0000 fwb: Add overlay for disabling livedisplay * config_defaultLiveDisplayMode should also be set to 0. Change-Id: I06ded48ec8783d5319925f391cb7f54391cd1dea [jhonboy121]: adapt to A12 PendingIntent flags requirements Signed-off-by: jhonboy121 <alfredmathew05@gmail.com> Change-Id: Ic8cadb9d914a79be3a6ab6b5ba4bd5853937996a
Diffstat (limited to 'services/java/com/android/server/SystemServer.java')
-rw-r--r--services/java/com/android/server/SystemServer.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index a625cf277ac6..ae919b391d7d 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -137,6 +137,7 @@ import com.android.server.input.InputManagerService;
import com.android.server.inputmethod.InputMethodManagerService;
import com.android.server.integrity.AppIntegrityManagerService;
import com.android.server.lights.LightsService;
+import com.android.server.lineage.display.LiveDisplayService;
import com.android.server.lineage.LineageHardwareService;
import com.android.server.locales.LocaleManagerService;
import com.android.server.location.LocationManagerService;
@@ -2529,6 +2530,13 @@ public final class SystemServer implements Dumpable {
t.traceEnd();
}
+ // LiveDisplay
+ if (!mOnlyCore){
+ t.traceBegin("StartLiveDisplayService");
+ mSystemServiceManager.startService(LiveDisplayService.class);
+ t.traceEnd();
+ }
+
}
t.traceBegin("StartMediaProjectionManager");