summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2014-06-13 09:26:30 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-06-10 21:26:11 +0000
commit90732a3be5e70156486aca94bde8aa81106329ba (patch)
tree632b7aa4c23e8eaaafc1f3341161fe23aad3e58f /media
parentcbd74fcbd2528e3cdb699ac26e8ed579085dd49a (diff)
parent1766b08d35a45e12a13b264a5944e1b622b8715b (diff)
downloadframeworks_av-90732a3be5e70156486aca94bde8aa81106329ba.zip
frameworks_av-90732a3be5e70156486aca94bde8aa81106329ba.tar.gz
frameworks_av-90732a3be5e70156486aca94bde8aa81106329ba.tar.bz2
Merge "Remove dependency on Parcel::{read,write}IntPtr"
Diffstat (limited to 'media')
-rw-r--r--media/libmedia/ICrypto.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libmedia/ICrypto.cpp b/media/libmedia/ICrypto.cpp
index 98b183a..0d5f990 100644
--- a/media/libmedia/ICrypto.cpp
+++ b/media/libmedia/ICrypto.cpp
@@ -131,7 +131,7 @@ struct BpCrypto : public BpInterface<ICrypto> {
data.write(subSamples, sizeof(CryptoPlugin::SubSample) * numSubSamples);
if (secure) {
- data.writeIntPtr((intptr_t)dstPtr);
+ data.writeInt64(static_cast<uint64_t>(reinterpret_cast<uintptr_t>(dstPtr)));
}
remote()->transact(DECRYPT, data, &reply);
@@ -249,7 +249,7 @@ status_t BnCrypto::onTransact(
void *dstPtr;
if (secure) {
- dstPtr = (void *)data.readIntPtr();
+ dstPtr = reinterpret_cast<void *>(static_cast<uintptr_t>(data.readInt64()));
} else {
dstPtr = malloc(totalSize);
}