Home
last modified time | relevance | path

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

/packages/modules/NeuralNetworks/runtime/test/
DTestValidation.cpp625 const size_t memorySize = 20; in TEST_F() local
627 int memoryFd = ASharedMemory_create("nnMemory", memorySize); in TEST_F()
631 CHECK_EQ(ftruncate(memoryFd, memorySize), 0); in TEST_F()
636 EXPECT_EQ(ANeuralNetworksMemory_createFromFd(memorySize, PROT_READ | PROT_WRITE, memoryFd, 0, in TEST_F()
650 EXPECT_EQ(ANeuralNetworksModel_setOperandValueFromMemory(mModel, 0, memory, 0, memorySize), in TEST_F()
658 EXPECT_EQ(ANeuralNetworksModel_setOperandValueFromMemory(mModel, 0, memory, memorySize + 1, in TEST_F()
663 EXPECT_EQ(ANeuralNetworksModel_setOperandValueFromMemory(mModel, 0, memory, memorySize - 3, in TEST_F()
717 const size_t memorySize = 20; in TEST_F() local
719 .width = memorySize, in TEST_F()
734 EXPECT_EQ(ANeuralNetworksModel_setOperandValueFromMemory(mModel, 0, memory, memorySize + 1, in TEST_F()
[all …]
DTestCompliance.cpp116 const size_t memorySize = 20; in TEST_F() local
118 .width = memorySize, in TEST_F()
DTestPartitioningRandom.cpp279 uint32_t& memorySize = mMemorySizes[memoryIndex]; in addRegion() local
280 auto desc = std::make_tuple(memoryIndex, (uint32_t)memorySize, length); in addRegion()
282 memorySize += length; in addRegion()
330 for (uint32_t memorySize : mMemorySizes) { in layout() local
331 auto [n, ashmem] = nn::MemoryAshmem::create(memorySize); in layout()
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/
DApfSessionInfoMetrics.java48 public void setMemorySize(final int memorySize) { in setMemorySize() argument
49 mStatsBuilder.setMemorySize(memorySize); in setMemorySize()
/packages/modules/NeuralNetworks/common/types/src/
DValidation.cpp1035 const auto memorySize = memorySizes[location.poolIndex]; in validateRequestArgument() local
1036 NN_RET_CHECK_LE(lastPosition, memorySize); in validateRequestArgument()
1037 if (memorySize > 0) { in validateRequestArgument()