/external/autotest/client/common_lib/cros/network/ |
D | netblock.py | 16 def from_addr(addr, prefix_len=None): argument 45 if prefix_len is not None and prefix_len_str is not None: 47 'passed in value %d', prefix_len_str, prefix_len) 48 elif prefix_len is not None and prefix_len_str is None: 50 elif prefix_len is None and prefix_len_str is not None: 51 prefix_len = int(prefix_len_str) 56 return Netblock(addr_str, prefix_len) 88 str(self.prefix_len)]) 98 def prefix_len(self): member in Netblock 124 def __init__(self, addr_str, prefix_len): argument [all …]
|
/external/abseil-cpp/absl/time/internal/cctz/src/ |
D | time_zone_fixed.cc | 61 const std::size_t prefix_len = sizeof(kFixedZonePrefix) - 1; in FixedOffsetFromName() local 62 const char* const ep = kFixedZonePrefix + prefix_len; in FixedOffsetFromName() 63 if (name.size() != prefix_len + 9) // <prefix>+99:99:99 in FixedOffsetFromName() 66 const char* np = name.data() + prefix_len; in FixedOffsetFromName() 106 const std::size_t prefix_len = sizeof(kFixedZonePrefix) - 1; in FixedOffsetToName() local 107 char buf[prefix_len + sizeof("-24:00:00")]; in FixedOffsetToName() 108 char* ep = std::copy(kFixedZonePrefix, kFixedZonePrefix + prefix_len, buf); in FixedOffsetToName() 122 const std::size_t prefix_len = sizeof(kFixedZonePrefix) - 1; in FixedOffsetToAbbr() local 123 if (abbr.size() == prefix_len + 9) { // <prefix>+99:99:99 in FixedOffsetToAbbr() 124 abbr.erase(0, prefix_len); // +99:99:99 in FixedOffsetToAbbr()
|
/external/webrtc/third_party/abseil-cpp/absl/time/internal/cctz/src/ |
D | time_zone_fixed.cc | 61 const std::size_t prefix_len = sizeof(kFixedZonePrefix) - 1; in FixedOffsetFromName() local 62 const char* const ep = kFixedZonePrefix + prefix_len; in FixedOffsetFromName() 63 if (name.size() != prefix_len + 9) // <prefix>+99:99:99 in FixedOffsetFromName() 66 const char* np = name.data() + prefix_len; in FixedOffsetFromName() 106 const std::size_t prefix_len = sizeof(kFixedZonePrefix) - 1; in FixedOffsetToName() local 107 char buf[prefix_len + sizeof("-24:00:00")]; in FixedOffsetToName() 108 char* ep = std::copy(kFixedZonePrefix, kFixedZonePrefix + prefix_len, buf); in FixedOffsetToName() 122 const std::size_t prefix_len = sizeof(kFixedZonePrefix) - 1; in FixedOffsetToAbbr() local 123 if (abbr.size() == prefix_len + 9) { // <prefix>+99:99:99 in FixedOffsetToAbbr() 124 abbr.erase(0, prefix_len); // +99:99:99 in FixedOffsetToAbbr()
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/time/internal/cctz/src/ |
D | time_zone_fixed.cc | 61 const std::size_t prefix_len = sizeof(kFixedZonePrefix) - 1; in FixedOffsetFromName() local 62 const char* const ep = kFixedZonePrefix + prefix_len; in FixedOffsetFromName() 63 if (name.size() != prefix_len + 9) // <prefix>+99:99:99 in FixedOffsetFromName() 66 const char* np = name.data() + prefix_len; in FixedOffsetFromName() 106 const std::size_t prefix_len = sizeof(kFixedZonePrefix) - 1; in FixedOffsetToName() local 107 char buf[prefix_len + sizeof("-24:00:00")]; in FixedOffsetToName() 108 char* ep = std::copy(kFixedZonePrefix, kFixedZonePrefix + prefix_len, buf); in FixedOffsetToName() 122 const std::size_t prefix_len = sizeof(kFixedZonePrefix) - 1; in FixedOffsetToAbbr() local 123 if (abbr.size() == prefix_len + 9) { // <prefix>+99:99:99 in FixedOffsetToAbbr() 124 abbr.erase(0, prefix_len); // +99:99:99 in FixedOffsetToAbbr()
|
/external/openscreen/third_party/abseil/src/absl/time/internal/cctz/src/ |
D | time_zone_fixed.cc | 61 const std::size_t prefix_len = sizeof(kFixedZonePrefix) - 1; in FixedOffsetFromName() local 62 const char* const ep = kFixedZonePrefix + prefix_len; in FixedOffsetFromName() 63 if (name.size() != prefix_len + 9) // <prefix>+99:99:99 in FixedOffsetFromName() 66 const char* np = name.data() + prefix_len; in FixedOffsetFromName() 106 const std::size_t prefix_len = sizeof(kFixedZonePrefix) - 1; in FixedOffsetToName() local 107 char buf[prefix_len + sizeof("-24:00:00")]; in FixedOffsetToName() 108 char* ep = std::copy(kFixedZonePrefix, kFixedZonePrefix + prefix_len, buf); in FixedOffsetToName() 122 const std::size_t prefix_len = sizeof(kFixedZonePrefix) - 1; in FixedOffsetToAbbr() local 123 if (abbr.size() == prefix_len + 9) { // <prefix>+99:99:99 in FixedOffsetToAbbr() 124 abbr.erase(0, prefix_len); // +99:99:99 in FixedOffsetToAbbr()
|
/external/libtextclassifier/abseil-cpp/absl/time/internal/cctz/src/ |
D | time_zone_fixed.cc | 61 const std::size_t prefix_len = sizeof(kFixedZonePrefix) - 1; in FixedOffsetFromName() local 62 const char* const ep = kFixedZonePrefix + prefix_len; in FixedOffsetFromName() 63 if (name.size() != prefix_len + 9) // <prefix>+99:99:99 in FixedOffsetFromName() 66 const char* np = name.data() + prefix_len; in FixedOffsetFromName() 106 const std::size_t prefix_len = sizeof(kFixedZonePrefix) - 1; in FixedOffsetToName() local 107 char buf[prefix_len + sizeof("-24:00:00")]; in FixedOffsetToName() 108 char* ep = std::copy(kFixedZonePrefix, kFixedZonePrefix + prefix_len, buf); in FixedOffsetToName() 122 const std::size_t prefix_len = sizeof(kFixedZonePrefix) - 1; in FixedOffsetToAbbr() local 123 if (abbr.size() == prefix_len + 9) { // <prefix>+99:99:99 in FixedOffsetToAbbr() 124 abbr.erase(0, prefix_len); // +99:99:99 in FixedOffsetToAbbr()
|
/external/angle/third_party/abseil-cpp/absl/time/internal/cctz/src/ |
D | time_zone_fixed.cc | 61 const std::size_t prefix_len = sizeof(kFixedZonePrefix) - 1; in FixedOffsetFromName() local 62 const char* const ep = kFixedZonePrefix + prefix_len; in FixedOffsetFromName() 63 if (name.size() != prefix_len + 9) // <prefix>+99:99:99 in FixedOffsetFromName() 66 const char* np = name.data() + prefix_len; in FixedOffsetFromName() 106 const std::size_t prefix_len = sizeof(kFixedZonePrefix) - 1; in FixedOffsetToName() local 107 char buf[prefix_len + sizeof("-24:00:00")]; in FixedOffsetToName() 108 char* ep = std::copy(kFixedZonePrefix, kFixedZonePrefix + prefix_len, buf); in FixedOffsetToName() 122 const std::size_t prefix_len = sizeof(kFixedZonePrefix) - 1; in FixedOffsetToAbbr() local 123 if (abbr.size() == prefix_len + 9) { // <prefix>+99:99:99 in FixedOffsetToAbbr() 124 abbr.erase(0, prefix_len); // +99:99:99 in FixedOffsetToAbbr()
|
/external/ltp/lib/ |
D | tst_path_has_mnt_flags.c | 32 size_t prefix_max = 0, prefix_len; in tst_path_has_mnt_flags_() local 62 prefix_len = strlen(mnt->mnt_dir); in tst_path_has_mnt_flags_() 64 if (strncmp(path, mnt->mnt_dir, prefix_len) == 0 in tst_path_has_mnt_flags_() 65 && prefix_len > prefix_max) { in tst_path_has_mnt_flags_() 66 prefix_max = prefix_len; in tst_path_has_mnt_flags_()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_symbolizer_libcdep.cc | 21 uptr prefix_len = internal_strcspn(str, delims); in ExtractToken() local 22 *result = (char*)InternalAlloc(prefix_len + 1); in ExtractToken() 23 internal_memcpy(*result, str, prefix_len); in ExtractToken() 24 (*result)[prefix_len] = '\0'; in ExtractToken() 25 const char *prefix_end = str + prefix_len; in ExtractToken() 53 uptr prefix_len = in ExtractTokenUpToDelimiter() local 55 *result = (char *)InternalAlloc(prefix_len + 1); in ExtractTokenUpToDelimiter() 56 internal_memcpy(*result, str, prefix_len); in ExtractTokenUpToDelimiter() 57 (*result)[prefix_len] = '\0'; in ExtractTokenUpToDelimiter() 58 const char *prefix_end = str + prefix_len; in ExtractTokenUpToDelimiter()
|
D | sanitizer_stacktrace_printer.cc | 21 uptr prefix_len = internal_strlen(prefix); in StripFunctionName() local 22 if (0 == internal_strncmp(function, prefix, prefix_len)) in StripFunctionName() 23 return function + prefix_len; in StripFunctionName()
|
D | sanitizer_common.cc | 354 uptr prefix_len = end - beg; in FindPathToBinary() local 355 if (prefix_len + name_len + 2 <= kMaxPathLength) { in FindPathToBinary() 356 internal_memcpy(buffer.data(), beg, prefix_len); in FindPathToBinary() 357 buffer[prefix_len] = '/'; in FindPathToBinary() 358 internal_memcpy(&buffer[prefix_len + 1], name, name_len); in FindPathToBinary() 359 buffer[prefix_len + 1 + name_len] = '\0'; in FindPathToBinary()
|
/external/strace/tests-mx32/ |
D | inode_of_sockfd.c | 55 const size_t prefix_len = sizeof(prefix) - 1; in inode_of_sockfd() local 56 assert(strncmp(path, prefix, prefix_len) == 0 in inode_of_sockfd() 59 return strtoul(path + prefix_len, NULL, 10); in inode_of_sockfd()
|
/external/strace/tests/ |
D | inode_of_sockfd.c | 55 const size_t prefix_len = sizeof(prefix) - 1; in inode_of_sockfd() local 56 assert(strncmp(path, prefix, prefix_len) == 0 in inode_of_sockfd() 59 return strtoul(path + prefix_len, NULL, 10); in inode_of_sockfd()
|
/external/strace/tests-m32/ |
D | inode_of_sockfd.c | 55 const size_t prefix_len = sizeof(prefix) - 1; in inode_of_sockfd() local 56 assert(strncmp(path, prefix, prefix_len) == 0 in inode_of_sockfd() 59 return strtoul(path + prefix_len, NULL, 10); in inode_of_sockfd()
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_file.cpp | 194 uptr prefix_len = end - beg; in FindPathToBinary() local 195 if (prefix_len + name_len + 2 <= kMaxPathLength) { in FindPathToBinary() 196 internal_memcpy(buffer.data(), beg, prefix_len); in FindPathToBinary() 197 buffer[prefix_len] = '/'; in FindPathToBinary() 198 internal_memcpy(&buffer[prefix_len + 1], name, name_len); in FindPathToBinary() 199 buffer[prefix_len + 1 + name_len] = '\0'; in FindPathToBinary()
|
D | sanitizer_symbolizer_libcdep.cpp | 33 uptr prefix_len = internal_strcspn(str, delims); in ExtractToken() local 34 *result = (char*)InternalAlloc(prefix_len + 1); in ExtractToken() 35 internal_memcpy(*result, str, prefix_len); in ExtractToken() 36 (*result)[prefix_len] = '\0'; in ExtractToken() 37 const char *prefix_end = str + prefix_len; in ExtractToken() 75 uptr prefix_len = in ExtractTokenUpToDelimiter() local 77 *result = (char *)InternalAlloc(prefix_len + 1); in ExtractTokenUpToDelimiter() 78 internal_memcpy(*result, str, prefix_len); in ExtractTokenUpToDelimiter() 79 (*result)[prefix_len] = '\0'; in ExtractTokenUpToDelimiter() 80 const char *prefix_end = str + prefix_len; in ExtractTokenUpToDelimiter()
|
/external/boringssl/src/ssl/ |
D | ssl_aead_ctx.cc | 321 const size_t prefix_len = ExplicitNonceLen(); in SealScatter() local 328 buffers_alias(in, in_len, out_prefix, prefix_len) || in SealScatter() 403 const size_t prefix_len = ExplicitNonceLen(); in Seal() local 409 if (in_len + prefix_len < in_len || in Seal() 410 in_len + prefix_len + suffix_len < in_len + prefix_len) { in Seal() 414 if (in_len + prefix_len + suffix_len > max_out_len) { in Seal() 419 if (!SealScatter(out, out + prefix_len, out + prefix_len + in_len, type, in Seal() 423 *out_len = prefix_len + in_len + suffix_len; in Seal()
|
D | tls_record.cc | 475 const size_t prefix_len = SSL3_RT_HEADER_LENGTH; in tls_seal_scatter_record() local 478 uint8_t *split_body = out_prefix + prefix_len; in tls_seal_scatter_record() 491 const size_t split_record_len = prefix_len + 1 + split_record_suffix_len; in tls_seal_scatter_record() 522 const size_t prefix_len = tls_seal_scatter_prefix_len(ssl, type, in_len); in tls_seal_record() local 527 if (in_len + prefix_len < in_len || in tls_seal_record() 528 prefix_len + in_len + suffix_len < prefix_len + in_len) { in tls_seal_record() 532 if (max_out_len < in_len + prefix_len + suffix_len) { in tls_seal_record() 538 uint8_t *body = out + prefix_len; in tls_seal_record() 544 *out_len = prefix_len + in_len + suffix_len; in tls_seal_record()
|
/external/rust/crates/quiche/deps/boringssl/src/ssl/ |
D | ssl_aead_ctx.cc | 321 const size_t prefix_len = ExplicitNonceLen(); in SealScatter() local 328 buffers_alias(in, in_len, out_prefix, prefix_len) || in SealScatter() 403 const size_t prefix_len = ExplicitNonceLen(); in Seal() local 409 if (in_len + prefix_len < in_len || in Seal() 410 in_len + prefix_len + suffix_len < in_len + prefix_len) { in Seal() 414 if (in_len + prefix_len + suffix_len > max_out_len) { in Seal() 419 if (!SealScatter(out, out + prefix_len, out + prefix_len + in_len, type, in Seal() 423 *out_len = prefix_len + in_len + suffix_len; in Seal()
|
D | tls_record.cc | 473 const size_t prefix_len = SSL3_RT_HEADER_LENGTH; in tls_seal_scatter_record() local 476 uint8_t *split_body = out_prefix + prefix_len; in tls_seal_scatter_record() 489 const size_t split_record_len = prefix_len + 1 + split_record_suffix_len; in tls_seal_scatter_record() 520 const size_t prefix_len = tls_seal_scatter_prefix_len(ssl, type, in_len); in tls_seal_record() local 525 if (in_len + prefix_len < in_len || in tls_seal_record() 526 prefix_len + in_len + suffix_len < prefix_len + in_len) { in tls_seal_record() 530 if (max_out_len < in_len + prefix_len + suffix_len) { in tls_seal_record() 536 uint8_t *body = out + prefix_len; in tls_seal_record() 542 *out_len = prefix_len + in_len + suffix_len; in tls_seal_record()
|
/external/tcpdump/ |
D | print-lspping.c | 203 uint8_t prefix_len; member 220 uint8_t prefix_len; member 297 uint8_t prefix_len; member 318 uint8_t prefix_len; member 386 uint8_t prefix_len; member 402 uint8_t prefix_len; member 685 subtlv_ptr.lspping_tlv_targetfec_subtlv_ldp_ipv4->prefix_len)); in lspping_print() 699 subtlv_ptr.lspping_tlv_targetfec_subtlv_ldp_ipv6->prefix_len)); in lspping_print() 713 subtlv_ptr.lspping_tlv_targetfec_subtlv_bgp_ipv4->prefix_len)); in lspping_print() 727 subtlv_ptr.lspping_tlv_targetfec_subtlv_bgp_ipv6->prefix_len)); in lspping_print() [all …]
|
/external/compiler-rt/lib/profile/ |
D | GCDAProfiling.c | 173 size_t filename_len, prefix_len; in mangle_filename() local 204 prefix_len = strlen(prefix); in mangle_filename() 205 new_filename = malloc(prefix_len + 1 + filename_len + 1); in mangle_filename() 206 memcpy(new_filename, prefix, prefix_len); in mangle_filename() 208 if (prefix[prefix_len - 1] != '/') in mangle_filename() 209 new_filename[prefix_len++] = '/'; in mangle_filename() 210 memcpy(new_filename + prefix_len, fname, filename_len + 1); in mangle_filename()
|
/external/grpc-grpc/tools/codegen/core/ |
D | gen_hpack_tables.cc | 55 static unsigned char prefix_mask(unsigned char prefix_len) { in prefix_mask() argument 58 for (i = 0; i < prefix_len; i++) { in prefix_mask() 68 static unsigned char suffix_mask(unsigned char prefix_len) { in suffix_mask() argument 69 return (unsigned char)~prefix_mask(prefix_len); in suffix_mask()
|
/external/rust/crates/grpcio-sys/grpc/tools/codegen/core/ |
D | gen_hpack_tables.cc | 55 static unsigned char prefix_mask(unsigned char prefix_len) { in prefix_mask() argument 58 for (i = 0; i < prefix_len; i++) { in prefix_mask() 68 static unsigned char suffix_mask(unsigned char prefix_len) { in suffix_mask() argument 69 return (unsigned char)~prefix_mask(prefix_len); in suffix_mask()
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_tag.c | 93 const int prefix_len = sizeof("prog_tag:\t") - 1; in tag_from_fdinfo() local 104 if (strncmp(buff, "prog_tag:\t", prefix_len)) in tag_from_fdinfo() 106 ret = hex2bin(tag, buff + prefix_len, len); in tag_from_fdinfo()
|