diff options
author | Glenn Kasten <gkasten@google.com> | 2014-09-05 16:45:52 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2014-09-05 17:15:32 -0700 |
commit | 3abc2ded40066f3b1df23aceb553f22d569c5cd3 (patch) | |
tree | 12bc71f5efa13cc53c28138bcae9f7b5b0b25903 /services | |
parent | 52c6a355503dbbe9bb134af07faee982534031dd (diff) | |
download | frameworks_av-3abc2ded40066f3b1df23aceb553f22d569c5cd3.zip frameworks_av-3abc2ded40066f3b1df23aceb553f22d569c5cd3.tar.gz frameworks_av-3abc2ded40066f3b1df23aceb553f22d569c5cd3.tar.bz2 |
Make IPowerManager native conform to .aidl for oneway
But provide a temporary escape hatch for AudioFlinger.
This oneway option will be removed as soon as possible.
Bug: 16408906
Change-Id: I058a50906af810787e444a96819cb781b7f639ad
Diffstat (limited to 'services')
-rw-r--r-- | services/audioflinger/Threads.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp index 942bff6..97b1753 100644 --- a/services/audioflinger/Threads.cpp +++ b/services/audioflinger/Threads.cpp @@ -662,12 +662,14 @@ void AudioFlinger::ThreadBase::acquireWakeLock_l(int uid) binder, getWakeLockTag(), String16("media"), - uid); + uid, + true /* FIXME force oneway contrary to .aidl */); } else { status = mPowerManager->acquireWakeLock(POWERMANAGER_PARTIAL_WAKE_LOCK, binder, getWakeLockTag(), - String16("media")); + String16("media"), + true /* FIXME force oneway contrary to .aidl */); } if (status == NO_ERROR) { mWakeLockToken = binder; @@ -687,7 +689,8 @@ void AudioFlinger::ThreadBase::releaseWakeLock_l() if (mWakeLockToken != 0) { ALOGV("releaseWakeLock_l() %s", mName); if (mPowerManager != 0) { - mPowerManager->releaseWakeLock(mWakeLockToken, 0); + mPowerManager->releaseWakeLock(mWakeLockToken, 0, + true /* FIXME force oneway contrary to .aidl */); } mWakeLockToken.clear(); } @@ -723,7 +726,8 @@ void AudioFlinger::ThreadBase::updateWakeLockUids_l(const SortedVector<int> &uid if (mPowerManager != 0) { sp<IBinder> binder = new BBinder(); status_t status; - status = mPowerManager->updateWakeLockUids(mWakeLockToken, uids.size(), uids.array()); + status = mPowerManager->updateWakeLockUids(mWakeLockToken, uids.size(), uids.array(), + true /* FIXME force oneway contrary to .aidl */); ALOGV("acquireWakeLock_l() %s status %d", mName, status); } } |