Searched refs:len (Results 126 - 150 of 208) sorted by relevance

123456789

/system/core/debuggerd/
H A Dbacktrace.c77 size_t len = strlen(threadname); local
78 if (len && threadname[len - 1] == '\n') {
79 threadname[len - 1] = '\0';
H A Ddebuggerd.c60 int len; local
64 len = strlen(string);
67 amt = write(fd, string, len);
171 size_t len = strlen(line); local
172 if (len > 6 && !memcmp(line, "Tgid:\t", 6)) {
175 } else if (len > 5 && !memcmp(line, "Uid:\t", 5)) {
178 } else if (len > 5 && !memcmp(line, "Gid:\t", 5)) {
189 int len = sizeof(cr); local
190 int status = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &cr, &len);
/system/core/adb/
H A Dsysdeps_win32.c84 int (*_fh_read) ( FH f, void* buf, int len );
85 int (*_fh_write)( FH f, const void* buf, int len );
228 _fh_file_read( FH f, void* buf, int len )
232 if ( !ReadFile( f->fh_handle, buf, (DWORD)len, &read_bytes, NULL ) ) {
233 D( "adb_read: could not read %d bytes from %s\n", len, f->name );
236 } else if (read_bytes < (DWORD)len) {
243 _fh_file_write( FH f, const void* buf, int len )
247 if ( !WriteFile( f->fh_handle, buf, (DWORD)len, &wrote_bytes, NULL ) ) {
248 D( "adb_file_write: could not write %d bytes from %s\n", len, f->name );
251 } else if (wrote_bytes < (DWORD)len) {
402 adb_read(int fd, void* buf, int len) argument
414 adb_write(int fd, const void* buf, int len) argument
[all...]
H A Dsysdeps.h115 extern int adb_read(int fd, void* buf, int len);
116 extern int adb_write(int fd, const void* buf, int len);
128 static __inline__ int unix_read(int fd, void* buf, size_t len) argument
130 return read(fd, buf, len);
135 static __inline__ int unix_write(int fd, const void* buf, size_t len) argument
137 return write(fd, buf, len);
358 static __inline__ int adb_read(int fd, void* buf, size_t len) argument
360 return read(fd, buf, len);
366 static __inline__ int adb_write(int fd, const void* buf, size_t len) argument
368 return write(fd, buf, len);
[all...]
H A Dusb_osx.c452 int usb_write(usb_handle *handle, const void *buf, int len) argument
456 if (!len)
474 handle->interface, handle->bulkOut, (void *)buf, len);
478 if(!(len & handle->zero_mask)) {
492 int usb_read(usb_handle *handle, void *buf, int len) argument
495 UInt32 numBytes = len;
497 if (!len) {
/system/core/libcutils/
H A Dashmem-host.c68 /* truncate the file to `len' bytes */
86 int ashmem_pin_region(int fd, size_t offset, size_t len) argument
91 int ashmem_unpin_region(int fd, size_t offset, size_t len) argument
/system/netd/
H A DIdletimerController.cpp127 size_t len = strnlen(cmd, 255); local
130 if (len == 255) {
H A DThrottleController.cpp45 size_t len = strnlen(cmd, 255); local
48 if (len == 255) {
H A DDnsProxyListener.cpp66 static bool sendLenAndData(SocketClient *c, const int len, const void* data) { argument
67 uint32_t len_be = htonl(len);
69 (len == 0 || c->sendData(data, len) == 0);
/system/core/libmincrypt/
H A Dsha.c147 void SHA_update(SHA_CTX* ctx, const void* data, int len) { argument
151 ctx->count += len;
153 while (len > sizeof(ctx->buf) - i) {
155 len -= sizeof(ctx->buf) - i;
161 while (len--) {
245 void SHA_update(SHA_CTX *ctx, const void *data, int len) { argument
249 ctx->count += len;
251 while (len--) {
296 const uint8_t* SHA(const void *data, int len, uint8_t *digest) { argument
301 SHA_update(&ctx, data, len);
[all...]
/system/core/toolbox/grep/
H A Dgrep.c226 add_pattern(char *pat, size_t len) argument
237 if (len > 0 && pat[len - 1] == '\n')
238 --len;
240 pattern[patterns] = grep_malloc(len + 1);
241 memcpy(pattern[patterns], pat, len);
242 pattern[patterns][len] = '\0';
290 size_t len; local
296 len = 0;
298 while ((rlen = getline(&line, &len,
[all...]
/system/core/include/cutils/
H A Dlog.h410 ((void) 0) /* not implemented -- must combine len with string */
448 #define android_bWriteLog(tag, payload, len) \
449 __android_log_bwrite(tag, payload, len)
450 #define android_btWriteLog(tag, type, payload, len) \
451 __android_log_btwrite(tag, type, payload, len)
456 #define android_write1Log(str,len) do{}while (0)
/system/core/sh/
H A Dredir.c261 int len = 0; local
266 len = strlen(redir->nhere.doc->narg.text);
267 if (len <= PIPESIZE) {
268 xwrite(pip[1], redir->nhere.doc->narg.text, len);
282 xwrite(pip[1], redir->nhere.doc->narg.text, len);
/system/extras/tests/directiotest/
H A Ddirectiotest.c122 static void init_test_buf(void *buf, uint64_t start_blk, size_t len) argument
127 len /= sizeof(uint32_t);
128 for (i = 0; i < len; i++)
132 static void dump_hex(const void *buf, int len) argument
140 for (i = 0; i < len; i++) {
/system/extras/tests/sdcard/
H A Dstopwatch.cpp37 int len = snprintf((str), (size), (format), ## __VA_ARGS__); \
38 if (len < 0) return; \
39 if (len > static_cast<int>(size)) { \
43 (size) -= len; (str) += len; \
/system/vold/
H A DLoop.cpp81 int Loop::lookupActive(const char *id, char *buffer, size_t len) { argument
86 memset(buffer, 0, len);
123 strncpy(buffer, filename, len -1);
127 int Loop::create(const char *id, const char *loopFile, char *loopDeviceBuffer, size_t len) { argument
175 strncpy(loopDeviceBuffer, filename, len -1);
H A DDevmapper.cpp133 int Devmapper::lookupActive(const char *name, char *ubuffer, size_t len) { argument
162 snprintf(ubuffer, len, "/dev/block/dm-%u", minor);
167 unsigned int numSectors, char *ubuffer, size_t len) {
218 snprintf(ubuffer, len, "/dev/block/dm-%u", minor);
166 create(const char *name, const char *loopFile, const char *key, unsigned int numSectors, char *ubuffer, size_t len) argument
/system/bluetooth/bluez-clean-headers/bluetooth/
H A Dl2cap.h77 uint16_t len; member in struct:__anon248
86 uint16_t len; member in struct:__anon249
144 uint8_t len; member in struct:__anon255
/system/core/libsparse/
H A Dsimg_dump.py49 if len(args) == 0:
161 junk_len = len(FH.read())
/system/extras/libpagemap/
H A Dpm_kernel.c62 int pm_kernel_pids(pm_kernel_t *ker, pid_t **pids_out, size_t *len) { argument
111 *len = pids_count;
/system/core/logcat/
H A Dlogcat.cpp152 size_t size = sizeof(logger_entry) + buf->len;
170 //printf(">>> pri=%d len=%d msg='%s'\n",
299 else if (entry->entry.len != ret - sizeof(struct logger_entry)) {
301 entry->entry.len, ret - sizeof(struct logger_entry));
305 entry->entry.msg[entry->entry.len] = '\0';
632 int len; local
635 len = q - p;
637 len = strlen(p);
639 len = snprintf( devname, sizeof(devname), "/dev/%.*s", len,
[all...]
/system/core/liblog/
H A Dlogd_write.c251 int __android_log_bwrite(int32_t tag, const void *payload, size_t len) argument
258 vec[1].iov_len = len;
269 size_t len)
278 vec[2].iov_len = len;
268 __android_log_btwrite(int32_t tag, char type, const void *payload, size_t len) argument
/system/core/libnetutils/
H A Dpacket.c115 udp.len = htons(sizeof(udp) + size);
123 temp = udp.len;
220 dhcp_size = ntohs(packet.udp.len) - sizeof(packet.udp);
228 packet.ip.tot_len = packet.udp.len;
/system/core/toolbox/
H A Dmount.c67 int len = strlen(s); local
68 int newlen = extra->used_size + len;
71 len++; /* +1 for ',' */
90 extra->used_size += len;
/system/core/init/
H A Dinit.c92 int len = strlen(name); local
93 if ((len + 10) > PROP_NAME_MAX)
112 size_t len = strlen(key) + strlen(val) + 2; local
113 char *entry = malloc(len);
114 snprintf(entry, len, "%s=%s", key, val);
633 int len = snprintf( buff, sizeof(buff), "ro.kernel.%s", name ); local
635 if (len < (int)sizeof(buff))
828 int audit_callback(void *data, security_class_t cls, char *buf, size_t len) argument
830 snprintf(buf, len, "property=%s", !data ? "NULL" : (char *)data);

Completed in 394 milliseconds

123456789