/system/security/keystore/include/keystore/ |
H A D | keystore_get.h | 30 * length. The third argument is a pointer to an array that will be malloc() 33 ssize_t keystore_get(const char *key, size_t length, uint8_t** value);
|
/system/core/include/cutils/ |
H A 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);
|
H A D | jstring.h | 36 extern char16_t * strcpylen8to16 (char16_t *dest, const char*s, int length,
|
/system/core/toolbox/ |
H A D | ioctl.c | 20 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 D | mount.c | 241 int length; local 251 length = fread(buffer, 1, 100, f); 252 if (length > 0) 253 fwrite(buffer, 1, length, stdout); 254 } while (length > 0);
|
/system/extras/libublock/include/ublock/ |
H A 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/core/mkbootimg/ |
H A D | bootimg.h | 85 unsigned length; /* length in blocks */ 91 ** length: 2 + 7 * n
|
/system/core/libcutils/ |
H A D | uevent.c | 32 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 D | cpu_info.c | 34 int length; local
|
/system/core/libutils/ |
H A D | Tokenizer.cpp | 39 bool ownBuffer, size_t length) : 41 mBuffer(buffer), mOwnBuffer(ownBuffer), mLength(length), 68 size_t length = size_t(stat.st_size); local 73 if (fileMap->create(NULL, fd, 0, length, true)) { 81 // The length we obtained from stat is wrong too (it will always be 4096) 83 buffer = new char[length]; 85 ssize_t nrd = read(fd, buffer, length); 92 length = size_t(nrd); 97 *outTokenizer = new Tokenizer(filename, fileMap, buffer, ownBuffer, length); 38 Tokenizer(const String8& filename, FileMap* fileMap, char* buffer, bool ownBuffer, size_t length) argument
|
H A D | String8.cpp | 329 size_t oldLength = length(); 407 void String8::toLower(size_t start, size_t length) argument 413 if (start+length > len) { 414 length = len-start; 418 while (length > 0) { 421 length--; 431 void String8::toUpper(size_t start, size_t length) argument 437 if (start+length > len) { 438 length = len-start; 442 while (length > [all...] |
H A D | FileMap.cpp | 91 bool FileMap::create(const char* origFileName, int fd, off64_t offset, size_t length, argument 118 adjLength = length + adjust; 143 assert(length > 0); 162 adjLength = length + adjust; 189 mDataLength = length;
|
/system/vold/ |
H A D | Process.cpp | 37 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/ksmutils/ |
H A D | lookup3.c | 25 then use c as the hash value. If you have a variable length array of 165 -- that the length be the number of uint32_t's in the key 169 except that the length has to be measured in uint32_ts rather than in 176 size_t length, /* the length of the key, in uint32_ts */ 182 a = b = c = 0xdeadbeef + (((uint32_t)length)<<2) + initval; 185 while (length > 3) 191 length -= 3; 196 switch(length) /* all the case statements fall through */ 220 size_t length, /* th 174 hashword( const uint32_t *k, size_t length, uint32_t initval) argument 218 hashword2( const uint32_t *k, size_t length, uint32_t *pc, uint32_t *pb) argument 283 hashlittle( const void *key, size_t length, uint32_t initval) argument 463 hashlittle2( const void *key, size_t length, uint32_t *pc, uint32_t *pb) argument 645 hashbig( const void *key, size_t length, uint32_t initval) argument [all...] |
/system/core/fastbootd/ |
H A 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) argument 221 ret = TEMP_FAILURE_RETRY(write(bulk_in, buf + count, length - count)); 223 D(WARN, "[ bulk_read failed fd=%d length=%d errno=%d %s ]", 224 bulk_in, length, errno, strerror(errno)); 229 } while (count < length); 251 static ssize_t bulk_read(int bulk_out, char *buf, size_t length) argument 256 while (n < length) { 257 size_t to_read = (length [all...] |
/system/extras/fatblock/ |
H A D | fatblock.c | 52 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/fs_mgr/include/ |
H A D | fs_mgr.h | 42 long long length; member in struct:fstab_rec 60 const char *blk_device, long long length);
|
/system/core/include/ion/ |
H A D | ion.h | 36 int ion_map(int fd, struct ion_handle *handle, size_t length, int prot,
|
/system/core/include/utils/ |
H A D | FileMap.h | 60 off64_t offset, size_t length, bool readOnly); 73 * Get the length we requested. 122 size_t mBaseLength; // length, measured from "mBasePtr" 125 size_t mDataLength; // length, measured from "mDataPtr"
|
H A 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);
|
H A D | String8.h | 68 inline size_t length() const; 81 size_t length); 258 inline size_t String8::length() const function in class:android::String8 265 return length(); 270 return length() == 0;
|
/system/core/adb/ |
H A 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) 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 D | package.c | 81 size_t length = 0; local 124 length = (size_t)st.st_size; 125 if ((off_t)length != st.st_size) { 131 address = TEMP_FAILURE_RETRY(mmap(NULL, length, PROT_READ, MAP_PRIVATE, fd, 0)); 138 *filesize = length;
|
/system/core/libmincrypt/tools/ |
H A D | DumpPublicKey.java | 132 if (args.length < 1) { 137 for (int i = 0; i < args.length; i++) { 161 System.out.println(i < args.length - 1 ? "," : "");
|
/system/extras/tests/framebuffer/ |
H A D | refresh.c | 96 info.red.offset, info.red.length, 97 info.green.offset, info.green.length, 98 info.blue.offset, info.blue.length
|