/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/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/strace/ |
D | file.c | 448 convertoldstat(const struct __old_kernel_stat *oldbuf, struct stat *newbuf) in convertoldstat() argument 450 memset(newbuf, 0, sizeof(*newbuf)); in convertoldstat() 451 newbuf->st_dev = oldbuf->st_dev; in convertoldstat() 452 newbuf->st_ino = oldbuf->st_ino; in convertoldstat() 453 newbuf->st_mode = oldbuf->st_mode; in convertoldstat() 454 newbuf->st_nlink = oldbuf->st_nlink; in convertoldstat() 455 newbuf->st_uid = oldbuf->st_uid; in convertoldstat() 456 newbuf->st_gid = oldbuf->st_gid; in convertoldstat() 457 newbuf->st_rdev = oldbuf->st_rdev; in convertoldstat() 458 newbuf->st_size = oldbuf->st_size; in convertoldstat() [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 | 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/selinux/libselinux/src/ |
D | getpeercon.c | 28 char *newbuf; in getpeercon_raw() local 30 newbuf = realloc(buf, size); in getpeercon_raw() 31 if (!newbuf) in getpeercon_raw() 34 buf = newbuf; in getpeercon_raw()
|
D | lgetfilecon.c | 24 char *newbuf; in lgetfilecon_raw() local 31 newbuf = realloc(buf, size); in lgetfilecon_raw() 32 if (!newbuf) in lgetfilecon_raw() 35 buf = newbuf; in lgetfilecon_raw()
|
D | fgetfilecon.c | 24 char *newbuf; in fgetfilecon_raw() local 31 newbuf = realloc(buf, size); in fgetfilecon_raw() 32 if (!newbuf) in fgetfilecon_raw() 35 buf = newbuf; in fgetfilecon_raw()
|
D | getfilecon.c | 24 char *newbuf; in getfilecon_raw() local 31 newbuf = realloc(buf, size); in getfilecon_raw() 32 if (!newbuf) in getfilecon_raw() 35 buf = newbuf; in getfilecon_raw()
|
D | seusers.c | 19 char *newbuf = strdup(buffer); in process_seusers() local 24 if (!newbuf) in process_seusers() 27 start = newbuf; in process_seusers() 31 free(newbuf); in process_seusers() 78 free(newbuf); in process_seusers() 84 free(newbuf); in process_seusers()
|
/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/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/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/selinux/policycoreutils/sandbox/ |
D | seunshare.c | 317 char *newbuf = NULL; in rsynccmd() local 343 if (asprintf(&newbuf, "\'%s\'", path) == -1) { in rsynccmd() 348 if (asprintf(&newbuf, "%s \'%s\'", buf, path) == -1) { in rsynccmd() 354 free(buf); buf = newbuf; in rsynccmd() 355 newbuf = NULL; in rsynccmd() 359 if (asprintf(&newbuf, "/usr/bin/rsync -trlHDq %s '%s'", buf, dst) == -1) { in rsynccmd() 363 *cmdbuf=newbuf; in rsynccmd()
|
/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/boringssl/src/crypto/bytestring/ |
D | cbb.c | 93 uint8_t *newbuf; in cbb_buffer_add() local 102 newbuf = OPENSSL_realloc(base->buf, newcap); in cbb_buffer_add() 103 if (newbuf == NULL) { in cbb_buffer_add() 107 base->buf = newbuf; in cbb_buffer_add()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
D | RecyclableBufferedInputStream.java | 154 byte[] newbuf = new byte[newLength]; in fillbuf() 155 System.arraycopy(localBuf, 0, newbuf, 0, localBuf.length); in fillbuf() 158 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/elfutils/src/libdwfl/ |
D | elf-from-memory.c | 171 unsigned char *newbuf = realloc (buffer, phnum * phentsize); in elf_from_remote_memory() local 172 if (newbuf == NULL) in elf_from_remote_memory() 177 buffer = newbuf; in elf_from_remote_memory()
|
/external/wpa_supplicant_8/wpa_supplicant/dbus/ |
D | dbus_dict_helpers.c | 851 struct wpabuf **newbuf; in _wpa_dbus_dict_entry_get_binarray() local 855 newbuf = os_realloc_array(entry->binarray_value, in _wpa_dbus_dict_entry_get_binarray() 857 if (!newbuf) in _wpa_dbus_dict_entry_get_binarray() 859 entry->binarray_value = newbuf; in _wpa_dbus_dict_entry_get_binarray()
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
D | CollationKeys.java | 247 byte[] newbuf = new byte[newCapacity]; in ensureCapacity() 248 System.arraycopy(buffer, 0, newbuf, 0, len); in ensureCapacity() 249 buffer = newbuf; in ensureCapacity()
|
/external/mesa3d/src/gallium/auxiliary/rtasm/ |
D | rtasm_ppc.c | 269 uint32_t *newbuf; in emit_instruction() local 271 newbuf = rtasm_exec_malloc(p->max_inst * PPC_INST_SIZE); in emit_instruction() 272 if (newbuf) { in emit_instruction() 273 memcpy(newbuf, p->store, p->num_inst * PPC_INST_SIZE); in emit_instruction() 276 p->store = newbuf; in emit_instruction()
|