Home
last modified time | relevance | path

Searched refs:memorySize (Results 1 – 2 of 2) sorted by relevance

/frameworks/ml/nn/runtime/test/
DTestValidation.cpp221 const size_t memorySize = 20; in TEST_F() local
222 int memoryFd = ASharedMemory_create("nnMemory", memorySize); in TEST_F()
226 EXPECT_EQ(ANeuralNetworksMemory_createFromFd(memorySize, PROT_READ | PROT_WRITE, in TEST_F()
244 memory, 0, memorySize), in TEST_F()
254 memory, memorySize + 1, in TEST_F()
260 memory, memorySize - 3, in TEST_F()
481 const size_t memorySize = 20; in TEST_F() local
482 int memoryFd = ASharedMemory_create("nnMemory", memorySize); in TEST_F()
486 EXPECT_EQ(ANeuralNetworksMemory_createFromFd(memorySize, PROT_READ | PROT_WRITE, in TEST_F()
509 memory, 0, memorySize), in TEST_F()
[all …]
DTestPartitioningRandom.cpp274 uint32_t& memorySize = mMemorySizes[memoryIndex]; in addRegion() local
275 auto desc = std::make_tuple(memoryIndex, (uint32_t)memorySize, length); in addRegion()
277 memorySize += length; in addRegion()
331 for (uint32_t memorySize : mMemorySizes) { in layout() local
332 const int fd = ASharedMemory_create(nullptr, memorySize); in layout()
334 mMemorys.emplace_back(memorySize, PROT_READ | PROT_WRITE, fd, 0); in layout()