Home
last modified time | relevance | path

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

/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.java63 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/
DInterfaceControllerTest.java75 assertEquals(TEST_PREFIXLENGTH, parcel.prefixLength); in testSetIPv4Address()
87 assertEquals(0, parcel.prefixLength); in testClearIPv4Address()
/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/dhcp/
DDhcpLeaseTest.kt101 assertEquals(expected.prefixLength, p.prefixLength) in assertParcelEquals()
DDhcpLeaseRepositoryTest.java656 p.prefixLength, in fromParcelable()
/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/current/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/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.java926 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/
DWifiDetailPreferenceController.java816 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/
DWifiDetailPreferenceController.java822 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/
DApfFilter.java2029 public static int ipv4BroadcastAddress(byte[] addrBytes, int prefixLength) { in ipv4BroadcastAddress() argument
2030 return bytesToBEInt(addrBytes) | (int) (Integer.toUnsignedLong(-1) >>> prefixLength); in ipv4BroadcastAddress()