Searched refs:str_len (Results 1 – 4 of 4) sorted by relevance
/system/logging/logd/ |
D | LogAudit.cpp | 104 static inline bool hasMetadata(char* str, int str_len) { in hasMetadata() argument 110 return str_len >= 39 && in hasMetadata() 111 (str[str_len - 9] == '/' || str[str_len - 39] == '/'); in hasMetadata() 282 size_t str_len = strnlen(str, LOGGER_ENTRY_MAX_PAYLOAD); in logPrint() local 283 if (((fdDmesg < 0) || !initialized) && !hasMetadata(str, str_len)) in logPrint() 285 str_len = (str_len + denial_metadata.length() <= LOGGER_ENTRY_MAX_PAYLOAD) in logPrint() 286 ? str_len + denial_metadata.length() in logPrint() 288 size_t message_len = str_len + sizeof(android_log_event_string_t); in logPrint() 299 event->length = htole32(str_len); in logPrint() 300 memcpy(event->data, str, str_len - denial_metadata.length()); in logPrint() [all …]
|
/system/sepolicy/tests/ |
D | fc_sort.py | 56 def __init__(self, path, file_type, context, meta, stem_len, str_len, line): argument 62 self.str_len = str_len 79 str_len = len(path.replace("\\", "")) 81 return cls(path, file_type, context, meta, stem_len, str_len, line) 99 if self.str_len < other.str_len: 101 if other.str_len < self.str_len:
|
/system/extras/simpleperf/scripts/ |
D | simpleperf_report_lib.py | 472 str_len = ct.cast(void_p, ct.POINTER(ct.c_uint32)).contents.value 476 for j in range(str_len): 483 void_p.value += str_len 492 str_len = ct.cast(void_p, ct.POINTER(ct.c_uint32)).contents.value 495 for i in range(str_len):
|
/system/core/init/ |
D | selinux.cpp | 834 size_t str_len = strlen(buf); in SelinuxKlogCallback() local 835 if (buf[str_len - 1] == '\n') { in SelinuxKlogCallback() 836 buf[str_len - 1] = '\0'; in SelinuxKlogCallback()
|