/system/core/toolbox/ |
D | ioctl.c | 20 int length = -1; in ioctl_main() local 41 length = strtol(optarg, NULL, 0); in ioctl_main() 78 length = 4; in ioctl_main() 81 if(length < 0) { in ioctl_main() 82 length = (argc - optind) * arg_size; in ioctl_main() 84 if(length) { in ioctl_main() 85 ioctl_args = calloc(1, length); in ioctl_main() 88 rem = length; in ioctl_main() 102 rem = length; in ioctl_main() 110 else if(length) in ioctl_main() [all …]
|
D | mount.c | 241 int length; in print_mounts() local 251 length = fread(buffer, 1, 100, f); in print_mounts() 252 if (length > 0) in print_mounts() 253 fwrite(buffer, 1, length, stdout); in print_mounts() 254 } while (length > 0); in print_mounts()
|
/system/vold/ |
D | Process.cpp | 37 int length; in readSymLink() local 45 length = readlink(path, link, max- 1); in readSymLink() 46 if (length <= 0) in readSymLink() 48 link[length] = 0; in readSymLink() 53 int length = strlen(mountPoint); in pathMatchesMountPoint() local 54 if (length > 1 && strncmp(path, mountPoint, length) == 0) { in pathMatchesMountPoint() 56 if (mountPoint[length - 1] == '/') in pathMatchesMountPoint() 60 return (path[length] == 0 || path[length] == '/'); in pathMatchesMountPoint() 73 int length = read(fd, buffer, max - 1); in getProcessName() local 74 buffer[length] = 0; in getProcessName()
|
/system/extras/ksmutils/ |
D | lookup3.c | 176 size_t length, /* the length of the key, in uint32_ts */ in hashword() argument 182 a = b = c = 0xdeadbeef + (((uint32_t)length)<<2) + initval; in hashword() 185 while (length > 3) in hashword() 191 length -= 3; in hashword() 196 switch(length) /* all the case statements fall through */ in hashword() 220 size_t length, /* the length of the key, in uint32_ts */ in hashword2() argument 227 a = b = c = 0xdeadbeef + ((uint32_t)(length<<2)) + *pc; in hashword2() 231 while (length > 3) in hashword2() 237 length -= 3; in hashword2() 242 switch(length) /* all the case statements fall through */ in hashword2() [all …]
|
/system/core/libutils/ |
D | Tokenizer.cpp | 39 bool ownBuffer, size_t length) : in Tokenizer() argument 41 mBuffer(buffer), mOwnBuffer(ownBuffer), mLength(length), in Tokenizer() 68 size_t length = size_t(stat.st_size); in open() local 73 if (fileMap->create(NULL, fd, 0, length, true)) { in open() 83 buffer = new char[length]; in open() 85 ssize_t nrd = read(fd, buffer, length); in open() 92 length = size_t(nrd); in open() 97 *outTokenizer = new Tokenizer(filename, fileMap, buffer, ownBuffer, length); in open()
|
D | String8.cpp | 329 size_t oldLength = length(); in appendFormatV() 407 void String8::toLower(size_t start, size_t length) in toLower() argument 413 if (start+length > len) { in toLower() 414 length = len-start; in toLower() 418 while (length > 0) { in toLower() 421 length--; in toLower() 431 void String8::toUpper(size_t start, size_t length) in toUpper() argument 437 if (start+length > len) { in toUpper() 438 length = len-start; in toUpper() 442 while (length > 0) { in toUpper() [all …]
|
D | FileMap.cpp | 91 bool FileMap::create(const char* origFileName, int fd, off64_t offset, size_t length, in create() argument 118 adjLength = length + adjust; in create() 143 assert(length > 0); in create() 162 adjLength = length + adjust; in create() 189 mDataLength = length; in create()
|
/system/core/libcutils/ |
D | uevent.c | 32 ssize_t uevent_kernel_multicast_recv(int socket, void *buffer, size_t length) in uevent_kernel_multicast_recv() argument 35 return uevent_kernel_multicast_uid_recv(socket, buffer, length, &user); in uevent_kernel_multicast_recv() 48 size_t length, uid_t *user) in uevent_kernel_multicast_uid_recv() argument 50 struct iovec iov = { buffer, length }; in uevent_kernel_multicast_uid_recv() 91 bzero(buffer, length); in uevent_kernel_multicast_uid_recv()
|
D | strdup8to16.c | 186 int length, size_t *out_len) in strcpylen8to16() argument 192 const char *end = utf8Str + length; /* This line */ in strcpylen8to16()
|
/system/core/fastbootd/ |
D | usb_linux_client.c | 83 .length = cpu_to_le32(sizeof(descriptors)), 152 .length = cpu_to_le32(sizeof(strings)), 215 static ssize_t bulk_write(int bulk_in, const char *buf, size_t length) in bulk_write() argument 221 ret = TEMP_FAILURE_RETRY(write(bulk_in, buf + count, length - count)); in bulk_write() 224 bulk_in, length, errno, strerror(errno)); in bulk_write() 229 } while (count < length); in bulk_write() 251 static ssize_t bulk_read(int bulk_out, char *buf, size_t length) in bulk_read() argument 256 while (n < length) { in bulk_read() 257 size_t to_read = (length - n > READ_BUF_SIZE) ? READ_BUF_SIZE : length - n; in bulk_read() 261 bulk_out, length, errno, strerror(errno)); in bulk_read() [all …]
|
/system/core/include/cutils/ |
D | uevent.h | 28 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);
|
/system/extras/libublock/include/ublock/ |
D | ublock.h | 28 int (*read)(char *buf, uint64_t length, uint64_t offset); 29 int (*write)(const char *buf, uint64_t length, uint64_t offset);
|
/system/extras/fatblock/ |
D | fatblock.c | 52 static int read_callback(char *buf, uint64_t length, uint64_t offset) in read_callback() argument 57 result = fs_read(&fs, buf, offset, length); in read_callback() 66 static int write_callback(const char *buf, uint64_t length, uint64_t offset) in write_callback() argument 68 DEBUG("writing to (%llu, %llu): we are read-only\n", offset, length); in write_callback()
|
/system/core/adb/ |
D | usb_linux_client.c | 68 .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) in bulk_write() argument 350 ret = adb_write(bulk_in, buf + count, length - count); in bulk_write() 357 } while (count < length); in bulk_write() 378 static int bulk_read(int bulk_out, char *buf, size_t length) in bulk_read() argument 384 ret = adb_read(bulk_out, buf + count, length - count); in bulk_read() 388 bulk_out, length, count); in bulk_read() 394 } while (count < length); in bulk_read()
|
/system/core/fs_mgr/include/ |
D | fs_mgr.h | 42 long long length; member 60 const char *blk_device, long long length);
|
/system/security/keystore/ |
D | keystore.cpp | 250 size_t length = keyName.length(); in encode_key_length() local 251 for (int i = length; i > 0; --i, ++in) { in encode_key_length() 253 ++length; in encode_key_length() 256 return length; in encode_key_length() 261 size_t length = keyName.length(); in encode_key() local 262 for (int i = length; i > 0; --i, ++in, ++out) { in encode_key() 266 ++length; in encode_key() 272 return length; in encode_key() 281 static size_t decode_key_length(const char* in, size_t length) { in decode_key_length() argument 284 for (const char* end = in + length; in < end; in++) { in decode_key_length() [all …]
|
/system/core/include/utils/ |
D | VectorImpl.h | 72 ssize_t insertArrayAt(const void* array, size_t index, size_t length); 73 ssize_t appendArray(const void* array, size_t length); 170 ssize_t insertArrayAt(const void* array, size_t index, size_t length); 171 ssize_t appendArray(const void* array, size_t length);
|
D | String8.h | 68 inline size_t length() const; 81 size_t length); 258 inline size_t String8::length() const in length() function 265 return length(); in size() 270 return length() == 0; in isEmpty()
|
/system/media/audio_route/ |
D | audio_route.c | 58 unsigned int length; member 103 ALOGE("Path: %s, length: %d", path->name, path->length); in path_print() 104 for (i = 0; i < path->length; i++) { in path_print() 170 ar->mixer_path[ar->num_mixer_paths].length = 0; in path_create() 182 for (i = 0; i < path->length; i++) in find_ctl_index_in_path() 195 if (path->size <= path->length) { in alloc_path_setting() 211 path_index = path->length; in alloc_path_setting() 212 path->length++; in alloc_path_setting() 293 for (i = 0; i < sub_path->length; i++) in path_add_path() 307 for (i = 0; i < path->length; i++) { in path_apply() [all …]
|
/system/core/libusbhost/ |
D | usbhost.c | 356 int length; in usb_device_new() local 362 length = read(fd, device->desc, sizeof(device->desc)); in usb_device_new() 363 D("usb_device_new read returned %d errno %d\n", length, errno); in usb_device_new() 364 if (length < 0) in usb_device_new() 369 device->desc_length = length; in usb_device_new() 565 int length, in usb_device_control_transfer() argument 579 ctrl.wLength = length; in usb_device_control_transfer() 588 int length, in usb_device_bulk_transfer() argument 594 if (length > MAX_USBFS_BUFFER_SIZE) in usb_device_bulk_transfer() 595 length = MAX_USBFS_BUFFER_SIZE; in usb_device_bulk_transfer() [all …]
|
/system/core/run-as/ |
D | package.c | 81 size_t length = 0; in map_file() local 124 length = (size_t)st.st_size; in map_file() 125 if ((off_t)length != st.st_size) { in map_file() 131 address = TEMP_FAILURE_RETRY(mmap(NULL, length, PROT_READ, MAP_PRIVATE, fd, 0)); in map_file() 138 *filesize = length; in map_file()
|
/system/extras/tests/framebuffer/ |
D | refresh.c | 96 info.red.offset, info.red.length, in main() 97 info.green.offset, info.green.length, in main() 98 info.blue.offset, info.blue.length in main()
|
/system/core/libmincrypt/tools/ |
D | DumpPublicKey.java | 132 if (args.length < 1) { in main() 137 for (int i = 0; i < args.length; i++) { in main() 161 System.out.println(i < args.length - 1 ? "," : ""); in main()
|
/system/security/keystore/include/keystore/ |
D | keystore_get.h | 33 ssize_t keystore_get(const char *key, size_t length, uint8_t** value);
|
/system/core/sh/ |
D | output.c | 109 open_mem(char *block, int length, struct output *file) in open_mem() argument 112 file->nleft = --length; in open_mem() 243 fmtstr(char *outbuf, size_t length, const char *fmt, ...) in fmtstr() argument 250 strout.nleft = length; in fmtstr() 256 outbuf[length - 1] = '\0'; in fmtstr()
|