Home
last modified time | relevance | path

Searched refs:str_len (Results 1 – 25 of 26) sorted by relevance

12

/external/libweave/third_party/libuweave/src/
Dmacaroon_encoding.c38 size_t str_len,
111 size_t str_len, in uw_macaroon_encoding_encode_byte_str_() argument
120 return blindly_encode_str_(str, str_len, buffer, buffer_size, in uw_macaroon_encoding_encode_byte_str_()
125 size_t str_len, in uw_macaroon_encoding_encode_text_str_() argument
134 return blindly_encode_str_(str, str_len, buffer, buffer_size, in uw_macaroon_encoding_encode_text_str_()
138 bool uw_macaroon_encoding_encode_byte_str_len_(size_t str_len, in uw_macaroon_encoding_encode_byte_str_len_() argument
146 return blindly_encode_uint_(str_len, buffer, buffer_size, resulting_cbor_len); in uw_macaroon_encoding_encode_byte_str_len_()
324 size_t str_len, in blindly_encode_str_() argument
331 if (str == NULL && str_len != 0) { in blindly_encode_str_()
338 if (!blindly_encode_uint_((uint32_t)str_len, buffer, buffer_size, in blindly_encode_str_()
[all …]
Dmacaroon_encoding.h39 size_t str_len,
44 size_t str_len,
50 bool uw_macaroon_encoding_encode_byte_str_len_(size_t str_len,
64 size_t* str_len);
68 size_t* str_len);
Dmacaroon_caveat.c101 size_t str_len, in create_caveat_bstr_value_() argument
105 if ((str == NULL && str_len != 0) || buffer == NULL || buffer_size == 0 || in create_caveat_bstr_value_()
107 uw_macaroon_caveat_creation_get_buffsize_(type, str_len) > buffer_size) { in create_caveat_bstr_value_()
118 str, str_len, buffer + total_str_len, buffer_size - total_str_len, in create_caveat_bstr_value_()
130 size_t str_len) { in uw_macaroon_caveat_creation_get_buffsize_() argument
153 return str_len + UW_MACAROON_ENCODING_MAX_UINT_CBOR_LEN; in uw_macaroon_caveat_creation_get_buffsize_()
270 size_t str_len, in uw_macaroon_caveat_create_client_authorization_token_() argument
274 if (str_len == 0) { in uw_macaroon_caveat_create_client_authorization_token_()
280 kUwMacaroonCaveatTypeClientAuthorizationTokenV1, str, str_len, buffer, in uw_macaroon_caveat_create_client_authorization_token_()
286 size_t str_len, in uw_macaroon_caveat_create_server_authentication_token_() argument
[all …]
Dmacaroon_caveat.h48 size_t str_len);
107 size_t str_len,
113 size_t str_len,
Dmacaroon_caveat_internal.h38 size_t* str_len);
/external/wpa_supplicant_8/src/wps/
Dwps_dev_attr.c246 size_t str_len) in wps_process_manufacturer() argument
253 wpa_hexdump_ascii(MSG_DEBUG, "WPS: Manufacturer", str, str_len); in wps_process_manufacturer()
256 dev->manufacturer = dup_binstr(str, str_len); in wps_process_manufacturer()
265 size_t str_len) in wps_process_model_name() argument
272 wpa_hexdump_ascii(MSG_DEBUG, "WPS: Model Name", str, str_len); in wps_process_model_name()
275 dev->model_name = dup_binstr(str, str_len); in wps_process_model_name()
284 size_t str_len) in wps_process_model_number() argument
291 wpa_hexdump_ascii(MSG_DEBUG, "WPS: Model Number", str, str_len); in wps_process_model_number()
294 dev->model_number = dup_binstr(str, str_len); in wps_process_model_number()
303 const u8 *str, size_t str_len) in wps_process_serial_number() argument
[all …]
/external/libnfc-nci/halimpl/bcm2079x/adaptation/
Dconfig.cpp45 size_t str_len() const {return m_str_value.length();} in str_len() function in CNfcParam
406 if (pParam->str_len() > 0) in getValue()
409 if (len > pParam->str_len()) in getValue()
410 len = pParam->str_len(); in getValue()
433 if (pParam->str_len() == 0) in getValue()
457 if (pParam->str_len() == 0) in getValue()
485 if((*it)->str_len() > 0) in find()
676 if (v == 0 && pParam->str_len() > 0 && pParam->str_len() < 4) in GetNumValue()
679 for (size_t i = 0 ; i < pParam->str_len(); ++i) in GetNumValue()
/external/libnfc-nci/src/adaptation/
Dconfig.cpp45 size_t str_len() const {return m_str_value.length();} in str_len() function in CNfcParam
421 if (pParam->str_len() > 0) in getValue()
424 if (len > pParam->str_len()) in getValue()
425 len = pParam->str_len(); in getValue()
448 if (pParam->str_len() == 0) in getValue()
472 if (pParam->str_len() == 0) in getValue()
500 if((*it)->str_len() > 0) in find()
691 if (v == 0 && pParam->str_len() > 0 && pParam->str_len() < 4) in GetNumValue()
694 for (size_t i = 0 ; i < pParam->str_len(); ++i) in GetNumValue()
/external/libnfc-nci/halimpl/pn54x/utils/
DphNxpConfig.cpp78 size_t str_len() const {return m_str_value.length();} in str_len() function in CNfcParam
479 if (pParam->str_len() > 0) in getValue()
482 memcpy(pValue, pParam->str_value(), pParam->str_len()); in getValue()
494 if (pParam->str_len() > 0) in getValue()
496 if(pParam->str_len() <= (unsigned long)len) in getValue()
499 memcpy(pValue, pParam->str_value(), pParam->str_len()); in getValue()
500 *readlen = pParam->str_len(); in getValue()
528 if (pParam->str_len() == 0) in getValue()
552 if (pParam->str_len() == 0) in getValue()
582 if((*it)->str_len() > 0) in find()
[all …]
/external/c-ares/
Dares_parse_txt_reply.c57 size_t substr_len, str_len; in ares_parse_txt_reply() local
162 str_len = 0; in ares_parse_txt_reply()
168 memcpy ((char *) txt_curr->txt + str_len, strptr, substr_len); in ares_parse_txt_reply()
169 str_len += substr_len; in ares_parse_txt_reply()
/external/selinux/libsepol/cil/src/
Dcil.c1174 size_t str_len = 0; in cil_userprefixes_to_string() local
1192str_len += strlen("user ") + strlen(user->datum.fqn) + strlen(" prefix ") + strlen(userprefix->pre… in cil_userprefixes_to_string()
1195 *size = str_len * sizeof(char); in cil_userprefixes_to_string()
1196 str_len++; in cil_userprefixes_to_string()
1197 str_tmp = cil_malloc(str_len * sizeof(char)); in cil_userprefixes_to_string()
1204 buf_pos = snprintf(str_tmp, str_len, "user %s prefix %s;\n", user->datum.fqn, in cil_userprefixes_to_string()
1206 str_len -= buf_pos; in cil_userprefixes_to_string()
1297 int str_len = 0; in __cil_level_strlen() local
1303 str_len += strlen(lvl->sens->datum.fqn); in __cil_level_strlen()
1306 str_len++; /* initial ":" */ in __cil_level_strlen()
[all …]
Dcil_post.h36 int str_len; member
Dcil_post.c84 fc->str_len = 0; in cil_post_fc_fill_data()
108 fc->str_len++; in cil_post_fc_fill_data()
136 } else if (a_data->str_len < b_data->str_len) { in cil_post_filecon_compare()
138 } else if (b_data->str_len < a_data->str_len) { in cil_post_filecon_compare()
/external/boringssl/src/crypto/err/
Derr_test.cc122 size_t str_len = strlen(str); in HasSuffix() local
123 if (str_len < suffix_len) { in HasSuffix()
126 return strcmp(str + str_len - suffix_len, suffix) == 0; in HasSuffix()
/external/mesa3d/src/glx/tests/
Dclientinfo_unittest.cpp128 uint32_t str_len, in xcb_glx_client_info() argument
136 gl_ext_string = (char *) malloc(str_len); in xcb_glx_client_info()
137 memcpy(gl_ext_string, string, str_len); in xcb_glx_client_info()
138 gl_ext_length = str_len; in xcb_glx_client_info()
/external/autotest/client/common_lib/
Dsmogcheck_tpm.py131 def PrintSelfTestResult(str_len, pResult): argument
139 for i in range(str_len):
/external/libweave/src/privet/
Dauth_manager.cc51 Caveat(UwMacaroonCaveatType type, size_t str_len) in Caveat() argument
52 : buffer_(uw_macaroon_caveat_creation_get_buffsize_(type, str_len)) { in Caveat()
/external/toybox/lib/
Dlib.h11 struct str_len { struct
/external/skia/src/ports/
DSkFontHost_win.cpp1673 size_t str_len = ::MultiByteToWideChar(CP_UTF8, 0, familyName, in logfont_for_name() local
1677 wchar_t *wideFamilyName = new wchar_t[str_len]; in logfont_for_name()
1680 wideFamilyName, str_len); in logfont_for_name()
/external/gtest/src/
Dgtest.cc1628 const size_t str_len = str.length(); in EndsWithCaseInsensitive() local
1630 return (str_len >= suffix_len) && in EndsWithCaseInsensitive()
1631 CaseInsensitiveCStringEquals(str.c_str() + str_len - suffix_len, in EndsWithCaseInsensitive()
/external/vulkan-validation-layers/tests/gtest-1.7.0/src/
Dgtest.cc1628 const size_t str_len = str.length(); in EndsWithCaseInsensitive() local
1630 return (str_len >= suffix_len) && in EndsWithCaseInsensitive()
1631 CaseInsensitiveCStringEquals(str.c_str() + str_len - suffix_len, in EndsWithCaseInsensitive()
/external/wpa_supplicant_8/wpa_supplicant/
Dp2p_supplicant.c2319 u8 str_len; in wpas_dev_found() local
2327 str_len = *buf++; in wpas_dev_found()
2328 if (str_len > len - 4 - 2 - 1) in wpas_dev_found()
2330 os_memcpy(str, buf, str_len); in wpas_dev_found()
2331 str[str_len] = '\0'; in wpas_dev_found()
2332 buf += str_len; in wpas_dev_found()
2333 len -= str_len + sizeof(u32) + sizeof(u16) + sizeof(u8); in wpas_dev_found()
/external/opencv3/modules/ts/src/
Dts_gtest.cpp3128 const size_t str_len = str.length(); in EndsWithCaseInsensitive() local
3130 return (str_len >= suffix_len) && in EndsWithCaseInsensitive()
3131 CaseInsensitiveCStringEquals(str.c_str() + str_len - suffix_len, in EndsWithCaseInsensitive()
/external/libvpx/libvpx/third_party/googletest/src/src/
Dgtest-all.cc3112 const size_t str_len = str.length(); in EndsWithCaseInsensitive() local
3114 return (str_len >= suffix_len) && in EndsWithCaseInsensitive()
3115 CaseInsensitiveCStringEquals(str.c_str() + str_len - suffix_len, in EndsWithCaseInsensitive()
/external/vulkan-validation-layers/tests/gtest-1.7.0/fused-src/gtest/
Dgtest-all.cc3112 const size_t str_len = str.length(); in EndsWithCaseInsensitive() local
3114 return (str_len >= suffix_len) && in EndsWithCaseInsensitive()
3115 CaseInsensitiveCStringEquals(str.c_str() + str_len - suffix_len, in EndsWithCaseInsensitive()

12