/frameworks/base/core/java/android/net/ |
LinkAddress.java | 40 private int prefixLength; 42 private void init(InetAddress address, int prefixLength) { 43 if (address == null || prefixLength < 0 || 44 ((address instanceof Inet4Address) && prefixLength > 32) || 45 (prefixLength > 128)) { 47 "/" + prefixLength); 50 this.prefixLength = prefixLength; 53 public LinkAddress(InetAddress address, int prefixLength) { 54 init(address, prefixLength); [all...] |
VpnService.java | 301 * Private method to validate address and prefixLength. 303 private void check(InetAddress address, int prefixLength) { 308 if (prefixLength < 0 || prefixLength > 32) { 309 throw new IllegalArgumentException("Bad prefixLength"); 312 if (prefixLength < 0 || prefixLength > 128) { 313 throw new IllegalArgumentException("Bad prefixLength"); 327 public Builder addAddress(InetAddress address, int prefixLength) { 328 check(address, prefixLength); [all...] |
NetworkUtils.java | 142 * @param prefixLength 145 public static int prefixLengthToNetmaskInt(int prefixLength) 147 if (prefixLength < 0 || prefixLength > 32) { 150 int value = 0xffffffff << (32 - prefixLength); 177 * Get InetAddress masked with prefixLength. Will never return null. 178 * @param IP address which will be masked with specified prefixLength 179 * @param prefixLength the prefixLength used to mask the IP 181 public static InetAddress getNetworkPart(InetAddress address, int prefixLength) { [all...] |
/libcore/luni/src/main/java/java/net/ |
InterfaceAddress.java | 37 private final short prefixLength; 45 this.prefixLength = countPrefixLength(mask); 51 InterfaceAddress(Inet6Address address, short prefixLength) { 54 this.prefixLength = prefixLength; 86 (rhs.prefixLength == prefixLength) && 94 hashCode += prefixLength; 104 return address + "/" + prefixLength + " [" + broadcastAddress + "]"; 127 return prefixLength; [all...] |
/system/core/include/netutils/ |
dhcp.h | 29 uint32_t *prefixLength, 39 uint32_t *prefixLength,
|
ifc.h | 48 extern int ifc_set_prefixLength(const char *name, int prefixLength); 65 extern int ifc_get_info(const char *name, in_addr_t *addr, int *prefixLength, 69 uint32_t prefixLength, in_addr_t gateway,
|
/external/smack/src/org/xbill/DNS/ |
APLRecord.java | 26 public final int prefixLength; 30 Element(int family, boolean negative, Object address, int prefixLength) 35 this.prefixLength = prefixLength; 36 if (!validatePrefixLength(family, prefixLength)) { 46 * @param prefixLength The length of this prefix, in bits. 50 Element(boolean negative, InetAddress address, int prefixLength) { 52 prefixLength); 67 sb.append(prefixLength); 78 prefixLength == elt.prefixLength & [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/format/ |
FormatUtils.java | 147 int prefixLength = prefix.length(); 149 if (prefixLength == 0 || textLength < prefixLength) { 160 if (i + prefixLength > textLength) { 166 for (j = 0; j < prefixLength; j++) { 171 if (j == prefixLength) {
|
/external/chromium_org/third_party/WebKit/Source/wtf/ |
InstanceCounter.cpp | 45 const size_t prefixLength = sizeof("const char* WTF::extractNameFunc() [with T = ") - 1; 48 ASSERT(funcNameLength > prefixLength + 1); 50 const char* funcNameWithoutPrefix = funcName + prefixLength; 51 return String(funcNameWithoutPrefix, funcNameLength - prefixLength - 1 /* last ] */);
|
Assertions.cpp | 153 size_t prefixLength = strlen(prefix); 155 OwnPtr<char[]> formatWithPrefix = adoptArrayPtr(new char[prefixLength + formatLength + 1]); 156 memcpy(formatWithPrefix.get(), prefix, prefixLength); 157 memcpy(formatWithPrefix.get() + prefixLength, format, formatLength); 158 formatWithPrefix[prefixLength + formatLength] = 0;
|
/external/icu4c/common/ |
ucmndata.c | 133 * Prime the prefix lengths so that we don't keep prefixLength at 0 until 148 int32_t prefixLength=MIN(startPrefixLength, limitPrefixLength); 149 int32_t cmp=strcmpAfterPrefix(s, names+toc[i].nameOffset, &prefixLength); 152 limitPrefixLength=prefixLength; 157 startPrefixLength=prefixLength; 178 * Prime the prefix lengths so that we don't keep prefixLength at 0 until 193 int32_t prefixLength=MIN(startPrefixLength, limitPrefixLength); 194 int32_t cmp=strcmpAfterPrefix(s, toc[i].entryName, &prefixLength); 197 limitPrefixLength=prefixLength; 202 startPrefixLength=prefixLength; [all...] |
/system/core/netcfg/ |
netcfg.c | 55 int prefixLength; 57 if(ifc_get_info(name, &addr, &prefixLength, &flags)) { 63 printf("/%-4d", prefixLength);
|
/development/ide/xcode/ports/ |
skia_mac.cp | 34 size_t prefixLength = common - applicationPath; 35 char* workingDirectory = new char[prefixLength + sizeof(systemParent)]; 36 strncpy(workingDirectory, applicationPath, prefixLength); 37 strcpy(&workingDirectory[prefixLength], systemParent);
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/ |
commit-log-editor | 346 my $prefixLength = length $prefix; 348 while ($prefixLength) { 349 last if substr($string, 0, $prefixLength) eq $prefix; 350 --$prefixLength; 353 last unless $prefixLength; 356 return "" unless $prefixLength;
|
/system/core/libnetutils/ |
dhcp_utils.c | 90 uint32_t *prefixLength, 141 *prefixLength = p; 189 uint32_t *prefixLength, 246 if (fill_ip_info(interface, ipaddr, gateway, prefixLength, dns, 333 uint32_t *prefixLength, 375 return fill_ip_info(interface, ipaddr, gateway, prefixLength, dns,
|
dhcpclient.c | 105 uint32_t prefixLength; 116 void get_dhcp_info(uint32_t *ipaddr, uint32_t *gateway, uint32_t *prefixLength, 122 *prefixLength = last_good_info.prefixLength; 132 return ifc_configure(ifname, info->ipaddr, info->prefixLength, info->gateway, 158 ALOGD("ip %s gw %s prefixLength %d", addr, gway, info->prefixLength); 203 info->prefixLength = ipv4NetmaskToPrefixLength(mask);
|
ifc_utils.c | 78 int prefixLength = 0; 81 prefixLength++; 84 return prefixLength; 441 int ifc_set_prefixLength(const char *name, int prefixLength) 445 if (prefixLength > 32 || prefixLength < 0) return -1; 447 in_addr_t mask = prefixLengthToIpv4Netmask(prefixLength); 471 int ifc_get_info(const char *name, in_addr_t *addr, int *prefixLength, unsigned *flags) 484 if (prefixLength != NULL) { 486 *prefixLength = 0 [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldInputStreamReaderTest.java | 256 final int prefixLength = 8189; 258 byte[] bytes = new byte[prefixLength + 10]; 260 System.arraycopy(suffix, 0, bytes, prefixLength, suffix.length); 276 if (at < prefixLength) { 282 char decoded = decodedSuffix[at - prefixLength];
|
/external/icu4c/tools/toolutil/ |
package.cpp | 585 int32_t prefixLength; 596 prefixLength=(int32_t)(prefixLimit-s); 597 if(prefixLength==0 || prefixLength>=LENGTHOF(pkgPrefix)) { 604 if(prefixEndsWithType && s[prefixLength-1]!=type) { 611 memcpy(pkgPrefix, s, prefixLength); 612 memcpy(prefix, s, ++prefixLength); // include the / 617 prefixLength=inPkgNameLength; 624 prefix[prefixLength++]='_'; 627 prefix[prefixLength++]=U_TREE_ENTRY_SEP_CHAR [all...] |
/external/emma/core/java12/com/vladium/util/ |
WCMatcher.java | 168 final int prefixLength = prefixChars.length - 1; 170 if (chars.length < prefixLength) return false; 172 for (int c = 0; c < prefixLength; ++ c)
|
/frameworks/base/core/jni/ |
android_net_NetUtils.cpp | 35 uint32_t *prefixLength, 46 uint32_t *prefixLength, 120 uint32_t prefixLength; 137 result = ::dhcp_do_request_renew(nameStr, ipaddr, gateway, &prefixLength, 140 result = ::dhcp_do_request(nameStr, ipaddr, gateway, &prefixLength, 156 // dhcpResults->addLinkAddress(inetAddress, prefixLength) 158 env->NewStringUTF(ipaddr), prefixLength);
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
VpnDialog.java | 284 int prefixLength = 32; 288 prefixLength = Integer.parseInt(parts[1]); 293 if (bytes.length != 4 || prefixLength < 0 || prefixLength > 32 || 294 (prefixLength < 32 && (integer << prefixLength) != 0)) {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ |
AndroidContentAssist.java | [all...] |
/external/icu4c/test/perf/dicttrieperf/ |
dicttrieperf.cpp | 186 static int32_t strcmpAfterPrefix(const char *s1, const char *s2, int32_t &prefixLength) { 187 int32_t pl=prefixLength; 200 prefixLength=pl; 215 // Prime the prefix lengths so that we don't keep prefixLength at 0 until 229 int32_t prefixLength=MIN(startPrefixLength, limitPrefixLength); 230 int32_t cmp=strcmpAfterPrefix(s, names+toc[i].nameOffset, prefixLength); 233 limitPrefixLength=prefixLength; 238 startPrefixLength=prefixLength;
|
/external/chromium_org/third_party/icu/source/tools/toolutil/ |
package.cpp | 528 int32_t inPkgNameLength, prefixLength, stringsOffset; 562 prefixLength=inPkgNameLength; 578 prefix[prefixLength++]='_'; 581 prefix[prefixLength++]=U_TREE_ENTRY_SEP_CHAR; 585 prefix[prefixLength]=0; 593 if(0!=strncmp(s, prefix, prefixLength) || s[prefixLength]==0) { 598 items[i].name=s+prefixLength; 649 int32_t i, length, prefixLength, maxItemLength, basenameOffset, offset, outInt32; 727 prefixLength=(int32_t)strlen(prefix) [all...] |