Searched refs:length (Results 1 - 25 of 41) sorted by relevance

12

/system/security/keystore/
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_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_client.h31 void setLength(size_t length);
32 size_t length() const;
47 * size_t length, const uint8_t* data, [size_t length, const uint8_t* data, [...]]
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
857 recv_message(int sock, uint8_t* message, int length) argument
889 send_message(int sock, const uint8_t* message, int length) argument
[all...]
/system/core/include/cutils/
H A Duevent.h28 ssize_t uevent_kernel_multicast_recv(int socket, void *buffer, size_t length);
29 ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, size_t length, uid_t *uid);
H A Djstring.h36 extern char16_t * strcpylen8to16 (char16_t *dest, const char*s, int length,
/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.c218 int length; local
228 length = fread(buffer, 1, 100, f);
229 if (length > 0)
230 fwrite(buffer, 1, length, stdout);
231 } while (length > 0);
/system/extras/libublock/include/ublock/
H A Dublock.h28 int (*read)(char *buf, uint64_t length, uint64_t offset);
29 int (*write)(const char *buf, uint64_t length, uint64_t offset);
/system/core/mkbootimg/
H A Dbootimg.h85 unsigned length; /* length in blocks */
91 ** length: 2 + 7 * n
/system/core/libcutils/
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 Dcpu_info.c34 int length; local
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
/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/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/include/ion/
H A Dion.h36 int ion_map(int fd, struct ion_handle *handle, size_t length, int prot,
/system/core/include/usbhost/
H A Dusbhost.h186 int length,
195 int length,
/system/core/adb/
H A Dusb_linux_client.c68 .length = cpu_to_le32(sizeof(descriptors)),
137 .length = cpu_to_le32(sizeof(strings)),
344 static int bulk_write(int bulk_in, const char *buf, size_t length) argument
350 ret = adb_write(bulk_in, buf + count, length - count);
357 } while (count < length);
378 static int bulk_read(int bulk_out, char *buf, size_t length) argument
384 ret = adb_read(bulk_out, buf + count, length - count);
387 D("[ bulk_read failed fd=%d length=%d count=%d ]\n",
388 bulk_out, length, count);
394 } while (count < length);
[all...]
/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/libmincrypt/tools/
H A DDumpPublicKey.java130 if (args.length < 1) {
135 for (int i = 0; i < args.length; i++) {
142 System.out.println(i < args.length - 1 ? "," : "");
/system/extras/tests/framebuffer/
H A Drefresh.c96 info.red.offset, info.red.length,
97 info.green.offset, info.green.length,
98 info.blue.offset, info.blue.length
/system/core/libion/
H A Dion.c83 int ion_map(int fd, struct ion_handle *handle, size_t length, int prot, argument
98 *ptr = mmap(NULL, length, prot, flags, *map_fd, offset);
/system/core/libusbhost/
H A Dusbhost.c297 int length; local
303 length = read(fd, device->desc, sizeof(device->desc));
304 D("usb_device_new read returned %d errno %d\n", length, errno);
305 if (length < 0)
310 device->desc_length = length;
506 int length,
520 ctrl.wLength = length;
529 int length,
535 if (length > MAX_USBFS_BUFFER_SIZE)
536 length
500 usb_device_control_transfer(struct usb_device *device, int requestType, int request, int value, int index, void* buffer, int length, unsigned int timeout) argument
526 usb_device_bulk_transfer(struct usb_device *device, int endpoint, void* buffer, int length, unsigned int timeout) argument
[all...]
/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';

Completed in 2515 milliseconds

12