summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Eric Laurent <elaurent@google.com> 2014-08-10 10:46:52 -0700
committer Eric Laurent <elaurent@google.com> 2014-09-05 09:14:19 -0700
commitf20c329a8a1fb578f5842f4056d3ebb39403d01f (patch)
treeaa307eafc1cdd1c23ebfe4e6f143764ab8ee42d0
parentbcbf97ef8fb6eaf527014ed9e7d979ad4fe9fdd2 (diff)
IPowerManager: make all binder call one way
make all binder call to power manager service one way so that they don't block calling thread and are processed in the incoming order. Bug: 16408906. Change-Id: I94034df7f0a36d967e085b53fdc37fff7b44757b
-rw-r--r--services/powermanager/IPowerManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/services/powermanager/IPowerManager.cpp b/services/powermanager/IPowerManager.cpp
index ee730d6ec6..926c050ae7 100644
--- a/services/powermanager/IPowerManager.cpp
+++ b/services/powermanager/IPowerManager.cpp
@@ -56,7 +56,7 @@ public:
data.writeString16(packageName);
data.writeInt32(0); // no WorkSource
data.writeString16(NULL, 0); // no history tag
- return remote()->transact(ACQUIRE_WAKE_LOCK, data, &reply);
+ return remote()->transact(ACQUIRE_WAKE_LOCK, data, &reply, IBinder::FLAG_ONEWAY);
}
virtual status_t acquireWakeLockWithUid(int flags, const sp<IBinder>& lock, const String16& tag,
@@ -70,7 +70,7 @@ public:
data.writeString16(tag);
data.writeString16(packageName);
data.writeInt32(uid); // uid to blame for the work
- return remote()->transact(ACQUIRE_WAKE_LOCK_UID, data, &reply);
+ return remote()->transact(ACQUIRE_WAKE_LOCK_UID, data, &reply, IBinder::FLAG_ONEWAY);
}
virtual status_t releaseWakeLock(const sp<IBinder>& lock, int flags)
@@ -79,7 +79,7 @@ public:
data.writeInterfaceToken(IPowerManager::getInterfaceDescriptor());
data.writeStrongBinder(lock);
data.writeInt32(flags);
- return remote()->transact(RELEASE_WAKE_LOCK, data, &reply);
+ return remote()->transact(RELEASE_WAKE_LOCK, data, &reply, IBinder::FLAG_ONEWAY);
}
virtual status_t updateWakeLockUids(const sp<IBinder>& lock, int len, const int *uids) {