/external/dropbear/libtomcrypt/src/misc/ |
burn_stack.c | 24 unsigned char buf[32]; local 25 zeromem(buf, sizeof(buf)); 26 if (len > (unsigned long)sizeof(buf)) 27 burn_stack(len - sizeof(buf));
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
EventRingBufferTests.java | 53 private static void addEvent(EventRingBuffer buf, int id) { 54 buf.add(x(id), y(id), time(id)); 57 private static void assertEventSize(EventRingBuffer buf, int size) { 58 assertEquals(size, buf.size()); 61 private static void assertEvent(EventRingBuffer buf, int pos, int id) { 62 assertEquals(x(id), buf.getX(pos), 0f); 63 assertEquals(y(id), buf.getY(pos), 0f); 64 assertEquals(time(id), buf.getTime(pos)); 68 EventRingBuffer buf = new EventRingBuffer(4); local 69 assertEventSize(buf, 0) 83 EventRingBuffer buf = new EventRingBuffer(4); local 123 EventRingBuffer buf = new EventRingBuffer(4); local [all...] |
/bionic/libc/string/ |
strerror.c | 37 static char buf[256]; local 39 (void)strerror_r(num, buf, sizeof(buf)); 40 return (buf);
|
/external/dropbear/libtomcrypt/notes/etc/ |
whirltest.c | 5 char buf[4096]; local 8 while (fgets(buf, sizeof(buf)-2, stdin) != NULL) { 10 printf("0x%c%c, ", buf[x], buf[x+1]);
|
/external/qemu/ |
varint.c | 42 char *varint_encode(uint64_t value, char *buf) { 44 *buf++ = value; 46 *buf++ = (2 << 6) | (value >> 8); 47 *buf++ = value & 0xff; 49 *buf++ = (6 << 5) | (value >> 16); 50 *buf++ = (value >> 8) & 0xff; 51 *buf++ = value & 0xff; 53 *buf++ = (0xe << 4) | (value >> 24); 54 *buf++ = (value >> 16) & 0xff; 55 *buf++ = (value >> 8) & 0xff [all...] |
varint.h | 14 extern char *varint_encode(uint64_t value, char *buf); 15 extern char *varint_encode_signed(int64_t value, char *buf);
|
/bionic/libc/stdio/ |
setbuf.c | 38 setbuf(FILE *fp, char *buf) 40 (void) setvbuf(fp, buf, buf ? _IOFBF : _IONBF, BUFSIZ);
|
/external/openssl/crypto/ |
cversion.c | 72 static char buf[sizeof(DATE)+11]; local 74 BIO_snprintf(buf,sizeof buf,"built on: %s",DATE); 75 return(buf); 83 static char buf[sizeof(CFLAGS)+11]; local 85 BIO_snprintf(buf,sizeof buf,"compiler: %s",CFLAGS); 86 return(buf); 94 static char buf[sizeof(PLATFORM)+11]; local 96 BIO_snprintf(buf,sizeof buf,"platform: %s", PLATFORM) [all...] |
/external/dropbear/ |
buffer.c | 43 buffer* buf; local 46 dropbear_exit("buf->size too big"); 49 buf = (buffer*)m_malloc(sizeof(buffer)); 52 buf->data = (unsigned char*)m_malloc(size); 54 buf->data = NULL; 57 buf->size = size; 58 buf->pos = 0; 59 buf->len = 0; 61 return buf; 66 void buf_free(buffer* buf) { [all...] |
buffer.h | 31 struct buf { struct 40 typedef struct buf buffer; 43 void buf_resize(buffer *buf, unsigned int newsize); 44 void buf_free(buffer* buf); 45 void buf_burn(buffer* buf); 46 buffer* buf_newcopy(buffer* buf); 47 void buf_setlen(buffer* buf, unsigned int len); 48 void buf_incrlen(buffer* buf, unsigned int incr); 49 void buf_setpos(buffer* buf, unsigned int pos); 50 void buf_incrpos(buffer* buf, int incr); /* -ve is ok, to go backwards * [all...] |
common-runopts.c | 39 buffer *buf; local 41 buf = buf_new(MAX_PRIVKEY_SIZE); 43 if (buf_readfile(buf, filename) == DROPBEAR_FAILURE) { 46 buf_setpos(buf, 0); 47 if (buf_get_priv_key(buf, hostkey, type) == DROPBEAR_FAILURE) { 54 buf_burn(buf); 55 buf_free(buf);
|
/bionic/libc/unistd/ |
getcwd.c | 30 extern int __getcwd(char * buf, size_t size); 32 char *getcwd(char *buf, size_t size) 34 return ( __getcwd(buf, size) < 0 ) ? NULL : buf;
|
/external/wpa_supplicant_6/wpa_supplicant/src/utils/ |
wpabuf.c | 20 static void wpabuf_overflow(const struct wpabuf *buf, size_t len) 23 buf, (unsigned long) buf->size, (unsigned long) buf->used, 31 struct wpabuf *buf = *_buf; local 32 if (buf == NULL) { 36 if (buf->used + add_len > buf->size) { 38 if (buf->ext_data) { 39 nbuf = os_realloc(buf->ext_data, buf->used + add_len) 68 struct wpabuf *buf = os_zalloc(sizeof(struct wpabuf) + len); local 78 struct wpabuf *buf = os_zalloc(sizeof(struct wpabuf)); local 92 struct wpabuf *buf = wpabuf_alloc(len); local 101 struct wpabuf *buf = wpabuf_alloc(wpabuf_len(src)); local [all...] |
wpabuf.h | 32 int wpabuf_resize(struct wpabuf **buf, size_t add_len); 37 void wpabuf_free(struct wpabuf *buf); 38 void * wpabuf_put(struct wpabuf *buf, size_t len); 40 struct wpabuf * wpabuf_zeropad(struct wpabuf *buf, size_t len); 41 void wpabuf_printf(struct wpabuf *buf, char *fmt, ...) PRINTF_FORMAT(2, 3); 46 * @buf: wpabuf buffer 49 static inline size_t wpabuf_size(const struct wpabuf *buf) 51 return buf->size; 56 * @buf: wpabuf buffer 59 static inline size_t wpabuf_len(const struct wpabuf *buf) [all...] |
/system/bluetooth/brfpatch/ |
brfpatch.c | 65 static int advance(char **buf) { 66 char *b = *buf; 71 *buf = b; 77 static void process_line(FILE *file_out, char *buf, char *buffer) { 78 FAILIF(strncmp(buf, "Send_", 5) != 0, "Not expecting: %s\n", buffer); 83 FAILIF(advance(&buf), "Could not find opcode in: %s\n", buffer); 84 FAILIF(sscanf(buf, "0x%04x\n", &opcode) != 1, 91 while (!advance(&buf)) { 92 switch (*buf) { 94 buf++ 178 char *buf; local [all...] |
/external/dropbear/libtomcrypt/demos/ |
multi.c | 6 unsigned char key[16], buf[2][MAXBLOCKSIZE]; local 15 len = sizeof(buf[0]); 16 hash_memory(find_hash("sha256"), (unsigned char*)"hello", 5, buf[0], &len); local 17 len2 = sizeof(buf[0]); 18 hash_memory_multi(find_hash("sha256"), buf[1], &len2, (unsigned char*)"hello", 5, NULL); 19 if (len != len2 || memcmp(buf[0], buf[1], len)) { 23 len2 = sizeof(buf[0]); 24 hash_memory_multi(find_hash("sha256"), buf[1], &len2, (unsigned char*)"he", 2UL, "llo", 3UL, NULL, 0); 25 if (len != len2 || memcmp(buf[0], buf[1], len)) 38 hmac_memory(find_hash("sha256"), key, 16, (unsigned char*)"hello", 5, buf[0], &len); local 60 omac_memory(find_cipher("aes"), key, 16, (unsigned char*)"hello", 5, buf[0], &len); local 82 pmac_memory(find_cipher("aes"), key, 16, (unsigned char*)"hello", 5, buf[0], &len); local [all...] |
/libcore/luni/src/test/java/org/apache/harmony/nio/tests/java/nio/ |
ByteBufferTest.java | 48 protected ByteBuffer buf; field in class:ByteBufferTest 52 buf = ByteBuffer.allocate(BUFFER_LENGTH); 53 loadTestData1(buf); 54 baseBuf = buf; 59 buf = null; 153 byte array[] = buf.array(); 154 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 156 loadTestData1(array, buf.arrayOffset(), buf.capacity()) 596 ByteBuffer buf; local [all...] |
ReadOnlyWrappedCharBufferTest1.java | 28 buf = CharBuffer.wrap(new char[BUFFER_LENGTH]); 29 loadTestData1(buf); 30 buf = buf.asReadOnlyBuffer(); 31 baseBuf = buf; 35 buf = null;
|
/frameworks/base/libs/utils/ |
TextOutput.cpp | 46 char buf[16]; local 47 sprintf(buf, "%d", val); 48 to.print(buf, strlen(buf)); 54 char buf[16]; local 55 sprintf(buf, "%ld", val); 56 to.print(buf, strlen(buf)); 62 char buf[16]; local 63 sprintf(buf, "%u", val) 70 char buf[16]; local 78 char buf[32]; local 86 char buf[32]; local 94 char buf[64]; local 116 char buf[16]; local [all...] |
/external/astl/tests/ |
test_streambuf.cpp | 52 streambuf buf; local 54 EXPECT_TRUE(buf.sputc('A') == 65); 55 EXPECT_TRUE(buf.sputc('B') == 66); 56 EXPECT_TRUE(buf.sputc('C') == 67); 57 EXPECT_TRUE(buf.sputc('D') == 68); 58 EXPECT_TRUE(buf.sputc('E') == 69); 62 // EXPECT_TRUE(buf.sputc('F') == char_traits<char>::eof()); 63 // EXPECT_TRUE(buf.sputc('G') == char_traits<char>::eof()); 68 streambuf buf; local 70 EXPECT_TRUE(buf.sputn("ABCDE", 5) == 5) [all...] |
/packages/apps/Email/src/org/apache/james/mime4j/decoder/ |
ByteQueue.java | 26 private UnboundedFifoByteBuffer buf;
field in class:ByteQueue 30 buf = new UnboundedFifoByteBuffer();
34 buf = new UnboundedFifoByteBuffer(initialCapacity);
39 buf.add(b);
43 return buf.remove();
47 return buf.size();
52 buf = new UnboundedFifoByteBuffer(initialCapacity);
54 buf = new UnboundedFifoByteBuffer();
58 return buf.iterator();
|
/external/dropbear/libtomcrypt/src/math/ |
rand_prime.c | 23 unsigned char *buf; local 46 buf = XCALLOC(1, len); 47 if (buf == NULL) { 53 if (prng_descriptor[wprng].read(buf, len, prng) != (unsigned long)len) { 54 XFREE(buf); 59 buf[0] |= 0x80 | 0x40; 60 buf[len-1] |= 0x01 | ((type & USE_BBS) ? 0x02 : 0x00); 63 if ((err = mp_read_unsigned_bin(N, buf, len)) != CRYPT_OK) { 64 XFREE(buf); 70 XFREE(buf); [all...] |
/libcore/dom/src/test/java/org/w3c/domts/ |
DOMTestIncompatibleException.java | 52 StringBuffer buf = new StringBuffer( local 54 buf.append(feature); 55 buf.append("\" version=\""); 56 buf.append(version); 57 buf.append("\"."); 58 return new DOMTestIncompatibleException(buf.toString()); 63 StringBuffer buf = new StringBuffer( local 65 buf.append(href); 66 buf.append("\" not available for =\""); 67 buf.append(contentType) [all...] |
/frameworks/base/core/jni/ |
android_server_Watchdog.cpp | 31 char buf[64]; local 33 snprintf(buf, sizeof(buf), "/proc/%d/stack", tid); 34 int stackFd = open(buf, O_RDONLY); 37 strncat(buf, ":\n", sizeof(buf) - strlen(buf) - 1); 38 write(outFd, buf, strlen(buf)); 42 while ((nBytes = read(stackFd, buf, sizeof(buf))) > 0) 55 char buf[128]; local [all...] |
/frameworks/base/graphics/java/android/graphics/ |
TemporaryBuffer.java | 24 char[] buf; local 27 buf = sTemp; 31 if (buf == null || buf.length < len) 32 buf = new char[ArrayUtils.idealCharArraySize(len)]; 34 return buf;
|