HomeSort by relevance Sort by last modified time
    Searched refs:buf (Results 226 - 250 of 13582) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/conscrypt/platform/src/main/java/org/conscrypt/
Hex.java 31 char[] buf = new char[bytes.length * 2]; local
34 buf[c++] = DIGITS[(b >> 4) & 0xf];
35 buf[c++] = DIGITS[b & 0xf];
37 return new String(buf);
42 char[] buf = new char[bufLen]; local
46 buf[--cursor] = DIGITS[i & 0xf];
49 return new String(buf, cursor, bufLen - cursor);
  /external/strace/tests/
uio.c 41 char buf[4]; local
42 struct iovec iov = { buf, sizeof buf };
46 assert(pread(0, buf, sizeof buf, offset) == 4);
51 assert(pwrite(0, buf, sizeof buf, offset) == 4);
  /external/strace/tests-m32/
uio.c 41 char buf[4]; local
42 struct iovec iov = { buf, sizeof buf };
46 assert(pread(0, buf, sizeof buf, offset) == 4);
51 assert(pwrite(0, buf, sizeof buf, offset) == 4);
  /external/strace/tests-mx32/
uio.c 41 char buf[4]; local
42 struct iovec iov = { buf, sizeof buf };
46 assert(pread(0, buf, sizeof buf, offset) == 4);
51 assert(pwrite(0, buf, sizeof buf, offset) == 4);
  /external/syslinux/com32/lib/sys/
fstat.c 38 int fstat(int fd, struct stat *buf)
51 buf->st_mode = S_IFSOCK | 0444;
52 buf->st_size = 0;
54 buf->st_mode = S_IFREG | 0444;
55 buf->st_size = fp->i.fd.size;
58 buf->st_mode = S_IFCHR | 0666;
59 buf->st_size = 0;
  /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;
  /system/vold/
BenchmarkGen.h 41 char* buf = (char*) malloc(1048576); local
45 TEMP_FAILURE_RETRY(read(t3433f17, buf, 65557));
46 TEMP_FAILURE_RETRY(pread(t3433f17, buf, 769726, 38187008)); // mmap2
47 TEMP_FAILURE_RETRY(pread(t3433f17, buf, 30, 278721));
48 TEMP_FAILURE_RETRY(pread(t3433f17, buf, 19, 278751));
49 TEMP_FAILURE_RETRY(pread(t3433f17, buf, 25119, 278528)); // mmap2
50 TEMP_FAILURE_RETRY(pread(t3433f17, buf, 30, 37276895));
51 TEMP_FAILURE_RETRY(pread(t3433f17, buf, 14, 37276925));
52 TEMP_FAILURE_RETRY(pread(t3433f17, buf, 914520, 37273600)); // mmap2
54 TEMP_FAILURE_RETRY(pread(t3433f18, buf, 4096, 0)); // mmap
4032 std::string buf; local
    [all...]
  /bionic/libc/bionic/
