summaryrefslogtreecommitdiff
path: root/libs/binder/IServiceManager.cpp
diff options
context:
space:
mode:
author Jiyong Park <jiyong@google.com> 2020-11-13 20:53:12 +0900
committer Jiyong Park <jiyong@google.com> 2020-11-16 19:43:52 +0900
commit16c6e7073231dc9e9a775acb5aa5c456ca38851f (patch)
treeaae9235f8ae9a132795cca71b2553b1bbc93d434 /libs/binder/IServiceManager.cpp
parent276781add64288a00c2e3c4fc39a5f806a6e140f (diff)
binder: fix google-runtime-int
Bug: 162909698 Test: m libbinder Change-Id: I63ec0e57166a97711d254156bde04ffe155465a5
Diffstat (limited to 'libs/binder/IServiceManager.cpp')
-rw-r--r--libs/binder/IServiceManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/binder/IServiceManager.cpp b/libs/binder/IServiceManager.cpp
index 35e642deb2..ca067e2d7f 100644
--- a/libs/binder/IServiceManager.cpp
+++ b/libs/binder/IServiceManager.cpp
@@ -221,7 +221,7 @@ sp<IBinder> ServiceManagerShim::getService(const String16& name) const
const bool isVendorService =
strcmp(ProcessState::self()->getDriverName().c_str(), "/dev/vndbinder") == 0;
- const long timeout = 5000;
+ constexpr int64_t timeout = 5000;
int64_t startTime = uptimeMillis();
// Vendor code can't access system properties
if (!gSystemBootCompleted && !isVendorService) {
@@ -234,7 +234,7 @@ sp<IBinder> ServiceManagerShim::getService(const String16& name) const
#endif
}
// retry interval in millisecond; note that vendor services stay at 100ms
- const long sleepTime = gSystemBootCompleted ? 1000 : 100;
+ const useconds_t sleepTime = gSystemBootCompleted ? 1000 : 100;
ALOGI("Waiting for service '%s' on '%s'...", String8(name).string(),
ProcessState::self()->getDriverName().c_str());