From ac1f70bb7135cd5fe73d6fbf121a62c779679c5a Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Fri, 27 Jul 2012 18:07:41 -0700 Subject: [PATCH] Use new PowerManager API. Change-Id: I66165d9954e2d1da9204216382a05a873f1393f4 --- services/powermanager/IPowerManager.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/services/powermanager/IPowerManager.cpp b/services/powermanager/IPowerManager.cpp index a0f19d4ac..0265df36b 100644 --- a/services/powermanager/IPowerManager.cpp +++ b/services/powermanager/IPowerManager.cpp @@ -30,7 +30,7 @@ namespace android { // must be kept in sync with IPowerManager.aidl enum { ACQUIRE_WAKE_LOCK = IBinder::FIRST_CALL_TRANSACTION, - RELEASE_WAKE_LOCK = IBinder::FIRST_CALL_TRANSACTION + 4, + RELEASE_WAKE_LOCK = IBinder::FIRST_CALL_TRANSACTION + 1, }; class BpPowerManager : public BpInterface @@ -46,11 +46,10 @@ public: Parcel data, reply; data.writeInterfaceToken(IPowerManager::getInterfaceDescriptor()); - data.writeInt32(flags); data.writeStrongBinder(lock); + data.writeInt32(flags); data.writeString16(tag); - // no WorkSource passed - data.writeInt32(0); + data.writeInt32(0); // no WorkSource return remote()->transact(ACQUIRE_WAKE_LOCK, data, &reply); }