getcwd.cpp 35 extern "C" int __getcwd(char* buf, size_t size);
37 char* getcwd(char* buf, size_t size) __overloadable {
39 if (buf != NULL && size == 0) {
47 if (buf == NULL) {
53 buf = allocated_buf = static_cast<char*>(malloc(allocated_size));
54 if (buf == NULL) {
62 int rc = __getcwd(buf, allocated_size);
72 buf = strdup(allocated_buf);
75 buf = allocated_buf;
79 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);
  /external/c-ares/
ares__read_line.c 28 * ares__read_line multiple times with the same buf and bufsize
29 * pointers; *buf will be reallocated and *bufsize adjusted as
30 * appropriate. The initial value of *buf should be NULL. After the
31 * calling routine is done reading lines, it should free *buf.
33 int ares__read_line(FILE *fp, char **buf, size_t *bufsize)
39 if (*buf == NULL)
41 *buf = malloc(128);
42 if (!*buf)
51 if (!fgets(*buf + offset, bytestoread, fp))
53 len = offset + strlen(*buf + offset)
    [all...]
  /external/google-breakpad/src/third_party/libdisasm/
x86_imm.c 6 unsigned int x86_imm_signsized( unsigned char * buf, size_t buf_len,
17 /* Copy 'size' bytes from *buf to *op
21 *cp = *((signed char *) buf);
24 *sp = *((signed short *) buf);
28 *qp = *((qword_t *) buf);
32 *lp = *((int32_t *) buf);
38 unsigned int x86_imm_sized( unsigned char * buf, size_t buf_len, void *dest,
49 /* Copy 'size' bytes from *buf to *op
53 *cp = *((unsigned char *) buf);
56 *sp = *((unsigned short *) buf);
    [all...]
  /external/slf4j/slf4j-migrator/src/test/java/org/slf4j/migrator/helper/
RandomHelper.java 39 StringBuilder buf = new StringBuilder(); local
43 buf.append(c);
45 return buf.toString();
53 StringBuilder buf = new StringBuilder(); local
55 while (buf.length() < totalLength) {
56 int remaining = totalLength - buf.length();
60 buf.append(randomString(currentNodeLength));
61 buf.append('/');
64 buf.append(randomString(currentNodeLength));
67 return buf.toString()
    [all...]
  /external/valgrind/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...]
  /prebuilts/go/darwin-x86/test/bench/go1/
fmt_test.go 16 var buf bytes.Buffer
18 fmt.Fprintf(&buf, "")
23 var buf bytes.Buffer
25 buf.Reset()
26 fmt.Fprintf(&buf, "%s", "hello")
31 var buf bytes.Buffer
33 buf.Reset()
34 fmt.Fprintf(&buf, "%d", 5)
39 var buf bytes.Buffer
41 buf.Reset(
    [all...]
  /prebuilts/go/linux-x86/test/bench/go1/
fmt_test.go 16 var buf bytes.Buffer
18 fmt.Fprintf(&buf, "")
23 var buf bytes.Buffer
25 buf.Reset()
26 fmt.Fprintf(&buf, "%s", "hello")
31 var buf bytes.Buffer
33 buf.Reset()
34 fmt.Fprintf(&buf, "%d", 5)
39 var buf bytes.Buffer
41 buf.Reset(
    [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...]
  /device/linaro/bootloader/edk2/StdLib/LibC/Stdio/
gets.c 57 gets(char *buf)
62 _DIAGASSERT(buf != NULL);
65 for (s = buf; (c = getchar_unlocked()) != '\n'; ) {
67 if (s == buf) {
79 return (buf);
  /external/kmod/shared/
scratchbuf.h 17 void scratchbuf_init(struct scratchbuf *buf, char *stackbuf, size_t size);
18 int scratchbuf_alloc(struct scratchbuf *buf, size_t sz);
19 void scratchbuf_release(struct scratchbuf *buf);
22 static inline char *scratchbuf_str(struct scratchbuf *buf)
24 return buf->bytes;
  /external/skia/src/core/
SkLights.cpp 12 sk_sp<SkLights> SkLights::MakeFromBuffer(SkReadBuffer& buf) {
16 if (!buf.readScalarArray(&ambColor.fX, 3)) {
22 int numLights = buf.readInt();
25 bool isPoint = buf.readBool();
28 if (!buf.readScalarArray(&color.fX, 3)) {
33 if (!buf.readScalarArray(&dirOrPos.fX, 3)) {
38 bool hasShadowMap = buf.readBool();
40 if (!(depthMap = buf.readImage())) {
45 bool isRadial = buf.readBool();
48 intensity = buf.readScalar()
    [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) {
16 glGetShaderInfoLog(shader, infoLen, &outLen, buf);
17 jstring result = _env->NewStringUTF(outLen == 0 ? "" : buf);
18 free(buf);
  /external/llvm/unittests/ADT/
SmallPtrSetTest.cpp 20 int buf[8]; local
22 buf[i] = 0;
25 s1.insert(&buf[0]);
26 s1.insert(&buf[1]);
29 (s2 = s1).insert(&buf[2]);
32 (s2 = s2).insert(&buf[3]);
38 EXPECT_TRUE(s1.count(&buf[i]));
40 EXPECT_FALSE(s1.count(&buf[i]));
45 int buf[8]; local
46 for(i=0; i<8; ++i) buf[i]=0
    [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/compiler-rt/test/asan/TestCases/
coverage-pc-buffer.cc 15 void assertNotZeroPcs(uintptr_t *buf, uintptr_t size) {
16 assert(buf);
18 assert(buf[i]);
23 uintptr_t *buf = NULL; local
24 uintptr_t sz = __sanitizer_get_coverage_pc_buffer(&buf);
25 assertNotZeroPcs(buf, sz);
30 uintptr_t *buf = NULL; local
31 uintptr_t sz = __sanitizer_get_coverage_pc_buffer(&buf);
38 assert(buf1 == buf);
43 uintptr_t *buf = NULL local
55 uintptr_t *buf = NULL; local
    [all...]

Completed in 1874 milliseconds

1 2 3 4 5 6 7 8 91011>>