Home
last modified time | relevance | path

Searched refs:str_size (Results 1 – 17 of 17) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Ddecode_raw_op.cc38 int64 str_size = -1; in Compute() local
42 if (str_size == -1) { in Compute()
43 str_size = in_str.size(); in Compute()
45 OP_REQUIRES(context, str_size == in_str.size(), in Compute()
49 i, " has size ", str_size, " != ", in_str.size())); in Compute()
53 if (str_size == -1 || str_size == 0) { // Empty input in Compute()
61 context, str_size % sizeof(T) == 0, in Compute()
62 errors::InvalidArgument("Input to DecodeRaw has length ", str_size, in Compute()
65 const int64 added_dim = str_size / sizeof(T); in Compute()
76 memcpy(out_data, in_data, str_size); in Compute()
[all …]
/external/selinux/libsepol/cil/test/unit/
Dtest_cil_lexer.c39 uint32_t str_size = strlen(test_str); in test_cil_lexer_setup() local
40 char *buffer = malloc(str_size + 2); in test_cil_lexer_setup()
42 memset(buffer+str_size, 0, 2); in test_cil_lexer_setup()
43 strncpy(buffer, test_str, str_size); in test_cil_lexer_setup()
45 int rc = cil_lexer_setup(buffer, str_size + 2); in test_cil_lexer_setup()
53 uint32_t str_size = strlen(test_str); in test_cil_lexer_next() local
54 char *buffer = malloc(str_size + 2); in test_cil_lexer_next()
56 memset(buffer+str_size, 0, 2); in test_cil_lexer_next()
59 cil_lexer_setup(buffer, str_size + 2); in test_cil_lexer_next()
/external/libpcap/missing/
Dwin_snprintf.c5 pcap_vsnprintf(char *str, size_t str_size, const char *format, va_list args) in pcap_vsnprintf() argument
9 ret = _vsnprintf_s(str, str_size, _TRUNCATE, format, args); in pcap_vsnprintf()
17 str[str_size - 1] = '\0'; in pcap_vsnprintf()
22 pcap_snprintf(char *str, size_t str_size, const char *format, ...) in pcap_snprintf() argument
28 ret = pcap_vsnprintf(str, str_size, format, args); in pcap_snprintf()
/external/libcxx/include/support/ibm/
Dxlocale.h251 int str_size; in vasprintf() local
256 if ((str_size = vsnprintf(*strp, buff_size, fmt, ap)) >= buff_size) in vasprintf()
258 if ((*strp = (char *)realloc(*strp, str_size + 1)) == NULL) in vasprintf()
262 str_size = vsnprintf(*strp, str_size + 1, fmt, ap); in vasprintf()
264 return str_size; in vasprintf()
/external/ltp/testcases/kernel/device-drivers/uaccess/
Dltp_uaccess.c65 char *str, ch, buffer[str_size]; in sys_tcase()
73 if (copy_from_user(buffer, str, str_size)) in sys_tcase()
75 test_result = strncmp(test_str, buffer, str_size) ? 1 : 0; in sys_tcase()
81 if (copy_to_user(str + 1, test_str + 1, str_size - 1)) { in sys_tcase()
Duaccess.c78 char buf[str_size]; in tc_write_userspace()
79 memset(buf, 0, str_size); in tc_write_userspace()
88 res = strncmp(buf, test_str, str_size) ? TFAIL : TPASS; in tc_write_userspace()
Dltp_uaccess.h25 static const int str_size = sizeof(test_str); variable
/external/ltp/testcases/kernel/mem/ksm/
Dksm_common.h33 static inline void parse_ksm_options(char *str_size, int *size, in parse_ksm_options() argument
36 if(tst_parse_int(str_size, size, 1, INT_MAX)) in parse_ksm_options()
37 tst_brk(TBROK, "Invalid size '%s'", str_size); in parse_ksm_options()
/external/avb/libavb/
Davb_util.c255 size_t str_size) { in avb_strv_find_str() argument
258 if (avb_strlen(strings[n]) == str_size && in avb_strv_find_str()
259 avb_memcmp(strings[n], str, str_size) == 0) { in avb_strv_find_str()
Davb_util.h254 size_t str_size);
/external/autotest/client/common_lib/cros/bluetooth/
Dbluetooth_sdp_socket.py428 str_size = self._unpack_int(data, int_size)
430 res = data[int_size : int_size + str_size]
431 scanned += int_size + str_size
/external/strace/tests-mx32/
Dprocess_vm_readv_writev.c60 uint8_t str_size[MAX_SEGM_COUNT]; member
117 if (segm_offs >= arg->str_size[num_segm]) { in print_iov()
/external/strace/tests-m32/
Dprocess_vm_readv_writev.c60 uint8_t str_size[MAX_SEGM_COUNT]; member
117 if (segm_offs >= arg->str_size[num_segm]) { in print_iov()
/external/strace/tests/
Dprocess_vm_readv_writev.c60 uint8_t str_size[MAX_SEGM_COUNT]; member
117 if (segm_offs >= arg->str_size[num_segm]) { in print_iov()
/external/libmicrohttpd/src/testcurl/
Dtest_get.c540 const size_t str_size = strlen (excess_found); in curlExcessFound() local
543 && size >= str_size in curlExcessFound()
544 && 0 == strncmp(excess_found, data, str_size)) in curlExcessFound()
/external/python/cpython2/Modules/
DcPickle.c709 Py_ssize_t str_size; in readline_other() local
715 if ((str_size = PyString_Size(str)) < 0) in readline_other()
723 return str_size; in readline_other()
/external/valgrind/VEX/priv/
Dhost_ppc_defs.c1961 const HChar* str_size; in ppPPCInstr() local
1967 str_size = sz==1 ? "eb" : sz==2 ? "eh" : sz==4 ? "ew" : ""; in ppPPCInstr()
1969 vex_printf("lv%sx ", str_size); in ppPPCInstr()
1971 vex_printf("stv%sx ", str_size); in ppPPCInstr()