Home
last modified time | relevance | path

Searched refs:memoryFd (Results 1 – 5 of 5) sorted by relevance

/packages/services/Car/cpp/car_binder_lib/largeParcelable/
DLargeParcelableBase.cpp51 borrowed_fd memoryFd(fd.get()); in scopedFdToBorrowedFd() local
52 return memoryFd; in scopedFdToBorrowedFd()
58 unique_fd memoryFd(fd.get()); in scopeFdToUniqueFd() local
60 return memoryFd; in scopeFdToUniqueFd()
88 unique_fd memoryFd = scopeFdToUniqueFd(std::move(descriptor)); in readFromParcel() local
89 if (binder_status_t status = deserializeSharedMemoryAndClose(std::move(memoryFd)); in readFromParcel()
156 binder_status_t LargeParcelableBase::deserializeSharedMemoryAndClose(unique_fd memoryFd) { in deserializeSharedMemoryAndClose() argument
159 SharedMemory sharedMemory(std::move(memoryFd)); in deserializeSharedMemoryAndClose()
309 borrowed_fd memoryFd = scopedFdToBorrowedFd(fd); in getParcelFromMemoryFile() local
310 SharedMemory sharedMemory(memoryFd); in getParcelFromMemoryFile()
DMappedFile.cpp31 MappedFile::MappedFile(int memoryFd, int32_t fileSize, bool writtable) { in MappedFile() argument
33 memoryFd, /*offset=*/0); in MappedFile()
/packages/modules/NeuralNetworks/runtime/test/
DTestValidation.cpp627 int memoryFd = ASharedMemory_create("nnMemory", memorySize); in TEST_F() local
630 int memoryFd = tmpFile.release(); in TEST_F() local
631 CHECK_EQ(ftruncate(memoryFd, memorySize), 0); in TEST_F()
633 ASSERT_GT(memoryFd, 0); in TEST_F()
636 EXPECT_EQ(ANeuralNetworksMemory_createFromFd(memorySize, PROT_READ | PROT_WRITE, memoryFd, 0, in TEST_F()
674 close(memoryFd); in TEST_F()
1335 int memoryFd = ASharedMemory_create("nnMemory", memorySize); in TEST_F() local
1338 int memoryFd = tmpFile.release(); in TEST_F() local
1339 CHECK_EQ(ftruncate(memoryFd, memorySize), 0); in TEST_F()
1341 ASSERT_GT(memoryFd, 0); in TEST_F()
[all …]
/packages/services/Car/cpp/car_binder_lib/largeParcelable/include/
DMappedFile.h39 MappedFile(int memoryFd, int32_t fileSize, bool writtable);
DLargeParcelableBase.h174 binder_status_t deserializeSharedMemoryAndClose(::android::base::unique_fd memoryFd);