/external/ltp/tools/pounder21/ |
run.c | 468 char buf[TEST_PATH_LEN], buf2[TEST_PATH_LEN]; local 494 snprintf(buf2, TEST_PATH_LEN, "%s|%s", 497 fd = strlen(buf2); 498 for (tmp = (index(buf2, '|') - buf2); tmp < fd; tmp++) { 499 if (buf2[tmp] == '/') { 500 buf2[tmp] = '-'; 501 } else if (buf2[tmp] == '|') { 502 buf2[tmp] = '/'; 514 fd = open(buf2, O_RDWR | O_CREAT | O_TRUNC | O_SYNC [all...] |
/hardware/intel/img/psb_video/fw/msvdx/ |
msvdx_bin.c | 176 unsigned int buf2[MTX_SIZE3]; local 183 fread(buf2, 1, LINKED_LIST_SIZE, fp_ll_dma); 185 fwrite(buf2, 1, LINKED_LIST_SIZE, ptr); 187 memset(buf2, UNINITILISE_MEM, fw_size); 188 buf2[fw_size/sizeof(unsigned int) - 1] = STACKGUARDWORD; 190 fwrite(buf2, 1, fw_size, ptr); 227 buf2[fw_size/sizeof(unsigned int) - 1] = STACKGUARDWORD; 229 fwrite(buf2, 1, fw_size, ptr);
|
/libcore/luni/src/test/java/libcore/java/io/ |
OldFilterInputStreamTest.java | 96 byte[] buf2 = new byte[bufSize]; 108 is.read(buf2, 0, bufSize); 110 Arrays.equals(buf1, buf2)); 121 is.read(buf2, 0, bufSize); 123 Arrays.equals(buf1, buf2)); 262 byte[] buf2 = new byte[bufSize]; 271 is.read(buf2, 0, bufSize); 273 Arrays.equals(buf1, buf2));
|
OldPushbackReaderTest.java | 248 char[] buf2 = str2.toCharArray(); local 252 tobj.unread(buf2); 254 tobj.unread(buf2); 263 tobj.read(buf2); 308 char[] buf2 = (str2 + str2 + str2).toCharArray(); local 312 tobj.unread(buf2, 15, 10); 314 tobj.unread(buf2, 15, 10); 323 tobj.read(buf2, 15, 10);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
BufferedInputStreamTest.java | 246 byte[] buf2 = new byte[100]; 251 is.read(buf2, 0, buf2.length); 254 buf1.length).equals(new String(buf2, 0, buf2.length))); 434 byte[] buf2 = new byte[10]; 438 is.read(buf2, 0, 10); 441 .equals(new String(buf2, 0, buf2.length)));
|
PushbackInputStreamTest.java | 168 byte[] buf2 = new byte[25]; 169 pis.read(buf2, 0, buf2.length); 170 assertTrue("b) Incorrect bytes read", new String(buf2, "UTF-8")
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
StringBuffer2Test.java | 84 char[] buf2 = { 'W', 'o', 'r', 'l', 'd' }; local 87 sb.append(buf2, 0, buf2.length); 101 char buf2 = 'W'; local 104 sb.append(buf2); 191 String buf2 = "World"; local 194 sb.append(buf2); 311 StringBuffer buf2 = new StringBuffer(""); local 312 buf2.getChars(0, 0, new char[5], 2);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_write/ |
2-1.c | 47 char buf2[BUF_SIZE2]; local 48 char *bufs[3] = { buf0, buf1, buf2 }; 134 if (memcmp(buf2, check + BUF_SIZE0 + BUF_SIZE1, BUF_SIZE2)) {
|
/frameworks/rs/support/java/src/android/support/v8/renderscript/ |
ScriptC.java | 99 byte[] buf2 = new byte[pgm.length * 2]; 100 System.arraycopy(pgm, 0, buf2, 0, pgm.length); 101 pgm = buf2;
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
sanitizer_printf_test.cc | 112 char buf2[1024]; local 113 snprintf(buf2, sizeof(buf2), fmt, arg1, arg2); 115 EXPECT_STREQ(buf2, buf);
|
/external/wpa_supplicant_8/src/drivers/ |
rfkill.c | 110 char buf2[31 + 11 + 1]; local 158 os_snprintf(buf2, sizeof(buf2), 160 rfk_phy = realpath(buf2, NULL);
|
/external/vboot_reference/tests/ |
vb21_host_key_tests.c | 43 uint8_t *buf, *buf2; local 97 buf2 = malloc(bufsize); 98 memcpy(buf2, buf, bufsize); 104 memcpy(buf, buf2, bufsize); 111 memcpy(buf, buf2, bufsize); 117 memcpy(buf, buf2, bufsize); 123 memcpy(buf, buf2, bufsize); 129 memcpy(buf, buf2, bufsize); 135 memcpy(buf, buf2, bufsize); 141 memcpy(buf, buf2, bufsize) [all...] |
/external/valgrind/memcheck/tests/ |
writev1.c | 16 static char buf2[K_1]; variable 31 buf_list[1] = buf2;
|
/external/libnl/lib/route/link/ |
inet6.c | 267 char buf[64], buf2[64]; local 294 nl_msec2str((uint64_t) value * 1000., buf2, sizeof(buf2)); 300 nl_msec2str(value, buf2, sizeof(buf2)); 304 snprintf(buf2, sizeof(buf2), "%u", value); 311 offset = 23 - strlen(buf2); 318 strncpy(&buf[offset], buf2, strlen(buf2)); [all...] |
/external/mesa3d/src/mesa/main/ |
debug.c | 484 GLubyte *buf2; local 488 buf2 = malloc(w * h * 3); /* 3 bpp */ 498 buf2[i*3+0] = (buf[i] >> 24) & 0xff; 499 buf2[i*3+1] = (buf[i] >> 16) & 0xff; 500 buf2[i*3+2] = (buf[i] >> 8) & 0xff; 504 write_ppm(filename, buf2, w, h, 3, 0, 1, 2, GL_TRUE); 509 free(buf2); 520 GLubyte *buf2; local 524 buf2 = malloc(w * h * 3); /* 3 bpp */ 533 buf2[i*3+0] = buf[i] [all...] |
/bionic/tests/ |
buffer_tests.cpp | 309 uint8_t* buf2 = new uint8_t[3*max_test_size]; local 323 buf2, g_double_aligns[i][2], g_double_aligns[i][3])); 348 delete[] buf2; 424 uint8_t* buf2 = &memory2[pagesize-i]; local 426 test_cmp_func(buf1, buf2, i); 442 uint8_t* buf2 = &memory2[pagesize-j]; local 444 test_miscmp_func(buf1, buf2, i, j);
|
netdb_test.cpp | 209 char buf2[512]; local 210 result = gethostbyname_r("localhost", &hent2, buf2, sizeof(buf2), &hp2, &err); 231 char buf2[512]; local 232 result = gethostbyname2_r("localhost", AF_INET, &hent2, buf2, sizeof(buf2), &hp2, &err); 260 char buf2[512]; local 261 result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent2, buf2, sizeof(buf2), &hp2, &err);
|
/system/extras/micro_bench/ |
micro_bench.cpp | 282 // alignments. The variables "buf1" and "buf2" will be pointers to the 295 uint8_t *buf2 = allocateAlignedMemory(total_size, (cmd_data).dst_align, (cmd_data).dst_or_mask); \ 296 if (!buf2) \ 338 // "buf2" will be the two buffers that BENCH code should use. In order 340 // or "buf2" and into the next sequential buffer, the code strides through 341 // both buffers. Specifically, as "buf1" and "buf2" values are iterated in 342 // BENCH code, the end of "buf1" and "buf2" is guaranteed to be at least 343 // "stride_size" away from the next "buf1" and "buf2". 370 uint8_t *buf2; \ 374 buf2 = buffer2 + k * buf2_incr; [all...] |
/device/google/marlin/dataservices/datatop/src/ |
datatop_str.c | 44 * Will read from buf2 until either a '\n' is reached, or the end of buf1 45 * or buf2 is reached. The result is guaranteed to be null terminated. 49 * @param buf2 Source buffer to read lines from. Const, will not be 55 int dt_read_line(char *buf1, int len1, const char *buf2, int len2, int start) 62 if (buf1 == 0 || buf2 == 0) 69 buf1[i] = buf2[j];
|
/external/boringssl/src/crypto/ |
thread_test.cc | 194 uint8_t buf2[1]; 195 RAND_bytes(buf2, sizeof(buf2));
|
/external/iproute2/tc/ |
m_nat.c | 173 char buf2[256]; local 195 format_host(AF_INET, 4, &sel->new_addr, buf2, sizeof(buf2)),
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
DigestInputStream2Test.java | 113 byte buf2[] = new byte[bytesToRead + 5]; 119 int bytesRead2 = inStream1.read(buf2, 5, bytesToRead); 126 if (buf1[i] != buf2[i]) {
|
/toolchain/binutils/binutils-2.25/gprof/ |
source.c | 201 struct stat buf1, buf2; 204 && stat (fname, &buf2) == 0 205 && buf1.st_ino == buf2.st_ino) 200 struct stat buf1, buf2; local
|
/external/liblzf/ |
lzf.c | 181 u8 buf2[MAX_BLOCKSIZE + MAX_HDR_SIZE + 16]; local 187 cs = lzf_compress (&buf1[MAX_HDR_SIZE], us, &buf2[MAX_HDR_SIZE], us > 4 ? us - 4 : us); 190 header = &buf2[MAX_HDR_SIZE - TYPE1_HDR_SIZE]; 223 u8 buf2[MAX_BLOCKSIZE + MAX_HDR_SIZE + 16]; local 296 if (lzf_decompress (buf1, cs, buf2, us) != us) 302 if (wwrite (to, buf2, us))
|
/external/ltp/testcases/kernel/io/disktest/ |
childmain.c | 590 char *buf2 = NULL, *buffer2 = NULL; /* 'buf' is the aligned 'buffer' */ local 669 buf2 = (char *)BUFALIGN(buffer2); 780 buf2); 789 fill_buffer(buf2, target.trsiz, &(target.lba), 792 memcpy(buf2, env->data_buffer, 796 mark_buffer(buf2, target.trsiz * BLK_SIZE, 804 tcnt = Write(fd, buf2, target.trsiz * BLK_SIZE); 807 tcnt = Write(fd, buf2, target.trsiz * BLK_SIZE); 837 fd, buf2); 887 buf2); [all...] |