/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/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 | 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()
|
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/dhcpcd/compat/ |
D | getline.c | 45 char *newbuf, *p; in getline() local 60 newbuf = realloc(*buf, newlen); in getline() 61 if (newbuf == NULL) in getline() 63 *buf = newbuf; in getline()
|
/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/quake/quake/src/QW/client/ |
D | gl_screen.c | 837 unsigned char *newbuf, *srcbuf; in SCR_RSShot_f() local 879 newbuf = malloc(glheight * glwidth * 3); in SCR_RSShot_f() 881 glReadPixels (glx, gly, glwidth, glheight, GL_RGB, GL_UNSIGNED_BYTE, newbuf ); in SCR_RSShot_f() 890 dest = newbuf + (w*3 * y); in SCR_RSShot_f() 904 src = newbuf + (glwidth * 3 * dy) + dx * 3; in SCR_RSShot_f() 923 src = newbuf + (w * 3 * y); in SCR_RSShot_f() 924 dest = newbuf + (w * y); in SCR_RSShot_f() 935 SCR_DrawStringToSnap (st, newbuf, w - strlen(st)*8, h - 1, w); in SCR_RSShot_f() 939 SCR_DrawStringToSnap (st, newbuf, w - strlen(st)*8, h - 11, w); in SCR_RSShot_f() 943 SCR_DrawStringToSnap (st, newbuf, w - strlen(st)*8, h - 21, w); in SCR_RSShot_f() [all …]
|
D | screen.c | 787 unsigned char *newbuf, *srcbuf; in SCR_RSShot_f() local 845 newbuf = malloc(w*h); in SCR_RSShot_f() 848 dest = newbuf + (w * y); in SCR_RSShot_f() 881 SCR_DrawStringToSnap (st, newbuf, w - strlen(st)*8, 0, w); in SCR_RSShot_f() 885 SCR_DrawStringToSnap (st, newbuf, w - strlen(st)*8, 10, w); in SCR_RSShot_f() 889 SCR_DrawStringToSnap (st, newbuf, w - strlen(st)*8, 20, w); in SCR_RSShot_f() 891 WritePCXfile (pcxname, newbuf, w, h, w, host_basepal, true); in SCR_RSShot_f() 893 free(newbuf); in SCR_RSShot_f()
|
/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/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 | 273 char oldbuf[2048], newbuf[2048], *oldcp, *newcp; in compare_file() local 287 newcp = fgets(newbuf, sizeof(newbuf), new_f); in compare_file() 292 if (!oldcp || !newcp || strcmp(oldbuf, newbuf)) { in compare_file()
|
/external/elfutils/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/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()
|
/external/strace/ |
D | file.c | 1300 convertoldstat(const struct __old_kernel_stat *oldbuf, struct stat *newbuf) in convertoldstat() argument 1302 newbuf->st_dev = oldbuf->st_dev; in convertoldstat() 1303 newbuf->st_ino = oldbuf->st_ino; in convertoldstat() 1304 newbuf->st_mode = oldbuf->st_mode; in convertoldstat() 1305 newbuf->st_nlink = oldbuf->st_nlink; in convertoldstat() 1306 newbuf->st_uid = oldbuf->st_uid; in convertoldstat() 1307 newbuf->st_gid = oldbuf->st_gid; in convertoldstat() 1308 newbuf->st_rdev = oldbuf->st_rdev; in convertoldstat() 1309 newbuf->st_size = oldbuf->st_size; in convertoldstat() 1310 newbuf->st_atime = oldbuf->st_atime; in convertoldstat() [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/dbus/ |
D | dbus_dict_helpers.c | 872 struct wpabuf **newbuf; in _wpa_dbus_dict_entry_get_binarray() local 876 newbuf = os_realloc_array(entry->binarray_value, in _wpa_dbus_dict_entry_get_binarray() 878 if (!newbuf) in _wpa_dbus_dict_entry_get_binarray() 880 entry->binarray_value = newbuf; in _wpa_dbus_dict_entry_get_binarray()
|
/external/e2fsprogs/lib/blkid/ |
D | probe.c | 56 unsigned char *newbuf; in get_buffer() local 75 newbuf = realloc(pr->buf, len); in get_buffer() 76 if (newbuf == NULL) in get_buffer() 78 pr->buf = newbuf; in get_buffer()
|
/external/libxml2/ |
D | SAX2.c | 2546 xmlChar *newbuf; in xmlSAX2Characters() local 2551 newbuf = (xmlChar *) xmlRealloc(lastChild->content,size); in xmlSAX2Characters() 2552 if (newbuf == NULL) { in xmlSAX2Characters() 2557 lastChild->content = newbuf; in xmlSAX2Characters()
|
D | tree.c | 7082 xmlChar *newbuf; in xmlBufferGrow() local 7107 newbuf = (xmlChar *) xmlRealloc(buf->contentIO, start_buf + size); in xmlBufferGrow() 7108 if (newbuf == NULL) { in xmlBufferGrow() 7112 buf->contentIO = newbuf; in xmlBufferGrow() 7113 buf->content = newbuf + start_buf; in xmlBufferGrow() 7115 newbuf = (xmlChar *) xmlRealloc(buf->content, size); in xmlBufferGrow() 7116 if (newbuf == NULL) { in xmlBufferGrow() 7120 buf->content = newbuf; in xmlBufferGrow()
|
/external/valgrind/main/coregrind/m_demangle/ |
D | cp-demangle.c | 2947 char *newbuf; in d_growable_string_resize() local 2959 newbuf = (char *) realloc ("demangle.dgsr.1", dgs->buf, newalc); in d_growable_string_resize() 2960 if (newbuf == NULL) in d_growable_string_resize() 2969 dgs->buf = newbuf; in d_growable_string_resize()
|
/external/gcc-demangle/ |
D | cp-demangle.c | 3237 char *newbuf; in d_growable_string_resize() local 3249 newbuf = (char *) realloc (dgs->buf, newalc); in d_growable_string_resize() 3250 if (newbuf == NULL) in d_growable_string_resize() 3259 dgs->buf = newbuf; in d_growable_string_resize()
|
/external/libxslt/libxslt/ |
D | transform.c | 671 xmlChar *newbuf; in xsltAddTextString() local 676 newbuf = (xmlChar *) xmlRealloc(target->content,size); in xsltAddTextString() 677 if (newbuf == NULL) { in xsltAddTextString() 683 ctxt->lasttext = newbuf; in xsltAddTextString() 684 target->content = newbuf; in xsltAddTextString()
|