/packages/apps/Contacts/src/com/android/contacts/format/ |
D | FormatUtils.java | 147 int prefixLength = prefix.length(); in indexOfWordPrefix() local 149 if (prefixLength == 0 || textLength < prefixLength) { in indexOfWordPrefix() 160 if (i + prefixLength > textLength) { in indexOfWordPrefix() 166 for (j = 0; j < prefixLength; j++) { in indexOfWordPrefix() 171 if (j == prefixLength) { in indexOfWordPrefix()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeyboardTextsSet.java | 94 final int prefixLength = PREFIX_TEXT.length(); in resolveTextReference() local 96 if (size < prefixLength) { in resolveTextReference() 133 final int prefixLength = prefix.length(); in expandReference() local 134 final int end = searchTextNameEnd(text, pos + prefixLength); in expandReference() 135 final String name = text.substring(pos + prefixLength, end); in expandReference()
|
/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/ |
D | StructNdOptPref64.java | 74 static int prefixLengthToPlc(int prefixLength) { in prefixLengthToPlc() argument 75 switch (prefixLength) { in prefixLengthToPlc() 83 throw new IllegalArgumentException("Invalid prefix length " + prefixLength); in prefixLengthToPlc()
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpLease.java | 57 @NonNull Inet4Address netAddr, int prefixLength, long expTime, in DhcpLease() argument 62 mPrefixLength = prefixLength; in DhcpLease() 175 p.prefixLength = mPrefixLength; in toParcelable()
|
D | DhcpPacket.java | 1338 int prefixLength; in toDhcpResults() local 1341 prefixLength = Inet4AddressUtils.netmaskToPrefixLength(mSubnetMask); in toDhcpResults() 1347 prefixLength = Inet4AddressUtils.getImplicitNetmask(ipAddress); in toDhcpResults() 1352 results.ipAddress = new LinkAddress(ipAddress, prefixLength); in toDhcpResults()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/ |
D | ConfigDialog.java | 426 int prefixLength = 32; in validateAddresses() local 430 prefixLength = Integer.parseInt(parts[1]); in validateAddresses() 435 if (bytes.length != 4 || prefixLength < 0 || prefixLength > 32 || in validateAddresses() 436 (prefixLength < 32 && (integer << prefixLength) != 0)) { in validateAddresses()
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | ConfigDialog.java | 475 int prefixLength = 32; in validateAddresses() local 479 prefixLength = Integer.parseInt(parts[1]); in validateAddresses() 484 if (bytes.length != 4 || prefixLength < 0 || prefixLength > 32 || in validateAddresses() 485 (prefixLength < 32 && (integer << prefixLength) != 0)) { in validateAddresses()
|
/packages/modules/NetworkStack/common/moduleutils/src/android/net/shared/ |
D | InitialConfiguration.java | 192 private static boolean isCompliantIPv6PrefixLength(int prefixLength) { in isCompliantIPv6PrefixLength() argument 193 return (RFC6177_MIN_PREFIX_LENGTH <= prefixLength) in isCompliantIPv6PrefixLength() 194 && (prefixLength <= RFC7421_PREFIX_LENGTH); in isCompliantIPv6PrefixLength()
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/ |
D | WifiSubnetPreferenceController.java | 63 private static String ipv4PrefixLengthToSubnetMask(int prefixLength) { in ipv4PrefixLengthToSubnetMask() argument 67 return NetworkUtils.getNetworkPart(all, prefixLength).getHostAddress(); in ipv4PrefixLengthToSubnetMask()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/ |
D | InterfaceControllerTest.java | 75 assertEquals(TEST_PREFIXLENGTH, parcel.prefixLength); in testSetIPv4Address() 87 assertEquals(0, parcel.prefixLength); in testClearIPv4Address()
|
/packages/modules/NetworkStack/common/moduleutils/src/android/net/ip/ |
D | InterfaceController.java | 68 ifConfig.prefixLength = ipv4Addr.getPrefixLength(); in setInterfaceConfiguration() 83 ifConfig.ipv4Addr, ifConfig.prefixLength, e); in setInterfaceConfiguration()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/ |
D | DhcpLeaseTest.kt | 101 assertEquals(expected.prefixLength, p.prefixLength) in assertParcelEquals()
|
D | DhcpLeaseRepositoryTest.java | 656 p.prefixLength, in fromParcelable()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/ |
D | StructNdOptPref64Test.java | 55 private static IpPrefix prefix(String addrString, int prefixLength) throws Exception { in prefix() argument 56 return new IpPrefix(InetAddress.getByName(addrString), prefixLength); in prefix()
|
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/6/android/net/dhcp/ |
D | DhcpLeaseParcelable.aidl | 23 int prefixLength;
|
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/dhcp/ |
D | DhcpLeaseParcelable.aidl | 23 int prefixLength;
|
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/7/android/net/dhcp/ |
D | DhcpLeaseParcelable.aidl | 23 int prefixLength;
|
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/dhcp/ |
D | DhcpLeaseParcelable.aidl | 27 int prefixLength;
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | Analytics.java | 692 int prefixLength = CallsManager.TELECOM_CALL_ID_PREFIX.length(); in dump() local 699 i1 = Integer.valueOf(id1.substring(prefixLength)); in dump() 705 i2 = Integer.valueOf(id2.substring(prefixLength)); in dump()
|
/packages/modules/DnsResolver/ |
D | Dns64Configuration.h | 58 uint8_t prefixLength; member
|
D | ResolverController.cpp | 91 it->onNat64PrefixEvent(args.netId, args.added, args.prefixString, args.prefixLength); in sendNat64PrefixEvent()
|
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/ |
D | IpClientIntegrationTest.java | 926 assertEquals(ifConfig.getValue().prefixLength, PREFIX_LENGTH); 1638 final int prefixLength = 26; 1644 final LinkAddress trigger = new LinkAddress(addr2 + "/" + prefixLength); 1656 mNetd.interfaceAddAddress(iface, addr1, prefixLength); 1657 mNetd.interfaceAddAddress(iface, addr2, prefixLength);
|
/packages/apps/Settings/src/com/android/settings/wifi/details/ |
D | WifiDetailPreferenceController.java | 816 private static String ipv4PrefixLengthToSubnetMask(int prefixLength) { in ipv4PrefixLengthToSubnetMask() argument 820 return NetworkUtils.getNetworkPart(all, prefixLength).getHostAddress(); in ipv4PrefixLengthToSubnetMask()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/details/ |
D | WifiDetailPreferenceController.java | 822 private static String ipv4PrefixLengthToSubnetMask(int prefixLength) { in ipv4PrefixLengthToSubnetMask() argument 826 return NetworkUtils.getNetworkPart(all, prefixLength).getHostAddress(); in ipv4PrefixLengthToSubnetMask()
|
/packages/modules/NetworkStack/src/android/net/apf/ |
D | ApfFilter.java | 2029 public static int ipv4BroadcastAddress(byte[] addrBytes, int prefixLength) { in ipv4BroadcastAddress() argument 2030 return bytesToBEInt(addrBytes) | (int) (Integer.toUnsignedLong(-1) >>> prefixLength); in ipv4BroadcastAddress()
|