Home | History | Annotate | Download | only in logd

Lines Matching full:str_len

102 static inline bool hasMetadata(char* str, int str_len) {
108 return str_len >= 39 &&
109 (str[str_len - 9] == '/' || str[str_len - 39] == '/');
317 size_t str_len = strnlen(str, LOGGER_ENTRY_MAX_PAYLOAD);
318 if (((fdDmesg < 0) || !initialized) && !hasMetadata(str, str_len))
320 str_len = (str_len + bug_metadata.length() <= LOGGER_ENTRY_MAX_PAYLOAD)
321 ? str_len + bug_metadata.length()
323 size_t message_len = str_len + sizeof(android_log_event_string_t);
334 event->length = htole32(str_len);
335 memcpy(event->data, str, str_len - bug_metadata.length());
336 memcpy(event->data + str_len - bug_metadata.length(),
373 str_len = ecomm - comm;
375 str_len = strlen(comm) + 1;
383 message_len = str_len + prefix_len + suffix_len + bug_metadata.length() + 2;
389 strlcpy(newstr + 1, comm, str_len);
390 strncpy(newstr + 1 + str_len, str, prefix_len);
391 strncpy(newstr + 1 + str_len + prefix_len, ecomm, suffix_len);
392 strncpy(newstr + 1 + str_len + prefix_len + suffix_len,