/frameworks/base/core/java/android/net/ |
D | IpPrefix.java | 48 private final int prefixLength; field in IpPrefix 55 NetworkUtils.maskRawAddress(address, prefixLength); in checkAndMaskAddressAndPrefixLength() 68 public IpPrefix(byte[] address, int prefixLength) { in IpPrefix() argument 70 this.prefixLength = prefixLength; in IpPrefix() 83 public IpPrefix(InetAddress address, int prefixLength) { in IpPrefix() argument 87 this.prefixLength = prefixLength; in IpPrefix() 107 this.prefixLength = ipAndMask.second; in IpPrefix() 124 return Arrays.equals(this.address, that.address) && this.prefixLength == that.prefixLength; in equals() 134 return Arrays.hashCode(address) + 11 * prefixLength; in hashCode() 169 return prefixLength; in getPrefixLength() [all …]
|
D | LinkAddress.java | 62 private int prefixLength; field in LinkAddress 114 private void init(InetAddress address, int prefixLength, int flags, int scope) { in init() argument 117 prefixLength < 0 || in init() 118 ((address instanceof Inet4Address) && prefixLength > 32) || in init() 119 (prefixLength > 128)) { in init() 121 "/" + prefixLength); in init() 124 this.prefixLength = prefixLength; in init() 139 public LinkAddress(InetAddress address, int prefixLength, int flags, int scope) { in LinkAddress() argument 140 init(address, prefixLength, flags, scope); in LinkAddress() 150 public LinkAddress(InetAddress address, int prefixLength) { in LinkAddress() argument [all …]
|
D | NetworkUtils.java | 142 public static int prefixLengthToNetmaskInt(int prefixLength) in prefixLengthToNetmaskInt() argument 144 if (prefixLength < 0 || prefixLength > 32) { in prefixLengthToNetmaskInt() 147 int value = 0xffffffff << (32 - prefixLength); in prefixLengthToNetmaskInt() 170 int prefixLength = Integer.bitCount(i); in netmaskToPrefixLength() local 172 if (trailingZeros != 32 - prefixLength) { in netmaskToPrefixLength() 175 return prefixLength; in netmaskToPrefixLength() 221 public static void maskRawAddress(byte[] array, int prefixLength) { in maskRawAddress() argument 222 if (prefixLength < 0 || prefixLength > array.length * 8) { in maskRawAddress() 224 " bytes has invalid prefix length " + prefixLength); in maskRawAddress() 227 int offset = prefixLength / 8; in maskRawAddress() [all …]
|
D | VpnService.java | 253 public boolean addAddress(InetAddress address, int prefixLength) { in addAddress() argument 254 check(address, prefixLength); in addAddress() 256 return getService().addVpnAddress(address.getHostAddress(), prefixLength); in addAddress() 283 public boolean removeAddress(InetAddress address, int prefixLength) { in removeAddress() argument 284 check(address, prefixLength); in removeAddress() 286 return getService().removeVpnAddress(address.getHostAddress(), prefixLength); in removeAddress() 380 private static void check(InetAddress address, int prefixLength) { in check() argument 385 if (prefixLength < 0 || prefixLength > 32) { in check() 389 if (prefixLength < 0 || prefixLength > 128) { in check() 458 public Builder addAddress(InetAddress address, int prefixLength) { in addAddress() argument [all …]
|
D | DhcpResults.java | 146 public boolean setIpAddress(String addrString, int prefixLength) { in setIpAddress() argument 149 ipAddress = new LinkAddress(addr, prefixLength); in setIpAddress() 151 Log.e(TAG, "setIpAddress failed with addrString " + addrString + "/" + prefixLength); in setIpAddress()
|
D | IConnectivityManager.aidl | 165 boolean addVpnAddress(String address, int prefixLength); in addVpnAddress() argument 166 boolean removeVpnAddress(String address, int prefixLength); in removeVpnAddress() argument
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | WifiConfigurationHelper.java | 244 int prefixLength = getPrefixLength(jsonConfig.getInt("prefix_length")); in getWifiConfiguration() local 245 staticIpConfig.ipAddress = new LinkAddress(ipAddress, prefixLength); in getWifiConfiguration() 348 private static int getPrefixLength(int prefixLength) { in getPrefixLength() argument 349 if (prefixLength < 0 || prefixLength > 32) { in getPrefixLength() 352 return prefixLength; in getPrefixLength()
|
/frameworks/base/test-runner/src/android/test/ |
D | ClassPathPackageInfoSource.java | 185 int prefixLength = pathPrefix.length(); in findClassesInJar() local 191 int index = entryName.indexOf('/', prefixLength); in findClassesInJar()
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/ |
D | IMSIParameter.java | 65 public int prefixLength() { in prefixLength() method in IMSIParameter
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | IMSIParameter.java | 69 public int prefixLength() { in prefixLength() method in IMSIParameter
|
/frameworks/base/services/net/java/android/net/dhcp/ |
D | DhcpPacket.java | 1108 int prefixLength; in toDhcpResults() local 1111 prefixLength = NetworkUtils.netmaskToPrefixLength(mSubnetMask); in toDhcpResults() 1117 prefixLength = NetworkUtils.getImplicitNetmask(ipAddress); in toDhcpResults() 1122 results.ipAddress = new LinkAddress(ipAddress, prefixLength); in toDhcpResults()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Vpn.java | 1158 public synchronized boolean addAddress(String address, int prefixLength) { in addAddress() argument 1162 boolean success = jniAddAddress(mInterface, address, prefixLength); in addAddress() 1167 public synchronized boolean removeAddress(String address, int prefixLength) { in removeAddress() argument 1171 boolean success = jniDelAddress(mInterface, address, prefixLength); in removeAddress()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ |
D | ConnectivityServiceMock.java | 978 public boolean addVpnAddress(String address, int prefixLength) { in addVpnAddress() argument 983 public boolean removeVpnAddress(String address, int prefixLength) { in removeVpnAddress() argument
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkManagementService.java | 1007 int prefixLength = 0; in getInterfaceConfig() local 1015 prefixLength = Integer.parseInt(st.nextToken()); in getInterfaceConfig() 1020 cfg.setLinkAddress(new LinkAddress(addr, prefixLength)); in getInterfaceConfig()
|
D | ConnectivityService.java | 5114 public boolean addVpnAddress(String address, int prefixLength) { in addVpnAddress() argument 5118 return mVpns.get(user).addAddress(address, prefixLength); in addVpnAddress() 5123 public boolean removeVpnAddress(String address, int prefixLength) { in removeVpnAddress() argument 5127 return mVpns.get(user).removeAddress(address, prefixLength); in removeVpnAddress()
|