HomeSort by relevance Sort by last modified time
    Searched refs:buf1 (Results 1 - 25 of 79) sorted by null

1 2 3 4

  /libcore/luni/src/main/java/org/apache/harmony/archive/util/
Util.java 56 * @param buf1
62 public static boolean asciiEqualsIgnoreCase(byte[] buf1, byte[] buf2) {
63 if (buf1 == null || buf2 == null) {
66 if (buf1 == buf2) {
69 if (buf1.length != buf2.length) {
73 for (int i = 0; i < buf1.length; i++) {
74 byte b1 = buf1[i];
  /libcore/luni/src/test/java/tests/api/java/io/
ByteArrayInputStreamTest.java 154 byte[] buf1 = new byte[100];
159 is.read(buf1, 0, buf1.length);
163 assertTrue("Failed to mark correct position", new String(buf1, 0,
164 buf1.length).equals(new String(buf2, 0, buf2.length)));
217 byte[] buf1 = new byte[20];
220 is.read(buf1, 0, buf1.length);
222 new String(buf1, 0, buf1.length).equals
    [all...]
FilterInputStreamTest.java 145 byte[] buf1 = new byte[bufSize];
150 is.read(buf1, 0, bufSize);
152 is.read(buf1, 0, bufSize);
160 Arrays.equals(buf1, buf2));
167 is.read(buf1, 0, bufSize);
169 is.read(buf1, 0, bufSize);
173 Arrays.equals(buf1, buf2));
233 byte[] buf1 = new byte[100];
234 is.read(buf1);
236 new String(buf1, 0, buf1.length).equals
    [all...]
BufferedInputStreamTest.java 245 byte[] buf1 = new byte[100];
259 is.read(buf1, 0, buf1.length);
264 new String(buf1, 0, buf1.length).equals(new String(buf2, 0, buf2.length)));
277 new String(buf1, 0, buf1.length).equals(new String(buf2, 0, buf2.length)));
298 is.read(buf1, 0, buf1.length);
442 byte[] buf1 = new byte[100]
    [all...]
FileInputStreamTest.java 286 byte[] buf1 = new byte[100];
289 is.read(buf1);
292 new String(buf1, 0, buf1.length).equals(
297 is.read(buf1);
314 byte[] buf1 = new byte[100];
318 is.read(buf1, 0, buf1.length);
320 assertTrue("Failed to read correct data", new String(buf1, 0,
321 buf1.length).equals(fileString.substring(3000, 3100)))
    [all...]
  /system/core/toolbox/
cmp.c 13 char buf1[4096], buf2[4096]; local
62 res1 = read(fd1, &buf1, sizeof(buf1));
69 if(buf1[i] != buf2[i]) {
72 printf(" 0x%02x 0x%02x", buf1[i], buf2[i]);
  /external/astl/tests/
test_sstream.cpp 47 stringbuf buf1(str);
51 EXPECT_TRUE(buf1.str() == str);
61 stringbuf buf1(str);
66 std::streamsize len1 = buf1.in_avail();
  /external/stlport/test/unit/
cstring_test.cpp 45 char buf1[1], buf2[1]; local
46 CPPUNIT_CHECK( std::memcpy(buf1, buf2, 0) != NULL );
47 CPPUNIT_CHECK( std::memmove(buf1, buf2, 0) != NULL );
48 CPPUNIT_CHECK( std::memset(buf1, 0, 1) != NULL );
  /ndk/sources/android/stlport/test/unit/
cstring_test.cpp 45 char buf1[1], buf2[1]; local
46 CPPUNIT_CHECK( std::memcpy(buf1, buf2, 0) != NULL );
47 CPPUNIT_CHECK( std::memmove(buf1, buf2, 0) != NULL );
48 CPPUNIT_CHECK( std::memset(buf1, 0, 1) != NULL );
  /libcore/luni/src/test/java/org/apache/harmony/archive/tests/java/util/zip/
DeflaterInputStreamTest.java 128 byte[] buf1 = new byte[256];
131 assertEquals(23, dis.read(buf1, 0, 256));
144 dis.read(buf1, 0, 512);
168 dis.read(buf1, -1, -1);
174 dis.read(buf1, 0, -1);
181 dis.read(buf1, 0, 512);
187 dis.read(buf1, 0, 1);
211 dis.read(buf1, -1, -1);
217 dis.read(buf1, 0, -1);
  /frameworks/base/media/libstagefright/codecs/aacenc/src/asm/ARMV7/
PrePostMDCT_v7.s 40 VLD2.I32 {d13, d15}, [r3]! @ tr2 = *(buf1 - 1)@ ti1 = *(buf1 + 0)@
41 VLD2.I32 {d12, d14}, [r3]! @ tr2 = *(buf1 - 1)@ ti1 = *(buf1 + 0)@
108 VSUB.S32 Q5, Q13, Q12 @ *buf1-- = MULHIGH(sina, tr1) - MULHIGH(cosa, ti1)@
115 VADD.S32 Q4, Q10, Q11 @ *buf1-- = MULHIGH(cosa, tr2) + MULHIGH(sina, ti2)@
  /device/samsung/crespo/alsa-lib/src/control/
namehint.c 218 char *buf, *buf1 = NULL, *buf2; local
293 if (buf1 == NULL &&
296 buf1 = strdup(str);
297 if (buf1 == NULL) {
359 level = (buf1 == NULL ? 0 : strlen(buf1)) + 1 + strlen(str);
362 if (buf1 != NULL) {
369 memcpy((char *)str, buf1, strlen(buf1));
371 free(buf1);
    [all...]
  /external/iproute2/tc/
m_nat.c 172 char buf1[256]; local
193 format_host(AF_INET, 4, &sel->old_addr, buf1, sizeof(buf1)),
  /frameworks/base/media/libstagefright/codecs/aacenc/src/
transform.c 284 int *buf1; local
286 buf1 = buf0 + num - 1;
297 tr2 = *(buf1 - 1);
298 ti1 = *(buf1 + 0);
303 *buf1-- = MULHIGH(cosb, ti2) - MULHIGH(sinb, tr2);
304 *buf1-- = MULHIGH(cosb, tr2) + MULHIGH(sinb, ti2);
319 int *buf1; local
321 buf1 = buf0 + num - 1;
332 ti2 = *(buf1 + 0);
333 tr2 = *(buf1 - 1);
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DigestInputStream2Test.java 112 byte buf1[] = new byte[bytesToRead + 5];
118 int bytesRead1 = dis.read(buf1, 5, bytesToRead);
126 if (buf1[i] != buf2[i]) {
  /external/bluetooth/glib/tests/
mainloop-test.c 105 char buf1[32]; local
112 if (!read_all (source, buf1, 32) ||
119 sprintf (result, "%d", atoi(buf1) + atoi(buf2));
216 char buf1[32]; local
219 sprintf (buf1, "%d", a);
222 write_all (in, buf1, 32);
  /libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
StringBuffer2Test.java 120 char[] buf1 = { 'H', 'e', 'l', 'l', 'o' }; local
122 sb.append(buf1, 0, buf1.length);
143 char buf1 = 'H'; local
145 sb.append(buf1);
269 String buf1 = "Hello"; local
271 sb.append(buf1);
516 StringBuffer buf1 = new StringBuffer("abcd"); local
518 buf1.insert(-1, (char[]) null);
542 StringBuffer buf1 = new StringBuffer("abcd") local
    [all...]
  /external/e2fsprogs/intl/
localcharset.c 145 char buf1[50+1]; local
169 if (fscanf (fp, "%50s %50s", buf1, buf2) < 2)
171 l1 = strlen (buf1);
189 strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1);
  /external/chromium/third_party/icu/source/test/cintltst/
bocu1tst.c 790 char buf1[80], buf2[80]; local
824 printBytes(prev, buf1);
825 log_verbose(" wD(%8ld) %s\n", i, buf1);
840 printBytes(prev, buf1);
842 log_verbose("ok: strcmp(wD(%8ld), wD(%8ld))=%2d %s%s\n", i-1, i, cmp, buf1, buf2);
846 printBytes(prev, buf1);
848 log_verbose("wrong: strcmp(wD(%8ld), wD(%8ld))=%2d %s%s\n", i-1, i, cmp, buf1, buf2);
855 printBytes((uint8_t *)"", buf1);
857 log_verbose(" wD(%8ld) %s%s\n", i-1, buf1, buf2);
utransts.c 248 char buf1[BUF_CAP]; local
282 utrans_getID(inverse1, buf1, BUF_CAP);
283 if(strcmp(buf1, TransID[i+1]) != 0){
284 log_err("FAIL :openInverse() for %s returned %s instead of %s\n", TransID[i], buf1, TransID[i+1]);
298 char buf1[BUF_CAP], buf2[BUF_CAP], buf3[BUF_CAP]; local
315 utrans_getID(t1, buf1, BUF_CAP);
319 if(strcmp(buf1, buf3) != 0 ||
320 strcmp(buf1, buf2) == 0) {
327 strcmp(buf1, buf3) == 0) {
  /external/clearsilver/util/
snprintf.c 761 char buf1[LONG_STRING]; local
803 snprintf (buf1, sizeof (buf1), fp_fmt[x], fp_nums[y]);
805 if (strcmp (buf1, buf2))
808 fp_fmt[x], buf1, buf2);
817 snprintf (buf1, sizeof (buf1), int_fmt[x], int_nums[y]);
819 if (strcmp (buf1, buf2))
822 int_fmt[x], buf1, buf2);
  /external/icu4c/test/cintltst/
bocu1tst.c 790 char buf1[80], buf2[80]; local
824 printBytes(prev, buf1);
825 log_verbose(" wD(%8ld) %s\n", i, buf1);
840 printBytes(prev, buf1);
842 log_verbose("ok: strcmp(wD(%8ld), wD(%8ld))=%2d %s%s\n", i-1, i, cmp, buf1, buf2);
846 printBytes(prev, buf1);
848 log_verbose("wrong: strcmp(wD(%8ld), wD(%8ld))=%2d %s%s\n", i-1, i, cmp, buf1, buf2);
855 printBytes((uint8_t *)"", buf1);
857 log_verbose(" wD(%8ld) %s%s\n", i-1, buf1, buf2);
utransts.c 248 char buf1[BUF_CAP]; local
282 utrans_getID(inverse1, buf1, BUF_CAP);
283 if(strcmp(buf1, TransID[i+1]) != 0){
284 log_err("FAIL :openInverse() for %s returned %s instead of %s\n", TransID[i], buf1, TransID[i+1]);
298 char buf1[BUF_CAP], buf2[BUF_CAP], buf3[BUF_CAP]; local
315 utrans_getID(t1, buf1, BUF_CAP);
319 if(strcmp(buf1, buf3) != 0 ||
320 strcmp(buf1, buf2) == 0) {
327 strcmp(buf1, buf3) == 0) {
  /external/stlport/src/c_locale_dummy/
c_locale_dummy.c 270 char buf1[64], buf2[64]; local
274 _STLP_STRNCPY(buf1, 64, s1, bufsize1); buf1[bufsize1] = 0;
277 ret = strcmp(buf1, buf2);
290 wchar_t buf1[64], buf2[64]; local
294 _STLP_WCSNCPY(buf1, 64, s1, bufsize1); buf1[bufsize1] = 0;
297 ret = wcscmp(buf1, buf2);
  /external/stlport/src/c_locale_glibc/
c_locale_glibc2.c 366 char buf1[64], buf2[64]; local
370 strncpy(buf1, s1, bufsize1); buf1[bufsize1] = 0;
373 ret = strcoll_l(buf1, buf2, (locale_t)__loc);
386 wchar_t buf1[64], buf2[64]; local
390 wcsncpy(buf1, s1, bufsize1); buf1[bufsize1] = 0;
393 ret = wcscoll_l(buf1, buf2, (locale_t)__loc);

Completed in 357 milliseconds

1 2 3 4