Home
last modified time | relevance | path

Searched refs:buf (Results 1 – 14 of 14) sorted by relevance

/development/tools/line_endings/
Dline_endings.c9 static void to_unix(char* buf);
10 static void unix_to_dos(char* buf2, const char* buf);
22 char buf[BUFSIZE*2+3]; member
64 node->buf[0] = 0; in main()
71 char buf[BUFSIZE+2]; in main() local
74 amt = read(fd, buf, amt2); in main()
79 buf[amt2] = '\0'; in main()
80 to_unix(buf); in main()
82 strcpy(node->buf, buf); in main()
85 unix_to_dos(buf2, buf); in main()
[all …]
/development/vndk/tools/definition-tool/tools/
Dremove_dt_needed.py77 def _extract_buf_byte(buf, offset): argument
78 return buf[offset]
80 def _extract_buf_byte(buf, offset): argument
81 return ord(buf[offset])
84 def _extract_zero_terminated_buf_slice(buf, offset): argument
88 while _extract_buf_byte(buf, end) != 0:
92 return buf[offset:end]
96 def _extract_zero_terminated_str(buf, offset): argument
97 buf_slice = _extract_zero_terminated_buf_slice(buf, offset)
100 def _extract_zero_terminated_str(buf, offset): argument
[all …]
/development/tools/logblame/
Dlogs.py19 def __init__(self, buf=None, timestamp=None, uid=None, pid=None, tid=None, level=None, argument
21 self.buf = buf
32 return "{%s} {%s} {%s} {%s} {%s} {%s}/{%s}: {%s}" % (self.buf, self.timestamp, self.uid,
37 self.buf == other.buf
48 logLine = LogLine(self.buf, self.timestamp, self.uid, self.pid, self.tid, self.level,
79 buf = None
108 buf = m.group(1)
117 buf = m.group(1)
126 buf=buf,
144 buf=buf,
Danalyze_logs.py181 rawlogs.write("%-10s %s %-6s %-6s %-6s %s/%s: %s\n" %(logLine.buf, logLine.timestamp,
/development/vndk/tools/sourcedr/sourcedr/blueprint/
Dblueprint.py120 def __init__(self, buf, pos, message): argument
124 self.line, self.column = Lexer.compute_line_column(buf, pos)
136 def __init__(self, buf, offset=0): argument
144 self.buf = buf
161 raise LexerError(self.buf, self.start,
168 buf_len = len(self.buf)
171 self.token, self.end, self.literal = self.lex(self.buf, self.start)
181 def compute_line_column(buf, pos): argument
185 prior = buf[0:pos]
205 def decode_oct(buf, offset, start, end): argument
[all …]
/development/host/windows/usb/adb_winapi_test/
Dadb_winapi_test.cpp124 char buf[4096]; in TestEnumInterfaces() member
126 unsigned long buf_size = sizeof(buf); in TestEnumInterfaces()
141 buf_size = sizeof(buf); in TestEnumInterfaces()
173 char buf[4096]; in TestInterfaces() member
175 unsigned long buf_size = sizeof(buf); in TestInterfaces()
180 buf_size = sizeof(buf); in TestInterfaces()
220 char* buf = NULL; in TestInterfaceName() local
240 buf = reinterpret_cast<char*>(malloc(buf_size)); in TestInterfaceName()
241 if (buf == NULL) { in TestInterfaceName()
247 memset(buf, buf_fill, buf_size); in TestInterfaceName()
[all …]
/development/tools/axl/
DudpServer.py7 buf = open("random.dat").read()
24 svrsocket.sendto("%3.3s%s" % (count, buf), address)
/development/samples/BackupRestore/src/com/example/android/backuprestore/
DMultiRecordExampleAgent.java148 byte[] buf = bufStream.toByteArray(); in writeBackupEntity()
149 data.writeEntityHeader(key, buf.length); in writeBackupEntity()
150 data.writeEntityData(buf, buf.length); in writeBackupEntity()
/development/vndk/tools/sourcedr/sourcedr/
Dninja.py257 def match(self, buf, pos): argument
258 match = self._matcher.match(buf, pos)
888 def _unpack_uint32(buf): argument
889 return struct.unpack('<I', buf)[0]
893 def _unpack_uint32_iter(buf): argument
894 for p in struct.iter_unpack('<I', buf):
938 buf = fp.read(4)
939 if not buf:
942 record_size = self._unpack_uint32(buf)
953 buf = fp.read(record_size)
[all …]
/development/vndk/tools/definition-tool/
Dvndk_definition_tool.py31 def get_py3_bytes(buf): argument
32 return buf
64 def get_py3_bytes(buf): argument
65 return Py3Bytes(buf)
266 def unpack_from(cls, buf, offset=0): argument
267 unpacked = struct.unpack_from(cls.struct_fmt, buf, offset)
492 def _extract_zero_terminated_buf_slice(self, buf, offset): argument
494 end = buf.find(b'\0', offset)
496 return buf[offset:]
497 return buf[offset:end]
[all …]
/development/ndk/platforms/android-14/include/
Dzlib.h1106 ZEXTERN int ZEXPORT gzread OF((gzFile file, voidp buf, unsigned len));
1115 voidpc buf, unsigned len));
1142 ZEXTERN char * ZEXPORT gzgets OF((gzFile file, char *buf, int len));
1260 ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
1285 ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
/development/vndk/tools/definition-tool/tests/
Dtest_dex_file.py76 buf = classes_dex.read()
78 strs = set(DexFileReader.enumerate_dex_strings_buf(buf))
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/
DDeviceDetailFragment.java279 byte buf[] = new byte[1024]; in copyFile()
282 while ((len = inputStream.read(buf)) != -1) { in copyFile()
283 out.write(buf, 0, len); in copyFile()
/development/samples/ApiDemos/src/com/example/android/mmslib/pdu/
DPduComposer.java187 protected void arraycopy(byte[] buf, int pos, int length) { in arraycopy() argument
188 mMessage.write(buf, pos, length); in arraycopy()