/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 | 93 GLenum newbuf[n + 2]; in __applegl_glDrawBuffers() local 106 newbuf[outi++] = bufs[i]; in __applegl_glDrawBuffers() 111 newbuf[outi++] = GL_BACK_LEFT; in __applegl_glDrawBuffers() 112 newbuf[outi++] = GL_BACK_RIGHT; in __applegl_glDrawBuffers() 116 newbuf[outi++] = GL_FRONT_LEFT; in __applegl_glDrawBuffers() 117 newbuf[outi++] = GL_FRONT_RIGHT; in __applegl_glDrawBuffers() 120 __ogl_framework_api->DrawBuffers(outi, newbuf); in __applegl_glDrawBuffers()
|
/external/mesa3d/src/util/ |
D | os_file.c | 151 char *newbuf = realloc(buf, 2 * len); in os_read_file() local 152 if (!newbuf) { in os_read_file() 159 buf = newbuf; in os_read_file() 172 char *newbuf = realloc(buf, len); in os_read_file() local 173 if (!newbuf) { in os_read_file() 178 buf = newbuf; in os_read_file()
|
/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 | 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 | 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 | 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 | 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/volley/src/main/java/com/android/volley/toolbox/ |
D | PoolingByteArrayOutputStream.java | 75 byte[] newbuf = mPool.getBuf((count + i) * 2); in expand() 76 System.arraycopy(buf, 0, newbuf, 0, count); in expand() 78 buf = newbuf; in expand()
|
/external/ltp/testcases/kernel/syscalls/dup2/ |
D | dup204.c | 68 struct stat oldbuf, newbuf; in main() local 88 SAFE_FSTAT(cleanup, nfd[i], &newbuf); in main() 90 if (oldbuf.st_ino != newbuf.st_ino) in main()
|
D | dup202.c | 91 struct stat oldbuf, newbuf; in main() local 120 SAFE_FSTAT(cleanup, *TC[i].nfd, &newbuf); in main() 122 if (oldbuf.st_mode != newbuf.st_mode) in main()
|
/external/curl/src/ |
D | tool_paramhlp.c | 109 char *newbuf; in file2memory() local 125 newbuf = realloc(buffer, alloc + 1); in file2memory() 126 if(!newbuf) { in file2memory() 130 buffer = newbuf; in file2memory() 139 newbuf = realloc(buffer, nused + 1); in file2memory() 140 if(!newbuf) { in file2memory() 144 buffer = newbuf; in file2memory()
|
/external/curl/tests/server/ |
D | fake_ntlm.c | 51 char *newbuf; in printable() local 86 newbuf = realloc(outbuf, newsize); in printable() 87 if(!newbuf) { in printable() 91 outbuf = newbuf; in printable()
|
/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/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/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 | 286 char oldbuf[2048], newbuf[2048], *oldcp, *newcp; in compare_file() local 291 newcp = fgets(newbuf, sizeof(newbuf), new_f); in compare_file() 296 if (!oldcp || !newcp || strcmp(oldbuf, newbuf)) { in compare_file()
|
/external/curl/lib/ |
D | curl_ntlm_wb.c | 282 char *newbuf; in ntlm_wb_response() local 305 newbuf = Curl_saferealloc(buf, len_out + NTLM_BUFSIZE); in ntlm_wb_response() 306 if(!newbuf) in ntlm_wb_response() 309 buf = newbuf; in ntlm_wb_response()
|
/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 | 439 xmlChar *newbuf; in xmlBufGrowInternal() local 478 newbuf = (xmlChar *) xmlRealloc(buf->contentIO, start_buf + size); in xmlBufGrowInternal() 479 if (newbuf == NULL) { in xmlBufGrowInternal() 483 buf->contentIO = newbuf; in xmlBufGrowInternal() 484 buf->content = newbuf + start_buf; in xmlBufGrowInternal() 486 newbuf = (xmlChar *) xmlRealloc(buf->content, size); in xmlBufGrowInternal() 487 if (newbuf == NULL) { in xmlBufGrowInternal() 491 buf->content = newbuf; in xmlBufGrowInternal()
|
/external/igt-gpu-tools/lib/ |
D | igt_sysfs.c | 304 char *newbuf; in igt_sysfs_get() local 306 newbuf = realloc(buf, 2*len); in igt_sysfs_get() 307 if (!newbuf) in igt_sysfs_get() 310 buf = newbuf; in igt_sysfs_get()
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | OpenSSLAeadCipher.java | 122 byte[] newbuf = new byte[(bufCount + i) * 2]; in expand() 123 System.arraycopy(buf, 0, newbuf, 0, bufCount); in expand() 124 buf = newbuf; in expand()
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | OpenSSLAeadCipher.java | 118 byte[] newbuf = new byte[(bufCount + i) * 2]; in expand() 119 System.arraycopy(buf, 0, newbuf, 0, bufCount); in expand() 120 buf = newbuf; in expand()
|
/external/elfutils/libdwfl/ |
D | elf-from-memory.c | 183 unsigned char *newbuf = realloc (buffer, phnum * phentsize); in elf_from_remote_memory() local 184 if (newbuf == NULL) in elf_from_remote_memory() 190 buffer = newbuf; in elf_from_remote_memory()
|
/external/one-true-awk/ |
D | tran.c | 543 char *newbuf = malloc(l); in catstr() local 544 if (newbuf == NULL) in catstr() 548 snprintf(newbuf, l, "%s ", p); in catstr() 549 c = setsymtab(newbuf, p, 0.0, CON|STR|DONTFREE, symtab); in catstr() 551 free(newbuf); in catstr()
|