Loading api/current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -28695,6 +28695,7 @@ package android.net { method @Nullable public String getPrivateDnsServerName(); method @NonNull public java.util.List<android.net.RouteInfo> getRoutes(); method public boolean isPrivateDnsActive(); method public boolean isWakeOnLanSupported(); method public void setDnsServers(@NonNull java.util.Collection<java.net.InetAddress>); method public void setDomains(@Nullable String); method public void setHttpProxy(@Nullable android.net.ProxyInfo); Loading Loading @@ -47777,6 +47778,7 @@ package android.util { ctor public ArraySet(int); ctor public ArraySet(android.util.ArraySet<E>); ctor public ArraySet(java.util.Collection<? extends E>); ctor public ArraySet(@Nullable E[]); method public boolean add(E); method public void addAll(android.util.ArraySet<? extends E>); method public boolean addAll(java.util.Collection<? extends E>); core/java/android/net/LinkProperties.java +45 −2 Original line number Diff line number Diff line Loading @@ -68,6 +68,7 @@ public final class LinkProperties implements Parcelable { // in the format "rmem_min,rmem_def,rmem_max,wmem_min,wmem_def,wmem_max" private String mTcpBufferSizes; private IpPrefix mNat64Prefix; private boolean mWakeOnLanSupported; private static final int MIN_MTU = 68; private static final int MIN_MTU_V6 = 1280; Loading Loading @@ -193,6 +194,7 @@ public final class LinkProperties implements Parcelable { setMtu(source.mMtu); mTcpBufferSizes = source.mTcpBufferSizes; mNat64Prefix = source.mNat64Prefix; mWakeOnLanSupported = source.mWakeOnLanSupported; } } Loading Loading @@ -852,6 +854,7 @@ public final class LinkProperties implements Parcelable { mMtu = 0; mTcpBufferSizes = null; mNat64Prefix = null; mWakeOnLanSupported = false; } /** Loading Loading @@ -913,6 +916,10 @@ public final class LinkProperties implements Parcelable { resultJoiner.add("MTU:"); resultJoiner.add(Integer.toString(mMtu)); if (mWakeOnLanSupported) { resultJoiner.add("WakeOnLanSupported: true"); } if (mTcpBufferSizes != null) { resultJoiner.add("TcpBufferSizes:"); resultJoiner.add(mTcpBufferSizes); Loading Loading @@ -1424,6 +1431,37 @@ public final class LinkProperties implements Parcelable { return Objects.equals(mNat64Prefix, target.mNat64Prefix); } /** * Compares this {@code LinkProperties} WakeOnLan supported against the target. * * @param target LinkProperties to compare. * @return {@code true} if both are identical, {@code false} otherwise. * @hide */ public boolean isIdenticalWakeOnLan(LinkProperties target) { return isWakeOnLanSupported() == target.isWakeOnLanSupported(); } /** * Set whether the network interface supports WakeOnLAN * * @param supported WakeOnLAN supported value * * @hide */ public void setWakeOnLanSupported(boolean supported) { mWakeOnLanSupported = supported; } /** * Returns whether the network interface supports WakeOnLAN * * @return {@code true} if interface supports WakeOnLAN, {@code false} otherwise. */ public boolean isWakeOnLanSupported() { return mWakeOnLanSupported; } /** * Compares this {@code LinkProperties} instance against the target * LinkProperties in {@code obj}. Two LinkPropertieses are equal if Loading Loading @@ -1461,7 +1499,8 @@ public final class LinkProperties implements Parcelable { && isIdenticalStackedLinks(target) && isIdenticalMtu(target) && isIdenticalTcpBufferSizes(target) && isIdenticalNat64Prefix(target); && isIdenticalNat64Prefix(target) && isIdenticalWakeOnLan(target); } /** Loading Loading @@ -1577,7 +1616,8 @@ public final class LinkProperties implements Parcelable { + (mUsePrivateDns ? 57 : 0) + mPcscfs.size() * 67 + ((null == mPrivateDnsServerName) ? 0 : mPrivateDnsServerName.hashCode()) + Objects.hash(mNat64Prefix); + Objects.hash(mNat64Prefix) + (mWakeOnLanSupported ? 71 : 0); } /** Loading Loading @@ -1622,6 +1662,8 @@ public final class LinkProperties implements Parcelable { ArrayList<LinkProperties> stackedLinks = new ArrayList<>(mStackedLinks.values()); dest.writeList(stackedLinks); dest.writeBoolean(mWakeOnLanSupported); } /** Loading Loading @@ -1677,6 +1719,7 @@ public final class LinkProperties implements Parcelable { for (LinkProperties stackedLink: stackedLinks) { netProp.addStackedLink(stackedLink); } netProp.setWakeOnLanSupported(in.readBoolean()); return netProp; } Loading core/java/android/util/ArraySet.java +13 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package android.util; import android.annotation.Nullable; import android.annotation.TestApi; import android.annotation.UnsupportedAppUsage; Loading Loading @@ -302,6 +303,18 @@ public final class ArraySet<E> implements Collection<E>, Set<E> { } } /** * Create a new ArraySet with items from the given array */ public ArraySet(@Nullable E[] array) { this(); if (array != null) { for (E value : array) { add(value); } } } /** * Make the array map empty. All storage is released. */ Loading core/res/res/values/config.xml +8 −0 Original line number Diff line number Diff line Loading @@ -433,6 +433,14 @@ --> </string-array> <!-- Configuration of network interfaces that support WakeOnLAN --> <string-array translatable="false" name="config_wakeonlan_supported_interfaces"> <!-- <item>wlan0</item> <item>eth0</item> --> </string-array> <!-- If the mobile hotspot feature requires provisioning, a package name and class name can be provided to launch a supported application that provisions the devices. Loading core/res/res/values/symbols.xml +1 −0 Original line number Diff line number Diff line Loading @@ -743,6 +743,7 @@ <java-symbol type="string" name="config_default_dns_server" /> <java-symbol type="string" name="config_ethernet_iface_regex" /> <java-symbol type="array" name="config_ethernet_interfaces" /> <java-symbol type="array" name="config_wakeonlan_supported_interfaces" /> <java-symbol type="string" name="config_forceVoiceInteractionServicePackage" /> <java-symbol type="string" name="config_mms_user_agent" /> <java-symbol type="string" name="config_mms_user_agent_profile_url" /> Loading Loading
api/current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -28695,6 +28695,7 @@ package android.net { method @Nullable public String getPrivateDnsServerName(); method @NonNull public java.util.List<android.net.RouteInfo> getRoutes(); method public boolean isPrivateDnsActive(); method public boolean isWakeOnLanSupported(); method public void setDnsServers(@NonNull java.util.Collection<java.net.InetAddress>); method public void setDomains(@Nullable String); method public void setHttpProxy(@Nullable android.net.ProxyInfo); Loading Loading @@ -47777,6 +47778,7 @@ package android.util { ctor public ArraySet(int); ctor public ArraySet(android.util.ArraySet<E>); ctor public ArraySet(java.util.Collection<? extends E>); ctor public ArraySet(@Nullable E[]); method public boolean add(E); method public void addAll(android.util.ArraySet<? extends E>); method public boolean addAll(java.util.Collection<? extends E>);
core/java/android/net/LinkProperties.java +45 −2 Original line number Diff line number Diff line Loading @@ -68,6 +68,7 @@ public final class LinkProperties implements Parcelable { // in the format "rmem_min,rmem_def,rmem_max,wmem_min,wmem_def,wmem_max" private String mTcpBufferSizes; private IpPrefix mNat64Prefix; private boolean mWakeOnLanSupported; private static final int MIN_MTU = 68; private static final int MIN_MTU_V6 = 1280; Loading Loading @@ -193,6 +194,7 @@ public final class LinkProperties implements Parcelable { setMtu(source.mMtu); mTcpBufferSizes = source.mTcpBufferSizes; mNat64Prefix = source.mNat64Prefix; mWakeOnLanSupported = source.mWakeOnLanSupported; } } Loading Loading @@ -852,6 +854,7 @@ public final class LinkProperties implements Parcelable { mMtu = 0; mTcpBufferSizes = null; mNat64Prefix = null; mWakeOnLanSupported = false; } /** Loading Loading @@ -913,6 +916,10 @@ public final class LinkProperties implements Parcelable { resultJoiner.add("MTU:"); resultJoiner.add(Integer.toString(mMtu)); if (mWakeOnLanSupported) { resultJoiner.add("WakeOnLanSupported: true"); } if (mTcpBufferSizes != null) { resultJoiner.add("TcpBufferSizes:"); resultJoiner.add(mTcpBufferSizes); Loading Loading @@ -1424,6 +1431,37 @@ public final class LinkProperties implements Parcelable { return Objects.equals(mNat64Prefix, target.mNat64Prefix); } /** * Compares this {@code LinkProperties} WakeOnLan supported against the target. * * @param target LinkProperties to compare. * @return {@code true} if both are identical, {@code false} otherwise. * @hide */ public boolean isIdenticalWakeOnLan(LinkProperties target) { return isWakeOnLanSupported() == target.isWakeOnLanSupported(); } /** * Set whether the network interface supports WakeOnLAN * * @param supported WakeOnLAN supported value * * @hide */ public void setWakeOnLanSupported(boolean supported) { mWakeOnLanSupported = supported; } /** * Returns whether the network interface supports WakeOnLAN * * @return {@code true} if interface supports WakeOnLAN, {@code false} otherwise. */ public boolean isWakeOnLanSupported() { return mWakeOnLanSupported; } /** * Compares this {@code LinkProperties} instance against the target * LinkProperties in {@code obj}. Two LinkPropertieses are equal if Loading Loading @@ -1461,7 +1499,8 @@ public final class LinkProperties implements Parcelable { && isIdenticalStackedLinks(target) && isIdenticalMtu(target) && isIdenticalTcpBufferSizes(target) && isIdenticalNat64Prefix(target); && isIdenticalNat64Prefix(target) && isIdenticalWakeOnLan(target); } /** Loading Loading @@ -1577,7 +1616,8 @@ public final class LinkProperties implements Parcelable { + (mUsePrivateDns ? 57 : 0) + mPcscfs.size() * 67 + ((null == mPrivateDnsServerName) ? 0 : mPrivateDnsServerName.hashCode()) + Objects.hash(mNat64Prefix); + Objects.hash(mNat64Prefix) + (mWakeOnLanSupported ? 71 : 0); } /** Loading Loading @@ -1622,6 +1662,8 @@ public final class LinkProperties implements Parcelable { ArrayList<LinkProperties> stackedLinks = new ArrayList<>(mStackedLinks.values()); dest.writeList(stackedLinks); dest.writeBoolean(mWakeOnLanSupported); } /** Loading Loading @@ -1677,6 +1719,7 @@ public final class LinkProperties implements Parcelable { for (LinkProperties stackedLink: stackedLinks) { netProp.addStackedLink(stackedLink); } netProp.setWakeOnLanSupported(in.readBoolean()); return netProp; } Loading
core/java/android/util/ArraySet.java +13 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package android.util; import android.annotation.Nullable; import android.annotation.TestApi; import android.annotation.UnsupportedAppUsage; Loading Loading @@ -302,6 +303,18 @@ public final class ArraySet<E> implements Collection<E>, Set<E> { } } /** * Create a new ArraySet with items from the given array */ public ArraySet(@Nullable E[] array) { this(); if (array != null) { for (E value : array) { add(value); } } } /** * Make the array map empty. All storage is released. */ Loading
core/res/res/values/config.xml +8 −0 Original line number Diff line number Diff line Loading @@ -433,6 +433,14 @@ --> </string-array> <!-- Configuration of network interfaces that support WakeOnLAN --> <string-array translatable="false" name="config_wakeonlan_supported_interfaces"> <!-- <item>wlan0</item> <item>eth0</item> --> </string-array> <!-- If the mobile hotspot feature requires provisioning, a package name and class name can be provided to launch a supported application that provisions the devices. Loading
core/res/res/values/symbols.xml +1 −0 Original line number Diff line number Diff line Loading @@ -743,6 +743,7 @@ <java-symbol type="string" name="config_default_dns_server" /> <java-symbol type="string" name="config_ethernet_iface_regex" /> <java-symbol type="array" name="config_ethernet_interfaces" /> <java-symbol type="array" name="config_wakeonlan_supported_interfaces" /> <java-symbol type="string" name="config_forceVoiceInteractionServicePackage" /> <java-symbol type="string" name="config_mms_user_agent" /> <java-symbol type="string" name="config_mms_user_agent_profile_url" /> Loading