Power manager now takes calling package name arg.
Change-Id: Iae57b8eb7abe4e66f0d2645db8cdf57acf7dcd3e
This commit is contained in:
parent
41d9c2ff21
commit
80d7fd86e0
@ -30,7 +30,8 @@ class IPowerManager : public IInterface
|
||||
public:
|
||||
DECLARE_META_INTERFACE(PowerManager);
|
||||
|
||||
virtual status_t acquireWakeLock(int flags, const sp<IBinder>& lock, const String16& tag) = 0;
|
||||
virtual status_t acquireWakeLock(int flags, const sp<IBinder>& lock, const String16& tag,
|
||||
const String16& packageName) = 0;
|
||||
virtual status_t releaseWakeLock(const sp<IBinder>& lock, int flags) = 0;
|
||||
};
|
||||
|
||||
|
@ -41,7 +41,8 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual status_t acquireWakeLock(int flags, const sp<IBinder>& lock, const String16& tag)
|
||||
virtual status_t acquireWakeLock(int flags, const sp<IBinder>& lock, const String16& tag,
|
||||
const String16& packageName)
|
||||
{
|
||||
Parcel data, reply;
|
||||
data.writeInterfaceToken(IPowerManager::getInterfaceDescriptor());
|
||||
@ -49,6 +50,7 @@ public:
|
||||
data.writeStrongBinder(lock);
|
||||
data.writeInt32(flags);
|
||||
data.writeString16(tag);
|
||||
data.writeString16(packageName);
|
||||
data.writeInt32(0); // no WorkSource
|
||||
return remote()->transact(ACQUIRE_WAKE_LOCK, data, &reply);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user