/external/skqp/tests/ |
D | VkHeapTests.cpp | 129 REPORTER_ASSERT(reporter, heap.allocSize() == 0 && heap.usedSize() == 0); in suballoc_test() 136 REPORTER_ASSERT(reporter, heap.allocSize() == 64 * 1024 && heap.usedSize() == 42 * 1024); in suballoc_test() 138 REPORTER_ASSERT(reporter, heap.allocSize() == 64 * 1024 && heap.usedSize() == 23 * 1024); in suballoc_test() 140 REPORTER_ASSERT(reporter, heap.allocSize() == 64 * 1024 && heap.usedSize() == 8 * 1024); in suballoc_test() 143 REPORTER_ASSERT(reporter, heap.allocSize() == 128 * 1024 && heap.usedSize() == 48 * 1024); in suballoc_test() 145 REPORTER_ASSERT(reporter, heap.allocSize() == 128 * 1024 && heap.usedSize() == 45 * 1024); in suballoc_test() 148 REPORTER_ASSERT(reporter, heap.allocSize() == 128 * 1024 && heap.usedSize() == 85 * 1024); in suballoc_test() 151 REPORTER_ASSERT(reporter, heap.allocSize() == 128 * 1024 && heap.usedSize() == 107 * 1024); in suballoc_test() 153 REPORTER_ASSERT(reporter, heap.allocSize() == 128 * 1024 && heap.usedSize() == 102 * 1024); in suballoc_test() 155 REPORTER_ASSERT(reporter, heap.allocSize() == 128 * 1024 && heap.usedSize() == 62 * 1024); in suballoc_test() [all …]
|
/external/skia/tests/ |
D | VkHeapTests.cpp | 129 REPORTER_ASSERT(reporter, heap.allocSize() == 0 && heap.usedSize() == 0); in suballoc_test() 136 REPORTER_ASSERT(reporter, heap.allocSize() == 64 * 1024 && heap.usedSize() == 42 * 1024); in suballoc_test() 138 REPORTER_ASSERT(reporter, heap.allocSize() == 64 * 1024 && heap.usedSize() == 23 * 1024); in suballoc_test() 140 REPORTER_ASSERT(reporter, heap.allocSize() == 64 * 1024 && heap.usedSize() == 8 * 1024); in suballoc_test() 143 REPORTER_ASSERT(reporter, heap.allocSize() == 128 * 1024 && heap.usedSize() == 48 * 1024); in suballoc_test() 145 REPORTER_ASSERT(reporter, heap.allocSize() == 128 * 1024 && heap.usedSize() == 45 * 1024); in suballoc_test() 148 REPORTER_ASSERT(reporter, heap.allocSize() == 128 * 1024 && heap.usedSize() == 85 * 1024); in suballoc_test() 151 REPORTER_ASSERT(reporter, heap.allocSize() == 128 * 1024 && heap.usedSize() == 107 * 1024); in suballoc_test() 153 REPORTER_ASSERT(reporter, heap.allocSize() == 128 * 1024 && heap.usedSize() == 102 * 1024); in suballoc_test() 155 REPORTER_ASSERT(reporter, heap.allocSize() == 128 * 1024 && heap.usedSize() == 62 * 1024); in suballoc_test() [all …]
|
/external/skia/src/core/ |
D | SkGlyph.h | 199 size_t allocSize; in allocImage() local 202 allocSize = BitsToBytes(fWidth) * fHeight; in allocImage() 203 fImage = alloc->makeArrayDefault<char>(allocSize); in allocImage() 206 allocSize = SkAlign4(fWidth) * fHeight; in allocImage() 207 fImage = alloc->makeArrayDefault<char>(allocSize); in allocImage() 210 allocSize = SkAlign4(fWidth) * fHeight * 3; in allocImage() 211 fImage = alloc->makeArrayDefault<char>(allocSize); in allocImage() 214 allocSize = fWidth * fHeight; in allocImage() 216 allocSize *= sizeof(uint32_t); in allocImage() 219 allocSize = SkAlign2(fWidth) * fHeight; in allocImage() [all …]
|
D | SkColorSpace_ICC.cpp | 779 size_t allocSize = sizeof(SkGammas); in parse_and_load_gamma() local 780 return_if_false(safe_add(allocSize, gamma_alloc_size(type[0], data[0]), &allocSize), in parse_and_load_gamma() 782 void* memory = sk_malloc_throw(allocSize); in parse_and_load_gamma() 802 size_t allocSize = sizeof(SkGammas); in parse_and_load_gamma() local 804 return_if_false(safe_add(allocSize, gamma_alloc_size(type[channel], data[channel]), in parse_and_load_gamma() 805 &allocSize), in parse_and_load_gamma() 808 void* memory = sk_malloc_throw(allocSize); in parse_and_load_gamma() 886 size_t allocSize = sizeof(SkGammas); in load_lut_gammas() local 887 return_if_false(safe_add(allocSize, (size_t)writetableBytes, &allocSize), in load_lut_gammas() 890 void* memory = sk_malloc_throw(allocSize); in load_lut_gammas() [all …]
|
/external/skqp/src/core/ |
D | SkGlyph.h | 199 size_t allocSize; in allocImage() local 202 allocSize = BitsToBytes(fWidth) * fHeight; in allocImage() 203 fImage = alloc->makeArrayDefault<char>(allocSize); in allocImage() 206 allocSize = SkAlign4(fWidth) * fHeight; in allocImage() 207 fImage = alloc->makeArrayDefault<char>(allocSize); in allocImage() 210 allocSize = SkAlign4(fWidth) * fHeight * 3; in allocImage() 211 fImage = alloc->makeArrayDefault<char>(allocSize); in allocImage() 214 allocSize = fWidth * fHeight; in allocImage() 216 allocSize *= sizeof(uint32_t); in allocImage() 219 allocSize = SkAlign2(fWidth) * fHeight; in allocImage() [all …]
|
D | SkColorSpace_ICC.cpp | 779 size_t allocSize = sizeof(SkGammas); in parse_and_load_gamma() local 780 return_if_false(safe_add(allocSize, gamma_alloc_size(type[0], data[0]), &allocSize), in parse_and_load_gamma() 782 void* memory = sk_malloc_throw(allocSize); in parse_and_load_gamma() 802 size_t allocSize = sizeof(SkGammas); in parse_and_load_gamma() local 804 return_if_false(safe_add(allocSize, gamma_alloc_size(type[channel], data[channel]), in parse_and_load_gamma() 805 &allocSize), in parse_and_load_gamma() 808 void* memory = sk_malloc_throw(allocSize); in parse_and_load_gamma() 886 size_t allocSize = sizeof(SkGammas); in load_lut_gammas() local 887 return_if_false(safe_add(allocSize, (size_t)writetableBytes, &allocSize), in load_lut_gammas() 890 void* memory = sk_malloc_throw(allocSize); in load_lut_gammas() [all …]
|
/external/eigen/Eigen/src/SparseCore/ |
D | AmbiVector.h | 76 Index allocSize = (size * sizeof(ListEl) + sizeof(Scalar) - 1)/sizeof(Scalar); in reallocate() local 77 m_allocatedElements = convert_index((allocSize*sizeof(Scalar))/sizeof(ListEl)); in reallocate() 78 m_buffer = new Scalar[allocSize]; in reallocate() 94 Index allocSize = m_allocatedElements * sizeof(ListEl); in reallocateSparse() local 95 allocSize = (allocSize + sizeof(Scalar) - 1)/sizeof(Scalar); in reallocateSparse() 96 Scalar* newBuffer = new Scalar[allocSize]; in reallocateSparse()
|
/external/oj-libjdwp/src/share/back/ |
D | SDE.c | 323 size_t allocSize; in assureLineTableSize() local 330 allocSize = new_lineTableSize * (int)sizeof(LineTableRecord); in assureLineTableSize() 331 new_lineTable = jvmtiAllocate((jint)allocSize); in assureLineTableSize() 347 size_t allocSize; in assureFileTableSize() local 354 allocSize = new_fileTableSize * (int)sizeof(FileTableRecord); in assureFileTableSize() 355 new_fileTable = jvmtiAllocate((jint)allocSize); in assureFileTableSize() 371 size_t allocSize; in assureStratumTableSize() local 378 allocSize = new_stratumTableSize * (int)sizeof(StratumTableRecord); in assureStratumTableSize() 379 new_stratumTable = jvmtiAllocate((jint)allocSize); in assureStratumTableSize()
|
/external/skia/src/gpu/vk/ |
D | GrVkMemory.cpp | 354 VkDeviceSize* allocOffset, VkDeviceSize* allocSize) { in alloc() argument 383 *allocSize = alignedSize; in alloc() 431 SkASSERT(*allocSize > 0); in alloc() 441 void GrVkFreeListAlloc::free(VkDeviceSize allocOffset, VkDeviceSize allocSize) { in free() argument 454 block->fSize += allocSize; in free() 459 if (iter.get() && iter.get()->fOffset == allocOffset + allocSize) { in free() 468 } else if (iter.get() && iter.get()->fOffset == allocOffset + allocSize) { in free() 470 block->fSize += allocSize; in free() 480 block->fSize = allocSize; in free() 482 fFreeSize += allocSize; in free()
|
D | GrVkMemory.h | 71 bool alloc(VkDeviceSize requestedSize, VkDeviceSize* allocOffset, VkDeviceSize* allocSize); 72 void free(VkDeviceSize allocOffset, VkDeviceSize allocSize); 140 VkDeviceSize allocSize() const { return fAllocSize; } in allocSize() function
|
/external/skqp/src/gpu/vk/ |
D | GrVkMemory.cpp | 354 VkDeviceSize* allocOffset, VkDeviceSize* allocSize) { in alloc() argument 383 *allocSize = alignedSize; in alloc() 431 SkASSERT(*allocSize > 0); in alloc() 441 void GrVkFreeListAlloc::free(VkDeviceSize allocOffset, VkDeviceSize allocSize) { in free() argument 454 block->fSize += allocSize; in free() 459 if (iter.get() && iter.get()->fOffset == allocOffset + allocSize) { in free() 468 } else if (iter.get() && iter.get()->fOffset == allocOffset + allocSize) { in free() 470 block->fSize += allocSize; in free() 480 block->fSize = allocSize; in free() 482 fFreeSize += allocSize; in free()
|
D | GrVkMemory.h | 71 bool alloc(VkDeviceSize requestedSize, VkDeviceSize* allocOffset, VkDeviceSize* allocSize); 72 void free(VkDeviceSize allocOffset, VkDeviceSize allocSize); 140 VkDeviceSize allocSize() const { return fAllocSize; } in allocSize() function
|
/external/skqp/src/gpu/ops/ |
D | GrDrawAtlasOp.cpp | 52 int allocSize = static_cast<int>(4 * vertexStride * spriteCount); in GrDrawAtlasOp() local 53 installedGeo.fVerts.reset(allocSize); in GrDrawAtlasOp() 141 size_t allocSize = args.fVerts.count(); in onPrepareDraws() local 142 memcpy(vertPtr, args.fVerts.begin(), allocSize); in onPrepareDraws() 143 vertPtr += allocSize; in onPrepareDraws()
|
/external/skia/src/gpu/ops/ |
D | GrDrawAtlasOp.cpp | 52 int allocSize = static_cast<int>(4 * vertexStride * spriteCount); in GrDrawAtlasOp() local 53 installedGeo.fVerts.reset(allocSize); in GrDrawAtlasOp() 141 size_t allocSize = args.fVerts.count(); in onPrepareDraws() local 142 memcpy(vertPtr, args.fVerts.begin(), allocSize); in onPrepareDraws() 143 vertPtr += allocSize; in onPrepareDraws()
|
/external/icu/icu4c/source/common/ |
D | unisetspan.cpp | 268 int32_t allocSize; in UnicodeSetStringSpan() local 271 allocSize=stringsLength*(4+1+1+1+1)+utf8Length; in UnicodeSetStringSpan() 273 allocSize=stringsLength; // One set of span lengths. in UnicodeSetStringSpan() 276 allocSize+=stringsLength*4+utf8Length; in UnicodeSetStringSpan() 279 if(allocSize<=(int32_t)sizeof(staticLengths)) { in UnicodeSetStringSpan() 282 utf8Lengths=(int32_t *)uprv_malloc(allocSize); in UnicodeSetStringSpan() 409 int32_t allocSize=stringsLength*(4+1+1+1+1)+utf8Length; in UnicodeSetStringSpan() local 410 if(allocSize<=(int32_t)sizeof(staticLengths)) { in UnicodeSetStringSpan() 413 utf8Lengths=(int32_t *)uprv_malloc(allocSize); in UnicodeSetStringSpan() 422 uprv_memcpy(utf8Lengths, otherStringSpan.utf8Lengths, allocSize); in UnicodeSetStringSpan()
|
/external/libvncserver/libvncclient/ |
D | vncviewer.c | 92 uint64_t allocSize; in MallocFrameBuffer() local 101 allocSize = (uint64_t)client->width * client->height * client->format.bitsPerPixel/8; in MallocFrameBuffer() 103 if (allocSize >= SIZE_MAX) { in MallocFrameBuffer() 108 client->frameBuffer=malloc( (size_t)allocSize ); in MallocFrameBuffer()
|
/external/skqp/src/gpu/ |
D | GrResourceProvider.cpp | 399 size_t allocSize = SkTMax(MIN_SIZE, GrNextSizePow2(size)); in createBuffer() local 402 GrBuffer::ComputeScratchKeyForDynamicVBO(allocSize, intendedType, &key); in createBuffer() 410 this->cache()->findAndRefScratchResource(key, allocSize, scratchFlags)); in createBuffer() 412 buffer = this->gpu()->createBuffer(allocSize, intendedType, kDynamic_GrAccessPattern); in createBuffer()
|
/external/skia/src/gpu/ |
D | GrResourceProvider.cpp | 391 size_t allocSize = SkTMax(MIN_SIZE, GrNextSizePow2(size)); in createBuffer() local 394 GrBuffer::ComputeScratchKeyForDynamicVBO(allocSize, intendedType, &key); in createBuffer() 402 this->cache()->findAndRefScratchResource(key, allocSize, scratchFlags)); in createBuffer() 404 buffer = this->gpu()->createBuffer(allocSize, intendedType, kDynamic_GrAccessPattern); in createBuffer()
|
/external/deqp/external/vulkancts/modules/vulkan/api/ |
D | vktApiGetMemoryCommitment.cpp | 610 VkDeviceSize allocSize[arrayLength]; in iterate() local 615 allocSize[i] = rand() % 1000 + 1; in iterate() 628 allocSize[i], // VkDeviceSize allocationSize in iterate() 640 if(pCommittedMemoryInBytes > allocSize[i]) in iterate()
|
/external/libvncserver/libvncserver/ |
D | scale.c | 290 int allocSize; in rfbScaledScreenAllocate() local 299 allocSize = pad4(width * (ptr->bitsPerPixel/8)); /* per protocol, width<2**16 and bpp<256 */ in rfbScaledScreenAllocate() 300 if (height == 0 || allocSize >= SIZE_MAX / height) in rfbScaledScreenAllocate()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | UnicodeSetStringSpan.java | 142 int allocSize; in UnicodeSetStringSpan() local 145 allocSize = stringsLength * (2); in UnicodeSetStringSpan() 147 allocSize = stringsLength; // One set of span lengths. in UnicodeSetStringSpan() 149 spanLengths = new short[allocSize]; in UnicodeSetStringSpan()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | UnicodeSetStringSpan.java | 138 int allocSize; in UnicodeSetStringSpan() local 141 allocSize = stringsLength * (2); in UnicodeSetStringSpan() 143 allocSize = stringsLength; // One set of span lengths. in UnicodeSetStringSpan() 145 spanLengths = new short[allocSize]; in UnicodeSetStringSpan()
|
/external/webrtc/webrtc/test/channel_transport/ |
D | udp_socket2_win.cc | 1034 int allocSize = sizeof(TC_GEN_FLOW) + sizeof(QOS_DS_CLASS) + in SetTrafficControl() local 1036 _flow = (PTC_GEN_FLOW)malloc(allocSize); in SetTrafficControl() 1075 int allocSize = sizeof(TC_GEN_FLOW) + sizeof(QOS_DS_CLASS) + in SetTrafficControl() local 1077 _flow = (PTC_GEN_FLOW)malloc(allocSize); in SetTrafficControl()
|
/external/clang/lib/CodeGen/ |
D | CGExprCXX.cpp | 1332 llvm::Value *allocSize = in EmitCXXNewExpr() local 1359 allocatorArgs.add(RValue::get(allocSize), getContext().getSizeType()); in EmitCXXNewExpr() 1369 allocatorArgs.add(RValue::get(allocSize), sizeType); in EmitCXXNewExpr() 1385 if (allocSize != allocSizeWithoutCookie) { in EmitCXXNewExpr() 1426 EnterNewDeleteCleanup(*this, E, allocation, allocSize, allocatorArgs); in EmitCXXNewExpr() 1431 assert((allocSize == allocSizeWithoutCookie) == in EmitCXXNewExpr() 1433 if (allocSize != allocSizeWithoutCookie) { in EmitCXXNewExpr()
|
/external/skia/src/shaders/gradients/ |
D | SkGradientShader.cpp | 83 size_t allocSize = (sizeof(SkColor4f) + sizeof(SkScalar)) * fCount; in unflatten() local 84 fDynamicStorage.reset(allocSize); in unflatten()
|