diff options
| author | 2022-12-13 22:41:24 +0000 | |
|---|---|---|
| committer | 2022-12-13 22:41:24 +0000 | |
| commit | d7c2e5ee1704f9b76a96163bfea2ba1c8e7a7180 (patch) | |
| tree | 6b85eb8847407827c499fa949edb2f9d0103f86e | |
| parent | 3cb50d840f887d2cd5069479f2b2b1ff3ba4e378 (diff) | |
| parent | 800113e298c24c2ae4b69c7723338d7908b4778c (diff) | |
Merge "libbinder: recommend against getService"
| -rw-r--r-- | libs/binder/include/binder/IServiceManager.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/binder/include/binder/IServiceManager.h b/libs/binder/include/binder/IServiceManager.h index 79e771f092..2af512ea3f 100644 --- a/libs/binder/include/binder/IServiceManager.h +++ b/libs/binder/include/binder/IServiceManager.h @@ -67,7 +67,8 @@ public: * a system property, or in the case of services in the VINTF manifest, it can be checked * with isDeclared). */ - virtual sp<IBinder> getService( const String16& name) const = 0; + [[deprecated("this polls for 5s, prefer waitForService or checkService")]] + virtual sp<IBinder> getService(const String16& name) const = 0; /** * Retrieve an existing service, non-blocking. |