/external/skia/src/core/ |
D | SkStream.cpp | 37 size_t SkStream::skip(size_t size) in skip() argument 43 return size ? this->read(NULL, size) : 0; in skip() 123 return this->write(tmp.c_str(), tmp.size()); in writeDecAsText() 130 return this->write(tmp.c_str(), tmp.size()); in writeHexAsText() 137 return this->write(tmp.c_str(), tmp.size()); in writeScalarAsText() 192 fName.writable_str()[fName.size()-3] = 'b'; in SkFILEStream() 209 fName.writable_str()[fName.size()-3] = 'b'; in setPath() 239 size_t SkFILEStream::read(void* buffer, size_t size) in read() argument 243 if (buffer == NULL && size == 0) // special signature, they want the total size in read() 246 return sk_fread(buffer, size, fFILE); in read() [all …]
|
D | SkWriter32.cpp | 12 uint32_t* alloc(size_t size) in alloc() 14 SkASSERT(SkAlign4(size) == size); in alloc() 15 SkASSERT(this->available() >= size); in alloc() 17 fAllocated += size; in alloc() 29 static Block* Create(size_t size) in Create() 31 SkASSERT(SkAlign4(size) == size); in Create() 32 Block* block = (Block*)sk_malloc_throw(sizeof(Block) + size); in Create() 34 block->fSize = size; in Create() 60 uint32_t* SkWriter32::reserve(size_t size) in reserve() argument 62 SkASSERT(SkAlign4(size) == size); in reserve() [all …]
|
/external/freetype/src/truetype/ |
D | ttobjs.c | 404 tt_size_run_fpgm( TT_Size size ) in tt_size_run_fpgm() argument 406 TT_Face face = (TT_Face)size->root.face; in tt_size_run_fpgm() 412 if ( size->debug ) in tt_size_run_fpgm() 413 exec = size->context; in tt_size_run_fpgm() 420 TT_Load_Context( exec, face, size ); in tt_size_run_fpgm() 468 TT_Save_Context( exec, size ); in tt_size_run_fpgm() 489 tt_size_run_prep( TT_Size size ) in tt_size_run_prep() argument 491 TT_Face face = (TT_Face)size->root.face; in tt_size_run_prep() 497 if ( size->debug ) in tt_size_run_prep() 498 exec = size->context; in tt_size_run_prep() [all …]
|
/external/e2fsprogs/tests/f_journal/ |
D | expect.1 | 2 Clearing orphaned inode 37 (uid=0, gid=0, mode=0100600, size=4096) 3 Clearing orphaned inode 90 (uid=0, gid=0, mode=040700, size=1024) 4 Clearing orphaned inode 67 (uid=0, gid=0, mode=0100600, size=4096) 5 Clearing orphaned inode 50 (uid=0, gid=0, mode=0100600, size=4096) 6 Clearing orphaned inode 57 (uid=0, gid=0, mode=040700, size=1024) 7 Clearing orphaned inode 80 (uid=0, gid=0, mode=040700, size=1024) 8 Clearing orphaned inode 45 (uid=0, gid=0, mode=040700, size=1024) 9 Clearing orphaned inode 71 (uid=0, gid=0, mode=0100600, size=4096) 10 Clearing orphaned inode 86 (uid=0, gid=0, mode=040700, size=1024) 11 Clearing orphaned inode 83 (uid=0, gid=0, mode=040700, size=1024) [all …]
|
/external/speex/libspeex/ |
D | buffer.c | 45 int size; member 51 EXPORT SpeexBuffer *speex_buffer_init(int size) in speex_buffer_init() argument 54 st->data = speex_alloc(size); in speex_buffer_init() 55 st->size = size; in speex_buffer_init() 73 if (len > st->size) in speex_buffer_write() 75 data += len-st->size; in speex_buffer_write() 76 len = st->size; in speex_buffer_write() 80 if (end1 > st->size) in speex_buffer_write() 81 end1 = st->size; in speex_buffer_write() 83 if (end > st->size) in speex_buffer_write() [all …]
|
D | stack_alloc.h | 91 #define ALIGN(stack, size) ((stack) += ((size) - (long)(stack)) & ((size) - 1)) argument 93 …size, type) (VALGRIND_MAKE_NOACCESS(stack, 1000),ALIGN((stack),sizeof(type)),VALGRIND_MAKE_WRITABL… argument 97 #define ALIGN(stack, size) ((stack) += ((size) - (long)(stack)) & ((size) - 1)) argument 99 #define PUSH(stack, size, type) (ALIGN((stack),sizeof(type)),(stack)+=((size)*sizeof(type)),(type*)… argument 105 #define ALLOC(var, size, type) type var[size] argument 108 #define ALLOC(var, size, type) var = alloca(sizeof(type)*(size)) argument 111 #define ALLOC(var, size, type) var = PUSH(stack, size, type) argument
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/choice/ |
D | der_decode_choice.c | 31 unsigned long size, x, z; in der_decode_choice() local 50 size = list[x].size; in der_decode_choice() 66 if (der_length_short_integer(size, &z) == CRYPT_OK) { in der_decode_choice() 75 if (der_decode_bit_string(in, *inlen, data, &size) == CRYPT_OK) { in der_decode_choice() 76 if (der_length_bit_string(size, &z) == CRYPT_OK) { in der_decode_choice() 78 list[x].size = size; in der_decode_choice() 86 if (der_decode_octet_string(in, *inlen, data, &size) == CRYPT_OK) { in der_decode_choice() 87 if (der_length_octet_string(size, &z) == CRYPT_OK) { in der_decode_choice() 89 list[x].size = size; in der_decode_choice() 105 if (der_decode_object_identifier(in, *inlen, data, &size) == CRYPT_OK) { in der_decode_choice() [all …]
|
/external/dosfstools/src/ |
D | io.c | 50 int size; member 108 void fs_read(loff_t pos,int size,void *data) in fs_read() argument 114 if ((got = read(fd,data,size)) < 0) pdie("Read %d bytes at %lld",size,pos); in fs_read() 115 if (got != size) die("Got %d bytes instead of %d at %lld",got,size,pos); in fs_read() 117 if (walk->pos < pos+size && walk->pos+walk->size > pos) { in fs_read() 119 memcpy(data,(char *) walk->data+pos-walk->pos,min(size, in fs_read() 120 walk->size-pos+walk->pos)); in fs_read() 121 else memcpy((char *) data+walk->pos-pos,walk->data,min(walk->size, in fs_read() 122 size+pos-walk->pos)); in fs_read() 128 int fs_test(loff_t pos,int size) in fs_test() argument [all …]
|
/external/dropbear/ |
D | circbuffer.c | 31 circbuffer * cbuf_new(unsigned int size) { in cbuf_new() argument 35 if (size > MAX_CBUF_SIZE) { in cbuf_new() 40 cbuf->data = (unsigned char*)m_malloc(size); in cbuf_new() 44 cbuf->size = size; in cbuf_new() 63 return cbuf->size - cbuf->used; in cbuf_getavail() 69 dropbear_assert(((2*cbuf->size)+cbuf->writepos-cbuf->readpos)%cbuf->size == cbuf->used%cbuf->size); in cbuf_readlen() 70 …dropbear_assert(((2*cbuf->size)+cbuf->readpos-cbuf->writepos)%cbuf->size == (cbuf->size-cbuf->used… in cbuf_readlen() 81 return cbuf->size - cbuf->readpos; in cbuf_readlen() 86 dropbear_assert(cbuf->used <= cbuf->size); in cbuf_writelen() 87 dropbear_assert(((2*cbuf->size)+cbuf->writepos-cbuf->readpos)%cbuf->size == cbuf->used%cbuf->size); in cbuf_writelen() [all …]
|
/external/libpng/ |
D | pngmem.c | 42 png_size_t size; in png_create_struct_2() local 46 size = png_sizeof(png_info); in png_create_struct_2() 48 size = png_sizeof(png_struct); in png_create_struct_2() 58 struct_ptr = (*(malloc_fn))(png_ptr, (png_uint_32)size); in png_create_struct_2() 62 struct_ptr = (png_voidp)farmalloc(size); in png_create_struct_2() 64 png_memset(struct_ptr, 0, size); in png_create_struct_2() 119 png_malloc(png_structp png_ptr, png_uint_32 size) in png_malloc() argument 123 if (png_ptr == NULL || size == 0) in png_malloc() 128 ret = ((png_voidp)(*(png_ptr->malloc_fn))(png_ptr, (png_size_t)size)); in png_malloc() 130 ret = (png_malloc_default(png_ptr, size)); in png_malloc() [all …]
|
/external/qemu/distrib/libpng-1.2.19/ |
D | pngmem.c | 40 png_size_t size; in png_create_struct_2() local 44 size = png_sizeof(png_info); in png_create_struct_2() 46 size = png_sizeof(png_struct); in png_create_struct_2() 56 struct_ptr = (*(malloc_fn))(png_ptr, (png_uint_32)size); in png_create_struct_2() 60 struct_ptr = (png_voidp)farmalloc(size); in png_create_struct_2() 62 png_memset(struct_ptr, 0, size); in png_create_struct_2() 117 png_malloc(png_structp png_ptr, png_uint_32 size) in png_malloc() argument 121 if (png_ptr == NULL || size == 0) in png_malloc() 126 ret = ((png_voidp)(*(png_ptr->malloc_fn))(png_ptr, (png_size_t)size)); in png_malloc() 128 ret = (png_malloc_default(png_ptr, size)); in png_malloc() [all …]
|
/external/elfutils/libasm/ |
D | asm_adduint8.c | 25 #define UFCT(size) _UFCT(size) argument 26 #define _UFCT(size) asm_adduint##size argument 27 #define FCT(size) _FCT(size) argument 28 #define _FCT(size) asm_addint##size argument 29 #define UTYPE(size) _UTYPE(size) argument 30 #define _UTYPE(size) uint##size##_t argument 31 #define TYPE(size) _TYPE(size) argument 32 #define _TYPE(size) int##size##_t argument
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/sequence/ |
D | der_decode_sequence_ex.c | 35 unsigned long size, x, y, z, i, blksize; in der_decode_sequence_ex() local 88 size = list[i].size; in der_decode_sequence_ex() 132 if ((err = der_decode_bit_string(in + x, z, data, &size)) != CRYPT_OK) { in der_decode_sequence_ex() 136 list[i].size = size; in der_decode_sequence_ex() 137 if ((err = der_length_bit_string(size, &z)) != CRYPT_OK) { in der_decode_sequence_ex() 144 if ((err = der_decode_octet_string(in + x, z, data, &size)) != CRYPT_OK) { in der_decode_sequence_ex() 148 list[i].size = size; in der_decode_sequence_ex() 149 if ((err = der_length_octet_string(size, &z)) != CRYPT_OK) { in der_decode_sequence_ex() 165 if ((err = der_decode_object_identifier(in + x, z, data, &size)) != CRYPT_OK) { in der_decode_sequence_ex() 169 list[i].size = size; in der_decode_sequence_ex() [all …]
|
/external/qemu/ |
D | cbuffer.c | 33 if (cb->rpos < 0 || cb->rpos >= cb->size) { in cbuffer_assert() 36 else if (cb->count < 0 || cb->count > cb->size) { in cbuffer_assert() 43 file, lineno, reason, cb->rpos, cb->count, cb->size); in cbuffer_assert() 55 int avail = cb->size - cb->count; in cbuffer_write_peek() 59 if (wpos >= cb->size) in cbuffer_write_peek() 60 wpos -= cb->size; in cbuffer_write_peek() 62 if (wpos + avail > cb->size) in cbuffer_write_peek() 63 avail = cb->size - wpos; in cbuffer_write_peek() 75 if (cb->count > cb->size) in cbuffer_write_step() 76 cb->count = cb->size; in cbuffer_write_step() [all …]
|
/external/opencore/fileformats/mp4/composer/src/ |
D | sampletableatom.cpp | 92 uint32 size, in nextSample() argument 102 int32 index = _psampleDescriptionAtom->nextSample(size, flags); in nextSample() 104 _psampleSizeAtom->nextSample(size); in nextSample() 110 isChunkStart = _psampleToChunkAtom->nextSample(index, size, oChunkStart); in nextSample() 115 _pchunkOffsetAtom->nextSample(size, isChunkStart, baseOffset); in nextSample() 120 _pchunkOffsetAtom->nextSample(size, isChunkStart); in nextSample() 135 uint32 size, in nextTextSample() argument 148 int32 sdindex = _psampleDescriptionAtom->nextTextSample(size, flags, index); in nextTextSample() 150 _psampleSizeAtom->nextSample(size); in nextTextSample() 156 isChunkStart = _psampleToChunkAtom->nextSample(sdindex, size, oChunkStart); in nextTextSample() [all …]
|
D | samplesizeatom.cpp | 54 PVA_FF_SampleSizeAtom::nextSample(uint32 size) in nextSample() argument 61 addNextSampleSize(size); in nextSample() 70 PVA_FF_SampleSizeAtom::addNextSampleSize(uint32 size) in addNextSampleSize() argument 72 if (_psampleSizeVec->size() == 0) // empty vector - either no samples or all samples same size in addNextSampleSize() 74 if (_sampleSize != size) // New size different from existing in addNextSampleSize() 78 _sampleSize = size; in addNextSampleSize() 89 _psampleSizeVec->push_back(size); in addNextSampleSize() 101 _psampleSizeVec->push_back(size); in addNextSampleSize() 133 if (_psampleSizeVec->size() < getSampleCount()) in renderToFileStream() 156 int32 size = getDefaultSize(); in recomputeSize() local [all …]
|
D | sampletochunkatom.cpp | 76 uint32 size, in nextSample() argument 84 if (_pfirstChunkVec->size() == 0) in nextSample() 95 newChunk = isNewChunk(size, index); in nextSample() 100 if (_pfirstChunkVec->size() <= 1) in nextSample() 113 if ((((*_psamplesPerChunkVec)[uint32(_pfirstChunkVec->size()-1)]) == in nextSample() 114 ((*_psamplesPerChunkVec)[uint32(_pfirstChunkVec->size()-2)])) && in nextSample() 115 (((*_psampleDescriptionIndexVec)[uint32(_pfirstChunkVec->size()-1)]) == in nextSample() 116 ((*_psampleDescriptionIndexVec)[uint32(_pfirstChunkVec->size()-2)]))) in nextSample() 149 PVA_FF_SampleToChunkAtom::isNewChunk(uint32 size, int32 index) in isNewChunk() argument 168 if (_pfirstChunkVec->size() == 0) in isNewChunk() [all …]
|
/external/elfutils/libelf/ |
D | elf_update.c | 30 write_file (Elf *elf, off_t size, int change_bo, size_t shnum) in write_file() argument 40 && (elf->maximum_size == ~((size_t) 0) || size > elf->maximum_size) in write_file() 41 && unlikely (ftruncate (elf->fildes, size) != 0)) in write_file() 50 elf->map_address = mmap (NULL, size, PROT_READ | PROT_WRITE, in write_file() 63 size = -1; in write_file() 72 size = -1; in write_file() 75 if (size != -1 in write_file() 78 && size < elf->maximum_size in write_file() 79 && unlikely (ftruncate (elf->fildes, size) != 0)) in write_file() 82 size = -1; in write_file() [all …]
|
/external/webkit/WebCore/css/ |
D | CSSImageGeneratorValue.cpp | 47 void CSSImageGeneratorValue::addClient(RenderObject* renderer, const IntSize& size) in addClient() argument 50 if (!size.isEmpty()) in addClient() 51 m_sizes.add(size); in addClient() 52 m_clients.add(renderer, size); in addClient() 57 IntSize size = m_clients.get(renderer); in removeClient() local 58 if (!size.isEmpty()) { in removeClient() 59 m_sizes.remove(size); in removeClient() 60 if (!m_sizes.contains(size)) in removeClient() 61 m_images.remove(size); in removeClient() 67 Image* CSSImageGeneratorValue::getImage(RenderObject* renderer, const IntSize& size) in getImage() argument [all …]
|
/external/webkit/JavaScriptCore/wtf/ |
D | Vector.h | 56 template <size_t size, size_t alignment> struct AlignedBuffer; 57 template <size_t size> struct AlignedBuffer<size, 1> { AlignedBufferChar buffer[size]; }; 58 …template <size_t size> struct AlignedBuffer<size, 2> { WTF_ALIGNED(AlignedBufferChar, buffer[size]… 59 …template <size_t size> struct AlignedBuffer<size, 4> { WTF_ALIGNED(AlignedBufferChar, buffer[size]… 60 …template <size_t size> struct AlignedBuffer<size, 8> { WTF_ALIGNED(AlignedBufferChar, buffer[size]… 61 …template <size_t size> struct AlignedBuffer<size, 16> { WTF_ALIGNED(AlignedBufferChar, buffer[size… 62 …template <size_t size> struct AlignedBuffer<size, 32> { WTF_ALIGNED(AlignedBufferChar, buffer[size… 63 …template <size_t size> struct AlignedBuffer<size, 64> { WTF_ALIGNED(AlignedBufferChar, buffer[size… 212 static bool compare(const T* a, const T* b, size_t size) 214 for (size_t i = 0; i < size; ++i) [all …]
|
D | TCSystemAlloc.cpp | 112 static void* TrySbrk(size_t size, size_t *actual_size, size_t alignment) { in TrySbrk() argument 113 size = ((size + alignment - 1) / alignment) * alignment; in TrySbrk() 118 *actual_size = size; in TrySbrk() 120 void* result = sbrk(size); in TrySbrk() 133 if (reinterpret_cast<uintptr_t>(r2) == (ptr + size)) { in TrySbrk() 140 result = sbrk(size + alignment - 1); in TrySbrk() 156 static void* TryMmap(size_t size, size_t *actual_size, size_t alignment) { in TryMmap() argument 160 size = ((size + alignment - 1) / alignment) * alignment; in TryMmap() 165 *actual_size = size; in TryMmap() 172 void* result = mmap(NULL, size + extra, in TryMmap() [all …]
|
/external/webkit/WebCore/rendering/ |
D | RenderArena.cpp | 53 size_t size; member 73 void* RenderArena::allocate(size_t size) in allocate() argument 78 void* block = ::malloc(sizeof(RenderArenaDebugHeader) + size); in allocate() 81 header->size = size; in allocate() 88 size = ROUNDUP(size, sizeof(void*)); in allocate() 91 if (size < gMaxRecycledSize) { in allocate() 92 const int index = size >> 2; in allocate() 104 ARENA_ALLOCATE(result, &m_pool, size); in allocate() 111 void RenderArena::free(size_t size, void* ptr) in free() argument 117 ASSERT(header->size == size); in free() [all …]
|
/external/e2fsprogs/resize/ |
D | extent.c | 23 int size; member 29 int size; member 37 errcode_t ext2fs_create_extent_table(ext2_extent *ret_extent, int size) in ext2fs_create_extent_table() argument 47 extent->size = size ? size : 50; in ext2fs_create_extent_table() 53 extent->size, &extent->list); in ext2fs_create_extent_table() 59 sizeof(struct ext2_extent_entry) * extent->size); in ext2fs_create_extent_table() 72 extent->size = 0; in ext2fs_free_extent_table() 87 if (extent->num >= extent->size) { in ext2fs_add_extent_entry() 88 newsize = extent->size + 100; in ext2fs_add_extent_entry() 90 extent->size, in ext2fs_add_extent_entry() [all …]
|
/external/webkit/WebCore/history/ |
D | BackForwardList.cpp | 70 while (m_entries.size() > targetSize) { in addItem() 80 if (m_entries.size() == m_capacity && (m_current != 0 || m_capacity == 1)) { in addItem() 115 ASSERT(m_current < m_entries.size() - 1); in goForward() 117 if (m_current < m_entries.size() - 1) { in goForward() 122 if (m_current < m_entries.size() - 1) in goForward() 129 if (!m_entries.size() || !item) in goToItem() 133 for (; index < m_entries.size(); ++index) in goToItem() 137 if (index < m_entries.size()) { in goToItem() 142 if (index < m_entries.size()) in goToItem() 163 if (m_entries.size() && m_current < m_entries.size() - 1) in forwardItem() [all …]
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/set/ |
D | der_encode_setof.c | 22 unsigned long size; member 32 r = XMEMCMP(A->start, B->start, MIN(A->size, B->size)); in qsort_helper() 34 if (r == 0 && A->size != B->size) { in qsort_helper() 35 if (A->size > B->size) { in qsort_helper() 36 for (x = B->size; x < A->size; x++) { in qsort_helper() 42 for (x = A->size; x < B->size; x++) { in qsort_helper() 120 edges[x].size = y; in der_encode_setof() 123 edges[x].size = 0; in der_encode_setof() 125 edges[x].size = (edges[x].size << 8) | ((unsigned long)ptr[z++]); in der_encode_setof() 130 edges[x].size += z; in der_encode_setof() [all …]
|