Home
last modified time | relevance | path

Searched refs:sharedMemory (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/cpp/car_binder_lib/largeParcelable/
DLargeParcelableBase.cpp116 std::unique_ptr<SharedMemory> sharedMemory = in prepareSharedMemory() local
123 mSharedMemory = std::move(sharedMemory); in prepareSharedMemory()
139 const SharedMemory* sharedMemory = mSharedMemory.get(); in writeToParcel() local
141 if (binder_status_t status = serializeMemoryFdOrPayload(dest, sharedMemory); in writeToParcel()
159 SharedMemory sharedMemory(std::move(memoryFd)); in deserializeSharedMemoryAndClose() local
160 if (!sharedMemory.isValid()) { in deserializeSharedMemoryAndClose()
161 ALOGE("invalid shared memory fd, status: %d", sharedMemory.getErr()); in deserializeSharedMemoryAndClose()
164 if (binder_status_t status = copyFromSharedMemory(sharedMemory, parcel.get()); in deserializeSharedMemoryAndClose()
184 binder_status_t LargeParcelableBase::copyFromSharedMemory(const SharedMemory& sharedMemory, in copyFromSharedMemory() argument
186 std::unique_ptr<MappedFile> mappedFile = sharedMemory.mapReadOnly(); in copyFromSharedMemory()
[all …]
/packages/services/Car/car-lib/src/com/android/car/internal/
DLargeParcelableBase.java121 SharedMemory sharedMemory; in writeToParcel() local
123 sharedMemory = mSharedMemory; in writeToParcel()
126 if (sharedMemory != null) { in writeToParcel()
129 totalPayloadSize = serializeMemoryFdOrPayloadToParcel(dest, flags, sharedMemory); in writeToParcel()
153 sharedMemory = serializeParcelToSharedMemory(dataParcel); in writeToParcel()
159 mSharedMemory = sharedMemory; in writeToParcel()
163 totalPayloadSize = serializeMemoryFdOrPayloadToParcel(dest, flags, sharedMemory); in writeToParcel()
214 SharedMemory sharedMemory = null; in close() local
216 sharedMemory = mSharedMemory; in close()
219 if (sharedMemory != null) { in close()
[all …]
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/
DParcelUtils.java62 SharedMemory sharedMemory = in getSharedMemoryForParcel() local
64 ByteBuffer buffer = sharedMemory.mapReadWrite(); in getSharedMemoryForParcel()
67 return sharedMemory; in getSharedMemoryForParcel()
84 try (SharedMemory sharedMemory = in putToRequiredMemory() argument
87 sharedMemory.writeToParcel(dest, flags); in putToRequiredMemory()
/packages/services/Car/cpp/car_binder_lib/largeParcelable/include/
DLargeParcelableBase.h172 static binder_status_t copyFromSharedMemory(const SharedMemory& sharedMemory, AParcel* parcel);
195 static binder_status_t writeSharedMemoryCompatibleToParcel(const SharedMemory* sharedMemory,
213 const SharedMemory* sharedMemory) const;