Home
last modified time | relevance | path

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

12

/packages/apps/Contacts/src/com/android/contacts/format/
DFormatUtils.java147 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/
DKeyboardTextsSet.java94 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/
DStructNdOptPref64.java74 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/
DDhcpLease.java57 @NonNull Inet4Address netAddr, int prefixLength, long expTime, in DhcpLease() argument
62 mPrefixLength = prefixLength; in DhcpLease()
175 p.prefixLength = mPrefixLength; in toParcelable()
DDhcpPacket.java1338 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/
DConfigDialog.java426 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/
DConfigDialog.java475 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/
DInitialConfiguration.java192 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/
DWifiSubnetPreferenceController.java66 private static String ipv4PrefixLengthToSubnetMask(int prefixLength) { in ipv4PrefixLengthToSubnetMask() argument
70 return NetworkUtils.getNetworkPart(all, prefixLength).getHostAddress(); in ipv4PrefixLengthToSubnetMask()
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DInterfaceControllerTest.java75 assertEquals(TEST_PREFIXLENGTH, parcel.prefixLength); in testSetIPv4Address()
87 assertEquals(0, parcel.prefixLength); in testClearIPv4Address()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpLeaseTest.kt101 assertEquals(expected.prefixLength, p.prefixLength) in assertParcelEquals()
/packages/modules/NetworkStack/common/moduleutils/src/android/net/ip/
DInterfaceController.java68 ifConfig.prefixLength = ipv4Addr.getPrefixLength(); in setInterfaceConfiguration()
83 ifConfig.ipv4Addr, ifConfig.prefixLength, e); in setInterfaceConfiguration()
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
DStructNdOptPref64Test.java55 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/
DDhcpLeaseParcelable.aidl23 int prefixLength;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/7/android/net/dhcp/
DDhcpLeaseParcelable.aidl23 int prefixLength;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/dhcp/
DDhcpLeaseParcelable.aidl23 int prefixLength;
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/dhcp/
DDhcpLeaseParcelable.aidl27 int prefixLength;
/packages/services/Telecomm/src/com/android/server/telecom/
DAnalytics.java692 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/
DDns64Configuration.h58 uint8_t prefixLength; member
DResolverController.cpp91 it->onNat64PrefixEvent(args.netId, args.added, args.prefixString, args.prefixLength); in sendNat64PrefixEvent()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTest.java925 assertEquals(ifConfig.getValue().prefixLength, PREFIX_LENGTH);
1632 final int prefixLength = 26;
1638 final LinkAddress trigger = new LinkAddress(addr2 + "/" + prefixLength);
1650 mNetd.interfaceAddAddress(iface, addr1, prefixLength);
1651 mNetd.interfaceAddAddress(iface, addr2, prefixLength);
/packages/apps/Settings/src/com/android/settings/wifi/details2/
DWifiDetailPreferenceController2.java765 private static String ipv4PrefixLengthToSubnetMask(int prefixLength) { in ipv4PrefixLengthToSubnetMask() argument
769 return NetworkUtils.getNetworkPart(all, prefixLength).getHostAddress(); in ipv4PrefixLengthToSubnetMask()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/details/
DWifiDetailPreferenceController.java825 private static String ipv4PrefixLengthToSubnetMask(int prefixLength) { in ipv4PrefixLengthToSubnetMask() argument
829 return NetworkUtils.getNetworkPart(all, prefixLength).getHostAddress(); in ipv4PrefixLengthToSubnetMask()
/packages/apps/Settings/src/com/android/settings/wifi/details/
DWifiDetailPreferenceController.java931 private static String ipv4PrefixLengthToSubnetMask(int prefixLength) { in ipv4PrefixLengthToSubnetMask() argument
935 return NetworkUtils.getNetworkPart(all, prefixLength).getHostAddress(); in ipv4PrefixLengthToSubnetMask()
/packages/modules/NetworkStack/src/android/net/apf/
DApfFilter.java2029 public static int ipv4BroadcastAddress(byte[] addrBytes, int prefixLength) { in ipv4BroadcastAddress() argument
2030 return bytesToBEInt(addrBytes) | (int) (Integer.toUnsignedLong(-1) >>> prefixLength); in ipv4BroadcastAddress()

12