Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5a66b77 authored by Jeff Tinker's avatar Jeff Tinker Committed by Android (Google) Code Review
Browse files

Merge "Remove dependency on Parcel::{read,write}IntPtr"

parents b9e55c4f bcca9e07
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
            }