Loading services/net/java/android/net/ipmemorystore/NetworkAttributes.java +4 −1 Original line number Diff line number Diff line Loading @@ -127,6 +127,7 @@ public class NetworkAttributes { @Nullable private static InetAddress getByAddressOrNull(@Nullable final byte[] address) { if (null == address) return null; try { return InetAddress.getByAddress(address); } catch (UnknownHostException e) { Loading Loading @@ -227,7 +228,9 @@ public class NetworkAttributes { } /** * Set the lease expiry timestamp of assigned v4 address. * Set the lease expiry timestamp of assigned v4 address. Long.MAX_VALUE is used * to represent "infinite lease". * * @param assignedV4AddressExpiry The lease expiry timestamp of assigned v4 address. * @return This builder. */ Loading services/net/java/android/net/ipmemorystore/OnNetworkAttributesRetrievedListener.java +2 −2 Original line number Diff line number Diff line Loading @@ -40,8 +40,8 @@ public interface OnNetworkAttributesRetrievedListener { // NonNull, but still don't crash the system server if null if (null != listener) { listener.onNetworkAttributesRetrieved( new Status(statusParcelable), l2Key, new NetworkAttributes(networkAttributesParcelable)); new Status(statusParcelable), l2Key, null == networkAttributesParcelable ? null : new NetworkAttributes(networkAttributesParcelable)); } } Loading Loading
services/net/java/android/net/ipmemorystore/NetworkAttributes.java +4 −1 Original line number Diff line number Diff line Loading @@ -127,6 +127,7 @@ public class NetworkAttributes { @Nullable private static InetAddress getByAddressOrNull(@Nullable final byte[] address) { if (null == address) return null; try { return InetAddress.getByAddress(address); } catch (UnknownHostException e) { Loading Loading @@ -227,7 +228,9 @@ public class NetworkAttributes { } /** * Set the lease expiry timestamp of assigned v4 address. * Set the lease expiry timestamp of assigned v4 address. Long.MAX_VALUE is used * to represent "infinite lease". * * @param assignedV4AddressExpiry The lease expiry timestamp of assigned v4 address. * @return This builder. */ Loading
services/net/java/android/net/ipmemorystore/OnNetworkAttributesRetrievedListener.java +2 −2 Original line number Diff line number Diff line Loading @@ -40,8 +40,8 @@ public interface OnNetworkAttributesRetrievedListener { // NonNull, but still don't crash the system server if null if (null != listener) { listener.onNetworkAttributesRetrieved( new Status(statusParcelable), l2Key, new NetworkAttributes(networkAttributesParcelable)); new Status(statusParcelable), l2Key, null == networkAttributesParcelable ? null : new NetworkAttributes(networkAttributesParcelable)); } } Loading