/external/mockito/cglib-and-asm/src/org/mockito/asm/util/ |
TraceAbstractVisitor.java | 113 buf.setLength(0);
114 buf.append(tab).append('@');
116 buf.append('(');
117 text.add(buf.toString());
130 buf.setLength(0);
131 buf.append(tab).append("ATTRIBUTE ");
135 ((Traceable) attr).trace(buf, null);
137 buf.append(" : unknown\n");
140 text.add(buf.toString());
160 * {@link #buf buf}. [all...] |
/external/qemu/distrib/libselinux/src/ |
canonicalize_context.c | 16 char *buf; local 31 buf = malloc(size); 32 if (!buf) { 36 strncpy(buf, con, size); 38 ret = write(fd, buf, strlen(buf) + 1); 42 memset(buf, 0, size); 43 ret = read(fd, buf, size - 1); 47 strncpy(buf, con, size); 50 *canoncon = strdup(buf); [all...] |
get_initial_context.c | 17 char *buf; local 33 buf = malloc(size); 34 if (!buf) { 38 memset(buf, 0, size); 39 ret = read(fd, buf, size - 1); 43 *con = strdup(buf); 50 free(buf);
|
/external/wpa_supplicant_8/wpa_supplicant/ |
nfc_pw_token.c | 18 static void print_bin(const char *title, const struct wpabuf *buf) 23 if (buf == NULL) 28 pos = wpabuf_head(buf); 29 len = wpabuf_len(buf); 41 struct wpabuf *buf = NULL, *ndef = NULL; local 53 buf = wpas_wps_nfc_token(&wpa_s, 0); 54 if (buf == NULL) 57 ndef = ndef_build_wifi(buf); 61 wpa_snprintf_hex_uppercase(txt, sizeof(txt), wpabuf_head(buf), 62 wpabuf_len(buf)); [all...] |
wpa_passphrase.c | 19 char *ssid, *passphrase, buf[64], *pos; local 34 if (fgets(buf, sizeof(buf), stdin) == NULL) { 38 buf[sizeof(buf) - 1] = '\0'; 39 pos = buf; 47 passphrase = buf;
|
/libcore/luni/src/main/java/java/io/ |
StringWriter.java | 32 private StringBuffer buf; field in class:StringWriter 41 buf = new StringBuffer(16); 42 lock = buf; 58 buf = new StringBuffer(initialSize); 59 lock = buf; 90 return buf; 100 return buf.toString(); 104 * Writes {@code count} characters starting at {@code offset} in {@code buf} 115 * offset + count} is greater than the size of {@code buf}. 123 buf.append(chars, offset, count) [all...] |
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
vdprintf.c | 44 __dwrite(void *cookie, const char *buf, int n) 47 return (write(*fdp, buf, n)); 55 unsigned char buf[BUFSIZ]; local 60 f._p = buf; 61 f._w = sizeof(buf); 64 f._bf._base = buf; 65 f._bf._size = sizeof(buf);
|
/external/bison/lib/ |
fstat.c | 35 orig_fstat (int fd, struct stat *buf) 37 return fstat (fd, buf); 55 fstat_nothrow (int fd, struct stat *buf) 61 result = orig_fstat (fd, buf); 77 rpl_fstat (int fd, struct stat *buf) 84 return stat (name, buf); 87 return fstat_nothrow (fd, buf);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x500/style/ |
X500NameTokenizer.java | 14 private StringBuffer buf = new StringBuffer(); field in class:X500NameTokenizer 47 buf.setLength(0); 59 buf.append(c); 66 buf.append(c); 71 buf.append(c); 80 buf.append(c); 88 return buf.toString();
|
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/encoder/ |
vp9_lookahead.c | 29 struct lookahead_entry *buf; /* Buffer list */ member in struct:lookahead_ctx 37 struct lookahead_entry *buf = ctx->buf + index; local 43 return buf; 49 if (ctx->buf) { 53 vp9_free_frame_buffer(&ctx->buf[i].img); 54 free(ctx->buf); 79 ctx->buf = calloc(depth, sizeof(*ctx->buf)); 80 if (!ctx->buf) 98 struct lookahead_entry *buf; local 170 struct lookahead_entry *buf = NULL; local 182 struct lookahead_entry *buf = NULL; local [all...] |
/external/elfutils/0.153/libebl/ |
eblobjnotetypename.c | 62 ebl_object_note_type_name (ebl, name, type, buf, len) 66 char *buf; 69 const char *res = ebl->object_note_type_name (name, type, buf, len); 75 snprintf (buf, len, "Version: %" PRIu32, type); 76 return buf; 94 snprintf (buf, len, "%s: %" PRIu32, gettext ("<unknown>"), type); 96 res = buf;
|
eblsymbolbindingname.c | 60 ebl_symbol_binding_name (ebl, binding, buf, len) 63 char *buf; 68 res = ebl != NULL ? ebl->symbol_type_name (binding, buf, len) : NULL; 84 snprintf (buf, len, "LOPROC+%d", binding - STB_LOPROC); 90 snprintf (buf, len, "LOOS+%d", binding - STB_LOOS); 92 snprintf (buf, len, gettext ("<unknown>: %d"), binding); 94 res = buf;
|
eblsymboltypename.c | 60 ebl_symbol_type_name (ebl, symbol, buf, len) 63 char *buf; 68 res = ebl != NULL ? ebl->symbol_type_name (symbol, buf, len) : NULL; 90 snprintf (buf, len, "LOPROC+%d", symbol - STT_LOPROC); 96 snprintf (buf, len, "LOOS+%d", symbol - STT_LOOS); 98 snprintf (buf, len, gettext ("<unknown>: %d"), symbol); 100 res = buf;
|
/external/libselinux/src/ |
get_initial_context.c | 17 char *buf; local 33 buf = malloc(size); 34 if (!buf) { 38 memset(buf, 0, size); 39 ret = read(fd, buf, size - 1); 43 *con = strdup(buf); 50 free(buf);
|
/external/libvpx/libvpx/vp9/encoder/ |
vp9_lookahead.c | 26 struct lookahead_entry *buf; /* Buffer list */ member in struct:lookahead_ctx 34 struct lookahead_entry *buf = ctx->buf + index; local 40 return buf; 46 if (ctx->buf) { 50 vp9_free_frame_buffer(&ctx->buf[i].img); 51 free(ctx->buf); 76 ctx->buf = calloc(depth, sizeof(*ctx->buf)); 77 if (!ctx->buf) 95 struct lookahead_entry *buf; local 167 struct lookahead_entry *buf = NULL; local 179 struct lookahead_entry *buf = NULL; local [all...] |
/external/oprofile/libpopt/ |
findme.c | 18 char * buf; local 28 buf = malloc(strlen(path) + strlen(argv0) + sizeof("/")); 29 if (buf == NULL) return NULL; /* XXX can't happen */ 37 sprintf(buf, "%s/%s", start, argv0); 39 if (!access(buf, X_OK)) 40 return buf; 49 free(buf);
|
/external/smack/src/org/jivesoftware/smackx/packet/ |
Version.java | 118 StringBuilder buf = new StringBuilder(); local 119 buf.append("<query xmlns=\"jabber:iq:version\">"); 121 buf.append("<name>").append(name).append("</name>"); 124 buf.append("<version>").append(version).append("</version>"); 127 buf.append("<os>").append(os).append("</os>"); 129 buf.append("</query>"); 130 return buf.toString();
|
MUCInitialPresence.java | 55 StringBuilder buf = new StringBuilder(); local 56 buf.append("<").append(getElementName()).append(" xmlns=\"").append(getNamespace()).append( 59 buf.append("<password>").append(getPassword()).append("</password>"); 62 buf.append(getHistory().toXML()); 64 buf.append("</").append(getElementName()).append(">"); 65 return buf.toString(); 203 StringBuilder buf = new StringBuilder(); local 204 buf.append("<history"); 206 buf.append(" maxchars=\"").append(getMaxChars()).append("\""); 209 buf.append(" maxstanzas=\"").append(getMaxStanzas()).append("\"") [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/ |
vp9_lookahead.c | 26 struct lookahead_entry *buf; /* Buffer list */ member in struct:lookahead_ctx 34 struct lookahead_entry *buf = ctx->buf + index; local 40 return buf; 46 if (ctx->buf) { 50 vp9_free_frame_buffer(&ctx->buf[i].img); 51 free(ctx->buf); 76 ctx->buf = calloc(depth, sizeof(*ctx->buf)); 77 if (!ctx->buf) 95 struct lookahead_entry *buf; local 167 struct lookahead_entry *buf = NULL; local 179 struct lookahead_entry *buf = NULL; local [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/ |
Group.java | 58 StringBuffer buf = new StringBuffer(); local 59 buf.append(name); 60 buf.append(":"); 62 buf.append(mailboxList.get(i).toString()); 64 buf.append(","); 66 buf.append(";"); 67 return buf.toString();
|
/system/extras/tests/bionic/libc/glibc/assert/ |
test-assert.c | 15 char buf[160]; variable 75 fgets (buf, 160, stderr); 76 if (!strstr (buf, "1 == 2")) 79 fgets (buf, 160, stderr); 80 if (strstr (buf, "1 == 1")) 83 fgets (buf, 160, stderr); 84 if (strstr (buf, "2 == 3"))
|
/external/wpa_supplicant_8/src/ap/ |
gas_serv.c | 141 struct wpabuf *buf) 145 len = gas_anqp_add_element(buf, ANQP_VENDOR_SPECIFIC); 146 wpabuf_put_be24(buf, OUI_WFA); 147 wpabuf_put_u8(buf, HS20_ANQP_OUI_TYPE); 148 wpabuf_put_u8(buf, HS20_STYPE_CAPABILITY_LIST); 149 wpabuf_put_u8(buf, 0); /* Reserved */ 150 wpabuf_put_u8(buf, HS20_STYPE_CAPABILITY_LIST); 152 wpabuf_put_u8(buf, HS20_STYPE_OPERATOR_FRIENDLY_NAME); 154 wpabuf_put_u8(buf, HS20_STYPE_WAN_METRICS); 156 wpabuf_put_u8(buf, HS20_STYPE_CONNECTION_CAPABILITY) 692 struct wpabuf *buf; local 962 struct wpabuf *buf, *tx_buf; local 1057 struct wpabuf *buf; local 1132 struct wpabuf *buf, *tx_buf; local [all...] |
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/ |
ChannelHelper.java | 37 ByteBuffer buf = ByteBuffer.allocate(l2i(size)); local 38 readFully(channel, buf, buf.limit()); 39 buf.rewind(); 40 assert buf.limit() == size; 42 return buf; 48 public static void readFully(final ReadableByteChannel channel, final ByteBuffer buf) 50 readFully(channel, buf, buf.remaining()); 53 public static int readFully(final ReadableByteChannel channel, final ByteBuffer buf, final int length [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
WrappedCharBufferTest2.java | 28 buf = CharBuffer.wrap(TEST_STRING); 29 baseBuf = buf; 35 buf = null; 74 buf.array(); 83 buf.put(array, 0, array.length); 89 buf.put((char[]) null, 0, 1); 95 buf.put(new char[buf.capacity() + 1], 0, buf.capacity() + 1); 101 buf.put(array, -1, array.length) [all...] |
/development/tools/line_endings/ |
line_endings.c | 9 static void to_unix(char* buf); 10 static void unix_to_dos(char* buf2, const char* buf); 22 char buf[BUFSIZE*2+3]; member in struct:Node 64 node->buf[0] = 0; 71 char buf[BUFSIZE+2]; local 74 amt = read(fd, buf, amt2); 79 buf[amt2] = '\0'; 80 to_unix(buf); 82 strcpy(node->buf, buf); [all...] |