/system/core/logd/ |
D | LogAudit.cpp | 102 static inline bool hasMetadata(char* str, int str_len) { in hasMetadata() argument 108 return str_len >= 39 && in hasMetadata() 109 (str[str_len - 9] == '/' || str[str_len - 39] == '/'); in hasMetadata() 257 size_t str_len = strnlen(str, LOGGER_ENTRY_MAX_PAYLOAD); in logPrint() local 258 if (((fdDmesg < 0) || !initialized) && !hasMetadata(str, str_len)) in logPrint() 260 str_len = (str_len + denial_metadata.length() <= LOGGER_ENTRY_MAX_PAYLOAD) in logPrint() 261 ? str_len + denial_metadata.length() in logPrint() 263 size_t message_len = str_len + sizeof(android_log_event_string_t); in logPrint() 274 event->length = htole32(str_len); in logPrint() 275 memcpy(event->data, str, str_len - denial_metadata.length()); in logPrint() [all …]
|
/system/bt/stack/avrc/ |
D | avrc_pars_ct.cc | 308 BE_STREAM_TO_UINT16(player->name.str_len, p); in avrc_pars_browse_rsp() 309 min_len += player->name.str_len; in avrc_pars_browse_rsp() 312 (player->name.str_len + 1) * sizeof(uint8_t)); in avrc_pars_browse_rsp() 313 BE_STREAM_TO_ARRAY(p, player->name.p_str, player->name.str_len); in avrc_pars_browse_rsp() 318 player->name.charset_id, player->name.str_len); in avrc_pars_browse_rsp() 336 BE_STREAM_TO_UINT16(folder->name.str_len, p); in avrc_pars_browse_rsp() 337 min_len += folder->name.str_len; in avrc_pars_browse_rsp() 340 (folder->name.str_len + 1) * sizeof(uint8_t)); in avrc_pars_browse_rsp() 341 BE_STREAM_TO_ARRAY(p, folder->name.p_str, folder->name.str_len); in avrc_pars_browse_rsp() 344 folder->name.charset_id, folder->name.str_len); in avrc_pars_browse_rsp() [all …]
|
D | avrc_bld_tg.cc | 312 if (len_left < (p_rsp->p_attrs[xx].str_len + 4)) { in avrc_bld_app_setting_text_rsp() 314 p_rsp->p_attrs[xx].str_len, len_left); in avrc_bld_app_setting_text_rsp() 319 if (!p_rsp->p_attrs[xx].str_len || !p_rsp->p_attrs[xx].p_str) { in avrc_bld_app_setting_text_rsp() 325 UINT8_TO_BE_STREAM(p_data, p_rsp->p_attrs[xx].str_len); in avrc_bld_app_setting_text_rsp() 327 p_rsp->p_attrs[xx].str_len); in avrc_bld_app_setting_text_rsp() 422 p_attrs[index].name.str_len = 0; in avrc_build_attribute_entries() 433 if (remaining_buffer_capacity < p_attrs[index].name.str_len) { in avrc_build_attribute_entries() 438 p_attrs[index].name.str_len = remaining_buffer_capacity; in avrc_build_attribute_entries() 441 remaining_buffer_capacity -= p_attrs[index].name.str_len; in avrc_build_attribute_entries() 444 UINT16_TO_BE_STREAM(p_data, p_attrs[index].name.str_len); in avrc_build_attribute_entries() [all …]
|
D | avrc_pars_tg.cc | 545 BE_STREAM_TO_UINT16(p_result->search.string.str_len, p); in avrc_pars_browsing_cmd() 548 if (p_result->search.string.str_len > buf_len) { in avrc_pars_browsing_cmd() 549 p_result->search.string.str_len = buf_len; in avrc_pars_browsing_cmd() 553 min_len += p_result->search.string.str_len; in avrc_pars_browsing_cmd() 557 BE_STREAM_TO_ARRAY(p, p_buf, p_result->search.string.str_len); in avrc_pars_browsing_cmd()
|
/system/extras/simpleperf/scripts/ |
D | simpleperf_report_lib.py | 368 str_len = ct.cast(void_p, ct.POINTER(ct.c_uint32)).contents.value 372 for j in range(str_len): 379 void_p.value += str_len 388 str_len = ct.cast(void_p, ct.POINTER(ct.c_uint32)).contents.value 391 for i in range(str_len):
|
/system/bt/include/hardware/ |
D | bt_rc.h | 191 uint16_t str_len; member 198 uint16_t str_len; member 283 uint16_t str_len; member 390 typedef void (*btrc_search_callback)(uint16_t charset_id, uint16_t str_len,
|
/system/core/init/ |
D | selinux.cpp | 496 size_t str_len = strnlen(buf, buf_len); in SelinuxAvcLog() local 498 if (buf[str_len - 1] == '\n') { in SelinuxAvcLog() 499 buf[str_len - 1] = '\0'; in SelinuxAvcLog()
|
/system/bt/btif/src/ |
D | btif_rc.cc | 480 attr_vals[attr_cnt].name.str_len = in fill_avrc_attr_entry() 486 attr_vals[attr_cnt].name.charset_id, attr_vals[attr_cnt].name.str_len, in fill_avrc_attr_entry() 1649 pavrc_cmd->search.string.str_len, in btif_rc_upstreams_evt() 1927 element_attrs[i].name.str_len = in get_element_attr_rsp() 1933 element_attrs[i].name.charset_id, element_attrs[i].name.str_len, in get_element_attr_rsp() 2113 item.u.player.name.str_len = in get_folder_items_list_rsp() 2122 item.u.folder.name.str_len = strlen((char*)cur_item->folder.name); in get_folder_items_list_rsp() 2132 item.u.media.name.str_len = strlen((char*)cur_item->media.name); in get_folder_items_list_rsp() 2306 item.str_len = p_folders[item_cnt].str_len; in set_browsed_player_rsp() 3680 p_app_settings->ext_attrs[x].str_len = p_rsp->p_attrs[xx].str_len; in handle_app_attr_txt_response() [all …]
|
/system/bt/service/hal/ |
D | bluetooth_avrcp_interface.h | 82 virtual void SearchCallback(uint16_t str_len, uint8_t* p_str,
|
D | bluetooth_avrcp_interface.cc | 258 void SearchCallback(uint16_t charset_id, uint16_t str_len, uint8_t* p_str, in SearchCallback() argument 264 observer.SearchCallback(str_len, p_str, bd_addr); in SearchCallback() 737 uint16_t str_len, uint8_t* p_str, const RawAddress& bd_addr) { in SearchCallback() argument
|
/system/bt/stack/include/ |
D | avrc_defs.h | 1009 uint16_t str_len; member 1014 uint16_t str_len; member 1039 uint8_t str_len; member
|