summaryrefslogtreecommitdiff
authorTellen Yu <tellen.yu@amlogic.com>2017-12-08 05:51:24 (GMT)
committer Tellen Yu <tellen.yu@amlogic.com>2017-12-08 09:44:20 (GMT)
commitd545fe04a460ebf7fddd0fc845fa49316b0b251e (patch)
tree2ffdfab49a90265001212ddade55ae767869025b
parentee553a63f1d2c77341b43637e6a7417306de4cc0 (diff)
downloadframeworks-d545fe04a460ebf7fddd0fc845fa49316b0b251e.zip
frameworks-d545fe04a460ebf7fddd0fc845fa49316b0b251e.tar.gz
frameworks-d545fe04a460ebf7fddd0fc845fa49316b0b251e.tar.bz2
system: droidlogic-res should share with system_server process [1/1]
PD# 156354 when switch user, the droidlogic-res process will restart, the callback that had been set to systemcontrol will unused, so keep it alive Change-Id: I64e926dcf614811af8f822a7893948135f1407d0
Diffstat
-rw-r--r--core/res/src/com/droidlogic/BootComplete.java2
-rw-r--r--services/systemcontrol/SystemControlHal.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/res/src/com/droidlogic/BootComplete.java b/core/res/src/com/droidlogic/BootComplete.java
index b3a3a4a..9d20e7f 100644
--- a/core/res/src/com/droidlogic/BootComplete.java
+++ b/core/res/src/com/droidlogic/BootComplete.java
@@ -51,7 +51,7 @@ public class BootComplete extends BroadcastReceiver {
final SystemControlManager sm = new SystemControlManager(context);
//register system control callback
sce = new SystemControlEvent(context);
- sm.setListener(sce);
+ //sm.setListener(sce);
final AudioManager audioManager = (AudioManager) context.getSystemService(context.AUDIO_SERVICE);
final OutputModeManager outputModeManager = new OutputModeManager(context);
diff --git a/services/systemcontrol/SystemControlHal.cpp b/services/systemcontrol/SystemControlHal.cpp
index 7416622..02b3751 100644
--- a/services/systemcontrol/SystemControlHal.cpp
+++ b/services/systemcontrol/SystemControlHal.cpp
@@ -367,7 +367,7 @@ Return<void> SystemControlHal::setCallback(const sp<ISystemControlCallback>& cal
ALOGW("Couldn't link death recipient for cookie: %d", cookie);
}
- ALOGI("%s cookie:%s, client size:%d", __FUNCTION__, cookie, (int)mClients.size());
+ ALOGI("%s cookie:%d, client size:%d", __FUNCTION__, cookie, (int)mClients.size());
}
return Void();