/external/emma/core/java12/com/vladium/util/ |
D | ByteArrayOStream.java | 58 final byte [] newbuf = new byte [Math.max (mbuflen << 1, capacity)]; in write2() 61 for (int i = 0; i < pos; ++ i) newbuf [i] = mbuf [i]; in write2() 63 System.arraycopy (mbuf, 0, newbuf, 0, pos); in write2() 65 m_buf = mbuf = newbuf; in write2() 82 final byte [] newbuf = new byte [Math.max (mbuflen << 1, capacity)]; in write3() 85 for (int i = 0; i < pos; ++ i) newbuf [i] = mbuf [i]; in write3() 87 System.arraycopy (mbuf, 0, newbuf, 0, pos); in write3() 89 m_buf = mbuf = newbuf; in write3() 107 final byte [] newbuf = new byte [Math.max (mbuflen << 1, capacity)]; in write4() 110 for (int i = 0; i < pos; ++ i) newbuf [i] = mbuf [i]; in write4() [all …]
|
/external/chromium_org/third_party/mesa/src/src/glx/apple/ |
D | apple_xgl_api_stereo.c | 92 GLenum newbuf[n + 2]; in __applegl_glDrawBuffersARB() local 105 newbuf[outi++] = bufs[i]; in __applegl_glDrawBuffersARB() 110 newbuf[outi++] = GL_BACK_LEFT; in __applegl_glDrawBuffersARB() 111 newbuf[outi++] = GL_BACK_RIGHT; in __applegl_glDrawBuffersARB() 115 newbuf[outi++] = GL_FRONT_LEFT; in __applegl_glDrawBuffersARB() 116 newbuf[outi++] = GL_FRONT_RIGHT; in __applegl_glDrawBuffersARB() 119 __ogl_framework_api->DrawBuffersARB(outi, newbuf); in __applegl_glDrawBuffersARB()
|
/external/mesa3d/src/glx/apple/ |
D | apple_xgl_api_stereo.c | 92 GLenum newbuf[n + 2]; in __applegl_glDrawBuffersARB() local 105 newbuf[outi++] = bufs[i]; in __applegl_glDrawBuffersARB() 110 newbuf[outi++] = GL_BACK_LEFT; in __applegl_glDrawBuffersARB() 111 newbuf[outi++] = GL_BACK_RIGHT; in __applegl_glDrawBuffersARB() 115 newbuf[outi++] = GL_FRONT_LEFT; in __applegl_glDrawBuffersARB() 116 newbuf[outi++] = GL_FRONT_RIGHT; in __applegl_glDrawBuffersARB() 119 __ogl_framework_api->DrawBuffersARB(outi, newbuf); in __applegl_glDrawBuffersARB()
|
/external/chromium_org/courgette/third_party/ |
D | bsdiff_create.cc | 154 matchlen(const unsigned char *old,int oldsize,const unsigned char *newbuf,int newsize) in matchlen() argument 159 if(old[i]!=newbuf[i]) break; in matchlen() 166 const unsigned char *newbuf,int newsize,int st,int en,int *pos) in search() argument 171 x=matchlen(old+I[st],oldsize-I[st],newbuf,newsize); in search() 172 y=matchlen(old+I[en],oldsize-I[en],newbuf,newsize); in search() 184 if(memcmp(old+I[x],newbuf,std::min(oldsize-I[x],newsize))<0) { in search() 185 return search(I,old,oldsize,newbuf,newsize,x,en,pos); in search() 187 return search(I,old,oldsize,newbuf,newsize,st,x,pos); in search() 244 const uint8* newbuf = new_stream->Buffer(); in CreateBinaryPatch() local 304 newbuf + scan, newsize - scan, in CreateBinaryPatch() [all …]
|
/external/libselinux/src/ |
D | getpeercon.c | 28 char *newbuf; in getpeercon() local 30 newbuf = realloc(buf, size); in getpeercon() 31 if (!newbuf) in getpeercon() 34 buf = newbuf; in getpeercon()
|
D | lgetfilecon.c | 24 char *newbuf; in lgetfilecon() local 31 newbuf = realloc(buf, size); in lgetfilecon() 32 if (!newbuf) in lgetfilecon() 35 buf = newbuf; in lgetfilecon()
|
D | fgetfilecon.c | 24 char *newbuf; in fgetfilecon() local 31 newbuf = realloc(buf, size); in fgetfilecon() 32 if (!newbuf) in fgetfilecon() 35 buf = newbuf; in fgetfilecon()
|
D | getfilecon.c | 24 char *newbuf; in getfilecon() local 31 newbuf = realloc(buf, size); in getfilecon() 32 if (!newbuf) in getfilecon() 35 buf = newbuf; in getfilecon()
|
/external/qemu/distrib/libselinux/src/ |
D | getpeercon.c | 28 char *newbuf; in getpeercon() local 30 newbuf = realloc(buf, size); in getpeercon() 31 if (!newbuf) in getpeercon() 34 buf = newbuf; in getpeercon()
|
D | getfilecon.c | 24 char *newbuf; in getfilecon() local 31 newbuf = realloc(buf, size); in getfilecon() 32 if (!newbuf) in getfilecon() 35 buf = newbuf; in getfilecon()
|
D | fgetfilecon.c | 24 char *newbuf; in fgetfilecon() local 31 newbuf = realloc(buf, size); in fgetfilecon() 32 if (!newbuf) in fgetfilecon() 35 buf = newbuf; in fgetfilecon()
|
D | lgetfilecon.c | 24 char *newbuf; in lgetfilecon() local 31 newbuf = realloc(buf, size); in lgetfilecon() 32 if (!newbuf) in lgetfilecon() 35 buf = newbuf; in lgetfilecon()
|
/external/libedit/src/ |
D | hist.c | 197 Char *newbuf; in hist_enlargebuf() local 199 newbuf = el_realloc(el->el_history.buf, newsz * sizeof(*newbuf)); in hist_enlargebuf() 200 if (!newbuf) in hist_enlargebuf() 203 (void) memset(&newbuf[oldsz], '\0', (newsz - oldsz) * sizeof(*newbuf)); in hist_enlargebuf() 205 el->el_history.last = newbuf + in hist_enlargebuf() 207 el->el_history.buf = newbuf; in hist_enlargebuf()
|
/external/qemu/distrib/sdl-1.2.15/src/audio/macrom/ |
D | SDL_romaudio.c | 334 void sndDoubleBackProc (SndChannelPtr chan, SndDoubleBufferPtr newbuf) in sndDoubleBackProc() argument 336 SDL_AudioDevice *audio = (SDL_AudioDevice *)newbuf->dbUserInfo[0]; in sndDoubleBackProc() 342 memset (newbuf->dbSoundData, 0, audio->spec.size); in sndDoubleBackProc() 343 newbuf->dbNumFrames = audio->spec.samples; in sndDoubleBackProc() 354 SDL_memcpy(newbuf->dbSoundData, audio->convert.buf, in sndDoubleBackProc() 358 (Uint8 *)newbuf->dbSoundData, audio->spec.size); in sndDoubleBackProc() 361 newbuf->dbFlags |= dbBufferReady; in sndDoubleBackProc()
|
/external/javassist/src/main/javassist/tools/web/ |
D | Viewer.java | 196 byte[] newbuf = new byte[buf.length * 2]; in readStream() 197 System.arraycopy(buf, 0, newbuf, 0, size); in readStream() 198 buf = newbuf; in readStream()
|
/external/mdnsresponder/mDNSShared/ |
D | dnssd_clientlib.c | 220 unsigned char *newbuf; in TXTRecordSetValue() local 223 newbuf = malloc((size_t)newlen); in TXTRecordSetValue() 224 if (!newbuf) return(kDNSServiceErr_NoMemory); in TXTRecordSetValue() 225 memcpy(newbuf, txtRec->buffer, txtRec->datalen); in TXTRecordSetValue() 227 txtRec->buffer = newbuf; in TXTRecordSetValue()
|
/external/qemu/distrib/sdl-1.2.15/src/audio/mint/ |
D | SDL_mintaudio_gsxb.c | 419 Uint8 *newbuf; in Mint_GsxbInterrupt() local 428 newbuf = SDL_MintAudio_audiobuf[SDL_MintAudio_numbuf]; in Mint_GsxbInterrupt() 429 Setbuffer(0, newbuf, newbuf + SDL_MintAudio_audiosize); in Mint_GsxbInterrupt()
|
/external/chromium_org/third_party/boringssl/src/crypto/bytestring/ |
D | cbb.c | 88 uint8_t *newbuf; in cbb_buffer_add() local 97 newbuf = OPENSSL_realloc(base->buf, newcap); in cbb_buffer_add() 98 if (newbuf == NULL) { in cbb_buffer_add() 102 base->buf = newbuf; in cbb_buffer_add()
|
/external/ipsec-tools/src/libipsec/ |
D | ipsec_dump_policy.c | 102 char *newbuf; local 257 newbuf = (char *)realloc(buf, buflen); 258 if (newbuf == NULL) { 263 buf = newbuf;
|
/external/e2fsprogs/util/ |
D | subst.c | 270 char oldbuf[2048], newbuf[2048], *oldcp, *newcp; in compare_file() local 284 newcp = fgets(newbuf, sizeof(newbuf), new_f); in compare_file() 289 if (!oldcp || !newcp || strcmp(oldbuf, newbuf)) { in compare_file()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
D | RecyclableBufferedInputStream.java | 144 byte[] newbuf = new byte[newLength]; in fillbuf() 145 System.arraycopy(localBuf, 0, newbuf, 0, localBuf.length); in fillbuf() 148 localBuf = buf = newbuf; in fillbuf()
|
/external/libxml2/ |
D | buf.c | 437 xmlChar *newbuf; in xmlBufGrowInternal() local 464 newbuf = (xmlChar *) xmlRealloc(buf->contentIO, start_buf + size); in xmlBufGrowInternal() 465 if (newbuf == NULL) { in xmlBufGrowInternal() 469 buf->contentIO = newbuf; in xmlBufGrowInternal() 470 buf->content = newbuf + start_buf; in xmlBufGrowInternal() 472 newbuf = (xmlChar *) xmlRealloc(buf->content, size); in xmlBufGrowInternal() 473 if (newbuf == NULL) { in xmlBufGrowInternal() 477 buf->content = newbuf; in xmlBufGrowInternal()
|
/external/strace/ |
D | file.c | 1037 convertoldstat(const struct __old_kernel_stat *oldbuf, struct stat *newbuf) in convertoldstat() argument 1039 newbuf->st_dev = oldbuf->st_dev; in convertoldstat() 1040 newbuf->st_ino = oldbuf->st_ino; in convertoldstat() 1041 newbuf->st_mode = oldbuf->st_mode; in convertoldstat() 1042 newbuf->st_nlink = oldbuf->st_nlink; in convertoldstat() 1043 newbuf->st_uid = oldbuf->st_uid; in convertoldstat() 1044 newbuf->st_gid = oldbuf->st_gid; in convertoldstat() 1045 newbuf->st_rdev = oldbuf->st_rdev; in convertoldstat() 1046 newbuf->st_size = oldbuf->st_size; in convertoldstat() 1047 newbuf->st_atime = oldbuf->st_atime; in convertoldstat() [all …]
|
/external/elfutils/0.153/libdwfl/ |
D | elf-from-memory.c | 187 unsigned char *newbuf = realloc (buffer, phnum * phentsize); in elf_from_remote_memory() local 188 if (newbuf == NULL) in elf_from_remote_memory() 193 buffer = newbuf; in elf_from_remote_memory()
|
/external/chromium_org/third_party/libevent/ |
D | buffer.c | 279 void *newbuf; in evbuffer_expand() local 289 if ((newbuf = realloc(buf->buffer, length)) == NULL) in evbuffer_expand() 292 buf->orig_buffer = buf->buffer = newbuf; in evbuffer_expand()
|