Searched defs:length (Results 1 - 23 of 23) sorted by relevance

/system/core/libcutils/
H A Dcpu_info.c34 int length; local
H A Duevent.c32 ssize_t uevent_kernel_multicast_recv(int socket, void *buffer, size_t length) argument
35 return uevent_kernel_multicast_uid_recv(socket, buffer, length, &user);
48 size_t length, uid_t *user)
50 struct iovec iov = { buffer, length };
91 bzero(buffer, length);
47 uevent_kernel_multicast_uid_recv(int socket, void *buffer, size_t length, uid_t *user) argument
H A Dstrdup8to16.c40 * length of the UTF-16 string (which may contain embedded \0's)
148 * length of the UTF-16 string (which may contain embedded \0's)
180 * length is the number of characters in the UTF-8 string.
182 * length of the UTF-16 string (which may contain embedded \0's)
186 int length, size_t *out_len)
192 const char *end = utf8Str + length; /* This line */
185 strcpylen8to16(char16_t *utf16Str, const char*utf8Str, int length, size_t *out_len) argument
H A Dmspace.c258 size_t length; local
265 length = cs->top - (char *)cs;
266 if (munmap((char *)cs, length) != 0)
267 return length;
/system/security/keystore/
H A Dkeystore_cli.cpp61 uint16_t length = strlen(argv[i]); local
62 bytes[0] = length >> 8;
63 bytes[1] = length;
65 send(sock, argv[i], length, 0);
77 int length; local
83 length = bytes[0] << 8 | bytes[1];
84 for (offset = 0; offset < length; offset += i) {
85 i = recv(sock, &bytes[offset], length - offset, 0);
91 fwrite(bytes, 1, length, stdout);
H A Dkeystore_get.h36 * The first two arguments are the key and its length. The third argument
38 * KEYSTORE_MESSAGE_SIZE bytes. This function returns the length of the value or
40 static int keystore_get(const char *key, int length, char *value) argument
42 uint8_t bytes[2] = {length >> 8, length};
46 if (length < 0 || length > KEYSTORE_MESSAGE_SIZE) {
55 send(sock, key, length, 0) == length && shutdown(sock, SHUT_WR) == 0 &&
59 length
[all...]
H A Dkeystore_client.cpp78 int length = bytes[0] << 8 | bytes[1]; local
79 while (offset < length) {
80 int n = TEMP_FAILURE_RETRY(recv(sock, &data[offset], length - offset, 0));
88 reply->setLength(length);
90 ALOGW("truncated read from keystore for length");
113 void Keystore_Reply::setLength(size_t length) { argument
114 mLength = length;
117 size_t Keystore_Reply::length() const { function in class:Keystore_Reply
H A Dkeystore.cpp90 length = origLen;
96 int length; member in struct:Value
103 assert(length <= VALUE_SIZE);
104 length = orig->length;
105 value = new char[length + 1];
106 memcpy(value, orig->value, length);
107 value[length] = '\0';
126 size_t length; member in class:ValueString
161 * [0-o]. Therefore in the worst case the length o
166 int length = key->length; local
187 decode_key(uint8_t* out, const char* in, int length) argument
286 int32_t length; // in network byte order when encrypted member in struct:blob
505 size_t length = readFully(in, (uint8_t*) &rawBlob, sizeof(rawBlob)); local
860 recv_message(int sock, uint8_t* message, int length) argument
892 send_message(int sock, const uint8_t* message, int length) argument
[all...]
/system/core/toolbox/
H A Dioctl.c20 int length = -1; local
41 length = strtol(optarg, NULL, 0);
47 fprintf(stderr, "%s [-l <length>] [-a <argsize>] [-rdh] <device> <ioctlnr>\n"
78 length = 4;
81 if(length < 0) {
82 length = (argc - optind) * arg_size;
84 if(length) {
85 ioctl_args = calloc(1, length);
88 rem = length;
102 rem = length;
[all...]
H A Dmount.c213 int length; local
223 length = fread(buffer, 1, 100, f);
224 if (length > 0)
225 fwrite(buffer, 1, length, stdout);
226 } while (length > 0);
/system/core/libion/
H A Dion.c82 int ion_map(int fd, struct ion_handle *handle, size_t length, int prot, argument
97 *ptr = mmap(NULL, length, prot, flags, *map_fd, offset);
/system/vold/
H A DProcess.cpp37 int length; local
45 length = readlink(path, link, max- 1);
46 if (length <= 0)
48 link[length] = 0;
53 int length = strlen(mountPoint); local
54 if (length > 1 && strncmp(path, mountPoint, length) == 0) {
56 if (mountPoint[length - 1] == '/')
60 return (path[length] == 0 || path[length]
73 int length = read(fd, buffer, max - 1); local
[all...]
/system/core/libcorkscrew/
H A Dsymbol_table.c62 size_t length = sb.st_size; local
63 char* base = mmap(NULL, length, PROT_READ, MAP_PRIVATE, fd, 0);
188 munmap(base, length);
/system/extras/fatblock/
H A Dfatblock.c52 static int read_callback(char *buf, uint64_t length, uint64_t offset) argument
57 result = fs_read(&fs, buf, offset, length);
66 static int write_callback(const char *buf, uint64_t length, uint64_t offset) argument
68 DEBUG("writing to (%llu, %llu): we are read-only\n", offset, length);
/system/core/adb/
H A Dtransport_local.c88 int length = p->msg.data_length; local
96 if(writex(t->sfd, &p->msg, sizeof(amessage) + length)) {
H A Dusb_linux.c209 unsigned char length = bufptr[0]; local
214 bufptr += length;
216 if (length != USB_DT_INTERFACE_SIZE) {
271 bufptr += length;
/system/core/run-as/
H A Dpackage.c77 size_t length = 0; local
103 length = (size_t)st.st_size;
104 if ((off_t)length != st.st_size) {
110 address = TEMP_FAILURE_RETRY(mmap(NULL, length, PROT_READ, MAP_PRIVATE, fd, 0));
117 *filesize = length;
/system/core/sh/
H A Doutput.c109 open_mem(char *block, int length, struct output *file) argument
112 file->nleft = --length;
243 fmtstr(char *outbuf, size_t length, const char *fmt, ...) argument
250 strout.nleft = length;
256 outbuf[length - 1] = '\0';
/system/core/init/
H A Dproperty_service.c263 int fd, length; local
460 int fd, length; local
474 length = read(fd, value, sizeof(value) - 1);
475 if (length >= 0) {
476 value[length] = 0;
H A Dinit_parser.c264 ERROR("invalid zero-length prop name in '%s'\n", src);
547 int length = equals - name; local
548 if (length > PROP_NAME_MAX) {
551 memcpy(prop_name, name, length);
552 prop_name[length] = 0;
/system/extras/ext4_utils/
H A Dext4_utils.h49 static inline void *mmap64(void *addr, size_t length, int prot, int flags, argument
52 return __mmap2(addr, length, prot, flags, fd, offset >> 12);
/system/core/libusbhost/
H A Dusbhost.c246 int length; local
252 length = read(fd, device->desc, sizeof(device->desc));
253 D("usb_device_new read returned %d errno %d\n", length, errno);
254 if (length < 0)
259 device->desc_length = length;
455 int length,
469 ctrl.wLength = length;
478 int length,
484 if (length > MAX_USBFS_BUFFER_SIZE)
485 length
449 usb_device_control_transfer(struct usb_device *device, int requestType, int request, int value, int index, void* buffer, int length, unsigned int timeout) argument
475 usb_device_bulk_transfer(struct usb_device *device, int endpoint, void* buffer, int length, unsigned int timeout) argument
[all...]
/system/bluetooth/bluez-clean-headers/bluetooth/
H A Dhci.h306 uint8_t length; member in struct:__anon4
325 uint8_t length; member in struct:__anon6
1445 uint16_t length; member in struct:__anon142
1537 uint8_t length; member in struct:__anon153
1545 uint8_t length; member in struct:__anon154
1735 uint8_t length; member in struct:__anon177
2210 uint8_t length; member in struct:__anon230
2471 uint8_t length; member in struct:hci_inquiry_req

Completed in 252 milliseconds