/system/core/init/ |
H A D | property_service.c | 443 int fd, length; local 481 length = read(fd, value, sizeof(value) - 1); 482 if (length >= 0) { 483 value[length] = 0;
|
H A D | init_parser.c | 268 ERROR("invalid zero-length prop name in '%s'\n", src); 551 int length = equals - name; local 552 if (length > PROP_NAME_MAX) { 556 memcpy(prop_name, name, length); 557 prop_name[length] = 0;
|
/system/core/libutils/ |
H A D | String8.cpp | 338 size_t oldLength = length(); 440 void String8::toLower(size_t start, size_t length) argument 446 if (start+length > len) { 447 length = len-start; 451 while (length > 0) { 454 length--; 464 void String8::toUpper(size_t start, size_t length) argument 470 if (start+length > len) { 471 length = len-start; 475 while (length > [all...] |
H A D | Unicode.cpp | 490 static inline uint32_t utf8_to_utf32_codepoint(const uint8_t *src, size_t length) argument 494 switch (length) 517 //printf("Char at %p: len=%d, utf-16=%p\n", src, length, (void*)result);
|
/system/core/logd/tests/ |
H A D | logd_test.cpp | 66 static void alloc_statistics(char **buffer, size_t *length) argument 90 *length = len;
|
/system/keymaster/ |
H A D | authorization_set.cpp | 61 bool AuthorizationSet::reserve_indirect(size_t length) { argument 65 if (length > indirect_data_capacity_) { 66 uint8_t* new_data = new uint8_t[length]; 80 indirect_data_capacity_ = length; 172 // The blobs are equal up to the length of the shortest (which may have length 0), 173 // so the shorter is less, the longer is greater and if they have the same length
|
/system/media/audio_route/ |
H A D | audio_route.c | 58 unsigned int length; member in struct:mixer_path 103 ALOGE("Path: %s, length: %d", path->name, path->length); 104 for (i = 0; i < path->length; i++) { 170 ar->mixer_path[ar->num_mixer_paths].length = 0; 182 for (i = 0; i < path->length; i++) 195 if (path->size <= path->length) { 211 path_index = path->length; 212 path->length++; 293 for (i = 0; i < sub_path->length; [all...] |
/system/core/adb/ |
H A D | usb_linux.c | 210 unsigned char length = bufptr[0]; local 215 bufptr += length; 217 if (length != USB_DT_INTERFACE_SIZE) { 296 bufptr += length;
|
/system/core/libusbhost/ |
H A D | usbhost.c | 357 int length; local 363 length = read(fd, device->desc, sizeof(device->desc)); 364 D("usb_device_new read returned %d errno %d\n", length, errno); 365 if (length < 0) 370 device->desc_length = length; 571 int length, 585 ctrl.wLength = length; 594 int length, 600 if (length > MAX_USBFS_BUFFER_SIZE) 601 length 565 usb_device_control_transfer(struct usb_device *device, int requestType, int request, int value, int index, void* buffer, int length, unsigned int timeout) argument 591 usb_device_bulk_transfer(struct usb_device *device, int endpoint, void* buffer, int length, unsigned int timeout) argument [all...] |
/system/media/camera/src/ |
H A D | camera_metadata.c | 85 * With the total length of the whole packet being camera_metadata.size bytes. 677 size_t length = dst->data_count - entry->data.offset - data_bytes; local 678 memmove(start, end, length); 732 size_t length = dst->data_count - entry->data.offset - entry_bytes; local 733 memmove(start, end, length);
|
/system/core/libziparchive/ |
H A D | zip_archive.cc | 89 // A structure representing the fixed length fields for a single 91 // the fixed length fields listed here, each central directory 92 // record contains a variable length "file_name" and "extra_field" 120 // The length of the entry file name in bytes. The file name 123 // The length of the extra field info (in bytes). This data 126 // The length of the entry comment (in bytes). This data will 169 // The length of the entry file name in bytes. The file name 172 // The length of the extra field info (in bytes). This data 252 // if the actual uncompressed length or crc32 do not match their declared 286 * of the string length int 329 MapFileSegment(const int fd, const off64_t start, const size_t length, const bool read_only, const char* debug_file_name) argument 342 CopyFileToFile(int fd, uint8_t* begin, const uint32_t length, uint64_t *crc_out) argument 402 EntryToIndex(const ZipEntryName* hash_table, const uint32_t hash_table_size, const char* name, uint16_t length) argument 425 AddToHash(ZipEntryName *hash_table, const uint64_t hash_table_size, const char* name, uint16_t length) argument 973 InflateToFile(int fd, const ZipEntry* entry, uint8_t* begin, uint32_t length, uint64_t* crc_out) argument [all...] |
/system/netd/server/ |
H A D | RouteController.cpp | 229 int padInterfaceName(const char* input, char* name, size_t* length, uint16_t* padding) { argument 231 *length = 0; 235 *length = strlcpy(name, input, IFNAMSIZ) + 1; 236 if (*length > IFNAMSIZ) { 237 ALOGE("interface name too long (%zu > %u)", *length, IFNAMSIZ); 240 *padding = RTA_SPACE(*length) - RTA_LENGTH(*length);
|
/system/security/keystore/ |
H A D | keystore.cpp | 320 * [0-o]. Therefore in the worst case the length of a key gets doubled. Note 325 size_t length = keyName.length(); local 326 for (int i = length; i > 0; --i, ++in) { 328 ++length; 331 return length; 336 size_t length = keyName.length(); local 337 for (int i = length; i > 0; --i, ++in, ++out) { 341 ++length; 356 decode_key_length(const char* in, size_t length) argument 370 decode_key(char* out, const char* in, size_t length) argument 473 int32_t length; // in network byte order when encrypted member in struct:blob 800 size_t length = readFully(in, (uint8_t*) &rawBlob, sizeof(rawBlob)); local 1971 import(const String16& name, const uint8_t* data, size_t length, int targetUid, int32_t flags) argument 1998 sign(const String16& name, const uint8_t* data, size_t length, uint8_t** out, size_t* outLength) argument [all...] |
/system/vold/ |
H A D | cryptfs.c | 226 // 2. The message must have the same length in bits as the public 411 /* compute length in bytes */ 414 /* return length in sectors */ 634 /* Make sure it's 16 Kbytes in length */ 922 SLOGE("Trying to convert ascii string of odd length"); 949 /* Convert a binary key of specified length into an ascii hex string equivalent, 992 tgt->length = crypt_ftr->fs_size; 1304 SLOGE("EVP_Encryption length check failed with %d, %d bytes\n", encrypted_len, final_len); 1955 size_t index, length; local 1961 // Check even length [all...] |