Searched refs:mappedFile (Results 1 – 4 of 4) sorted by relevance
/packages/modules/NeuralNetworks/runtime/test/ |
D | SupportLibraryTestUtils.h | 53 auto mappedFile = in createFrom() local 55 if (!mappedFile) return nullptr; in createFrom() 56 memcpy(mappedFile->data(), data, length); in createFrom() 63 return std::make_unique<TestAshmem>(std::move(managedFd), std::move(mappedFile), in createFrom()
|
D | TestUtils.h | 60 auto mappedFile = in createFrom() local 62 if (!mappedFile) return nullptr; in createFrom() 63 memcpy(mappedFile->data(), data, length); in createFrom() 70 return std::make_unique<TestAshmem>(std::move(managedFd), std::move(mappedFile), in createFrom()
|
/packages/services/Car/cpp/car_binder_lib/largeParcelable/tests/ |
D | MappedFileSharedMemoryTest.cpp | 60 std::unique_ptr<MappedFile> mappedFile = sm.mapReadOnly(); in testSharedMemoryMapRead() local 62 ASSERT_TRUE(mappedFile->isValid()); in testSharedMemoryMapRead() 63 ASSERT_EQ(OK, mappedFile->getErr()); in testSharedMemoryMapRead()
|
/packages/services/Car/cpp/car_binder_lib/largeParcelable/ |
D | LargeParcelableBase.cpp | 186 std::unique_ptr<MappedFile> mappedFile = sharedMemory.mapReadOnly(); in copyFromSharedMemory() local 187 size_t mappedFileSize = mappedFile->getSize(); in copyFromSharedMemory() 188 if (!mappedFile->isValid()) { in copyFromSharedMemory() 190 mappedFile->getErr()); in copyFromSharedMemory() 194 AParcel_unmarshal(parcel, static_cast<const uint8_t*>(mappedFile->getAddr()), in copyFromSharedMemory()
|