/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/ |
Utils.java | 66 char[] buf = new char[40]; // as long as we get, and actually we can't get this high, no units past zhao local 74 int x = buf.length; 78 buf[--x] = zh.levels[l]; 84 buf[--x] = zh.units[u++]; 92 if (x < buf.length-1 && u != 0) { 93 buf[x] = '*'; 96 buf[--x] = '*'; 98 buf[--x] = zh.digits[0]; 104 buf[--x] = zh.digits[d]; 113 int i = buf.length - 3 [all...] |
/external/bison/lib/ |
strerror.c | 39 static char buf[STACKBUF_LEN]; local 58 verify (sizeof buf >= sizeof (fmt) + INT_STRLEN_BOUND (n)); 59 sprintf (buf, fmt, n); 61 return buf; 66 if (sizeof buf <= len) 69 return memcpy (buf, msg, len + 1);
|
/external/compiler-rt/test/msan/ |
backtrace.cc | 11 void *buf[10]; local 12 int sz = backtrace(buf, sizeof(buf) / sizeof(*buf)); 15 if (!buf[i]) 17 char **s = backtrace_symbols(buf, sz);
|
/external/elfutils/libebl/ |
eblobjecttypename.c | 39 ebl_object_type_name (Ebl *ebl, int object, char *buf, size_t len) 43 res = ebl != NULL ? ebl->object_type_name (object, buf, len) : NULL; 48 snprintf (buf, len, "LOOS+%x", object - ET_LOOS); 51 snprintf (buf, len, "LOPROC+%x", object - ET_LOPROC); 53 snprintf (buf, len, "%s: %d", gettext ("<unknown>"), object); 55 res = buf;
|
/external/libcxx/test/std/re/re.alg/re.alg.replace/ |
test1.pass.cpp | 35 char buf[100] = {0}; local 36 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)), 39 assert(r.base() == buf+40); 40 assert(buf == std::string("123-555-1234, 123-555-2345, 123-555-3456")); 47 char buf[100] = {0}; local 48 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)), 52 assert(r.base() == buf+43); 53 assert(buf == std::string("123-$555-1234, 123-$555-2345, 123-$555-3456")); 60 char buf[100] = {0}; local 61 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)) 73 char buf[100] = {0}; local 86 char buf[100] = {0}; local 99 char buf[100] = {0}; local [all...] |
test2.pass.cpp | 35 char buf[100] = {0}; local 36 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)), 39 assert(r.base() == buf+40); 40 assert(buf == std::string("123-555-1234, 123-555-2345, 123-555-3456")); 47 char buf[100] = {0}; local 48 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)), 52 assert(r.base() == buf+43); 53 assert(buf == std::string("123-$555-1234, 123-$555-2345, 123-$555-3456")); 60 char buf[100] = {0}; local 61 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)) 73 char buf[100] = {0}; local 86 char buf[100] = {0}; local 99 char buf[100] = {0}; local [all...] |
/external/ltp/tools/top-LTP/proc/ |
devname.c | 47 char buf[10000]; local 54 bytes = read(fd, buf, sizeof(buf) - 1); 57 buf[bytes] = '\0'; 58 p = buf; 106 static int driver_name(char *restrict const buf, int maj, int min) 123 sprintf(buf, "/dev/%s%d", tmn->name, min); /* like "/dev/ttyZZ255" */ 124 if (stat(buf, &sbuf) < 0) { 127 sprintf(buf, "/dev/%s", tmn->name); /* like "/dev/ttyZZ255" */ 128 if (stat(buf, &sbuf) < 0 273 static char buf[PAGE_SIZE]; local 327 static char buf[32]; local [all...] |
/external/selinux/libselinux/src/ |
deny_unknown.c | 16 char buf[20]; local 28 memset(buf, 0, sizeof(buf)); 29 ret = read(fd, buf, sizeof(buf) - 1); 34 if (sscanf(buf, "%d", &deny_unknown) != 1)
|
getenforce.c | 16 char buf[20]; local 28 memset(buf, 0, sizeof buf); 29 ret = read(fd, buf, sizeof buf - 1); 34 if (sscanf(buf, "%d", &enforce) != 1)
|
/frameworks/native/opengl/tests/EGLTest/ |
egl_cache_test.cpp | 48 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 50 ASSERT_EQ(0, mCache->getBlob("abcd", 4, buf, 4)); 51 ASSERT_EQ(0xee, buf[0]); 52 ASSERT_EQ(0xee, buf[1]); 53 ASSERT_EQ(0xee, buf[2]); 54 ASSERT_EQ(0xee, buf[3]); 58 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 61 ASSERT_EQ(4, mCache->getBlob("abcd", 4, buf, 4)); 62 ASSERT_EQ('e', buf[0]); 63 ASSERT_EQ('f', buf[1]) 69 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 98 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
HeapByteBufferTest.java | 26 buf = ByteBuffer.allocate(BUFFER_LENGTH); 27 baseBuf = buf; 32 buf = null; 50 assertFalse(buf.isDirect()); 54 assertTrue(buf.hasArray()); 58 assertFalse(buf.isReadOnly());
|
/prebuilts/misc/common/swig/include/2.0.11/python/ |
pybuffer.i | 17 (int res, Py_ssize_t size = 0, void *buf = 0) { 18 res = PyObject_AsWriteBuffer($input, &buf, &size); 23 $1 = ($1_ltype) buf; 43 (int res, Py_ssize_t size = 0, void *buf = 0) { 44 res = PyObject_AsWriteBuffer($input, &buf, &size); 49 $1 = ($1_ltype) buf; 69 (int res, Py_ssize_t size = 0, const void *buf = 0) { 70 res = PyObject_AsReadBuffer($input, &buf, &size); 75 $1 = ($1_ltype) buf; 97 (int res, Py_ssize_t size = 0, const void *buf = 0) [all...] |
/prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.alg/re.alg.replace/ |
test1.pass.cpp | 34 char buf[100] = {0}; local 35 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)), 38 assert(r.base() == buf+40); 39 assert(buf == std::string("123-555-1234, 123-555-2345, 123-555-3456")); 46 char buf[100] = {0}; local 47 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)), 51 assert(r.base() == buf+43); 52 assert(buf == std::string("123-$555-1234, 123-$555-2345, 123-$555-3456")); 59 char buf[100] = {0}; local 60 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)) 72 char buf[100] = {0}; local 85 char buf[100] = {0}; local 98 char buf[100] = {0}; local [all...] |
test2.pass.cpp | 34 char buf[100] = {0}; local 35 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)), 38 assert(r.base() == buf+40); 39 assert(buf == std::string("123-555-1234, 123-555-2345, 123-555-3456")); 46 char buf[100] = {0}; local 47 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)), 51 assert(r.base() == buf+43); 52 assert(buf == std::string("123-$555-1234, 123-$555-2345, 123-$555-3456")); 59 char buf[100] = {0}; local 60 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)) 72 char buf[100] = {0}; local 85 char buf[100] = {0}; local 98 char buf[100] = {0}; local [all...] |
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/re/re.alg/re.alg.replace/ |
test1.pass.cpp | 35 char buf[100] = {0}; local 36 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)), 39 assert(r.base() == buf+40); 40 assert(buf == std::string("123-555-1234, 123-555-2345, 123-555-3456")); 47 char buf[100] = {0}; local 48 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)), 52 assert(r.base() == buf+43); 53 assert(buf == std::string("123-$555-1234, 123-$555-2345, 123-$555-3456")); 60 char buf[100] = {0}; local 61 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)) 73 char buf[100] = {0}; local 86 char buf[100] = {0}; local 99 char buf[100] = {0}; local [all...] |
test2.pass.cpp | 35 char buf[100] = {0}; local 36 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)), 39 assert(r.base() == buf+40); 40 assert(buf == std::string("123-555-1234, 123-555-2345, 123-555-3456")); 47 char buf[100] = {0}; local 48 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)), 52 assert(r.base() == buf+43); 53 assert(buf == std::string("123-$555-1234, 123-$555-2345, 123-$555-3456")); 60 char buf[100] = {0}; local 61 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)) 73 char buf[100] = {0}; local 86 char buf[100] = {0}; local 99 char buf[100] = {0}; local [all...] |
/toolchain/binutils/binutils-2.25/libiberty/ |
getcwd.c | 41 getcwd (char *buf, size_t len) 52 if (!buf) { 53 buf = (char*)malloc(len); 54 if (!buf) { 59 strcpy (buf, ourbuf); 61 return buf;
|
/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
MessageDigestSink.java | 35 public void consume(byte[] buf, int offset, int length) { 37 md.update(buf, offset, length); 42 public void consume(ByteBuffer buf) { 43 int originalPosition = buf.position(); 47 buf.position(originalPosition); 48 md.update(buf);
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
PacketReflector.java | 64 private static void swapBytes(byte[] buf, int pos1, int pos2, int len) { 66 byte b = buf[pos1 + i]; 67 buf[pos1 + i] = buf[pos2 + i]; 68 buf[pos2 + i] = b; 72 private static void swapAddresses(byte[] buf, int version) { 86 swapBytes(buf, addrPos, addrPos + addrLen, addrLen); 91 private void processTcpPacket(byte[] buf, int version, int len, int hdrLen) { 97 swapAddresses(buf, version); 100 writePacket(buf, len) [all...] |
/system/core/libsuspend/ |
autosuspend_wakeup_count.c | 47 char buf[80]; local 60 strerror_r(errno, buf, sizeof(buf)); 61 ALOGE("Error reading from %s: %s\n", SYS_POWER_WAKEUP_COUNT, buf); 73 strerror_r(errno, buf, sizeof(buf)); 74 ALOGE("Error waiting on semaphore: %s\n", buf); 82 strerror_r(errno, buf, sizeof(buf)); 83 ALOGE("Error writing to %s: %s\n", SYS_POWER_WAKEUP_COUNT, buf); 108 char buf[80]; local 127 char buf[80]; local 161 char buf[80]; local [all...] |
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/debug/ |
DebugEventSocketProxy.java | 150 String buf = serializeToken(t); local 151 transmit("consumeToken\t"+buf); 155 String buf = serializeToken(t); local 156 transmit("consumeHiddenToken\t"+buf); 189 StringBuffer buf = new StringBuffer(50); local 190 buf.append("exception\t"); 191 buf.append(e.getClass().getName()); 193 buf.append("\t"); 194 buf.append(e.index); 195 buf.append("\t") 211 StringBuffer buf = new StringBuffer(50); local 221 StringBuffer buf = new StringBuffer(50); local 231 StringBuffer buf = new StringBuffer(50); local 274 StringBuffer buf = new StringBuffer(50); local 287 StringBuffer buf = new StringBuffer(50); local 326 StringBuffer buf = new StringBuffer(50); local [all...] |
/external/iproute2/include/ |
rt_names.h | 6 const char *rtnl_rtprot_n2a(int id, char *buf, int len); 7 const char *rtnl_rtscope_n2a(int id, char *buf, int len); 8 const char *rtnl_rttable_n2a(__u32 id, char *buf, int len); 9 const char *rtnl_rtrealm_n2a(int id, char *buf, int len); 10 const char *rtnl_dsfield_n2a(int id, char *buf, int len); 11 const char *rtnl_group_n2a(int id, char *buf, int len); 20 const char *inet_proto_n2a(int proto, char *buf, int len); 21 int inet_proto_a2n(const char *buf); 24 const char * ll_type_n2a(int type, char *buf, int len); 26 int type, char *buf, int blen) [all...] |
/external/lzma/Java/Tukaani/src/org/tukaani/xz/simple/ |
SPARC.java | 22 public int code(byte[] buf, int off, int len) { 27 if ((buf[i] == 0x40 && (buf[i + 1] & 0xC0) == 0x00) 28 || (buf[i] == 0x7F && (buf[i + 1] & 0xC0) == 0xC0)) { 29 int src = ((buf[i] & 0xFF) << 24) 30 | ((buf[i + 1] & 0xFF) << 16) 31 | ((buf[i + 2] & 0xFF) << 8) 32 | (buf[i + 3] & 0xFF); 45 buf[i] = (byte)(dest >>> 24) [all...] |
/external/strace/ |
oldstat.c | 41 struct __old_kernel_stat buf; local 42 if (umove_or_printaddr(tcp, addr, &buf)) 46 .dev = zero_extend_signed_to_ull(buf.st_dev), 47 .ino = zero_extend_signed_to_ull(buf.st_ino), 48 .rdev = zero_extend_signed_to_ull(buf.st_rdev), 49 .size = zero_extend_signed_to_ull(buf.st_size), 50 .mode = zero_extend_signed_to_ull(buf.st_mode), 51 .nlink = zero_extend_signed_to_ull(buf.st_nlink), 52 .uid = zero_extend_signed_to_ull(buf.st_uid), 53 .gid = zero_extend_signed_to_ull(buf.st_gid) [all...] |
/external/ltp/testcases/kernel/fs/ftest/ |
libftest.c | 31 char *buf, val; local 38 buf = (char *)iov->iov_base; 39 val = *((char *)buf); 43 if (buf[i] != val) { 46 buf[idx] & 0xff); 49 buf[idx] & 0xff); 61 tst_resm(TINFO, "\t%" PRIx32 "x", buf[idx] & 0xff); 63 tst_resm(TINFO, "\t%d*%" PRIx32 "x", i - idx, buf[idx]); 71 void *buf; local 75 for (buf = bits; size > 0; --size, ++buf) [all...] |