/bootable/recovery/minadbd/ |
utils.c | 22 buff_addc (char* buff, char* buffEnd, int c) 24 int avail = buffEnd - buff; 27 return buff; 30 buff[0] = 0; 31 return buff + 1; 34 buff[0] = (char) c; /* add char and terminating zero */ 35 buff[1] = 0; 36 return buff + 1; 40 buff_adds (char* buff, char* buffEnd, const char* s) 44 return buff_addb(buff, buffEnd, s, slen) [all...] |
/system/core/adb/ |
utils.c | 22 buff_addc (char* buff, char* buffEnd, int c) 24 int avail = buffEnd - buff; 27 return buff; 30 buff[0] = 0; 31 return buff + 1; 34 buff[0] = (char) c; /* add char and terminating zero */ 35 buff[1] = 0; 36 return buff + 1; 40 buff_adds (char* buff, char* buffEnd, const char* s) 44 return buff_addb(buff, buffEnd, s, slen) [all...] |
/external/clang/test/CodeGen/ |
2003-11-26-PointerShift.c | 3 unsigned long do_csum(const unsigned char *buff, int len, unsigned long result) { 4 if (2 & (unsigned long) buff) result += 1;
|
/system/extras/tests/bionic/libc/common/ |
test_strftime_2039.c | 10 char buff[256]; local 17 if (strftime(buff, sizeof buff, "%s", &tm) == 0) { 21 printf("seconds since epoch: %s\n", buff); 24 if (buff[0] == '-') { 30 if (strftime(buff, sizeof buff, "%c", &tm) == 0) { 34 printf("date string : %s\n", buff);
|
test_libgen.c | 65 "KO: basename_r(\"%s\", <buff>, %d) returned %d (expected %d)\n", 73 "KO: basename_r(\"%s\", <buff>, %d) returned -1 with errno=%d (expected %d)\n", 81 "KO: basename_r(\"%s\", <buff>, %d) returned \"%s\", expected \"%s\"\n", 86 printf("OK: basename_r(\"%s\", <buff>, %d) returned \"%s\"\n", 98 "KO: dirname_r(\"%s\", <buff>, %d) returned %d (expected %d)\n", 106 "KO: dirname_r(\"%s\", <buff>, %d) returned -1 with errno=%d (expected %d)\n", 114 "KO: dirname_r(\"%s\", <buff>, %d) returned \"%s\", expected \"%s\"\n", 119 printf("OK: dirname_r(\"%s\", <buff>, %d) returned \"%s\"\n", 176 char buff[256]; local 188 test_basename_r( "", ".", -1, buff, 0, ERANGE ) [all...] |
/system/core/init/ |
bootchart.c | 50 unix_read(int fd, void* buff, int len) 53 do { ret = read(fd, buff, len); } while (ret < 0 && errno == EINTR); 58 unix_write(int fd, const void* buff, int len) 61 do { ret = write(fd, buff, len); } while (ret < 0 && errno == EINTR); 66 proc_read(const char* filename, char* buff, size_t buffsize) 71 len = unix_read(fd, buff, buffsize-1); 74 buff[len > 0 ? len : 0] = 0; 87 file_buff_open( FileBuff buff, const char* path ) 89 buff->count = 0; 90 buff->fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, 0755) 187 char buff[65]; local 216 char buff[1024]; local 255 char buff[1024]; local 302 char buff[4]; local 362 char buff[2]; local [all...] |
/external/stlport/src/ |
string.cpp | 12 wchar_t* buff = new wchar_t[size+1]; local 13 mbstowcs(buff, ascii, size); 14 buff[size] = 0x00; 15 wstring ret(buff); 16 delete[] buff; 21 char* buff = new char[size+1]; local 22 wcstombs(buff, wide, size); 23 buff[size] = 0; 24 string ret(buff); 25 delete[] buff; [all...] |
/ndk/sources/cxx-stl/stlport/src/ |
string.cpp | 12 wchar_t* buff = new wchar_t[size+1]; local 13 mbstowcs(buff, ascii, size); 14 buff[size] = 0x00; 15 wstring ret(buff); 16 delete[] buff; 21 char* buff = new char[size+1]; local 22 wcstombs(buff, wide, size); 23 buff[size] = 0; 24 string ret(buff); 25 delete[] buff; [all...] |
/external/tagsoup/src/org/ccil/cowan/tagsoup/ |
ScanHandler.java | 29 public void adup(char[] buff, int offset, int length) throws SAXException; 35 public void aname(char[] buff, int offset, int length) throws SAXException; 41 public void aval(char[] buff, int offset, int length) throws SAXException; 46 public void cdsect(char[] buff, int offset, int length) throws SAXException; 52 public void decl(char[] buff, int offset, int length) throws SAXException; 58 public void entity(char[] buff, int offset, int length) throws SAXException; 64 public void eof(char[] buff, int offset, int length) throws SAXException; 70 public void etag(char[] buff, int offset, int length) throws SAXException; 76 public void gi(char[] buff, int offset, int length) throws SAXException; 82 public void pcdata(char[] buff, int offset, int length) throws SAXException [all...] |
PYXScanner.java | 48 char[] buff = null; local 52 if (buff == null || buff.length < size) { 53 buff = new char[size]; 55 s.getChars(0, size, buff, 0); 56 switch (buff[0]) { 59 h.stagc(buff, 0, 0); 62 h.gi(buff, 1, size - 1); 67 h.stagc(buff, 0, 0); 70 h.etag(buff, 1, size - 1) [all...] |
PYXWriter.java | 37 public void adup(char[] buff, int offset, int length) throws SAXException { 42 public void aname(char[] buff, int offset, int length) throws SAXException { 44 theWriter.write(buff, offset, length); 46 attrName = new String(buff, offset, length); 49 public void aval(char[] buff, int offset, int length) throws SAXException { 50 theWriter.write(buff, offset, length); 55 public void cmnt(char [] buff, int offset, int length) throws SAXException { 57 // theWriter.write(buff, offset, length); 61 public void entity(char[] buff, int offset, int length) throws SAXException { } 65 public void eof(char[] buff, int offset, int length) throws SAXException [all...] |
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/crypto/ |
Base64.java | 71 byte buff[] = new byte[4]; 86 buff[bpos++] = (byte) (c - 'A'); 90 buff[bpos++] = (byte) ((c - 'a') + 26); 94 buff[bpos++] = (byte) ((c - '0') + 52); 98 buff[bpos++] = 62; 102 buff[bpos++] = 63; 106 buff[bpos++] = 64; 117 if (buff[0] == 64) 120 if (buff[1] == 64) 123 if (buff[2] == 64 [all...] |
/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_printf.cc | 26 static int AppendChar(char **buff, const char *buff_end, char c) { 27 if (*buff < buff_end) { 28 **buff = c; 29 (*buff)++; 36 static int AppendUnsigned(char **buff, const char *buff_end, u64 num, 52 result += AppendChar(buff, buff_end, (digit < 10) ? '0' + digit 58 static int AppendSignedDecimal(char **buff, const char *buff_end, s64 num) { 61 result += AppendChar(buff, buff_end, '-'); 64 result += AppendUnsigned(buff, buff_end, (u64)num, 10, 0); 68 static int AppendString(char **buff, const char *buff_end, const char *s) [all...] |
/bionic/libc/unistd/ |
perror.c | 34 char buff[256]; local 36 strerror_r( errno, buff, sizeof(buff) ); 42 write( 2, buff, strlen(buff) );
|
ptsname.c | 37 static char buff[64]; local 42 snprintf( buff, sizeof(buff), "/dev/pts/%u", pty_num ); 43 return buff;
|
ptsname_r.c | 38 char buff[64]; local 51 len = snprintf( buff, sizeof(buff), "/dev/pts/%u", pty_num ); 56 memcpy( buf, buff, len+1 );
|
/external/qemu/android/utils/ |
bufprint.c | 77 bufprint_app_dir(char* buff, char* end) 91 return bufprint(buff, end, "%s", path); 110 bufprint_app_dir(char* buff, char* end) 127 return bufprint(buff, end, "%s", s); 135 bufprint_app_dir(char* buff, char* end) 155 return bufprint(buff, end, "%s", appDir); 159 bufprint_app_dir(char* buff, char* end) 161 return bufprint(buff, end, "."); 168 bufprint_config_path(char* buff, char* end) 173 return bufprint(buff, end, "%s\\%s", home, _ANDROID_PATH ) [all...] |
/external/qemu/ |
cbuffer.h | 20 uint8_t* buff; member in struct:__anon11918 27 cbuffer_reset( CBuffer* cb, void* buff, int size ) 29 cb->buff = buff;
|
/external/valgrind/main/none/tests/ |
res_search.c | 12 unsigned char buff[8000]; local 14 if(-1 == res_search(dn, 1, 1, buff, 8000)) 51 unsigned char buff[8000]; local 53 if(-1 == res_search(argv[1], 1, 1, buff, 8000))
|
/external/llvm/lib/VMCore/ |
GCOV.cpp | 90 bool GCOVFunction::read(GCOVBuffer &Buff, GCOV::GCOVFormat Format) { 91 if (!Buff.readFunctionTag()) 94 Buff.readInt(); // Function header length 95 Ident = Buff.readInt(); 96 Buff.readInt(); // Checksum #1 98 Buff.readInt(); // Checksum #2 100 Name = Buff.readString(); 102 Filename = Buff.readString(); 105 Buff.readArcTag(); 106 uint32_t Count = Buff.readInt() / 2 [all...] |
/development/tools/emulator/system/libqemu/ |
test_util.h | 31 int pipe_send( Pipe* pipe, const void* buff, size_t bufflen ); 32 int pipe_recv( Pipe* pipe, void* buff, size_t bufflen );
|
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/channel/ |
ChannelOutputStream.java | 30 byte[] buff = new byte[1]; 32 buff[0] = (byte) b; 34 write(buff, 0, 1);
|
/external/llvm/test/Transforms/ScalarRepl/ |
negative-memset.ll | 11 %buff = alloca [1 x i8], align 1 13 %0 = bitcast [1 x i8]* %buff to i8* 15 %arraydecay = getelementptr inbounds [1 x i8]* %buff, i32 0, i32 0
|
/external/libppp/src/ |
auth.c | 166 char *vector[6], buff[LINE_LEN]; local 173 while (fgets(buff, sizeof buff, fp)) { 175 if (buff[0] == '#') 177 buff[strlen(buff) - 1] = '\0'; 179 if ((n = MakeArgs(buff, vector, VECSIZE(vector), PARSE_REDUCE)) < 0) 211 char *vector[5], buff[LINE_LEN]; local 234 while (fgets(buff, sizeof buff, fp)) 294 char *vector[5], buff[LINE_LEN]; local 347 static char buff[LINE_LEN]; \/* vector[] will point here when returned *\/ local [all...] |
/external/libmtp/examples/ |
format.c | 29 char buff[2]; local 33 if ( fgets(buff, sizeof(buff), stdin) == NULL ) { 41 if (buff[0] == 'y') { 43 } else if (buff[0] == 'n') {
|