summaryrefslogtreecommitdiff
path: root/libs/binder
diff options
context:
space:
mode:
author Jon Spivack <spivack@google.com> 2019-09-09 20:20:20 -0700
committer android-build-merger <android-build-merger@google.com> 2019-09-09 20:20:20 -0700
commit4fd64a357bfebf1c62cf226c6c769ff9109c162a (patch)
treed818365e6235c6f0a6b35d55f00ea17629699f68 /libs/binder
parent3382a94b38b0c5a020dd939e8416e2aa4a0c99c6 (diff)
parent1390c726cd249ec24e270a2f3630ccdb90fc4ffb (diff)
Merge "ServiceManager signals init to start lazy services" am: 66050ee75e am: 94ddc1694a am: 8c8b131b29
am: 1390c726cd Change-Id: Iae18e0d4191dc94dca4ca3ea477b7a4a68e67c43
Diffstat (limited to 'libs/binder')
-rw-r--r--libs/binder/IServiceManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/binder/IServiceManager.cpp b/libs/binder/IServiceManager.cpp
index 715a4609d6..eefc5b1c4f 100644
--- a/libs/binder/IServiceManager.cpp
+++ b/libs/binder/IServiceManager.cpp
@@ -232,7 +232,7 @@ public:
const std::string name = String8(name16).c_str();
sp<IBinder> out;
- if(!mTheRealServiceManager->checkService(name, &out).isOk()) {
+ if (!mTheRealServiceManager->getService(name, &out).isOk()) {
return nullptr;
}
if(out != nullptr) return out;
@@ -256,13 +256,13 @@ public:
// Handle race condition for lazy services. Here is what can happen:
// - the service dies (not processed by init yet).
// - sm processes death notification.
- // - sm gets checkService and calls init to start service.
+ // - sm gets getService and calls init to start service.
// - init gets the start signal, but the service already appears
// started, so it does nothing.
// - init gets death signal, but doesn't know it needs to restart
// the service
// - we need to request service again to get it to start
- if(!mTheRealServiceManager->checkService(name, &out).isOk()) {
+ if (!mTheRealServiceManager->getService(name, &out).isOk()) {
return nullptr;
}
if(out != nullptr) return out;