/external/toybox/toys/posix/ |
uuencode.c | 25 char *name = toys.optargs[toys.optc-1], buf[(76/4)*3]; local 37 if (!(i = xread(fd, buf, m ? sizeof(buf) : 45))) break; 40 in = buf; 42 for (in = buf; in-buf < i; ) { 43 int j, x, bytes = i - (in-buf);
|
/external/wpa_supplicant_8/src/ap/ |
ctrl_iface_ap.h | 13 char *buf, size_t buflen); 15 char *buf, size_t buflen); 17 char *buf, size_t buflen); 24 char *buf, size_t buflen); 27 int hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf, 32 int hostapd_ctrl_iface_pmksa_list(struct hostapd_data *hapd, char *buf, 36 const u8 *addr, char *buf, size_t len);
|
/external/wpa_supplicant_8/wpa_supplicant/ |
wpa_passphrase.c | 19 char *ssid, *passphrase, buf[64], *pos; local 35 if (fgets(buf, sizeof(buf), stdin) == NULL) { 39 buf[sizeof(buf) - 1] = '\0'; 40 pos = buf; 48 passphrase = buf;
|
/frameworks/base/services/net/java/android/net/util/ |
IpUtils.java | 46 private static int checksum(ByteBuffer buf, int seed, int start, int end) { 48 final int bufPosition = buf.position(); 52 buf.position(start); 53 ShortBuffer shortBuf = buf.asShortBuffer(); 56 buf.position(bufPosition); 66 short b = buf.get(start); 83 ByteBuffer buf, int headerOffset, int protocol, int transportLen) { 85 partial += intAbs(buf.getShort(headerOffset + 12)); 86 partial += intAbs(buf.getShort(headerOffset + 14)); 87 partial += intAbs(buf.getShort(headerOffset + 16)) [all...] |
/libcore/ojluni/src/main/java/java/util/zip/ |
CheckedInputStream.java | 70 * @param buf the buffer into which the data is read 75 * @exception NullPointerException If <code>buf</code> is <code>null</code>. 78 * <code>buf.length - off</code> 81 public int read(byte[] buf, int off, int len) throws IOException { 82 len = in.read(buf, off, len); 84 cksum.update(buf, off, len); 96 byte[] buf = new byte[512]; 100 len = read(buf, 0, len < buf.length ? (int)len : buf.length) [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();
|
/external/ltp/testcases/kernel/io/ltp-aiodio/ |
dio_append.c | 45 char *check_zero(unsigned char *buf, int size) 49 p = buf; 52 if (*buf != 0) { 54 "non zero buffer at buf[%d] => 0x%02x,%02x,%02x,%02x\n", 55 buf - p, (unsigned int)buf[0], 56 size > 1 ? (unsigned int)buf[1] : 0, 57 size > 2 ? (unsigned int)buf[2] : 0, 58 size > 3 ? (unsigned int)buf[3] : 0); 59 fprintf(stderr, "buf %p, p %p\n", buf, p) 73 char buf[4096]; 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...] |
/libcore/ojluni/src/main/java/java/io/ |
CharArrayReader.java | 37 protected char buf[]; field in class:CharArrayReader 53 * @param buf Input buffer (not copied) 55 public CharArrayReader(char buf[]) { 56 this.buf = buf; 58 this.count = buf.length; 67 * <tt>buf.length-offset</tt>, whichever is smaller. 71 * <tt>buf.length</tt>, or if <tt>length</tt> is negative, or if 74 * @param buf Input buffer (not copied) 78 public CharArrayReader(char buf[], int offset, int 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...] |
/external/libcxx/test/std/utilities/memory/ptr.align/ |
align.pass.cpp | 20 char buf[N]; local 22 void* p = &buf[0]; 25 assert(p == &buf[0]); 29 p = &buf[1]; 32 assert(p == &buf[4]); 36 p = &buf[2]; 39 assert(p == &buf[4]); 43 p = &buf[3]; 46 assert(p == &buf[4]); 50 p = &buf[4] [all...] |
/external/ltp/testcases/kernel/ipc/ipc_stress/ |
message_queue_test_02_ctl.c | 113 struct msqid_ds buf; /* Message queue info */ local 127 if (msgctl(msqid, IPC_STAT, &buf) < 0) 130 printf("uid %d\n", buf.msg_perm.uid); 131 printf("gid %d\n", buf.msg_perm.gid); 132 printf("cuid %d\n", buf.msg_perm.cuid); 133 printf("cgid %d\n", buf.msg_perm.cgid); 134 printf("mode %d\n", buf.msg_perm.mode); 136 printf("seq %ld\n", (long int)buf.msg_perm.__seq); 137 printf("key 0x%x\n", buf.msg_perm.__key); 139 printf("seq %d\n", buf.msg_perm.seq) [all...] |
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/io/ |
MemoryDataStore.java | 10 private byte[] buf; field in class:MemoryDataStore 17 buf = new byte[initialCapacity]; 21 return buf; 29 buf[position++] = (byte)b; 34 System.arraycopy(b, 0, buf, position, b.length); 40 System.arraycopy(b, off, buf, position, len); 47 if (index < buf.length) { 50 buf = Arrays.copyOf(buf, (int)((index + 1) * 1.2)); 58 if (position >= buf.length) [all...] |
/prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/ptr.align/ |
align.pass.cpp | 21 char buf[N]; local 23 void* p = &buf[0]; 26 assert(p == &buf[0]); 30 p = &buf[1]; 33 assert(p == &buf[4]); 37 p = &buf[2]; 40 assert(p == &buf[4]); 44 p = &buf[3]; 47 assert(p == &buf[4]); 51 p = &buf[4] [all...] |
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/utilities/memory/ptr.align/ |
align.pass.cpp | 20 char buf[N]; local 22 void* p = &buf[0]; 25 assert(p == &buf[0]); 29 p = &buf[1]; 32 assert(p == &buf[4]); 36 p = &buf[2]; 39 assert(p == &buf[4]); 43 p = &buf[3]; 46 assert(p == &buf[4]); 50 p = &buf[4] [all...] |
/system/extras/f2fs_utils/ |
f2fs_ioutils.c | 90 void *buf; member in struct:buf_item 97 static int dev_write_fd(void *buf, __u64 offset, size_t len) 101 ssize_t written = write(config.fd, buf, len); 114 free(bi->buf); 119 static int dev_write_sparse(void *buf, __u64 byte_offset, size_t byte_len) 126 bi->buf = malloc(byte_len); 127 if (bi->buf == NULL) { 133 memcpy(bi->buf, buf, byte_len); 137 sparse_file_add_data(f2fs_sparse_file, bi->buf, byte_len, byte_offset/F2FS_BLKSIZE) [all...] |
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/debug/ |
Profiler.java | 440 StringBuffer buf = new StringBuffer(); local 441 buf.append(Version); 442 buf.append('\t'); 443 buf.append(parser.getClass().getName()); 444 // buf.append('\t'); 445 // buf.append(numRuleInvocations); 446 // buf.append('\t'); 447 // buf.append(maxRuleInvocationDepth); 448 // buf.append('\t'); 449 // buf.append(numFixedDecisions) 530 StringBuffer buf = new StringBuffer(); local 653 StringBuffer buf = new StringBuffer(); local [all...] |
/external/libvpx/libvpx/vp8/encoder/ |
lookahead.c | 23 struct lookahead_entry *buf; /* Buffer list */ member in struct:lookahead_ctx 30 struct lookahead_entry *buf = ctx->buf + index; local 35 return buf; 40 if (ctx->buf) { 44 vp8_yv12_de_alloc_frame_buffer(&ctx->buf[i].img); 46 free(ctx->buf); 76 ctx->buf = calloc(depth, sizeof(*ctx->buf)); 77 if (!ctx->buf) goto bail 94 struct lookahead_entry *buf; local 149 struct lookahead_entry *buf = NULL; local 161 struct lookahead_entry *buf = NULL; local [all...] |
/external/ltp/testcases/open_posix_testsuite/stress/semaphores/ |
multi_con_pro.c | 37 buf_t *buf; variable 49 if (-1 == sem_wait(&buf->full)) { 53 if (-1 == sem_getvalue(&buf->full, &full_value)) { 58 if (-1 == sem_wait(&buf->lock)) { 63 buf->buffer[in] = data; 67 if (-1 == sem_post(&buf->lock)) { 71 if (-1 == sem_post(&buf->empty)) { 76 if (-1 == sem_wait(&buf->full)) { 80 if (-1 == sem_getvalue(&buf->full, &full_value)) { 85 if (-1 == sem_wait(&buf->lock)) [all...] |
/external/mesa3d/src/gallium/drivers/i915/ |
i915_resource_buffer.c | 140 struct i915_buffer *buf = CALLOC_STRUCT(i915_buffer); local 142 if (!buf) 145 buf->b.b = *template; 146 buf->b.vtbl = &i915_buffer_vtbl; 147 pipe_reference_init(&buf->b.b.reference, 1); 148 buf->b.b.screen = screen; 149 buf->data = align_malloc(template->width0, 16); 150 buf->free_on_destroy = TRUE; 152 if (!buf->data) 155 return &buf->b.b 170 struct i915_buffer *buf = CALLOC_STRUCT(i915_buffer); local [all...] |
/external/libvpx/libvpx/vp9/encoder/ |
vp9_lookahead.c | 24 struct lookahead_entry *buf = ctx->buf + index; local 29 return buf; 34 if (ctx->buf) { 37 for (i = 0; i < ctx->max_sz; i++) vpx_free_frame_buffer(&ctx->buf[i].img); 38 free(ctx->buf); 66 ctx->buf = calloc(depth, sizeof(*ctx->buf)); 67 if (!ctx->buf) goto bail; 70 &ctx->buf[i].img, width, height, subsampling_x, subsampling_y 91 struct lookahead_entry *buf; local 192 struct lookahead_entry *buf = NULL; local 203 struct lookahead_entry *buf = NULL; local [all...] |
/external/valgrind/coregrind/m_gdbserver/ |
valgrind-low-ppc32.c | 178 void transfer_register (ThreadId tid, int abs_regno, void * buf, 191 case 0: VG_(transfer) (&ppc32->guest_GPR0, buf, dir, size, mod); break; 192 case 1: VG_(transfer) (&ppc32->guest_GPR1, buf, dir, size, mod); break; 193 case 2: VG_(transfer) (&ppc32->guest_GPR2, buf, dir, size, mod); break; 194 case 3: VG_(transfer) (&ppc32->guest_GPR3, buf, dir, size, mod); break; 195 case 4: VG_(transfer) (&ppc32->guest_GPR4, buf, dir, size, mod); break; 196 case 5: VG_(transfer) (&ppc32->guest_GPR5, buf, dir, size, mod); break; 197 case 6: VG_(transfer) (&ppc32->guest_GPR6, buf, dir, size, mod); break; 198 case 7: VG_(transfer) (&ppc32->guest_GPR7, buf, dir, size, mod); break; 199 case 8: VG_(transfer) (&ppc32->guest_GPR8, buf, dir, size, mod); break [all...] |
valgrind-low-ppc64.c | 175 void transfer_register (ThreadId tid, int abs_regno, void * buf, 188 case 0: VG_(transfer) (&ppc64->guest_GPR0, buf, dir, size, mod); break; 189 case 1: VG_(transfer) (&ppc64->guest_GPR1, buf, dir, size, mod); break; 190 case 2: VG_(transfer) (&ppc64->guest_GPR2, buf, dir, size, mod); break; 191 case 3: VG_(transfer) (&ppc64->guest_GPR3, buf, dir, size, mod); break; 192 case 4: VG_(transfer) (&ppc64->guest_GPR4, buf, dir, size, mod); break; 193 case 5: VG_(transfer) (&ppc64->guest_GPR5, buf, dir, size, mod); break; 194 case 6: VG_(transfer) (&ppc64->guest_GPR6, buf, dir, size, mod); break; 195 case 7: VG_(transfer) (&ppc64->guest_GPR7, buf, dir, size, mod); break; 196 case 8: VG_(transfer) (&ppc64->guest_GPR8, buf, dir, size, mod); break [all...] |
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/ |
IntegralToString.java | 139 char[] buf = new char[bufLen]; 144 buf[--cursor] = DIGITS[radix * q - i]; 149 buf[--cursor] = '-'; 152 return new String(buf, cursor, bufLen - cursor); 209 char[] buf = (sb != null) ? BUFFER.get() : new char[bufLen]; 217 buf[--cursor] = ONES[r]; 218 buf[--cursor] = TENS[r]; 227 buf[--cursor] = DIGITS[r]; 232 buf[--cursor] = '-'; 236 sb.append(buf, cursor, bufLen - cursor) 423 char[] buf = new char[bufLen]; local 440 char[] buf = new char[bufLen]; local 459 char[] buf = new char[2]; \/\/ We always want two digits. local 467 char[] buf = new char[bytes.length * 2]; local 478 char[] buf = new char[bufLen]; local 496 char[] buf = new char[bufLen]; local 508 char[] buf = new char[bufLen]; local 524 char[] buf = new char[bufLen]; local [all...] |