summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Brown2012-07-27 20:07:41 -0500
committerJeff Brown2012-08-15 03:16:39 -0500
commitac1f70bb7135cd5fe73d6fbf121a62c779679c5a (patch)
tree689f8c3efca37a47d2eefbefeb7cc284e7b7e1bf /services/powermanager/IPowerManager.cpp
parent01eb979243a57bd33f8389aeeade8024dd0258c0 (diff)
downloadframeworks-native-ac1f70bb7135cd5fe73d6fbf121a62c779679c5a.tar.gz
frameworks-native-ac1f70bb7135cd5fe73d6fbf121a62c779679c5a.tar.xz
frameworks-native-ac1f70bb7135cd5fe73d6fbf121a62c779679c5a.zip
Use new PowerManager API.
Change-Id: I66165d9954e2d1da9204216382a05a873f1393f4
Diffstat (limited to 'services/powermanager/IPowerManager.cpp')
-rw-r--r--services/powermanager/IPowerManager.cpp7
1 files 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 {
30// must be kept in sync with IPowerManager.aidl 30// must be kept in sync with IPowerManager.aidl
31enum { 31enum {
32 ACQUIRE_WAKE_LOCK = IBinder::FIRST_CALL_TRANSACTION, 32 ACQUIRE_WAKE_LOCK = IBinder::FIRST_CALL_TRANSACTION,
33 RELEASE_WAKE_LOCK = IBinder::FIRST_CALL_TRANSACTION + 4, 33 RELEASE_WAKE_LOCK = IBinder::FIRST_CALL_TRANSACTION + 1,
34}; 34};
35 35
36class BpPowerManager : public BpInterface<IPowerManager> 36class BpPowerManager : public BpInterface<IPowerManager>
@@ -46,11 +46,10 @@ public:
46 Parcel data, reply; 46 Parcel data, reply;
47 data.writeInterfaceToken(IPowerManager::getInterfaceDescriptor()); 47 data.writeInterfaceToken(IPowerManager::getInterfaceDescriptor());
48 48
49 data.writeInt32(flags);
50 data.writeStrongBinder(lock); 49 data.writeStrongBinder(lock);
50 data.writeInt32(flags);
51 data.writeString16(tag); 51 data.writeString16(tag);
52 // no WorkSource passed 52 data.writeInt32(0); // no WorkSource
53 data.writeInt32(0);
54 return remote()->transact(ACQUIRE_WAKE_LOCK, data, &reply); 53 return remote()->transact(ACQUIRE_WAKE_LOCK, data, &reply);
55 } 54 }
56 55