summaryrefslogtreecommitdiffstats
path: root/libs/binder/IServiceManager.cpp
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@android.com>2010-06-18 13:07:53 -0700
committerBrad Fitzpatrick <bradfitz@android.com>2010-06-21 12:56:35 -0700
commit702ea9d42f52fc145090c0f0bfbe64993e4b8b33 (patch)
tree98267a504e452fb6c9d7fc98ea68d19d2d5aecd0 /libs/binder/IServiceManager.cpp
parent5adc399c76f432ce3301db5fa1da511351b70373 (diff)
downloadframeworks_native-702ea9d42f52fc145090c0f0bfbe64993e4b8b33.zip
frameworks_native-702ea9d42f52fc145090c0f0bfbe64993e4b8b33.tar.gz
frameworks_native-702ea9d42f52fc145090c0f0bfbe64993e4b8b33.tar.bz2
Start of work on passing around StrictMode policy over Binder calls.
This is (intendend to be) a no-op change. At this stage, Binder RPCs just have an additional uint32 passed around in the header, right before the interface name. But nothing is actually done with them yet. That value should right now always be 0. This now boots and seems to work. Change-Id: I135b7c84f07575e6b9717fef2424d301a450df7b
Diffstat (limited to 'libs/binder/IServiceManager.cpp')
-rw-r--r--libs/binder/IServiceManager.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/libs/binder/IServiceManager.cpp b/libs/binder/IServiceManager.cpp
index 0cf4158..a3a3f0e 100644
--- a/libs/binder/IServiceManager.cpp
+++ b/libs/binder/IServiceManager.cpp
@@ -129,19 +129,19 @@ public:
: BpInterface<IServiceManager>(impl)
{
}
-
+
virtual sp<IBinder> getService(const String16& name) const
{
unsigned n;
for (n = 0; n < 5; n++){
sp<IBinder> svc = checkService(name);
if (svc != NULL) return svc;
- LOGI("Waiting for sevice %s...\n", String8(name).string());
+ LOGI("Waiting for service %s...\n", String8(name).string());
sleep(1);
}
return NULL;
}
-
+
virtual sp<IBinder> checkService( const String16& name) const
{
Parcel data, reply;
@@ -226,4 +226,3 @@ status_t BnServiceManager::onTransact(
}
}; // namespace android
-