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

12

/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"
82 length = 4;
85 if(length < 0) {
86 length = (argc - optind) * arg_size;
88 if(length) {
89 ioctl_args = calloc(1, length);
92 rem = length;
106 rem = length;
[all...]
H A Dmount.c241 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/keymaster/
H A Dgoogle_keymaster_utils.cpp28 int memcmp_s(const void* p1, const void* p2, size_t length) { argument
32 while (length-- > 0)
H A Dgoogle_softkeymaster.h45 void GenerateNonce(uint8_t* nonce, size_t length) { argument
46 for (size_t i = 0; i < length; ++i)
H A Dgoogle_keymaster_messages.cpp93 void GetKeyCharacteristicsRequest::SetKeyMaterial(const void* key_material, size_t length) { argument
95 key_blob.key_material = dup_buffer(key_material, length);
96 key_blob.key_material_size = length;
135 void BeginOperationRequest::SetKeyMaterial(const void* key_material, size_t length) { argument
137 key_blob.key_material = dup_buffer(key_material, length);
138 key_blob.key_material_size = length;
142 return sizeof(uint32_t) /* purpose */ + sizeof(uint32_t) /* key length */ +
227 void ImportKeyRequest::SetKeyMaterial(const void* key_material, size_t length) { argument
229 key_data = dup_buffer(key_material, length);
230 key_data_length = length;
256 SetKeyMaterial(const void* key_material, size_t length) argument
285 SetKeyMaterial(const void* key_material, size_t length) argument
315 SetKeyMaterial(const void* key_material, size_t length) argument
[all...]
/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 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/core/fastbootd/commands/
H A Dflash.c57 size_t length; local
63 length = strspn(name, ALLOWED_CHARS);
64 if (length != strlen(name)) {
65 D(ERR, "Not allowed char in name: %c", name[length]);
/system/core/fs_mgr/include/
H A Dfs_mgr.h47 long long length; member in struct:fstab_rec
/system/core/libion/
H A Dion.c89 int ion_map(int fd, ion_user_handle_t handle, size_t length, int prot, argument
110 *ptr = mmap(NULL, length, prot, flags, *map_fd, offset);
/system/core/libutils/
H A DFileMap.cpp90 bool FileMap::create(const char* origFileName, int fd, off64_t offset, size_t length, argument
117 adjLength = length + adjust;
142 assert(length > 0);
161 adjLength = length + adjust;
188 mDataLength = length;
H A DTokenizer.cpp39 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 DVectorImpl.cpp119 ssize_t VectorImpl::insertArrayAt(const void* array, size_t index, size_t length) argument
123 void* where = _grow(index, length);
125 _do_copy(where, array, length);
130 ssize_t VectorImpl::appendArray(const void* array, size_t length) argument
132 return insertArrayAt(array, size(), length);
/system/extras/verity/
H A DBootSignature.java44 * length INTEGER
55 private ASN1Integer length; field in class:BootSignature
58 public BootSignature(String target, int length) { argument
61 this.length = new ASN1Integer(length);
69 attrs.add(length);
83 byte[] signable = Arrays.copyOf(image, image.length + attrs.length);
84 for (int i=0; i < attrs.length; i++) {
85 signable[i+image.length]
[all...]
/system/core/include/utils/
H A DString8.h68 inline size_t length() const;
81 size_t length);
266 inline size_t String8::length() const function in class:android::String8
273 return length();
278 return length() == 0;
H A DVector.h130 ssize_t insertArrayAt(const TYPE* array, size_t index, size_t length);
133 ssize_t appendArray(const TYPE* array, size_t length);
317 ssize_t Vector<TYPE>::insertArrayAt(const TYPE* array, size_t index, size_t length) { argument
318 return VectorImpl::insertArrayAt(array, index, length);
322 ssize_t Vector<TYPE>::appendArray(const TYPE* array, size_t length) { argument
323 return VectorImpl::appendArray(array, length);
/system/core/libpixelflinger/codeflinger/
H A DArm64Disassembler.cpp298 uint32_t length = strlen(entry->instr_template); local
313 }while(index < length);
/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/adb/
H A Dtransport_local.c91 int length = p->msg.data_length; local
99 if(writex(t->sfd, &p->msg, sizeof(amessage) + length)) {
H A Dusb_linux_client.c68 .length = cpu_to_le32(sizeof(descriptors)),
137 .length = cpu_to_le32(sizeof(strings)),
346 static int bulk_write(int bulk_in, const char *buf, size_t length) argument
352 ret = adb_write(bulk_in, buf + count, length - count);
359 } while (count < length);
380 static int bulk_read(int bulk_out, char *buf, size_t length) argument
386 ret = adb_read(bulk_out, buf + count, length - count);
389 D("[ bulk_read failed fd=%d length=%zu count=%zu ]\n",
390 bulk_out, length, count);
396 } while (count < length);
[all...]
/system/core/fastbootd/
H A Dutils.c164 ssize_t bulk_write(int bulk_in, const char *buf, size_t length) argument
170 ret = TEMP_FAILURE_RETRY(write(bulk_in, buf + count, length - count));
172 D(WARN, "[ bulk_write failed fd=%d length=%zu errno=%d %s ]",
173 bulk_in, length, errno, strerror(errno));
178 } while (count < length);
184 ssize_t bulk_read(int bulk_out, char *buf, size_t length) argument
189 while (n < length) {
190 size_t to_read = (length - n > READ_BUF_SIZE) ? READ_BUF_SIZE : length - n;
193 D(WARN, "[ bulk_read failed fd=%d length
[all...]
/system/core/healthd/
H A DBatteryMonitor.cpp126 int length = readFromFile(path, buf, SIZE); local
141 if (length <= 0)
/system/core/run-as/
H A Dpackage.c81 size_t length = 0; local
124 length = (size_t)st.st_size;
125 if ((off_t)length != st.st_size) {
132 address = mmap(NULL, length, PROT_READ, MAP_PRIVATE, fd, 0);
140 *filesize = length;
/system/extras/ksmutils/
H A Dlookup3.c25 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/extras/puncture_fs/
H A Dpuncture_fs.c75 u64 length = 0; local
93 while (length + base_length < size) {
102 length += base_length;
104 if (write(fd, base, size - length) < 0) {
107 errno, size - length, file_path);

Completed in 2524 milliseconds

12