/external/skia/src/core/ |
D | SkColorTable.cpp | 69 size_t allocSize = fCount * sizeof(SkPMColor); 71 if (buffer.validateAvailable(allocSize)) { 72 fColors = (SkPMColor*)sk_malloc_throw(allocSize); 104 const size_t allocSize = count * sizeof(SkPMColor); in Create() local 105 SkAutoTDelete<SkPMColor> colors((SkPMColor*)sk_malloc_throw(allocSize)); in Create()
|
D | SkPictureFlat.h | 296 size_t allocSize = sizeof(SkFlatData) + size; in Create() local 297 SkFlatData* result = (SkFlatData*) controller->allocThrow(allocSize); in Create()
|
/external/eigen/Eigen/src/SparseCore/ |
D | AmbiVector.h | 72 Index allocSize = (size * sizeof(ListEl) + sizeof(Scalar) - 1)/sizeof(Scalar); in reallocate() local 73 m_allocatedElements = (allocSize*sizeof(Scalar))/sizeof(ListEl); in reallocate() 74 m_buffer = new Scalar[allocSize]; in reallocate() 90 Index allocSize = m_allocatedElements * sizeof(ListEl); in reallocateSparse() local 91 allocSize = (allocSize + sizeof(Scalar) - 1)/sizeof(Scalar); in reallocateSparse() 92 Scalar* newBuffer = new Scalar[allocSize]; in reallocateSparse()
|
/external/skia/src/gpu/batches/ |
D | GrDrawAtlasBatch.cpp | 80 size_t allocSize = args.fVerts.count(); in onPrepareDraws() local 81 memcpy(vertPtr, args.fVerts.begin(), allocSize); in onPrepareDraws() 82 vertPtr += allocSize; in onPrepareDraws() 109 int allocSize = static_cast<int>(4*vertexStride*spriteCount); in GrDrawAtlasBatch() local 110 installedGeo.fVerts.reset(allocSize); in GrDrawAtlasBatch()
|
/external/icu/icu4c/source/common/ |
D | unisetspan.cpp | 266 int32_t allocSize; in UnicodeSetStringSpan() local 269 allocSize=stringsLength*(4+1+1+1+1)+utf8Length; in UnicodeSetStringSpan() 271 allocSize=stringsLength; // One set of span lengths. in UnicodeSetStringSpan() 274 allocSize+=stringsLength*4+utf8Length; in UnicodeSetStringSpan() 277 if(allocSize<=(int32_t)sizeof(staticLengths)) { in UnicodeSetStringSpan() 280 utf8Lengths=(int32_t *)uprv_malloc(allocSize); in UnicodeSetStringSpan() 407 int32_t allocSize=stringsLength*(4+1+1+1+1)+utf8Length; in UnicodeSetStringSpan() local 408 if(allocSize<=(int32_t)sizeof(staticLengths)) { in UnicodeSetStringSpan() 411 utf8Lengths=(int32_t *)uprv_malloc(allocSize); in UnicodeSetStringSpan() 420 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/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/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | UnicodeSetStringSpan.java | 134 int allocSize; in UnicodeSetStringSpan() local 137 allocSize = stringsLength * (2); in UnicodeSetStringSpan() 139 allocSize = stringsLength; // One set of span lengths. in UnicodeSetStringSpan() 141 spanLengths = new short[allocSize]; in UnicodeSetStringSpan()
|
/external/icu/android_icu4j/src/main/java/android/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/opencv3/modules/core/src/ |
D | cuda_stream.cpp | 98 const size_t allocSize = tip - ptr; in returnMemory() local 99 CV_Assert( allocSize == allocations.back() ); in returnMemory()
|
/external/skia/src/effects/gradients/ |
D | SkGradientShader.cpp | 36 size_t allocSize = (sizeof(SkColor) + sizeof(SkScalar)) * fCount; in unflatten() local 37 fDynamicStorage.reset(allocSize); in unflatten() 557 const size_t allocSize = sizeof(uint16_t) * entryCount; in initCache16() local 560 cache->fCache16Storage = (uint16_t*)sk_malloc_throw(allocSize); in initCache16()
|
/external/clang/lib/CodeGen/ |
D | CGExprCXX.cpp | 1324 llvm::Value *allocSize = in EmitCXXNewExpr() local 1351 allocatorArgs.add(RValue::get(allocSize), getContext().getSizeType()); in EmitCXXNewExpr() 1361 allocatorArgs.add(RValue::get(allocSize), sizeType); in EmitCXXNewExpr() 1377 if (allocSize != allocSizeWithoutCookie) { in EmitCXXNewExpr() 1418 EnterNewDeleteCleanup(*this, E, allocation, allocSize, allocatorArgs); in EmitCXXNewExpr() 1423 assert((allocSize == allocSizeWithoutCookie) == in EmitCXXNewExpr() 1425 if (allocSize != allocSizeWithoutCookie) { in EmitCXXNewExpr()
|