/external/strace/tests/ |
uio.c | 11 char buf[4]; local 12 struct iovec iov = { buf, sizeof buf }; 15 assert(pread(fd, buf, sizeof buf, offset) == 4); 20 assert(pwrite(fd, buf, sizeof buf, offset) == 4);
|
/external/wpa_supplicant_8/hostapd/ |
nt_password_hash.c | 19 char *password, buf[64], *pos; local 24 if (fgets(buf, sizeof(buf), stdin) == NULL) { 28 buf[sizeof(buf) - 1] = '\0'; 29 pos = buf; 37 password = buf;
|
/libcore/luni/src/main/java/java/util/zip/ |
Adler32.java | 59 * Update this {@code Adler32} checksum using the contents of {@code buf}. 61 * @param buf 64 public void update(byte[] buf) { 65 update(buf, 0, buf.length); 69 * Update this {@code Adler32} checksum with the contents of {@code buf}, 72 public void update(byte[] buf, int offset, int byteCount) { 73 Arrays.checkOffsetAndCount(buf.length, offset, byteCount); 74 adler = updateImpl(buf, offset, byteCount, adler); 77 private native long updateImpl(byte[] buf, int offset, int byteCount, long adler1) [all...] |
CRC32.java | 60 * Updates this checksum with the bytes contained in buffer {@code buf}. 62 * @param buf 65 public void update(byte[] buf) { 66 update(buf, 0, buf.length); 70 * Update this {@code CRC32} checksum with the contents of {@code buf}, 73 public void update(byte[] buf, int offset, int byteCount) { 74 Arrays.checkOffsetAndCount(buf.length, offset, byteCount); 76 crc = updateImpl(buf, offset, byteCount, crc); 79 private native long updateImpl(byte[] buf, int offset, int byteCount, long crc1) [all...] |
/bionic/libc/bionic/ |
getcwd.cpp | 32 extern "C" int __getcwd(char* buf, size_t size); 34 char* getcwd(char* buf, size_t size) { 36 if (buf != NULL && size == 0) { 44 if (buf == NULL) { 50 buf = allocated_buf = static_cast<char*>(malloc(allocated_size)); 51 if (buf == NULL) { 59 int rc = __getcwd(buf, allocated_size); 69 buf = strdup(allocated_buf); 72 buf = allocated_buf; 76 return buf; [all...] |
ether_ntoa.c | 38 ether_ntoa_r (const struct ether_addr *addr, char * buf) 40 snprintf(buf, 18, "%02x:%02x:%02x:%02x:%02x:%02x", 44 return buf; 53 static char buf[18]; local 54 return ether_ntoa_r(addr, buf);
|
pty.cpp | 50 static char buf[64]; local 51 return ptsname_r(fd, buf, sizeof(buf)) == 0 ? buf : NULL; 54 int ptsname_r(int fd, char* buf, size_t len) { 55 if (buf == NULL) { 66 if (snprintf(buf, len, "/dev/pts/%u", pty_num) >= static_cast<int>(len)) { 75 static char buf[64]; local 76 return ttyname_r(fd, buf, sizeof(buf)) == 0 ? buf : NULL [all...] |
/external/smack/src/org/jivesoftware/smackx/bytestreams/ibb/packet/ |
Close.java | 53 StringBuilder buf = new StringBuilder();
local 54 buf.append("<close ");
55 buf.append("xmlns=\"");
56 buf.append(InBandBytestreamManager.NAMESPACE);
57 buf.append("\" ");
58 buf.append("sid=\"");
59 buf.append(sessionID);
60 buf.append("\"");
61 buf.append("/>");
62 return buf.toString(); [all...] |
/external/valgrind/main/coregrind/ |
m_vkiscnums.c | 49 HChar* VG_(sysnum_string)(Word sysnum, SizeT n_buf, HChar* buf) 51 VG_(snprintf)(buf, n_buf, "%3ld", sysnum); 52 return buf; 55 HChar* VG_(sysnum_string_extra)(Word sysnum, SizeT n_buf, HChar* buf) 57 return VG_(sysnum_string)(sysnum, n_buf, buf); 64 HChar* VG_(sysnum_string)(Word sysnum, SizeT n_buf, HChar* buf) 74 VG_(snprintf)(buf, n_buf, "%s:%3ld", 76 return buf; 79 HChar* VG_(sysnum_string_extra)(Word sysnum, SizeT n_buf, HChar* buf) 81 return VG_(sysnum_string)(sysnum, n_buf, buf); [all...] |
/external/valgrind/main/memcheck/tests/ |
test-plo.c | 49 char *buf = memalign16(5); local 50 buf[0] = 'a'; 51 buf[1] = 'b'; 52 buf[2] = 'c'; 53 buf[3] = 'd'; 54 buf[4] = '\0'; 58 if (aligned_strlen(buf) == 4) 63 buf[4] = 'x'; 64 if (aligned_strlen(buf) == 0) 67 free(buf); [all...] |
/system/core/libcutils/ |
partition_utils.c | 26 static int only_one_char(char *buf, int len, char c) 32 if (buf[i] != c) { 42 char buf[4096]; local 49 ret = read(fd, buf, sizeof(buf)); 52 if (ret != sizeof(buf)) { 57 if (only_one_char(buf, sizeof(buf), 0)) { 62 if (only_one_char(buf, sizeof(buf), 0xff)) [all...] |
/external/mockito/cglib-and-asm/src/org/mockito/asm/util/ |
ASMifierMethodVisitor.java | 59 buf.setLength(0);
60 buf.append("{\n").append("av0 = mv.visitAnnotationDefault();\n");
61 text.add(buf.toString());
73 buf.setLength(0);
74 buf.append("{\n")
79 buf.append(", ").append(visible).append(");\n");
80 text.add(buf.toString());
98 buf.setLength(0);
105 buf.append("mv.visitFrame(Opcodes.F_NEW, ");
107 buf.append("mv.visitFrame(Opcodes.F_FULL, "); [all...] |
/bionic/tests/ |
fortify_test.cpp | 401 char buf[10]; local 403 ASSERT_EXIT(strcpy(buf, orig), testing::KilledBySignal(SIGABRT), ""); 414 char buf[0]; local 416 ASSERT_EXIT(strcpy(buf, orig), testing::KilledBySignal(SIGABRT), ""); 427 char buf[0]; local 429 ASSERT_EXIT(strcpy(buf, orig), testing::KilledBySignal(SIGABRT), ""); 440 char buf[1]; local 442 ASSERT_EXIT(strcpy(buf, orig), testing::KilledBySignal(SIGABRT), ""); 452 char buf[10]; local 453 memcpy(buf, "0123456789", sizeof(buf)) 463 char buf[10]; local 474 char buf[10]; local 511 char buf[10]; local 522 char* buf = (char *) malloc(10); local 532 char buf[5]; local 537 char buf[10]; local 558 char buf[10]; local 581 char buf[10]; local 589 char buf[10]; local 599 char buf[10]; local 606 char buf[20]; local 667 char buf[10]; local 682 char buf[10]; local 697 char buf[1]; local 707 char buf[1]; local 714 char buf[1]; local 725 char buf[10]; local 744 char buf[10]; local 763 char buf[10]; local 781 char buf[10]; local 799 char buf[10]; local 818 char buf[10]; local 838 char buf[10]; local 857 char buf[10]; local 954 char buf[10]; local 975 char buf[10]; local 984 char buf[10]; local 993 char buf[10]; local 1015 char buf[BUFSIZ]; local [all...] |
regex_test.cpp | 29 char buf[80]; local 30 regerror(REG_NOMATCH, &re, buf, sizeof(buf)); 32 ASSERT_STREQ("regexec() failed to match", buf); 34 ASSERT_STREQ("No match", buf);
|
/external/chromium_org/media/formats/common/ |
offset_byte_queue_unittest.cc | 17 uint8 buf[256]; variable 19 buf[i] = i; 22 queue_->Push(buf, sizeof(buf)); 23 queue_->Push(buf, sizeof(buf)); 38 const uint8* buf; local 41 queue_->Peek(&buf, &size); 43 EXPECT_EQ(128, buf[0]); 44 EXPECT_EQ(255, buf[size-1]) 48 const uint8* buf; local 70 const uint8* buf; local [all...] |
/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
glGetProgramInfoLog.cpp | 10 char* buf = (char*) malloc(infoLen); local 11 if (buf == NULL) { 15 glGetProgramInfoLog(shader, infoLen, NULL, buf); 16 jstring result = _env->NewStringUTF(buf); 17 free(buf);
|
glGetProgramPipelineInfoLog.cpp | 10 char* buf = (char*) malloc(infoLen); local 11 if (buf == NULL) { 15 glGetProgramPipelineInfoLog(shader, infoLen, NULL, buf); 16 jstring result = _env->NewStringUTF(buf); 17 free(buf);
|
glGetShaderInfoLog.cpp | 10 char* buf = (char*) malloc(infoLen); local 11 if (buf == NULL) { 15 glGetShaderInfoLog(shader, infoLen, NULL, buf); 16 jstring result = _env->NewStringUTF(buf); 17 free(buf);
|
/frameworks/native/libs/binder/ |
TextOutput.cpp | 49 char buf[16]; local 50 sprintf(buf, "%d", val); 51 to.print(buf, strlen(buf)); 57 char buf[16]; local 58 sprintf(buf, "%ld", val); 59 to.print(buf, strlen(buf)); 65 char buf[16]; local 66 sprintf(buf, "%u", val) 73 char buf[16]; local 81 char buf[32]; local 89 char buf[32]; local 97 char buf[64]; local 119 char buf[16]; local [all...] |
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_StringWriter.java | 24 private StringBuffer buf; field in class:Support_StringWriter 33 buf = new StringBuffer(16); 34 lock = buf; 44 buf = new StringBuffer(initialSize); 45 lock = buf; 78 return buf; 92 return buf.toString(); 98 * in <code>buf</code> to this StringWriter. 100 * @param buf the non-null array containing characters to write. 101 * @param offset offset in buf to retrieve character [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
testutil.cpp | 16 UnicodeString &TestUtility::appendHex(UnicodeString &buf, UChar32 ch) { 19 buf.append(HEX[0xF&(ch>>20)]); 21 buf.append(HEX[0xF&(ch>>16)]); 23 buf.append(HEX[0xF&(ch>>12)]); 24 buf.append(HEX[0xF&(ch>>8)]); 25 buf.append(HEX[0xF&(ch>>4)]); 26 buf.append(HEX[0xF&ch]); 27 return buf; 31 UnicodeString buf; local 32 appendHex(buf, ch) 55 UnicodeString buf; local [all...] |
/external/chromium_org/third_party/libjingle/source/talk/base/ |
buffer_unittest.cc | 38 Buffer buf; local 39 EXPECT_EQ(0U, buf.length()); 40 EXPECT_EQ(0U, buf.capacity()); 41 EXPECT_EQ(Buffer(), buf); local 45 Buffer buf(NULL, 0, 256U); 46 EXPECT_EQ(0U, buf.length()); 47 EXPECT_EQ(256U, buf.capacity()); 48 EXPECT_EQ(Buffer(), buf); local 52 Buffer buf(kTestData, sizeof(kTestData)); 53 EXPECT_EQ(sizeof(kTestData), buf.length()) 56 EXPECT_EQ(Buffer(kTestData, sizeof(kTestData)), buf); local 64 EXPECT_EQ(Buffer(kTestData, sizeof(kTestData)), buf); local 86 Buffer buf; local 104 Buffer buf; local 113 Buffer buf; local 122 Buffer buf; local [all...] |
/external/chromium_org/third_party/webrtc/base/ |
buffer_unittest.cc | 21 Buffer buf; local 22 EXPECT_EQ(0U, buf.length()); 23 EXPECT_EQ(0U, buf.capacity()); 24 EXPECT_EQ(Buffer(), buf); local 28 Buffer buf(NULL, 0, 256U); 29 EXPECT_EQ(0U, buf.length()); 30 EXPECT_EQ(256U, buf.capacity()); 31 EXPECT_EQ(Buffer(), buf); local 35 Buffer buf(kTestData, sizeof(kTestData)); 36 EXPECT_EQ(sizeof(kTestData), buf.length()) 39 EXPECT_EQ(Buffer(kTestData, sizeof(kTestData)), buf); local 47 EXPECT_EQ(Buffer(kTestData, sizeof(kTestData)), buf); local 69 Buffer buf; local 87 Buffer buf; local 96 Buffer buf; local 105 Buffer buf; local [all...] |
/external/icu/icu4c/source/test/intltest/ |
testutil.cpp | 16 UnicodeString &TestUtility::appendHex(UnicodeString &buf, UChar32 ch) { 19 buf.append(HEX[0xF&(ch>>20)]); 21 buf.append(HEX[0xF&(ch>>16)]); 23 buf.append(HEX[0xF&(ch>>12)]); 24 buf.append(HEX[0xF&(ch>>8)]); 25 buf.append(HEX[0xF&(ch>>4)]); 26 buf.append(HEX[0xF&ch]); 27 return buf; 31 UnicodeString buf; local 32 appendHex(buf, ch) 55 UnicodeString buf; local [all...] |
/external/libedit/src/ |
fgetln.c | 50 static char *buf = NULL; local 55 if (buf == NULL) { 57 if ((buf = malloc(bufsiz)) == NULL) 61 if (fgets(buf, bufsiz, fp) == NULL) 65 while ((ptr = strchr(&buf[*len], '\n')) == NULL) { 67 char *nbuf = realloc(buf, nbufsiz); 71 free(buf); 73 buf = NULL; 76 buf = nbuf; 78 if (fgets(&buf[bufsiz], BUFSIZ, fp) == NULL) [all...] |