Home
last modified time | relevance | path

Searched refs:prefix_length (Results 1 – 25 of 27) sorted by relevance

12

/external/autotest/client/site_tests/platform_PrinterPpds/
Darchiver.py29 self, names, max_names_per_prefix, prefix_length=0): argument
50 return { names[0][0:prefix_length] : len(names) }
55 while ( len(names[0]) > prefix_length and
56 names[0][prefix_length] == names[-1][prefix_length] ):
57 prefix_length += 1
59 if len(names[0]) == prefix_length:
60 return { names[0][0:prefix_length] : len(names) }
68 char = names[i_begin][prefix_length]
70 while i_end < len(names) and char == names[i_end][prefix_length]:
73 max_names_per_prefix, prefix_length+1))
/external/webrtc/rtc_base/
Dfake_network.h104 int prefix_length = 0; in DoUpdateNetworks() local
106 prefix_length = kFakeIPv4NetworkPrefixLength; in DoUpdateNetworks()
108 prefix_length = kFakeIPv6NetworkPrefixLength; in DoUpdateNetworks()
110 IPAddress prefix = TruncateIP(it->first.ipaddr(), prefix_length); in DoUpdateNetworks()
113 prefix_length, it->second)); in DoUpdateNetworks()
Dnetwork.cc57 if (a->prefix_length() == b->prefix_length()) { in CompareNetworks()
182 int prefix_length) { in MakeNetworkKey() argument
184 ost << name << "%" << prefix.ToString() << "/" << prefix_length; in MakeNetworkKey()
327 network->prefix_length()); in MergeNetworkList()
552 int prefix_length = CountIPMaskBits(mask); in ConvertIfAddrs() local
553 prefix = TruncateIP(ip, prefix_length); in ConvertIfAddrs()
555 MakeNetworkKey(std::string(cursor->ifa_name), prefix, prefix_length); in ConvertIfAddrs()
560 new Network(cursor->ifa_name, cursor->ifa_name, prefix, prefix_length, in ConvertIfAddrs()
711 int prefix_length = GetPrefix(prefixlist, ip, &prefix); in CreateNetworks() local
712 std::string key = MakeNetworkKey(name, prefix, prefix_length); in CreateNetworks()
[all …]
Dnetwork.h51 int prefix_length);
290 int prefix_length);
295 int prefix_length,
324 int prefix_length() const { return prefix_length_; } in prefix_length() function
/external/openscreen/platform/base/
Dinterface_info.cc27 IPSubnet::IPSubnet(IPAddress address, uint8_t prefix_length) in IPSubnet() argument
28 : address(std::move(address)), prefix_length(prefix_length) {} in IPSubnet()
57 return out << '/' << std::dec << static_cast<int>(subnet.prefix_length); in operator <<()
Dinterface_info.h34 uint8_t prefix_length = 0; member
/external/openscreen/osp/impl/
Dmdns_platform_service.cc30 subnet.prefix_length != other.subnet.prefix_length) { in operator ==()
/external/vixl/test/
Dtest-aborts.cc47 size_t prefix_length = strlen(expected_prefix); \
48 if (strncmp(expected_prefix, e.what(), prefix_length) != 0) { \
/external/grpc-grpc/tools/codegen/core/
Dgen_hpack_tables.cc38 unsigned char prefix_length; member
83 if ((prefix_mask(fields[j].prefix_length) & i) == fields[j].prefix) { in generate_first_byte_lut()
88 suffix = (unsigned char)(suffix_mask(fields[j].prefix_length) & in generate_first_byte_lut()
90 if (suffix == suffix_mask(fields[j].prefix_length)) { in generate_first_byte_lut()
/external/tcpdump/
Dprint-rpki-rtr.c59 u_char prefix_length; member
72 u_char prefix_length; member
271 pdu->prefix_length, pdu->max_length, in rpki_rtr_pdu_print()
287 pdu->prefix_length, pdu->max_length, in rpki_rtr_pdu_print()
Dprint-rsvp.c1086 u_char prefix_length; in rsvp_obj_print() local
1094 prefix_length = *(obj_tptr+6); in rsvp_obj_print()
1095 if (prefix_length != 32) { in rsvp_obj_print()
1097 prefix_length)); in rsvp_obj_print()
/external/rust/crates/grpcio-sys/grpc/tools/codegen/core/
Dgen_hpack_tables.cc38 unsigned char prefix_length; member
83 if ((prefix_mask(fields[j].prefix_length) & i) == fields[j].prefix) { in generate_first_byte_lut()
88 suffix = (unsigned char)(suffix_mask(fields[j].prefix_length) & in generate_first_byte_lut()
90 if (suffix == suffix_mask(fields[j].prefix_length)) { in generate_first_byte_lut()
/external/libchrome/base/
Dcommand_line.cc63 size_t prefix_length = GetSwitchPrefixLength(string); in IsSwitch() local
64 if (prefix_length == 0 || prefix_length == string.length()) in IsSwitch()
336 size_t prefix_length = GetSwitchPrefixLength(combined_switch_string); in AppendSwitchNative() local
338 switches_.insert(make_pair(switch_key.substr(prefix_length), value)); in AppendSwitchNative()
342 if (prefix_length == 0) in AppendSwitchNative()
/external/pdfium/third_party/libpng16/
Dpngrutil.c2717 png_uint_32 prefix_length; in png_handle_iTXt() local
2760 for (prefix_length=0; in png_handle_iTXt()
2761 prefix_length < length && buffer[prefix_length] != 0; in png_handle_iTXt()
2762 ++prefix_length) in png_handle_iTXt()
2766 if (prefix_length > 79 || prefix_length < 1) in png_handle_iTXt()
2773 else if (prefix_length + 5 > length) in png_handle_iTXt()
2776 else if (buffer[prefix_length+1] == 0 || in png_handle_iTXt()
2777 (buffer[prefix_length+1] == 1 && in png_handle_iTXt()
2778 buffer[prefix_length+2] == PNG_COMPRESSION_TYPE_BASE)) in png_handle_iTXt()
2780 int compressed = buffer[prefix_length+1] != 0; in png_handle_iTXt()
[all …]
/external/libpng/
Dpngrutil.c2717 png_uint_32 prefix_length; in png_handle_iTXt() local
2760 for (prefix_length=0; in png_handle_iTXt()
2761 prefix_length < length && buffer[prefix_length] != 0; in png_handle_iTXt()
2762 ++prefix_length) in png_handle_iTXt()
2766 if (prefix_length > 79 || prefix_length < 1) in png_handle_iTXt()
2773 else if (prefix_length + 5 > length) in png_handle_iTXt()
2776 else if (buffer[prefix_length+1] == 0 || in png_handle_iTXt()
2777 (buffer[prefix_length+1] == 1 && in png_handle_iTXt()
2778 buffer[prefix_length+2] == PNG_COMPRESSION_TYPE_BASE)) in png_handle_iTXt()
2780 int compressed = buffer[prefix_length+1] != 0; in png_handle_iTXt()
[all …]
/external/openscreen/osp/impl/discovery/mdns/
Dmdns_responder_adapter_impl.cc98 void MakeSubnetMaskFromPrefixLengthV4(uint8_t mask[4], uint8_t prefix_length) { in MakeSubnetMaskFromPrefixLengthV4() argument
99 for (int i = 0; i < 4; prefix_length -= 8, ++i) { in MakeSubnetMaskFromPrefixLengthV4()
100 if (prefix_length >= 8) { in MakeSubnetMaskFromPrefixLengthV4()
102 } else if (prefix_length > 0) { in MakeSubnetMaskFromPrefixLengthV4()
103 mask[i] = 0xff << (8 - prefix_length); in MakeSubnetMaskFromPrefixLengthV4()
110 void MakeSubnetMaskFromPrefixLengthV6(uint8_t mask[16], uint8_t prefix_length) { in MakeSubnetMaskFromPrefixLengthV6() argument
111 for (int i = 0; i < 16; prefix_length -= 8, ++i) { in MakeSubnetMaskFromPrefixLengthV6()
112 if (prefix_length >= 8) { in MakeSubnetMaskFromPrefixLengthV6()
114 } else if (prefix_length > 0) { in MakeSubnetMaskFromPrefixLengthV6()
115 mask[i] = 0xff << (8 - prefix_length); in MakeSubnetMaskFromPrefixLengthV6()
[all …]
/external/webrtc/test/network/
Dnetwork_emulation.cc186 int prefix_length = 0; in EmulatedEndpointImpl() local
188 prefix_length = kIPv4NetworkPrefixLength; in EmulatedEndpointImpl()
190 prefix_length = kIPv6NetworkPrefixLength; in EmulatedEndpointImpl()
192 rtc::IPAddress prefix = TruncateIP(ip, prefix_length); in EmulatedEndpointImpl()
195 prefix_length, type_); in EmulatedEndpointImpl()
/external/libchrome/mojo/public/cpp/bindings/tests/
Dvalidation_test_input_parser.cc74 bool StartsWith(const Range& range, const char* prefix, size_t prefix_length);
383 size_t prefix_length) { in StartsWith() argument
384 if (static_cast<size_t>(range.second - range.first) < prefix_length) in StartsWith()
387 return memcmp(range.first, prefix, prefix_length) == 0; in StartsWith()
/external/webrtc/tools_webrtc/sslroots/
Dgenerate_sslroots.py101 prefix_length = len(_PREFIX)
103 label = current_file[prefix_length:length]
/external/libchrome/base/i18n/
Dstreaming_utf8_validator_unittest.cc211 PartialIterator(size_t index, size_t prefix_length) in PartialIterator() argument
212 : index_(index), prefix_length_(prefix_length) {} in PartialIterator()
/external/libchrome/base/strings/
Dsafe_sprintf.cc337 const size_t prefix_length = reverse_prefix - prefix; in IToASCII() local
403 if (discarded > 8*sizeof(num) + prefix_length) { in IToASCII()
/external/icing/icing/index/main/
Dmain-index.cc379 for (int prefix_length : prefix_lengths) { in AddBranchPoints() local
380 if (prefix_length <= 0) { in AddBranchPoints()
384 prefix.assign(other_term_itr.GetKey(), prefix_length); in AddBranchPoints()
/external/one-true-awk/
Db.c926 int prefix_length = reptok - basestr; /* prefix includes first rep */ in replace_repeat() local
928 int size = prefix_length + suffix_length; in replace_repeat()
944 memcpy(buf, basestr, prefix_length); /* copy prefix */ in replace_repeat()
945 j = prefix_length; in replace_repeat()
978 prestr = buf + prefix_length; in replace_repeat()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Darithmetic_optimizer.cc1496 int prefix_length; in TrySimplify() local
1500 FindCommonUnaryOpChain(*node, &prefix_length, &tails, &ctrl_inputs)); in TrySimplify()
1501 if (prefix_length > 0 && !tails.empty()) { in TrySimplify()
1503 HoistUnaryOpChain(prefix_length, tails, &ctrl_inputs, node)); in TrySimplify()
1523 Status FindCommonUnaryOpChain(const NodeDef& root_node, int* prefix_length, in FindCommonUnaryOpChain() argument
1526 *prefix_length = 0; in FindCommonUnaryOpChain()
1542 ++(*prefix_length); in FindCommonUnaryOpChain()
1554 Status HoistUnaryOpChain(const int prefix_length, const ChainLinkSet& tails, in HoistUnaryOpChain() argument
1558 << " prefix_length=" << prefix_length << " ctrl_inputs=[" in HoistUnaryOpChain()
1568 return HoistChainForConcat(prefix_length, tails, root_node); in HoistUnaryOpChain()
[all …]
/external/llvm-project/lldb/source/Utility/
DArgs.cpp662 std::size_t prefix_length = original_args.size() - arg_string.size(); in SetFromString() local
672 m_arg_string_with_delimiter = original_args.take_front(prefix_length); in SetFromString()

12