Skip to content

Commit

Permalink
Merge "IPowerManager: make all binder call one way" into lmp-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Laurent authored and Android (Google) Code Review committed Sep 5, 2014
2 parents a36d4e2 + f20c329 commit 437353a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/powermanager/IPowerManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class BpPowerManager : public BpInterface<IPowerManager>
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,
Expand All @@ -70,7 +70,7 @@ class BpPowerManager : public BpInterface<IPowerManager>
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)
Expand All @@ -79,7 +79,7 @@ class BpPowerManager : public BpInterface<IPowerManager>
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) {
Expand Down

0 comments on commit 437353a

Please sign in to comment.