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

Commit f899c919 authored by Shai Barack's avatar Shai Barack
Browse files

Parcel directly to mapped SharedMemory

This avoids an unnecessary interim copy.

Bug: 401362825
Flag: EXEMPT bugfix
Change-Id: Ic9b4a1182c2268b1e4661fe42d59a8b13fcade24
parent fa522a19
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -219,7 +219,7 @@ public class NotificationRankingUpdate implements Parcelable {
                // Gets a read/write buffer mapping the entire shared memory region.
                buffer = mRankingMapFd.mapReadWrite();
                // Puts the ranking map into the shared memory region buffer.
                buffer.put(mapParcel.marshall(), 0, mapSize);
                mapParcel.marshall(buffer);
                // Protects the region from being written to, by setting it to be read-only.
                mRankingMapFd.setProtect(OsConstants.PROT_READ);
                // Puts the SharedMemory object in the parcel.