/system/core/libsysutils/src/ |
NetlinkEvent.cpp | 332 int prefixLength = rtm->rtm_dst_len; 369 if (!*dst && !prefixLength) { 386 asprintf(&mParams[0], "ROUTE=%s/%d", dst, prefixLength);
|
/external/icu/icu4c/source/tools/toolutil/ |
package.cpp | 582 int32_t prefixLength; 593 prefixLength=(int32_t)(prefixLimit-s); 594 if(prefixLength==0 || prefixLength>=UPRV_LENGTHOF(pkgPrefix)) { 601 if(prefixEndsWithType && s[prefixLength-1]!=type) { 608 memcpy(pkgPrefix, s, prefixLength); 609 pkgPrefix[prefixLength]=0; 610 memcpy(prefix, s, ++prefixLength); // include the / 615 prefixLength=inPkgNameLength; 622 prefix[prefixLength++]='_' [all...] |
/frameworks/base/core/java/android/app/ |
ApplicationErrorReport.java | 391 int prefixLength = 10 * 1024; 393 int acceptableLength = prefixLength + suffixLength; 400 sb.append(s.substring(0, prefixLength));
|
/libcore/ojluni/src/main/java/java/io/ |
File.java | 202 private final transient int prefixLength; 209 return prefixLength; 254 private File(String pathname, int prefixLength) { 256 this.prefixLength = prefixLength; 268 this.prefixLength = parent.prefixLength; 285 this.prefixLength = fs.prefixLength(this.path); 330 this.prefixLength = fs.prefixLength(this.path) [all...] |
/packages/apps/Settings/src/com/android/settings/vpn2/ |
ConfigDialog.java | 386 int prefixLength = 32; 390 prefixLength = Integer.parseInt(parts[1]); 395 if (bytes.length != 4 || prefixLength < 0 || prefixLength > 32 || 396 (prefixLength < 32 && (integer << prefixLength) != 0)) {
|
/system/core/libnetutils/ |
ifc_utils.c | 82 int prefixLength = 0; 85 prefixLength++; 88 return prefixLength; 468 int ifc_set_prefixLength(const char *name, int prefixLength) 472 if (prefixLength > 32 || prefixLength < 0) return -1; 474 in_addr_t mask = prefixLengthToIpv4Netmask(prefixLength); 498 int ifc_get_info(const char *name, in_addr_t *addr, int *prefixLength, unsigned *flags) 511 if (prefixLength != NULL) { 513 *prefixLength = 0 [all...] |
/system/netd/server/ |
CommandListener.cpp | 162 int prefixLength; 169 if (ifc_get_info(argv[2], &addr.s_addr, &prefixLength, &flags)) { 196 addr_s, prefixLength, flag_s); 207 // arglist: iface [addr prefixLength] flags [all...] |
RouteController.cpp | 340 uint8_t prefixLength; 342 &prefixLength); 385 bool isDefaultThrowRoute = (type == RTN_THROW && prefixLength == 0); 392 .rtm_dst_len = prefixLength, [all...] |
/system/netd/tests/ |
binder_test.cpp | 443 int prefixLength = 0; 454 prefixLength += (value == 0) ? 0 : CHAR_BIT - ffs(value) + 1; 462 return prefixLength; 472 const std::string &ifname, const char *addrString, int prefixLength) { 508 if (prefixLength < 0) return true; // not checking prefix lengths 512 EXPECT_EQ(prefixLength, netmaskToPrefixLength(&nm->sin_addr)); 513 return (prefixLength == netmaskToPrefixLength(&nm->sin_addr)); 522 if (prefixLength < 0) return true; // not checking prefix lengths 526 EXPECT_EQ(prefixLength, netmaskToPrefixLength(&nm->sin6_addr)); 527 return (prefixLength == netmaskToPrefixLength(&nm->sin6_addr)) [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
DateIntervalInfo.java | 776 int prefixLength = LATEST_FIRST_PREFIX.length(); 777 intervalPattern = intervalPattern.substring(prefixLength, intervalPattern.length()); [all...] |
NFRule.java | [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
StringTrieBuilder.java | 393 int prefixLength=i-stringOffset; 394 LinearMatchNode suffixNode=new LinearMatchNode(strings, i, length-prefixLength, next); 396 length=prefixLength; 428 int prefixLength=i-stringOffset; 431 strings, i, length-(prefixLength+1), next); 432 length=prefixLength; [all...] |
/external/icu/icu4c/source/common/ |
unames.cpp | 999 uint16_t prefixLength, i, idx; 1007 prefixLength=0; 1010 ++prefixLength; 1014 length=(uint16_t)(prefixLength+writeFactorSuffix(factors, count, 1017 suffix, (uint16_t)(sizeof(buffer)-prefixLength))); [all...] |
/external/icu/icu4c/source/i18n/ |
collationdatabuilder.cpp | 64 inline int32_t prefixLength() const { return context.charAt(0); } [all...] |
dtitvfmt.cpp | [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
DateIntervalInfo.java | 786 int prefixLength = LATEST_FIRST_PREFIX.length(); 787 intervalPattern = intervalPattern.substring(prefixLength, intervalPattern.length()); [all...] |
NFRule.java | [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
StringTrieBuilder.java | 395 int prefixLength=i-stringOffset; 396 LinearMatchNode suffixNode=new LinearMatchNode(strings, i, length-prefixLength, next); 398 length=prefixLength; 430 int prefixLength=i-stringOffset; 433 strings, i, length-(prefixLength+1), next); 434 length=prefixLength; [all...] |
/frameworks/base/services/net/java/android/net/ip/ |
RouterAdvertisementDaemon.java | 471 final int prefixLength = ipp.getPrefixLength(); 472 if (prefixLength != 64) { 485 .put(asByte(prefixLength)) 509 final int prefixLength = ipp.getPrefixLength(); 510 if (prefixLength > 64) { 515 (prefixLength == 0) ? 1 : (prefixLength <= 8) ? 2 : 3); 520 .put(asByte(prefixLength)) 525 if (prefixLength > 0) { 526 ra.put(addr, 0, (prefixLength <= 64) ? 8 : 16) [all...] |
/libcore/luni/src/main/native/ |
org_apache_harmony_xml_ExpatParser.cpp | 552 size_t prefixLength = lastColon - qName; 553 return strlen(mPrefix) == prefixLength 554 && strncmp(qName, mPrefix, prefixLength) == 0 [all...] |
/packages/services/Telecomm/src/com/android/server/telecom/ |
Analytics.java | 598 int prefixLength = CallsManager.TELECOM_CALL_ID_PREFIX.length(); 605 i1 = Integer.valueOf(id1.substring(prefixLength)); 611 i2 = Integer.valueOf(id2.substring(prefixLength));
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ |
AndroidContentAssist.java | [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/ |
CollationDataBuilder.java | 337 int prefixLength = prefix.length(); 338 if(prefixLength == 0) { 341 return getCEs(new StringBuilder(prefix).append(s), prefixLength, ces, cesLength); 364 int prefixLength() { return context.charAt(0); } 765 int suffixStart = cond.prefixLength() + 1; [all...] |
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
CollationDataBuilder.java | 336 int prefixLength = prefix.length(); 337 if(prefixLength == 0) { 340 return getCEs(new StringBuilder(prefix).append(s), prefixLength, ces, cesLength); 363 int prefixLength() { return context.charAt(0); } 764 int suffixStart = cond.prefixLength() + 1; [all...] |
/external/r8/src/main/java/com/android/tools/r8/dex/ |
VirtualFile.java | 134 private static String extractPrefixToken(int prefixLength, String className, boolean addStar) { 138 while (lastIndex != -1 && segmentCount++ < prefixLength) { 143 if (addStar && segmentCount >= prefixLength) { 872 int prefixLength = MINIMUM_PREFIX_LENGTH; 890 prefixLength = MINIMUM_PREFIX_LENGTH - 1; 904 newPrefix = extractPrefixToken(++prefixLength, originalName, false); 910 currentPrefix = extractPrefixToken(prefixLength, originalName, true); [all...] |