Home
last modified time | relevance | path

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

12

/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/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, path=None): argument
144 self.buf = buf
162 raise LexerError(self.buf, self.start,
169 buf_len = len(self.buf)
172 self.token, self.end, self.literal = self.lex(self.buf, self.start)
182 def compute_line_column(buf, pos): argument
186 prior = buf[0:pos]
206 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/ninja/
Dninja.py254 def match(self, buf, pos): argument
255 match = self._matcher.match(buf, pos)
885 def _unpack_uint32(buf): argument
886 return struct.unpack('<I', buf)[0]
890 def _unpack_uint32_iter(buf): argument
891 for p in struct.iter_unpack('<I', buf):
935 buf = fp.read(4)
936 if not buf:
939 record_size = self._unpack_uint32(buf)
950 buf = fp.read(record_size)
[all …]
/development/vndk/tools/definition-tool/
Dvndk_definition_tool.py32 def get_py3_bytes(buf): argument
33 return buf
65 def get_py3_bytes(buf): argument
66 return Py3Bytes(buf)
369 def unpack_from(cls, buf, offset=0): argument
370 unpacked = struct.unpack_from(cls.struct_fmt, buf, offset)
615 def _extract_zero_terminated_buf_slice(self, buf, offset): argument
617 end = buf.find(b'\0', offset)
619 return buf[offset:]
620 return buf[offset:end]
[all …]
/development/vndk/tools/definition-tool/tests/
Dtest_dex_file.py96 buf = classes_dex.read()
98 strs = set(DexFileReader.enumerate_dex_strings_buf(buf))
/development/ndk/zlib/
Dzlib.h1296 ZEXTERN int ZEXPORT gzread OF((gzFile file, voidp buf, unsigned len));
1325 voidpc buf, unsigned len));
1355 ZEXTERN char * ZEXPORT gzgets OF((gzFile file, char *buf, int len));
1552 ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
1583 ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/
DDeviceDetailFragment.java285 byte buf[] = new byte[1024]; in copyFile()
288 while ((len = inputStream.read(buf)) != -1) { in copyFile()
289 out.write(buf, 0, len); in copyFile()
/development/apps/DumpViewer/app/src/main/java/com/android/dumpviewer/
DDumpActivity.java532 final byte[] buf = new byte[1024 * 16]; in doInBackground()
535 while ((read = is.read(buf)) >= 0) { in doInBackground()
536 out.write(buf, 0, read); in doInBackground()
/development/tools/winscope/adb_proxy/
Dwinscope_proxy.py315 buf = tmp.read(1024)
316 if buf:
317 server.wfile.write(buf)
/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()
/development/samples/training/multiscreen/newsreader/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/basic/ActivityLifecycle/libs/
Dandroid-support-v13.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/basic/FragmentBasics/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/location-aware/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/AnimationsDemo/libs/
Dandroid-support-v13.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/InteractiveChart/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/EffectiveNavigation/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/ContactsList/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/ControllerSample/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...

12