Home | History | Annotate | Download | only in avrc

Lines Matching full:str_len

312     if (len_left < (p_rsp->p_attrs[xx].str_len + 4)) {
313 AVRC_TRACE_ERROR("%s out of room (str_len:%d, left:%d)", __func__, xx,
314 p_rsp->p_attrs[xx].str_len, len_left);
319 if (!p_rsp->p_attrs[xx].str_len || !p_rsp->p_attrs[xx].p_str) {
325 UINT8_TO_BE_STREAM(p_data, p_rsp->p_attrs[xx].str_len);
327 p_rsp->p_attrs[xx].str_len);
422 p_attrs[index].name.str_len = 0;
424 /* 8 is the size of attr_id, char set and str_len */
433 if (remaining_buffer_capacity < p_attrs[index].name.str_len) {
438 p_attrs[index].name.str_len = remaining_buffer_capacity;
441 remaining_buffer_capacity -= p_attrs[index].name.str_len;
444 UINT16_TO_BE_STREAM(p_data, p_attrs[index].name.str_len);
446 p_attrs[index].name.str_len);
875 (xx < p_rsp->folder_depth) && (len_left > (p_folders[xx].str_len + 2));
878 UINT16_TO_BE_STREAM(p_data, p_folders[xx].str_len);
879 ARRAY_TO_BE_STREAM(p_data, p_folders[xx].p_str, p_folders[xx].str_len);
880 len += (p_folders[xx].str_len + 2);
968 /* min len required: 2 + 1 + 4 + 1 + 16 + 2 + 2 = 30 + str_len */
970 item_len = AVRC_FEATURE_MASK_SIZE + p_player->name.str_len + 12;
982 UINT16_TO_BE_STREAM(p_data, p_player->name.str_len);
984 p_player->name.str_len);
989 /* min len required: 8 + 1 + 1 + 2 + 2 = 14 + str_len */
991 item_len = AVRC_UID_SIZE + p_folder->name.str_len + 6;
999 UINT16_TO_BE_STREAM(p_data, p_folder->name.str_len);
1001 p_folder->name.str_len);
1008 /* min len required: 8 + 1 + 2 + 2 + 1 = 14 + str_len */
1010 item_len = AVRC_UID_SIZE + p_media->name.str_len + 6;
1017 UINT16_TO_BE_STREAM(p_data, p_media->name.str_len);
1019 p_media->name.str_len);
1028 (len_left >= (p_attr[yy].name.str_len + 8))) {
1032 UINT16_TO_BE_STREAM(p_data, p_attr[yy].name.str_len);
1034 p_attr[yy].name.str_len);
1035 item_len += (p_attr[yy].name.str_len + 8);
1036 len_left -= (p_attr[yy].name.str_len + 8);
1037 } else if ((len_left < (p_attr[yy].name.str_len + 8)) &&