diff options
| author | 2019-09-09 20:13:10 -0700 | |
|---|---|---|
| committer | 2019-09-09 20:13:10 -0700 | |
| commit | 1390c726cd249ec24e270a2f3630ccdb90fc4ffb (patch) | |
| tree | 019387f4de96703f324e6d0d484d5fb1abb02623 /libs/binder/IServiceManager.cpp | |
| parent | 38ec9e4340b5835966470f93870d7c734bfe7b4f (diff) | |
| parent | 8c8b131b29aba3624a205e7aa17b9001a956e2d9 (diff) | |
Merge "ServiceManager signals init to start lazy services" am: 66050ee75e am: 94ddc1694a
am: 8c8b131b29
Change-Id: I083897a9b87a754ab805e0a7cf86df5b8bca8ad3
Diffstat (limited to 'libs/binder/IServiceManager.cpp')
| -rw-r--r-- | libs/binder/IServiceManager.cpp | 6 |
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; |