/external/tensorflow/tensorflow/core/kernels/ |
D | decode_raw_op.cc | 38 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/ |
D | test_cil_lexer.c | 39 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/perfetto/src/trace_processor/ |
D | string_pool.cc | 65 auto str_size = str.size(); in TryInsert() local 66 auto size = str_size + kMetadataSize; in TryInsert() 74 memcpy(ptr, &str_size, sizeof(str_size)); in TryInsert() 77 if (PERFETTO_LIKELY(str_size > 0)) in TryInsert() 78 memcpy(&ptr[2], str.data(), str_size); in TryInsert() 81 ptr[2 + str_size] = '\0'; in TryInsert() 98 auto str_size = GetSize(block.Get(block_offset_)); in operator ++() local 99 block_offset_ += kMetadataSize + str_size; in operator ++()
|
/external/libpcap/missing/ |
D | win_snprintf.c | 5 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/ |
D | xlocale.h | 251 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/ |
D | ltp_uaccess.c | 65 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()
|
D | uaccess.c | 78 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()
|
D | ltp_uaccess.h | 25 static const int str_size = sizeof(test_str); variable
|
/external/ltp/testcases/kernel/mem/ksm/ |
D | ksm_common.h | 33 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/ |
D | avb_util.c | 255 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()
|
D | avb_util.h | 254 size_t str_size);
|
/external/autotest/client/common_lib/cros/bluetooth/ |
D | bluetooth_sdp_socket.py | 428 str_size = self._unpack_int(data, int_size) 430 res = data[int_size : int_size + str_size] 431 scanned += int_size + str_size
|
/external/u-boot/lib/libavb/ |
D | avb_util.c | 236 size_t str_size) { in avb_strv_find_str() argument 239 if (avb_strlen(strings[n]) == str_size && in avb_strv_find_str() 240 avb_memcmp(strings[n], str, str_size) == 0) { in avb_strv_find_str()
|
D | avb_util.h | 235 size_t str_size);
|
/external/u-boot/tools/ |
D | fdtgrep.c | 464 int str_size; in dump_fdt_regions() local 466 str_size = region[count - 1].size; in dump_fdt_regions() 467 fdt_set_size_dt_struct(fdt, size - str_size); in dump_fdt_regions() 468 fdt_set_off_dt_strings(fdt, struct_start + size - str_size); in dump_fdt_regions() 469 fdt_set_size_dt_strings(fdt, str_size); in dump_fdt_regions()
|
/external/strace/tests-m32/ |
D | process_vm_readv_writev.c | 60 uint8_t str_size[MAX_SEGM_COUNT]; member 117 if (segm_offs >= arg->str_size[num_segm]) { in print_iov()
|
/external/strace/tests/ |
D | process_vm_readv_writev.c | 60 uint8_t str_size[MAX_SEGM_COUNT]; member 117 if (segm_offs >= arg->str_size[num_segm]) { in print_iov()
|
/external/strace/tests-mx32/ |
D | process_vm_readv_writev.c | 60 uint8_t str_size[MAX_SEGM_COUNT]; member 117 if (segm_offs >= arg->str_size[num_segm]) { in print_iov()
|
/external/mesa3d/src/util/ |
D | ralloc.c | 410 size_t existing_length, size_t str_size) in ralloc_str_append() argument 415 both = resize(*dest, existing_length + str_size + 1); in ralloc_str_append() 419 memcpy(both + existing_length, str, str_size); in ralloc_str_append() 420 both[existing_length + str_size] = '\0'; in ralloc_str_append()
|
D | ralloc.h | 311 size_t existing_length, size_t str_size);
|
/external/python/cpython2/Modules/ |
D | cPickle.c | 709 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()
|