/external/skia/tests/ |
D | DequeTest.cpp | 85 int allocCount) { in assert_blocks() argument 91 int expected = (deq.count() + allocCount - 1) / allocCount; in assert_blocks() 100 static void TestSub(skiatest::Reporter* reporter, int allocCount) { in TestSub() argument 101 SkDeque deq(sizeof(int), allocCount); in TestSub() 112 assert_blocks(reporter, deq, allocCount); in TestSub() 119 assert_blocks(reporter, deq, allocCount); in TestSub() 125 assert_blocks(reporter, deq, allocCount); in TestSub() 134 assert_blocks(reporter, deq, allocCount); in TestSub() 141 assert_blocks(reporter, deq, allocCount); in TestSub() 147 assert_blocks(reporter, deq, allocCount); in TestSub() [all …]
|
/external/autotest/client/deps/nvmap_compactor/src/ |
D | nvmap_carveout_compactor.c | 373 unsigned int allocCount = 0; in RunTest() local 395 allocCount = allocatedMemoryLimit / 1048576; /* 1 mb */ in RunTest() 396 allocCount = (allocCount / 4) * 4; /* always a multiple of 4. */ in RunTest() 399 errCode = RunPhase(phase, 512, 512, allocCount, 1, phase1_tex); in RunTest() 406 (allocCount * 3 / 4) * 1); in RunTest() 407 for (i = 0; i < allocCount; i++) { in RunTest() 429 allocCount = (allocCount * 3) / 16; in RunTest() 431 errCode = RunPhase(phase, 1024, 1024, allocCount, 4, phase2_tex); in RunTest() 438 (allocCount / 2) * 4 ); in RunTest() 439 for (i = 0; i < allocCount; i++) { in RunTest() [all …]
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | MessageFramerTest.java | 84 assertEquals(1, allocator.allocCount); in simplePayload() 96 assertEquals(2, allocator.allocCount); in simpleUnknownLengthPayload() 111 assertEquals(1, allocator.allocCount); in smallPayloadsShouldBeCombined() 123 assertEquals(1, allocator.allocCount); in closeCombinedWithFullSink() 132 assertEquals(0, allocator.allocCount); in closeWithoutBufferedFrameGivesNullBuffer() 148 assertEquals(2, allocator.allocCount); in payloadSplitBetweenSinks() 165 assertEquals(2, allocator.allocCount); in frameHeaderSplitBetweenSinks() 174 assertEquals(1, allocator.allocCount); in emptyPayloadYieldsFrame() 185 assertEquals(1, allocator.allocCount); in emptyUnknownLengthPayloadYieldsFrame() 196 assertEquals(1, allocator.allocCount); in flushIsIdempotent() [all …]
|
/external/skia/src/base/ |
D | SkDeque.cpp | 31 SkDeque::SkDeque(size_t elemSize, int allocCount) in SkDeque() argument 35 , fAllocCount(allocCount) { in SkDeque() 36 SkASSERT(allocCount >= 1); in SkDeque() 41 SkDeque::SkDeque(size_t elemSize, void* storage, size_t storageSize, int allocCount) in SkDeque() argument 45 , fAllocCount(allocCount) { in SkDeque() 47 SkASSERT(allocCount >= 1); in SkDeque() 231 SkDeque::Block* SkDeque::allocateBlock(int allocCount) { in allocateBlock() argument 232 Block* newBlock = (Block*)sk_malloc_throw(sizeof(Block) + allocCount * fElemSize); in allocateBlock() 233 newBlock->init(sizeof(Block) + allocCount * fElemSize); in allocateBlock()
|
/external/skia/include/private/base/ |
D | SkDeque.h | 34 explicit SkDeque(size_t elemSize, int allocCount = 1); 35 SkDeque(size_t elemSize, void* storage, size_t storageSize, int allocCount = 1); 130 Block* allocateBlock(int allocCount);
|
D | SkTArray.h | 326 auto allocCount = fCapacity; in swap() local 328 that.fCapacity = allocCount; in swap()
|
/external/skia/src/gpu/ganesh/ |
D | GrMemoryPool.cpp | 143 int allocCount = 0; in validate() local 145 allocCount += b->metadata(); in validate() 147 SkASSERT(allocCount == fDebug->fAllocationCount); in validate() 149 SkASSERT(allocCount > 0 || this->isEmpty()); in validate()
|
/external/angle/third_party/vulkan_memory_allocator/src/ |
D | Tests.cpp | 1328 static void Defragment(AllocInfo* allocs, size_t allocCount, in Defragment() argument 1332 std::vector<VmaAllocation> vmaAllocs(allocCount); in Defragment() 1333 for(size_t i = 0; i < allocCount; ++i) in Defragment() 1336 std::vector<VkBool32> allocChanged(allocCount); in Defragment() 1338 ERR_GUARD_VULKAN( vmaDefragment(g_hAllocator, vmaAllocs.data(), allocCount, allocChanged.data(), in Defragment() 1341 for(size_t i = 0; i < allocCount; ++i) in Defragment() 1350 static void ValidateAllocationsData(const AllocInfo* allocs, size_t allocCount) in ValidateAllocationsData() argument 1352 std::for_each(allocs, allocs + allocCount, [](const AllocInfo& allocInfo) { in ValidateAllocationsData() 1609 const size_t allocCount = allocations.size(); in TestDefragmentationWholePool() local 1610 allocationsToDefrag.resize(allocCount); in TestDefragmentationWholePool() [all …]
|
/external/angle/third_party/vulkan_memory_allocator/src/VmaReplay/ |
D | VmaReplay.cpp | 748 void RegisterCreateAllocation(const VmaAllocationCreateInfo& info, size_t allocCount = 1); 750 …void RegisterAllocateMemoryPages(size_t allocCount) { m_VmaAllocateMemoryPages.PostValue(allocCoun… in RegisterAllocateMemoryPages() argument 994 void Statistics::RegisterCreateAllocation(const VmaAllocationCreateInfo& info, size_t allocCount) in RegisterCreateAllocation() argument 996 m_VmaAllocationCreateInfo.PostValue(info, allocCount); in RegisterCreateAllocation() 2416 const size_t allocCount = m_Allocations.size(); in Defragment() local 2417 std::vector<VmaAllocation> allocations(allocCount); in Defragment() 3091 const size_t allocCount = origAllocPtrs.size(); in ExecuteFreeMemoryPages() local 3093 for(size_t i = 0; i < allocCount; ++i) in ExecuteFreeMemoryPages() 3230 const size_t allocCount = origPtrs.size(); in ExecuteAllocateMemoryPages() local 3231 if(allocCount > 0) in ExecuteAllocateMemoryPages() [all …]
|
/external/mesa3d/src/gallium/drivers/nouveau/codegen/ |
D | nv50_ir_util.h | 633 unsigned int allocCount = (count + (1 << objStepLog2) - 1) >> objStepLog2; in ~MemoryPool() local 634 for (unsigned int i = 0; i < allocCount && allocArray[i]; ++i) in ~MemoryPool()
|
/external/skia/vma_android/include/ |
D | vk_mem_alloc.h | 6213 const uint32_t allocCount = (uint32_t)m_AllocationList.GetCount(); in AddStatistics() local 6214 inoutStats.blockCount += allocCount; in AddStatistics() 6215 inoutStats.allocationCount += allocCount; in AddStatistics() 6574 uint16_t allocCount; member 6644 if (m_RegionInfo[startPage].allocCount > 0 && in CheckConflictAndAlignUp() 6654 m_RegionInfo[endPage].allocCount > 0 && in CheckConflictAndAlignUp() 6681 --m_RegionInfo[startPage].allocCount; in FreePages() 6682 if (m_RegionInfo[startPage].allocCount == 0) in FreePages() 6687 --m_RegionInfo[endPage].allocCount; in FreePages() 6688 if (m_RegionInfo[endPage].allocCount == 0) in FreePages() [all …]
|
/external/vulkan-validation-layers/layers/ |
D | vk_mem_alloc.h | 14822 …for(size_t allocIndex = 0, allocCount = pDedicatedAllocVector->size(); allocIndex < allocCount; ++… in CalculateStats() local
|