/external/chromium_org/chromeos/network/ |
network_util.cc | 30 std::string PrefixLengthToNetmask(int32 prefix_length) { 33 if (prefix_length < 0 || prefix_length > 32) 37 if (prefix_length >= 8) { 38 prefix_length -= 8; 40 remainder = prefix_length; 41 prefix_length = 0; 54 int prefix_length = 0; local 64 if (prefix_length / 8 != count) { 68 prefix_length += 8 [all...] |
network_util.h | 67 // Converts a |prefix_length| to a netmask. (for IPv4 only) 68 // e.g. a |prefix_length| of 24 is converted to a netmask of "255.255.255.0". 70 CHROMEOS_EXPORT std::string PrefixLengthToNetmask(int32 prefix_length);
|
/external/bison/lib/ |
dirname-lgpl.c | 34 size_t prefix_length = FILE_SYSTEM_PREFIX_LEN (file); local 37 /* Advance prefix_length beyond important leading slashes. */ 38 prefix_length += (prefix_length != 0 40 && ISSLASH (file[prefix_length])) 49 prefix_length < length; length--)
|
/ndk/sources/host-tools/sed-4.2.1/lib/ |
dirname.c | 34 size_t prefix_length = FILE_SYSTEM_PREFIX_LEN (file); local 37 /* Advance prefix_length beyond important leading slashes. */ 38 prefix_length += (prefix_length != 0 40 && ISSLASH (file[prefix_length])) 49 prefix_length < length; length--)
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
fakenetwork.h | 105 int prefix_length = 0; local 107 prefix_length = kFakeIPv4NetworkPrefixLength; 109 prefix_length = kFakeIPv6NetworkPrefixLength; 111 IPAddress prefix = TruncateIP(it->ipaddr(), prefix_length); 115 prefix_length));
|
network.cc | 85 int prefix_length) { 87 ost << name << "%" << prefix.ToString() << "/" << prefix_length; 92 if (a->prefix_length() == b->prefix_length()) { 142 list[i]->prefix_length()); 232 int prefix_length = CountIPMaskBits(mask); local 233 prefix = TruncateIP(ip, prefix_length); 235 prefix, prefix_length); 241 prefix_length)); 379 int prefix_length = GetPrefix(prefixlist, ip, &prefix) local [all...] |
/external/chromium_org/net/dns/ |
address_sorter_posix.h | 34 unsigned prefix_length; member in struct:net::AddressSorterPosix::PolicyEntry 55 unsigned prefix_length; member in struct:net::AddressSorterPosix::SourceAddressInfo
|
/system/core/include/netutils/ |
ifc.h | 61 extern int ifc_add_route(const char *name, const char *addr, int prefix_length, 64 int prefix_length, const char *gw); 72 extern in_addr_t prefixLengthToIpv4Netmask(int prefix_length);
|
/external/chromium_org/chrome/browser/chromeos/extensions/ |
input_method_api.cc | 79 size_t prefix_length = std::string(kXkbPrefix).length(); local 80 DCHECK(xkb_id.substr(0, prefix_length) == kXkbPrefix); 81 return xkb_id.substr(prefix_length);
|
/external/chromium_org/chrome/browser/extensions/api/system_network/ |
system_network_apitest.cc | 62 << ", prefix length=" << network_interface.prefix_length; 65 ASSERT_LE(0, network_interface.prefix_length);
|
/system/core/libnetutils/ |
ifc_utils.c | 61 in_addr_t prefixLengthToIpv4Netmask(int prefix_length) 66 if (prefix_length <= 0 || prefix_length > 32) { 70 mask = ~mask << (32 - prefix_length); 504 int ifc_act_on_ipv4_route(int action, const char *ifname, struct in_addr dst, int prefix_length, 516 netmask = prefixLengthToIpv4Netmask(prefix_length); 521 if (prefix_length == 32) { 820 int ifc_act_on_ipv6_route(int action, const char *ifname, struct in6_addr dst, int prefix_length, 837 rtmsg.rtmsg_dst_len = prefix_length; 840 if (prefix_length == 128) [all...] |
/external/chromium_org/chrome/browser/storage_monitor/ |
storage_info.cc | 73 size_t prefix_length = device_id.find_first_of(':'); local 74 std::string prefix = prefix_length != std::string::npos 75 ? device_id.substr(0, prefix_length + 1) 103 *unique_id = device_id.substr(prefix_length + 1);
|
/external/chromium_org/chrome/renderer/plugins/ |
plugin_uma.cc | 160 size_t prefix_length = strlen(kSilverlightTypePrefix); 161 if (strncmp(mime_type.c_str(), kSilverlightTypePrefix, prefix_length) == 0) 164 prefix_length = strlen(kRealPlayerTypePrefix); 165 if (strncmp(mime_type.c_str(), kRealPlayerTypePrefix, prefix_length) == 0)
|
/external/chromium_org/chrome/browser/ui/omnibox/ |
omnibox_current_page_delegate_impl.cc | 75 size_t prefix_length = match.keyword.length() + 1; 79 UTF16ToUTF8(match.fill_into_edit.substr(prefix_length)),
|
/external/chromium_org/net/cert/ |
ct_serialization.cc | 64 // |prefix_length| indicates the bytes needed to represent the length (e.g. 3) 66 bool ReadLength(size_t prefix_length, base::StringPiece* in, size_t* out) { 68 if (!ReadUint(prefix_length, in, &length)) 87 // on success. |prefix_length| indicates the number of bytes needed to represent 90 bool ReadVariableBytes(size_t prefix_length, 94 if (!ReadLength(prefix_length, in, &length)) 197 // |prefix_length| indicates the number of bytes needed to represnt the length. 199 // If the size of |input| is less than 2^|prefix_length| - 1, encode the 201 bool WriteVariableBytes(size_t prefix_length, 206 static_cast<size_t>(((1 << (prefix_length * 8)) - 1)) [all...] |
/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.6/lib/gcc/arm-eabi/4.6.x-google/gcov-src/ |
libgcov.c | 203 static size_t prefix_length = 0; variable 325 gcov_strip_leading_dirs (int prefix_length, int gcov_prefix_strip, 329 if (prefix_length != 0 && HAS_DRIVE_SPEC(filename)) 350 if (prefix_length != 0 && !IS_DIR_SEPARATOR (*filename)) 368 prefix_length = 0; 386 prefix_length = strlen(gcov_prefix); 389 if (IS_DIR_SEPARATOR (gcov_prefix[prefix_length - 1])) 390 prefix_length--; 393 prefix_length = 0; 397 if (gcov_prefix_strip != 0 && prefix_length == 0 496 size_t prefix_length, suffix_length; local [all...] |
/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6/lib/gcc/arm-linux-androideabi/4.6.x-google/gcov-src/ |
libgcov.c | 203 static size_t prefix_length = 0; variable 325 gcov_strip_leading_dirs (int prefix_length, int gcov_prefix_strip, 329 if (prefix_length != 0 && HAS_DRIVE_SPEC(filename)) 350 if (prefix_length != 0 && !IS_DIR_SEPARATOR (*filename)) 368 prefix_length = 0; 386 prefix_length = strlen(gcov_prefix); 389 if (IS_DIR_SEPARATOR (gcov_prefix[prefix_length - 1])) 390 prefix_length--; 393 prefix_length = 0; 397 if (gcov_prefix_strip != 0 && prefix_length == 0 496 size_t prefix_length, suffix_length; local [all...] |
/prebuilts/gcc/darwin-x86/mips/mipsel-linux-android-4.6/lib/gcc/mipsel-linux-android/4.6/gcov-src/ |
libgcov.c | 203 static size_t prefix_length = 0; variable 325 gcov_strip_leading_dirs (int prefix_length, int gcov_prefix_strip, 329 if (prefix_length != 0 && HAS_DRIVE_SPEC(filename)) 350 if (prefix_length != 0 && !IS_DIR_SEPARATOR (*filename)) 368 prefix_length = 0; 386 prefix_length = strlen(gcov_prefix); 389 if (IS_DIR_SEPARATOR (gcov_prefix[prefix_length - 1])) 390 prefix_length--; 393 prefix_length = 0; 397 if (gcov_prefix_strip != 0 && prefix_length == 0 496 size_t prefix_length, suffix_length; local [all...] |
/prebuilts/gcc/darwin-x86/x86/i686-linux-android-4.6/lib/gcc/i686-linux-android/4.6/gcov-src/ |
libgcov.c | 203 static size_t prefix_length = 0; variable 325 gcov_strip_leading_dirs (int prefix_length, int gcov_prefix_strip, 329 if (prefix_length != 0 && HAS_DRIVE_SPEC(filename)) 350 if (prefix_length != 0 && !IS_DIR_SEPARATOR (*filename)) 368 prefix_length = 0; 386 prefix_length = strlen(gcov_prefix); 389 if (IS_DIR_SEPARATOR (gcov_prefix[prefix_length - 1])) 390 prefix_length--; 393 prefix_length = 0; 397 if (gcov_prefix_strip != 0 && prefix_length == 0 496 size_t prefix_length, suffix_length; local [all...] |
/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/lib/gcc/arm-eabi/4.6.x-google/gcov-src/ |
libgcov.c | 203 static size_t prefix_length = 0; variable 325 gcov_strip_leading_dirs (int prefix_length, int gcov_prefix_strip, 329 if (prefix_length != 0 && HAS_DRIVE_SPEC(filename)) 350 if (prefix_length != 0 && !IS_DIR_SEPARATOR (*filename)) 368 prefix_length = 0; 386 prefix_length = strlen(gcov_prefix); 389 if (IS_DIR_SEPARATOR (gcov_prefix[prefix_length - 1])) 390 prefix_length--; 393 prefix_length = 0; 397 if (gcov_prefix_strip != 0 && prefix_length == 0 496 size_t prefix_length, suffix_length; local [all...] |
/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/lib/gcc/arm-linux-androideabi/4.6.x-google/gcov-src/ |
libgcov.c | 203 static size_t prefix_length = 0; variable 325 gcov_strip_leading_dirs (int prefix_length, int gcov_prefix_strip, 329 if (prefix_length != 0 && HAS_DRIVE_SPEC(filename)) 350 if (prefix_length != 0 && !IS_DIR_SEPARATOR (*filename)) 368 prefix_length = 0; 386 prefix_length = strlen(gcov_prefix); 389 if (IS_DIR_SEPARATOR (gcov_prefix[prefix_length - 1])) 390 prefix_length--; 393 prefix_length = 0; 397 if (gcov_prefix_strip != 0 && prefix_length == 0 496 size_t prefix_length, suffix_length; local [all...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/lib/gcc/i686-linux/4.6.x-google/gcov-src/ |
libgcov.c | 203 static size_t prefix_length = 0; variable 325 gcov_strip_leading_dirs (int prefix_length, int gcov_prefix_strip, 329 if (prefix_length != 0 && HAS_DRIVE_SPEC(filename)) 350 if (prefix_length != 0 && !IS_DIR_SEPARATOR (*filename)) 368 prefix_length = 0; 386 prefix_length = strlen(gcov_prefix); 389 if (IS_DIR_SEPARATOR (gcov_prefix[prefix_length - 1])) 390 prefix_length--; 393 prefix_length = 0; 397 if (gcov_prefix_strip != 0 && prefix_length == 0 496 size_t prefix_length, suffix_length; local [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/lib/gcc/x86_64-linux/4.6.x-google/gcov-src/ |
libgcov.c | 203 static size_t prefix_length = 0; variable 325 gcov_strip_leading_dirs (int prefix_length, int gcov_prefix_strip, 329 if (prefix_length != 0 && HAS_DRIVE_SPEC(filename)) 350 if (prefix_length != 0 && !IS_DIR_SEPARATOR (*filename)) 368 prefix_length = 0; 386 prefix_length = strlen(gcov_prefix); 389 if (IS_DIR_SEPARATOR (gcov_prefix[prefix_length - 1])) 390 prefix_length--; 393 prefix_length = 0; 397 if (gcov_prefix_strip != 0 && prefix_length == 0 496 size_t prefix_length, suffix_length; local [all...] |
/prebuilts/gcc/linux-x86/mips/mipsel-linux-android-4.6/lib/gcc/mipsel-linux-android/4.6/gcov-src/ |
libgcov.c | 203 static size_t prefix_length = 0; variable 325 gcov_strip_leading_dirs (int prefix_length, int gcov_prefix_strip, 329 if (prefix_length != 0 && HAS_DRIVE_SPEC(filename)) 350 if (prefix_length != 0 && !IS_DIR_SEPARATOR (*filename)) 368 prefix_length = 0; 386 prefix_length = strlen(gcov_prefix); 389 if (IS_DIR_SEPARATOR (gcov_prefix[prefix_length - 1])) 390 prefix_length--; 393 prefix_length = 0; 397 if (gcov_prefix_strip != 0 && prefix_length == 0 496 size_t prefix_length, suffix_length; local [all...] |
/prebuilts/gcc/linux-x86/x86/i686-linux-android-4.6/lib/gcc/i686-linux-android/4.6/gcov-src/ |
libgcov.c | 203 static size_t prefix_length = 0; variable 325 gcov_strip_leading_dirs (int prefix_length, int gcov_prefix_strip, 329 if (prefix_length != 0 && HAS_DRIVE_SPEC(filename)) 350 if (prefix_length != 0 && !IS_DIR_SEPARATOR (*filename)) 368 prefix_length = 0; 386 prefix_length = strlen(gcov_prefix); 389 if (IS_DIR_SEPARATOR (gcov_prefix[prefix_length - 1])) 390 prefix_length--; 393 prefix_length = 0; 397 if (gcov_prefix_strip != 0 && prefix_length == 0 496 size_t prefix_length, suffix_length; local [all...] |