/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/skqp/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/skqp/src/core/ |
D | SkDeque.cpp | 28 SkDeque::SkDeque(size_t elemSize, int allocCount) in SkDeque() argument 32 , fAllocCount(allocCount) { in SkDeque() 33 SkASSERT(allocCount >= 1); in SkDeque() 38 SkDeque::SkDeque(size_t elemSize, void* storage, size_t storageSize, int allocCount) in SkDeque() argument 42 , fAllocCount(allocCount) { in SkDeque() 44 SkASSERT(allocCount >= 1); in SkDeque() 228 SkDeque::Block* SkDeque::allocateBlock(int allocCount) { in allocateBlock() argument 229 Block* newBlock = (Block*)sk_malloc_throw(sizeof(Block) + allocCount * fElemSize); in allocateBlock() 230 newBlock->init(sizeof(Block) + allocCount * fElemSize); in allocateBlock()
|
/external/skia/src/core/ |
D | SkDeque.cpp | 28 SkDeque::SkDeque(size_t elemSize, int allocCount) in SkDeque() argument 32 , fAllocCount(allocCount) { in SkDeque() 33 SkASSERT(allocCount >= 1); in SkDeque() 38 SkDeque::SkDeque(size_t elemSize, void* storage, size_t storageSize, int allocCount) in SkDeque() argument 42 , fAllocCount(allocCount) { in SkDeque() 44 SkASSERT(allocCount >= 1); in SkDeque() 228 SkDeque::Block* SkDeque::allocateBlock(int allocCount) { in allocateBlock() argument 229 Block* newBlock = (Block*)sk_malloc_throw(sizeof(Block) + allocCount * fElemSize); in allocateBlock() 230 newBlock->init(sizeof(Block) + allocCount * fElemSize); in allocateBlock()
|
/external/skia/include/private/ |
D | SkDeque.h | 32 explicit SkDeque(size_t elemSize, int allocCount = 1); 33 SkDeque(size_t elemSize, void* storage, size_t storageSize, int allocCount = 1); 128 Block* allocateBlock(int allocCount);
|
D | SkTArray.h | 345 auto allocCount = fAllocCount; in swap() local 347 that.fAllocCount = allocCount; in swap()
|
/external/skqp/include/core/ |
D | SkDeque.h | 33 explicit SkDeque(size_t elemSize, int allocCount = 1); 34 SkDeque(size_t elemSize, void* storage, size_t storageSize, int allocCount = 1); 129 Block* allocateBlock(int allocCount);
|
/external/skia/src/gpu/ |
D | GrMemoryPool.cpp | 138 int allocCount = 0; in validate() local 140 allocCount += b->metadata(); in validate() 142 SkASSERT(allocCount == fAllocationCount); in validate() 144 SkASSERT(allocCount > 0 || this->isEmpty()); in validate()
|
/external/skqp/src/gpu/ |
D | GrMemoryPool.cpp | 177 int allocCount = 0; in validate() local 180 allocCount += block->fLiveCount; in validate() 212 SkASSERT(allocCount == fAllocationCnt); in validate()
|
/external/angle/third_party/vulkan_memory_allocator/src/ |
D | Tests.cpp | 1325 static void Defragment(AllocInfo* allocs, size_t allocCount, in Defragment() argument 1329 std::vector<VmaAllocation> vmaAllocs(allocCount); in Defragment() 1330 for(size_t i = 0; i < allocCount; ++i) in Defragment() 1333 std::vector<VkBool32> allocChanged(allocCount); in Defragment() 1335 ERR_GUARD_VULKAN( vmaDefragment(g_hAllocator, vmaAllocs.data(), allocCount, allocChanged.data(), in Defragment() 1338 for(size_t i = 0; i < allocCount; ++i) in Defragment() 1347 static void ValidateAllocationsData(const AllocInfo* allocs, size_t allocCount) in ValidateAllocationsData() argument 1349 std::for_each(allocs, allocs + allocCount, [](const AllocInfo& allocInfo) { in ValidateAllocationsData() 1606 const size_t allocCount = allocations.size(); in TestDefragmentationWholePool() local 1607 allocationsToDefrag.resize(allocCount); in TestDefragmentationWholePool() [all …]
|
D | vk_mem_alloc.h | 16548 …for(size_t allocIndex = 0, allocCount = pDedicatedAllocVector->size(); allocIndex < allocCount; ++… in CalculateStats() local
|
/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() 2437 const size_t allocCount = m_Allocations.size(); in Defragment() local 2438 std::vector<VmaAllocation> allocations(allocCount); in Defragment() 3112 const size_t allocCount = origAllocPtrs.size(); in ExecuteFreeMemoryPages() local 3114 for(size_t i = 0; i < allocCount; ++i) in ExecuteFreeMemoryPages() 3251 const size_t allocCount = origPtrs.size(); in ExecuteAllocateMemoryPages() local 3252 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/skqp/third_party/vulkanmemoryallocator/include/ |
D | vk_mem_alloc.h | 7308 …for(size_t blockIndex = 0, allocCount = m_Allocations.size(); blockIndex < allocCount; ++blockInde… in Defragment() local 7973 …for(size_t allocIndex = 0, allocCount = pDedicatedAllocVector->size(); allocIndex < allocCount; ++… in CalculateStats() local
|
/external/vulkan-validation-layers/layers/ |
D | vk_mem_alloc.h | 14822 …for(size_t allocIndex = 0, allocCount = pDedicatedAllocVector->size(); allocIndex < allocCount; ++… in CalculateStats() local
|
/external/skia/third_party/vulkanmemoryallocator/include/ |
D | vk_mem_alloc.h | 16519 …for(size_t allocIndex = 0, allocCount = pDedicatedAllocVector->size(); allocIndex < allocCount; ++… in CalculateStats() local
|